-
Notifications
You must be signed in to change notification settings - Fork 915
Description
Version
5.6.6
Description
Following are metioned steps for compiling Zephyr application using wolfssl :
https://github.com/wolfSSL/wolfssl/tree/master/zephyr
Build command : west build -b qemu_kvm_arm64 modules/crypto/wolfssl/zephyr/samples/wolfssl_benchmark -d build -p
Error Logs :
[3/247] Generating include/generated/version.h
-- Zephyr version: 3.4.0 (/p/psg/swip/w/ckochar/zephyrproject_3_3/zephyr), build: zephyr-v3.4.0-419-g564e20b0ae03
[237/247] Linking C executable zephyr/zephyr_pre0.elf
FAILED: zephyr/zephyr_pre0.elf zephyr/zephyr_pre0.map
: && ccache /build/zephyr-sdk-0.15.1/aarch64-zephyr-elf/bin/aarch64-zephyr-elf-gcc -gdwarf-4 zephyr/CMakeFiles/zephyr_pre0.dir/misc/empty_file.c.obj -o zephyr/zephyr_pre0.elf -fuse-ld=bfd -Wl,-T zephyr/linker_zephyr_pre0.cmd -Wl,-Map=/p/psg/swip/w/ckochar/zephyrproject_3_3/build/zephyr/zephyr_pre0.map -Wl,--whole-archive app/libapp.a zephyr/libzephyr.a zephyr/arch/common/libarch__common.a zephyr/arch/arch/arm64/core/libarch__arm64__core.a zephyr/lib/libc/minimal/liblib__libc__minimal.a zephyr/lib/libc/common/liblib__libc__common.a zephyr/lib/posix/liblib__posix.a zephyr/drivers/interrupt_controller/libdrivers__interrupt_controller.a zephyr/drivers/console/libdrivers__console.a zephyr/drivers/serial/libdrivers__serial.a zephyr/drivers/timer/libdrivers__timer.a modules/wolfssl/lib..__modules__crypto__wolfssl__zephyr.a -Wl,--no-whole-archive zephyr/kernel/libkernel.a zephyr/CMakeFiles/offsets.dir/./arch/arm64/core/offsets/offsets.c.obj -L"/build/zephyr-sdk-0.15.1/aarch64-zephyr-elf/bin/../lib/gcc/aarch64-zephyr-elf/12.1.0" -L/p/psg/swip/w/ckochar/zephyrproject_3_3/build/zephyr -lgcc zephyr/arch/common/libisr_tables.a -mabi=lp64 -Wl,--gc-sections -Wl,--build-id=none -Wl,--sort-common=descending -Wl,--sort-section=alignment -Wl,-u,_OffsetAbsSyms -Wl,-u,_ConfigAbsSyms -nostdlib -static -Wl,-X -Wl,-N -Wl,--orphan-handling=warn -Wl,-no-pie && cd /p/psg/swip/w/ckochar/zephyrproject_3_3/build/zephyr && /usr/local/bin/cmake -E echo
/build/zephyr-sdk-0.15.1/aarch64-zephyr-elf/bin/../lib/gcc/aarch64-zephyr-elf/12.1.0/../../../../aarch64-zephyr-elf/bin/ld.bfd: modules/wolfssl/lib..__modules__crypto__wolfssl__zephyr.a(random.c.obj): in function sys_rand_get': /nfs/png/disks/swuser_work_ckochar/zephyrproject_3_3/build/zephyr/include/generated/syscalls/rand32.h:57: undefined reference to z_impl_sys_rand_get'
/nfs/png/disks/swuser_work_ckochar/zephyrproject_3_3/build/zephyr/include/generated/syscalls/rand32.h:57:(.text.wc_RNG_GenerateBlock+0xe8): relocation truncated to fit: R_AARCH64_CALL26 against undefined symbol z_impl_sys_rand_get' /build/zephyr-sdk-0.15.1/aarch64-zephyr-elf/bin/../lib/gcc/aarch64-zephyr-elf/12.1.0/../../../../aarch64-zephyr-elf/bin/ld.bfd: /nfs/png/disks/swuser_work_ckochar/zephyrproject_3_3/build/zephyr/include/generated/syscalls/rand32.h:57: undefined reference to z_impl_sys_rand_get'
/nfs/png/disks/swuser_work_ckochar/zephyrproject_3_3/build/zephyr/include/generated/syscalls/rand32.h:57:(.text._InitRng+0x138): relocation truncated to fit: R_AARCH64_CALL26 against undefined symbol `z_impl_sys_rand_get'
collect2: error: ld returned 1 exit status
ninja: build stopped: subcommand failed.
FATAL ERROR: command exited with status 1: /usr/local/bin/cmake --build /nfs/png/disks/swuser_work_ckochar/zephyrproject_3_3/build