Date
1 - 4 of 4
Build posix sample problem (cmake error) #adc #samples
Andrew Holt
Hi,
On running: west build -b native_posix samples/hello_world I get the following error, any advice or suggestions ? -- west build: build configuration: source directory: /media/andrewh/SOURCE/Source/zephyrproject/zephyr/samples/hello_world
build directory: /media/andrewh/SOURCE/Source/zephyrproject/zephyr/build
BOARD: native_posix (origin: command line)
-- west build: generating a build system
CMake Error: The source directory "" does not exist.
Specify --help for usage, or press the help button on the CMake GUI.
ERROR: command exited with status 1: /usr/bin/cmake -B/media/andrewh/SOURCE/Source/zephyrproject/zephyr/build -S/media/andrewh/SOURCE/Source/zephyrproject/zephyr/samples/hello_world -GNinja -DBOARD=native_posix
|
|
Bolivar, Marti
I can't reproduce this exact issue, but I can confirm that with
toggle quoted messageShow quoted text
ZEPHYR_TOOLCHAIN_VARIANT=zephyr and ZEPHYR_TOOLCHAIN_VARIANT=host, I get a build error following along with the getting started guide: [74/74] Linking C executable zephyr/zephyr.elf /usr/bin/objdump: warning: zephyr.elf: corrupt GNU_PROPERTY_TYPE (5) size: 0 /usr/bin/objdump: warning: zephyr.elf: corrupt GNU_PROPERTY_TYPE (5) size: 0 /usr/bin/objdump: warning: zephyr.elf: corrupt GNU_PROPERTY_TYPE (5) size: 0 My host objdump is v2.32 on Arch; my zephyr SDK version is 0.10.3. Marti "Andrew Holt via Lists.Zephyrproject.Org" <andrewtholt60=gmail.com@lists.zephyrproject.org> writes:
Hi,
|
|
alpi@...
Hi Marti,
I get a build error following along with the getting started guide:That would seem to be just a warning. (At least another developer has also reported it, and I think he was also using Arch Linux) As far as a I understand it is harmless. The binary (build/zephyr/zephyr.exe) should have been produced without issues. BR Alberto -----Original Message----- From: devel@lists.zephyrproject.org <devel@lists.zephyrproject.org> On Behalf Of Bolivar, Marti via Lists.Zephyrproject.Org Sent: Saturday 31 August 2019 06:48 To: andrewtholt60@gmail.com; devel@lists.zephyrproject.org Cc: devel@lists.zephyrproject.org Subject: Re: [Zephyr-devel] Build posix sample problem (cmake error) #samples #samples #adc #samples I can't reproduce this exact issue, but I can confirm that with ZEPHYR_TOOLCHAIN_VARIANT=zephyr and ZEPHYR_TOOLCHAIN_VARIANT=host, I get a build error following along with the getting started guide: [74/74] Linking C executable zephyr/zephyr.elf /usr/bin/objdump: warning: zephyr.elf: corrupt GNU_PROPERTY_TYPE (5) size: 0 /usr/bin/objdump: warning: zephyr.elf: corrupt GNU_PROPERTY_TYPE (5) size: 0 /usr/bin/objdump: warning: zephyr.elf: corrupt GNU_PROPERTY_TYPE (5) size: 0 My host objdump is v2.32 on Arch; my zephyr SDK version is 0.10.3. Marti "Andrew Holt via Lists.Zephyrproject.Org" <andrewtholt60=gmail.com@lists.zephyrproject.org> writes: Hi,
|
|
Bolivar, Marti
"Alberto Escolar Piedras (ALPI)" <ALPI@demant.com> writes:
Hi Marti,You're right, of course.I get a build error following along with the getting started guide:That would seem to be just a warning. I looked at the output itself without seeing the "warning" prefix. This is building and running fine (apart from the warning) using ZEPHYR_TOOLCHAIN_VARIANT=zephyr for me on my arch system. Thanks for your fast response! Andrew, can you please try again with the same toolchain configuration and let us know if you're still having problems? Thanks Marti
|
|