#hci_uart with board nrf52_pca10040 build fail #hci_uart


deeve ma
 

can anyone help me:

I get the latest zephyr code, but build fail:

deeve@debian:~/zephyrproject/zephyr$ git log
commit 9fac66ca540a7c1221d17e20ac903a647b1a0184
Author: Nicolas Pitre <npitre@...>
Date:   Tue Jul 9 17:19:12 2019 -0400
 
    tests: usb: make 64-bit compatible
 
    Let's use the PTR_DIFF() helper which performs pointer difference in a
    64-bit compatible way, and use %zu for printing sizeof() results.
 
    Signed-off-by: Nicolas Pitre <npitre@...>

---------------------------------------------------------------------------------------------

build command and error message:

deeve@debian:~/zephyrproject/zephyr$ west build -b nrf52_pca10040 samples/bluetooth/hci_uart
-- west build: build configuration:
       source directory: /home/deeve/zephyrproject/zephyr/samples/bluetooth/hci_uart
       build directory: /home/deeve/zephyrproject/zephyr/build
       BOARD: nrf52_pca10040 (origin: command line)
-- west build: generating a build system
CMake Error: The source "/home/deeve/zephyrproject/zephyr/samples/bluetooth/hci_uart/CMakeLists.txt" does not match the source "/home/deeve/zephyrproject/zephyr/CMakeLists.txt" used to generate cache.  Re-run cmake with a different source directory.
ERROR: command exited with status 1: /usr/local/bin/cmake -B/home/deeve/zephyrproject/zephyr/build -S/home/deeve/zephyrproject/zephyr/samples/bluetooth/hci_uart -GNinja -DBOARD=nrf52_pca10040
run as "west -v build -b nrf52_pca10040 samples/bluetooth/hci_uart" for a stack trace
 






Chettimada, Vinayak Kariappa <vinayak.kariappa.chettimada@...>
 

Hi Deeve,

 

I use the following steps (when not using west):

 

$ cd ${ZEPHYR_BASE}

$ mkdir -p build/hci_uart

$ cd build/hci_uart

$ cmake -GNinja -DBOARD=nrf52_pca10040 ../../samples/bluetooth/hci_uart/

$ ninja

 

Hope this may help.

 

Regards,

Vinayak

 

From: <users@...> on behalf of "deeve ma via Lists.Zephyrproject.Org" <deeve.ma=gmail.com@...>
Reply-To: "deeve.ma@..." <deeve.ma@...>
Date: Saturday, 13 July 2019 at 4:34 PM
To: "users@..." <users@...>
Cc: "users@..." <users@...>
Subject: [Zephyr-users] #hci_uart with board nrf52_pca10040 build fail

 

can anyone help me:

I get the latest zephyr code, but build fail:

deeve@debian:~/zephyrproject/zephyr$ git log

commit 9fac66ca540a7c1221d17e20ac903a647b1a0184

Author: Nicolas Pitre <npitre@...>

Date:   Tue Jul 9 17:19:12 2019 -0400

 

    tests: usb: make 64-bit compatible

 

    Let's use the PTR_DIFF() helper which performs pointer difference in a

    64-bit compatible way, and use %zu for printing sizeof() results.

 

    Signed-off-by: Nicolas Pitre <npitre@...>

---------------------------------------------------------------------------------------------

build command and error message:

deeve@debian:~/zephyrproject/zephyr$ west build -b nrf52_pca10040 samples/bluetooth/hci_uart

-- west build: build configuration:

       source directory: /home/deeve/zephyrproject/zephyr/samples/bluetooth/hci_uart

       build directory: /home/deeve/zephyrproject/zephyr/build

       BOARD: nrf52_pca10040 (origin: command line)

-- west build: generating a build system

CMake Error: The source "/home/deeve/zephyrproject/zephyr/samples/bluetooth/hci_uart/CMakeLists.txt" does not match the source "/home/deeve/zephyrproject/zephyr/CMakeLists.txt" used to generate cache.  Re-run cmake with a different source directory.

ERROR: command exited with status 1: /usr/local/bin/cmake -B/home/deeve/zephyrproject/zephyr/build -S/home/deeve/zephyrproject/zephyr/samples/bluetooth/hci_uart -GNinja -DBOARD=nrf52_pca10040

run as "west -v build -b nrf52_pca10040 samples/bluetooth/hci_uart" for a stack trace

 






Carles Cufi
 

Hi there,

 

You have several options:

 

  1. Pass “-p auto” to west so that it cleans the build folder for you
  2. Add “pristine = auto” to your ~/.westconfig
  3. Delete the build/ folder manually

 

More information here:

https://docs.zephyrproject.org/latest/guides/west/build-flash-debug.html#building-west-build

 

Carles

 

From: users@... <users@...> On Behalf Of deeve ma via Lists.Zephyrproject.Org
Sent: 13 July 2019 16:27
To: users@...
Cc: users@...
Subject: [Zephyr-users] #hci_uart with board nrf52_pca10040 build fail

 

can anyone help me:

I get the latest zephyr code, but build fail:

deeve@debian:~/zephyrproject/zephyr$ git log

commit 9fac66ca540a7c1221d17e20ac903a647b1a0184

Author: Nicolas Pitre <npitre@...>

Date:   Tue Jul 9 17:19:12 2019 -0400

 

    tests: usb: make 64-bit compatible

 

    Let's use the PTR_DIFF() helper which performs pointer difference in a

    64-bit compatible way, and use %zu for printing sizeof() results.

 

    Signed-off-by: Nicolas Pitre <npitre@...>

---------------------------------------------------------------------------------------------

build command and error message:

deeve@debian:~/zephyrproject/zephyr$ west build -b nrf52_pca10040 samples/bluetooth/hci_uart

-- west build: build configuration:

       source directory: /home/deeve/zephyrproject/zephyr/samples/bluetooth/hci_uart

       build directory: /home/deeve/zephyrproject/zephyr/build

       BOARD: nrf52_pca10040 (origin: command line)

-- west build: generating a build system

CMake Error: The source "/home/deeve/zephyrproject/zephyr/samples/bluetooth/hci_uart/CMakeLists.txt" does not match the source "/home/deeve/zephyrproject/zephyr/CMakeLists.txt" used to generate cache.  Re-run cmake with a different source directory.

ERROR: command exited with status 1: /usr/local/bin/cmake -B/home/deeve/zephyrproject/zephyr/build -S/home/deeve/zephyrproject/zephyr/samples/bluetooth/hci_uart -GNinja -DBOARD=nrf52_pca10040

run as "west -v build -b nrf52_pca10040 samples/bluetooth/hci_uart" for a stack trace