Date
1 - 3 of 3
Compiling sample program on MAC 10.14 gets a compilation error
Sowmya Krishnaswamy <sokrishn@...>
Hi, I am following the steps outlined in On MAC-OS (10.14). brew install gcc-arm-embedded --cask which arm-none-eabi-gdb export ZEPHYR_TOOLCHAIN_VARIANT= export GNUARMEMB_TOOLCHAIN_PATH=/usr/ echo $ZEPHYR_TOOLCHAIN_VARIANT west build -p auto -b nucleo_wb55rg samples/basic/blinky -- west build: making build dir /Users/user/zephyrproject/ -- west build: generating a build system Loading Zephyr default modules (Zephyr base). -- Application: /Users/user/zephyrproject/ -- Found Python3: /usr/local/opt/python@3.9/bin/ -- Cache files will be written to: /Users/user/Library/Caches/ -- Zephyr version: 3.0.99 (/Users/user/zephyrproject/ -- Found west (found suitable version "0.12.0", minimum required is "0.7.1") -- Board: nucleo_wb55rg -- Found dtc: /usr/local/bin/dtc (found suitable version "1.6.1", minimum required is "1.4.6") -- Found toolchain: gnuarmemb (/usr/local) -- Found BOARD.dts: /Users/user/zephyrproject/ -- Generated zephyr.dts: /Users/user/zephyrproject/ -- Generated devicetree_unfixed.h: /Users/user/zephyrproject/ -- Generated device_extern.h: /Users/user/zephyrproject/ -- Including generated dts.cmake file: /Users/user/zephyrproject/ /Users/user/zephyrproject/ Parsing /Users/user/zephyrproject/ Loaded configuration '/Users/user/zephyrproject/ Merged configuration '/Users/user/zephyrproject/ Configuration saved to '/Users/user/zephyrproject/ Kconfig header saved to '/Users/user/zephyrproject/ -- The C compiler identification is GNU 11.2.1 -- The CXX compiler identification is GNU 11.2.1 -- The ASM compiler identification is GNU -- Found assembler: /usr/local/bin/arm-none-eabi- -- Configuring done -- Generating done -- Build files have been written to: /Users/user/zephyrproject/ -- west build: building application [1/156] Preparing syscall dependency handling [2/156] Generating include/generated/version.h -- Zephyr version: 3.0.99 (/Users/user/zephyrproject/ [19/156] Building C object zephyr/CMakeFiles/zephyr.dir/ FAILED: zephyr/CMakeFiles/zephyr.dir/ ccache /usr/local/bin/arm-none-eabi- /Users/user/zephyrproject/ /Users/user/zephyrproject/ 185 | int64_t ppb64 = (int64_t)((1.0 - (double)skew) * 1E9); | ^~~~~~~ Please submit a full bug report, with preprocessed source if appropriate. See <https://bugs.linaro.org/> for instructions. [28/156] Building C object zephyr/CMakeFiles/zephyr.dir/ ninja: build stopped: subcommand failed. FATAL ERROR: command exited with status 1: /usr/local/bin/cmake --build /Users/user/zephyrproject/ users-MacBook-Pro:zephyr user$ Would anyone know what might be the issue and how to resolve this? Best Regards Sowmya |
|
Bolivar, Marti
On April 4, 2022 11:19 pm, Sowmya Krishnaswamy via lists.zephyrproject.org wrote:
Hi, |
|
Bolivar, Marti
Hi,
Looks like my previous mail got mangled. Let me retry.
Since you are using a toolchain from homebrew following unofficial instructions from Adafruit, and you are getting an internal error message from the toolchain itself, I would encourage you to try again using the official getting started guide:
From: users@... <users@...> on behalf of Sowmya Krishnaswamy via lists.zephyrproject.org <sokrishn=yahoo.com@...>
Sent: Monday, April 4, 2022 11:19 PM To: users@... <users@...> Cc: Sowmya Krishnaswamy <krishnaswamy.sowmya@...> Subject: [Zephyr-users] Compiling sample program on MAC 10.14 gets a compilation error
Hi,
I am following the steps outlined in
On MAC-OS (10.14).
brew install gcc-arm-embedded --cask
which arm-none-eabi-gdb
export ZEPHYR_TOOLCHAIN_VARIANT=
export GNUARMEMB_TOOLCHAIN_PATH=/usr/
echo $ZEPHYR_TOOLCHAIN_VARIANT
west build -p auto -b nucleo_wb55rg samples/basic/blinky
-- west build: making build dir /Users/user/zephyrproject/
-- west build: generating a build system
Loading Zephyr default modules (Zephyr base).
-- Application: /Users/user/zephyrproject/
-- Found Python3: /usr/local/opt/python@3.9/bin/
-- Cache files will be written to: /Users/user/Library/Caches/
-- Zephyr version: 3.0.99 (/Users/user/zephyrproject/
-- Found west (found suitable version "0.12.0", minimum required is "0.7.1")
-- Board: nucleo_wb55rg
-- Found dtc: /usr/local/bin/dtc (found suitable version "1.6.1", minimum required is "1.4.6")
-- Found toolchain: gnuarmemb (/usr/local)
-- Found BOARD.dts: /Users/user/zephyrproject/
-- Generated zephyr.dts: /Users/user/zephyrproject/
-- Generated devicetree_unfixed.h: /Users/user/zephyrproject/
-- Generated device_extern.h: /Users/user/zephyrproject/
-- Including generated dts.cmake file: /Users/user/zephyrproject/
/Users/user/zephyrproject/
Parsing /Users/user/zephyrproject/
Loaded configuration '/Users/user/zephyrproject/
Merged configuration '/Users/user/zephyrproject/
Configuration saved to '/Users/user/zephyrproject/
Kconfig header saved to '/Users/user/zephyrproject/
-- The C compiler identification is GNU 11.2.1
-- The CXX compiler identification is GNU 11.2.1
-- The ASM compiler identification is GNU
-- Found assembler: /usr/local/bin/arm-none-eabi-
-- Configuring done
-- Generating done
-- Build files have been written to: /Users/user/zephyrproject/
-- west build: building application
[1/156] Preparing syscall dependency handling
[2/156] Generating include/generated/version.h
-- Zephyr version: 3.0.99 (/Users/user/zephyrproject/
[19/156] Building C object zephyr/CMakeFiles/zephyr.dir/
FAILED: zephyr/CMakeFiles/zephyr.dir/
ccache /usr/local/bin/arm-none-eabi-
/Users/user/zephyrproject/
/Users/user/zephyrproject/
185 | int64_t ppb64
= (int64_t)((1.0 - (double)skew) * 1E9);
| ^~~~~~~
Please submit a full bug report,
with preprocessed source if appropriate.
See <https://bugs.linaro.org/>
for instructions.
[28/156] Building C object zephyr/CMakeFiles/zephyr.dir/
ninja: build stopped: subcommand failed.
FATAL ERROR: command exited with status 1: /usr/local/bin/cmake --build /Users/user/zephyrproject/
users-MacBook-Pro:zephyr user$
Would anyone know what might be the issue and how to resolve this?
Best Regards
Sowmya
|
|