Untitled

 avatar
unknown
plain_text
2 years ago
9.5 kB
9
Indexable
(.venv) alaa@alaa-emad:~/zephyrproject/zephyr$ west build -p always -b qemu_kvm_arm64 samples/basic/blinky
-- west build: making build dir /home/alaa/zephyrproject/zephyr/build pristine
-- west build: generating a build system
Loading Zephyr default modules (Zephyr base).
-- Application: /home/alaa/zephyrproject/zephyr/samples/basic/blinky
-- CMake version: 3.26.1
-- Found Python3: /home/alaa/zephyrproject/.venv/bin/python3.10 (found suitable exact version "3.10.6") found components: Interpreter 
-- Cache files will be written to: /home/alaa/.cache/zephyr
-- Zephyr version: 3.3.99 (/home/alaa/zephyrproject/zephyr)
-- Found west (found suitable version "1.0.0", minimum required is "0.7.1")
-- Board: qemu_kvm_arm64
-- ZEPHYR_TOOLCHAIN_VARIANT not set, trying to locate Zephyr SDK
-- Found host-tools: zephyr 0.16.0 (/home/alaa/zephyr-sdk-0.16.0)
-- Found toolchain: zephyr 0.16.0 (/home/alaa/zephyr-sdk-0.16.0)
-- Found Dtc: /home/alaa/zephyr-sdk-0.16.0/sysroots/x86_64-pokysdk-linux/usr/bin/dtc (found suitable version "1.6.0", minimum required is "1.4.6") 
-- Found BOARD.dts: /home/alaa/zephyrproject/zephyr/boards/arm64/qemu_kvm_arm64/qemu_kvm_arm64.dts
-- Generated zephyr.dts: /home/alaa/zephyrproject/zephyr/build/zephyr/zephyr.dts
-- Generated devicetree_generated.h: /home/alaa/zephyrproject/zephyr/build/zephyr/include/generated/devicetree_generated.h
-- Including generated dts.cmake file: /home/alaa/zephyrproject/zephyr/build/zephyr/dts.cmake
Parsing /home/alaa/zephyrproject/zephyr/Kconfig
Loaded configuration '/home/alaa/zephyrproject/zephyr/boards/arm64/qemu_kvm_arm64/qemu_kvm_arm64_defconfig'
Merged configuration '/home/alaa/zephyrproject/zephyr/samples/basic/blinky/prj.conf'
Configuration saved to '/home/alaa/zephyrproject/zephyr/build/zephyr/.config'
Kconfig header saved to '/home/alaa/zephyrproject/zephyr/build/zephyr/include/generated/autoconf.h'
-- The C compiler identification is GNU 12.2.0
-- The CXX compiler identification is GNU 12.2.0
-- The ASM compiler identification is GNU
-- Found assembler: /home/alaa/zephyr-sdk-0.16.0/aarch64-zephyr-elf/bin/aarch64-zephyr-elf-gcc
CMake Warning at /home/alaa/zephyrproject/zephyr/CMakeLists.txt:828 (message):
  No SOURCES given to Zephyr library: lib__libc__common

  Excluding target from build.


CMake Warning at /home/alaa/zephyrproject/zephyr/CMakeLists.txt:828 (message):
  No SOURCES given to Zephyr library: drivers__gpio

  Excluding target from build.


-- Configuring done (7.3s)
-- Generating done (0.0s)
-- Build files have been written to: /home/alaa/zephyrproject/zephyr/build
-- west build: building application
[1/131] Preparing syscall dependency handling

[2/131] Generating include/generated/version.h
-- Zephyr version: 3.3.99 (/home/alaa/zephyrproject/zephyr), build: zephyr-v3.3.0-1702-gde81c48a2441
[14/131] Building C object CMakeFiles/app.dir/src/main.c.obj
FAILED: CMakeFiles/app.dir/src/main.c.obj 
ccache /home/alaa/zephyr-sdk-0.16.0/aarch64-zephyr-elf/bin/aarch64-zephyr-elf-gcc -DKERNEL -D__ZEPHYR__=1 -I/home/alaa/zephyrproject/zephyr/include -I/home/alaa/zephyrproject/zephyr/build/zephyr/include/generated -I/home/alaa/zephyrproject/zephyr/soc/arm64/qemu_virt_arm64 -isystem /home/alaa/zephyrproject/zephyr/lib/libc/minimal/include -isystem /home/alaa/zephyr-sdk-0.16.0/aarch64-zephyr-elf/bin/../lib/gcc/aarch64-zephyr-elf/12.2.0/include -isystem /home/alaa/zephyr-sdk-0.16.0/aarch64-zephyr-elf/bin/../lib/gcc/aarch64-zephyr-elf/12.2.0/include-fixed -fno-strict-aliasing -Os -imacros /home/alaa/zephyrproject/zephyr/build/zephyr/include/generated/autoconf.h -ffreestanding -fno-common -g -gdwarf-4 -fdiagnostics-color=always -mabi=lp64 --sysroot=/home/alaa/zephyr-sdk-0.16.0/aarch64-zephyr-elf/aarch64-zephyr-elf -imacros /home/alaa/zephyrproject/zephyr/include/zephyr/toolchain/zephyr_stdint.h -Wall -Wformat -Wformat-security -Wno-format-zero-length -Wno-main -Wno-pointer-sign -Wpointer-arith -Wexpansion-to-defined -Wno-unused-but-set-variable -Werror=implicit-int -fno-pic -fno-pie -fno-asynchronous-unwind-tables -fno-reorder-functions --param=min-pagesize=0 -fno-defer-pop -fmacro-prefix-map=/home/alaa/zephyrproject/zephyr/samples/basic/blinky=CMAKE_SOURCE_DIR -fmacro-prefix-map=/home/alaa/zephyrproject/zephyr=ZEPHYR_BASE -fmacro-prefix-map=/home/alaa/zephyrproject=WEST_TOPDIR -ffunction-sections -fdata-sections -moverride=tune=no_ldp_stp_qregs -std=c99 -nostdinc -MD -MT CMakeFiles/app.dir/src/main.c.obj -MF CMakeFiles/app.dir/src/main.c.obj.d -o CMakeFiles/app.dir/src/main.c.obj -c /home/alaa/zephyrproject/zephyr/samples/basic/blinky/src/main.c
In file included from /home/alaa/zephyrproject/zephyr/include/zephyr/toolchain/gcc.h:92,
                 from /home/alaa/zephyrproject/zephyr/include/zephyr/toolchain.h:50,
                 from /home/alaa/zephyrproject/zephyr/include/zephyr/kernel_includes.h:19,
                 from /home/alaa/zephyrproject/zephyr/include/zephyr/kernel.h:17,
                 from /home/alaa/zephyrproject/zephyr/samples/basic/blinky/src/main.c:7:
/home/alaa/zephyrproject/zephyr/include/zephyr/device.h:83:41: error: '__device_dts_ord_DT_N_ALIAS_led0_P_gpios_IDX_0_PH_ORD' undeclared here (not in a function)
   83 | #define DEVICE_NAME_GET(dev_id) _CONCAT(__device_, dev_id)
      |                                         ^~~~~~~~~
/home/alaa/zephyrproject/zephyr/include/zephyr/toolchain/common.h:132:26: note: in definition of macro '_DO_CONCAT'
  132 | #define _DO_CONCAT(x, y) x ## y
      |                          ^
/home/alaa/zephyrproject/zephyr/include/zephyr/device.h:83:33: note: in expansion of macro '_CONCAT'
   83 | #define DEVICE_NAME_GET(dev_id) _CONCAT(__device_, dev_id)
      |                                 ^~~~~~~
/home/alaa/zephyrproject/zephyr/include/zephyr/device.h:209:37: note: in expansion of macro 'DEVICE_NAME_GET'
  209 | #define DEVICE_DT_NAME_GET(node_id) DEVICE_NAME_GET(Z_DEVICE_DT_DEV_ID(node_id))
      |                                     ^~~~~~~~~~~~~~~
/home/alaa/zephyrproject/zephyr/include/zephyr/device.h:226:34: note: in expansion of macro 'DEVICE_DT_NAME_GET'
  226 | #define DEVICE_DT_GET(node_id) (&DEVICE_DT_NAME_GET(node_id))
      |                                  ^~~~~~~~~~~~~~~~~~
/home/alaa/zephyrproject/zephyr/include/zephyr/drivers/gpio.h:316:25: note: in expansion of macro 'DEVICE_DT_GET'
  316 |                 .port = DEVICE_DT_GET(DT_GPIO_CTLR_BY_IDX(node_id, prop, idx)),\
      |                         ^~~~~~~~~~~~~
/home/alaa/zephyrproject/zephyr/include/zephyr/drivers/gpio.h:352:9: note: in expansion of macro 'GPIO_DT_SPEC_GET_BY_IDX'
  352 |         GPIO_DT_SPEC_GET_BY_IDX(node_id, prop, 0)
      |         ^~~~~~~~~~~~~~~~~~~~~~~
/home/alaa/zephyrproject/zephyr/samples/basic/blinky/src/main.c:20:40: note: in expansion of macro 'GPIO_DT_SPEC_GET'
   20 | static const struct gpio_dt_spec led = GPIO_DT_SPEC_GET(LED0_NODE, gpios);
      |                                        ^~~~~~~~~~~~~~~~
In file included from /home/alaa/zephyrproject/zephyr/include/zephyr/arch/arm64/arch.h:20,
                 from /home/alaa/zephyrproject/zephyr/include/zephyr/arch/cpu.h:17,
                 from /home/alaa/zephyrproject/zephyr/include/zephyr/kernel_includes.h:33:
/home/alaa/zephyrproject/zephyr/include/zephyr/devicetree.h:232:32: error: 'DT_N_ALIAS_led0_P_gpios_IDX_0_VAL_pin' undeclared here (not in a function)
  232 | #define DT_ALIAS(alias) DT_CAT(DT_N_ALIAS_, alias)
      |                                ^~~~~~~~~~~
/home/alaa/zephyrproject/zephyr/include/zephyr/devicetree.h:4060:9: note: in definition of macro 'DT_CAT7'
 4060 |         a1 ## a2 ## a3 ## a4 ## a5 ## a6 ## a7
      |         ^~
/home/alaa/zephyrproject/zephyr/include/zephyr/devicetree/gpio.h:164:9: note: in expansion of macro 'DT_PHA_BY_IDX'
  164 |         DT_PHA_BY_IDX(node_id, gpio_pha, idx, pin)
      |         ^~~~~~~~~~~~~
/home/alaa/zephyrproject/zephyr/include/zephyr/drivers/gpio.h:317:24: note: in expansion of macro 'DT_GPIO_PIN_BY_IDX'
  317 |                 .pin = DT_GPIO_PIN_BY_IDX(node_id, prop, idx),                 \
      |                        ^~~~~~~~~~~~~~~~~~
/home/alaa/zephyrproject/zephyr/include/zephyr/drivers/gpio.h:352:9: note: in expansion of macro 'GPIO_DT_SPEC_GET_BY_IDX'
  352 |         GPIO_DT_SPEC_GET_BY_IDX(node_id, prop, 0)
      |         ^~~~~~~~~~~~~~~~~~~~~~~
/home/alaa/zephyrproject/zephyr/samples/basic/blinky/src/main.c:20:40: note: in expansion of macro 'GPIO_DT_SPEC_GET'
   20 | static const struct gpio_dt_spec led = GPIO_DT_SPEC_GET(LED0_NODE, gpios);
      |                                        ^~~~~~~~~~~~~~~~
/home/alaa/zephyrproject/zephyr/include/zephyr/devicetree.h:232:25: note: in expansion of macro 'DT_CAT'
  232 | #define DT_ALIAS(alias) DT_CAT(DT_N_ALIAS_, alias)
      |                         ^~~~~~
/home/alaa/zephyrproject/zephyr/samples/basic/blinky/src/main.c:14:19: note: in expansion of macro 'DT_ALIAS'
   14 | #define LED0_NODE DT_ALIAS(led0)
      |                   ^~~~~~~~
/home/alaa/zephyrproject/zephyr/samples/basic/blinky/src/main.c:20:57: note: in expansion of macro 'LED0_NODE'
   20 | static const struct gpio_dt_spec led = GPIO_DT_SPEC_GET(LED0_NODE, gpios);
      |                                                         ^~~~~~~~~
[19/131] Building C object zephyr/CMakeFiles/zephyr.dir/lib/os/rb.c.obj
ninja: build stopped: subcommand failed.
FATAL ERROR: command exited with status 1: /usr/bin/cmake --build /home/alaa/zephyrproject/zephyr/build