I followed an instructions developer.nordicsemi.com/.../gs_assistant.html in the case of Kubuntu 20.04 and developer.nordicsemi.com/.../gs_assistant.html in the case of Windows 10 to install Segger Embedded Studio and start developing with nRF5340 PDF, but all the time I faced troubles on the last stage "Set up a project in SEGGER Embedded Studio" when I imported a project into SES (see a screenshot). Also, I attached logs for Kubuntu 20.04 and Windows 10. The errors in both cases were the same, although I tried two different OS and ways.
Compiling the C compiler identification source file "CMakeCCompilerId.c" failed.
Compiler: /opt/gnuarmemb/bin/arm-none-eabi-gcc
Build flags:
Id flags:
The output was:
1
/opt/gnuarmemb/bin/../lib/gcc/arm-none-eabi/8.3.1/../../../../arm-none-eabi/bin/ld: /opt/gnuarmemb/bin/../lib/gcc/arm-none-eabi/8.3.1/../../../../arm-none-eabi/lib/libc.a(lib_a-exit.o): in function `exit':
exit.c:(.text.exit+0x2c): undefined reference to `_exit'
collect2: error: ld returned 1 exit status
Compiling the CXX compiler identification source file "CMakeCXXCompilerId.cpp" failed.
Compiler: /opt/gnuarmemb/bin/arm-none-eabi-g++
Build flags:
Id flags:
The output was:
1
/opt/gnuarmemb/bin/../lib/gcc/arm-none-eabi/8.3.1/../../../../arm-none-eabi/bin/ld: /opt/gnuarmemb/bin/../lib/gcc/arm-none-eabi/8.3.1/../../../../arm-none-eabi/lib/libc.a(lib_a-exit.o): in function `exit':
exit.c:(.text.exit+0x2c): undefined reference to `_exit'
collect2: error: ld returned 1 exit status
Performing C SOURCE FILE Test check_C__nostartfiles__nostdlib__isystem___opt_gnuarmemb_bin____lib_gcc_arm_none_eabi_8_3_1_include___isystem___opt_gnuarmemb_bin____lib_gcc_arm_none_eabi_8_3_1_include_fixed___Wl___unresolved_symbols_ignore_in_object_files__Wl___entry_0__mfloat_abi_hard failed with the following output:
Change Dir: /home/roman/nordic/ncs/nrf/applications/asset_tracker/build_nrf5340pdk_nrf5340_cpuappns/CMakeFiles/CMakeTmp
Run Build Command(s):/usr/bin/ninja cmTC_611d3 && [1/2] Building C object CMakeFiles/cmTC_611d3.dir/src.c.obj
FAILED: CMakeFiles/cmTC_611d3.dir/src.c.obj
/opt/gnuarmemb/bin/arm-none-eabi-gcc -Dcheck_C__nostartfiles__nostdlib__isystem___opt_gnuarmemb_bin____lib_gcc_arm_none_eabi_8_3_1_include___isystem___opt_gnuarmemb_bin____lib_gcc_arm_none_eabi_8_3_1_include_fixed___Wl___unresolved_symbols_ignore_in_object_files__Wl___entry_0__mfloat_abi_hard -nostartfiles -nostdlib -isystem "/opt/gnuarmemb/bin/../lib/gcc/arm-none-eabi/8.3.1/include" -isystem "/opt/gnuarmemb/bin/../lib/gcc/arm-none-eabi/8.3.1/include-fixed" -Wl,--unresolved-symbols=ignore-in-object-files -Wl,--entry=0 -mfloat-abi=hard -o CMakeFiles/cmTC_611d3.dir/src.c.obj -c src.c
cc1: error: -mfloat-abi=hard: selected processor lacks an FPU
ninja: build stopped: subcommand failed.
Source file was:
int main(void) { return 0; }
The target system is: Generic - 2.3.0 - arm
The host system is: Linux - 5.4.0-40-generic - x86_64
Compiling the C compiler identification source file "CMakeCCompilerId.c" succeeded.
Compiler: /opt/gnuarmemb/bin/arm-none-eabi-gcc
Build flags:
Id flags: -c
The output was:
0
Compilation of the C compiler identification source "CMakeCCompilerId.c" produced "CMakeCCompilerId.o"
The C compiler identification is GNU, found in "/home/roman/nordic/ncs/nrf/applications/asset_tracker/build_nrf5340pdk_nrf5340_cpuappns/CMakeFiles/3.16.3/CompilerIdC/CMakeCCompilerId.o"
Compiling the CXX compiler identification source file "CMakeCXXCompilerId.cpp" succeeded.
Compiler: /opt/gnuarmemb/bin/arm-none-eabi-g++
Build flags:
Id flags: -c
The output was:
0
Compilation of the CXX compiler identification source "CMakeCXXCompilerId.cpp" produced "CMakeCXXCompilerId.o"
The CXX compiler identification is GNU, found in "/home/roman/nordic/ncs/nrf/applications/asset_tracker/build_nrf5340pdk_nrf5340_cpuappns/CMakeFiles/3.16.3/CompilerIdCXX/CMakeCXXCompilerId.o"
Checking whether the ASM compiler is GNU using "--version" matched "(GNU assembler)|(GCC)|(Free Software Foundation)":
arm-none-eabi-gcc (GNU Tools for Arm Embedded Processors 8-2019-q3-update) 8.3.1 20190703 (release) [gcc-8-branch revision 273027]
Copyright (C) 2018 Free Software Foundation, Inc.
This is free software; see the source for copying conditions. There is NO
warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
Performing C SOURCE FILE Test check_C__nostartfiles__nostdlib__isystem___opt_gnuarmemb_bin____lib_gcc_arm_none_eabi_8_3_1_include___isystem___opt_gnuarmemb_bin____lib_gcc_arm_none_eabi_8_3_1_include_fixed___Wl___unresolved_symbols_ignore_in_object_files__Wl___entry_0 succeeded with the following output:
Change Dir: /home/roman/nordic/ncs/nrf/applications/asset_tracker/build_nrf5340pdk_nrf5340_cpuappns/CMakeFiles/CMakeTmp
Run Build Command(s):/usr/bin/ninja cmTC_9a173 && [1/2] Building C object CMakeFiles/cmTC_9a173.dir/src.c.obj
[2/2] Linking C executable cmTC_9a173
Source file was:
int main(void) { return 0; }
Performing C SOURCE FILE Test check_C__nostartfiles__nostdlib__isystem___opt_gnuarmemb_bin____lib_gcc_arm_none_eabi_8_3_1_include___isystem___opt_gnuarmemb_bin____lib_gcc_arm_none_eabi_8_3_1_include_fixed___Wl___unresolved_symbols_ignore_in_object_files__Wl___entry_0__mcpu_cortex_m33 succeeded with the following output:
Change Dir: /home/roman/nordic/ncs/nrf/applications/asset_tracker/build_nrf5340pdk_nrf5340_cpuappns/CMakeFiles/CMakeTmp
Run Build Command(s):/usr/bin/ninja cmTC_c4fcd && [1/2] Building C object CMakeFiles/cmTC_c4fcd.dir/src.c.obj
[2/2] Linking C executable cmTC_c4fcd
Source file was:
int main(void) { return 0; }
Performing C SOURCE FILE Test check_C__nostartfiles__nostdlib__isystem___opt_gnuarmemb_bin____lib_gcc_arm_none_eabi_8_3_1_include___isystem___opt_gnuarmemb_bin____lib_gcc_arm_none_eabi_8_3_1_include_fixed___Wl___unresolved_symbols_ignore_in_object_files__Wl___entry_0__mthumb succeeded with the following output:
Change Dir: /home/roman/nordic/ncs/nrf/applications/asset_tracker/build_nrf5340pdk_nrf5340_cpuappns/CMakeFiles/CMakeTmp
Run Build Command(s):/usr/bin/ninja cmTC_db427 && [1/2] Building C object CMakeFiles/cmTC_db427.dir/src.c.obj
[2/2] Linking C executable cmTC_db427
Source file was:
int main(void) { return 0; }
Performing C SOURCE FILE Test check_C__nostartfiles__nostdlib__isystem___opt_gnuarmemb_bin____lib_gcc_arm_none_eabi_8_3_1_include___isystem___opt_gnuarmemb_bin____lib_gcc_arm_none_eabi_8_3_1_include_fixed___Wl___unresolved_symbols_ignore_in_object_files__Wl___entry_0__mabi_aapcs succeeded with the following output:
Change Dir: /home/roman/nordic/ncs/nrf/applications/asset_tracker/build_nrf5340pdk_nrf5340_cpuappns/CMakeFiles/CMakeTmp
Run Build Command(s):/usr/bin/ninja cmTC_b76b6 && [1/2] Building C object CMakeFiles/cmTC_b76b6.dir/src.c.obj
[2/2] Linking C executable cmTC_b76b6
Source file was:
int main(void) { return 0; }
Performing C SOURCE FILE Test check_C__nostartfiles__nostdlib__isystem___opt_gnuarmemb_bin____lib_gcc_arm_none_eabi_8_3_1_include___isystem___opt_gnuarmemb_bin____lib_gcc_arm_none_eabi_8_3_1_include_fixed___Wl___unresolved_symbols_ignore_in_object_files__Wl___entry_0__mfpu_fpv5_sp_d16 succeeded with the following output:
Change Dir: /home/roman/nordic/ncs/nrf/applications/asset_tracker/build_nrf5340pdk_nrf5340_cpuappns/CMakeFiles/CMakeTmp
Run Build Command(s):/usr/bin/ninja cmTC_34ab3 && [1/2] Building C object CMakeFiles/cmTC_34ab3.dir/src.c.obj
[2/2] Linking C executable cmTC_34ab3
Source file was:
int main(void) { return 0; }
Performing C SOURCE FILE Test check_C__nostartfiles__nostdlib__isystem___opt_gnuarmemb_bin____lib_gcc_arm_none_eabi_8_3_1_include___isystem___opt_gnuarmemb_bin____lib_gcc_arm_none_eabi_8_3_1_include_fixed___Wl___unresolved_symbols_ignore_in_object_files__Wl___entry_0__Wl___gc_sections succeeded with the following output:
Change Dir: /home/roman/nordic/ncs/nrf/applications/asset_tracker/build_nrf5340pdk_nrf5340_cpuappns/CMakeFiles/CMakeTmp
Run Build Command(s):/usr/bin/ninja cmTC_b0ddb && [1/2] Building C object CMakeFiles/cmTC_b0ddb.dir/src.c.obj
[2/2] Linking C executable cmTC_b0ddb
Source file was:
int main(void) { return 0; }
Performing C SOURCE FILE Test check_C__nostartfiles__nostdlib__isystem___opt_gnuarmemb_bin____lib_gcc_arm_none_eabi_8_3_1_include___isystem___opt_gnuarmemb_bin____lib_gcc_arm_none_eabi_8_3_1_include_fixed___Wl___unresolved_symbols_ignore_in_object_files__Wl___entry_0__Wl___build_id_none succeeded with the following output:
Change Dir: /home/roman/nordic/ncs/nrf/applications/asset_tracker/build_nrf5340pdk_nrf5340_cpuappns/CMakeFiles/CMakeTmp
Run Build Command(s):/usr/bin/ninja cmTC_21c25 && [1/2] Building C object CMakeFiles/cmTC_21c25.dir/src.c.obj
[2/2] Linking C executable cmTC_21c25
Source file was:
int main(void) { return 0; }
Performing C SOURCE FILE Test check_C__nostartfiles__nostdlib__isystem___opt_gnuarmemb_bin____lib_gcc_arm_none_eabi_8_3_1_include___isystem___opt_gnuarmemb_bin____lib_gcc_arm_none_eabi_8_3_1_include_fixed___Wl___unresolved_symbols_ignore_in_object_files__Wl___entry_0__Wl___sort_common_descending succeeded with the following output:
Change Dir: /home/roman/nordic/ncs/nrf/applications/asset_tracker/build_nrf5340pdk_nrf5340_cpuappns/CMakeFiles/CMakeTmp
Run Build Command(s):/usr/bin/ninja cmTC_23d32 && [1/2] Building C object CMakeFiles/cmTC_23d32.dir/src.c.obj
[2/2] Linking C executable cmTC_23d32
Source file was:
int main(void) { return 0; }
Performing C SOURCE FILE Test check_C__nostartfiles__nostdlib__isystem___opt_gnuarmemb_bin____lib_gcc_arm_none_eabi_8_3_1_include___isystem___opt_gnuarmemb_bin____lib_gcc_arm_none_eabi_8_3_1_include_fixed___Wl___unresolved_symbols_ignore_in_object_files__Wl___entry_0__Wl___sort_section_alignment succeeded with the following output:
Change Dir: /home/roman/nordic/ncs/nrf/applications/asset_tracker/build_nrf5340pdk_nrf5340_cpuappns/CMakeFiles/CMakeTmp
Run Build Command(s):/usr/bin/ninja cmTC_622b0 && [1/2] Building C object CMakeFiles/cmTC_622b0.dir/src.c.obj
[2/2] Linking C executable cmTC_622b0
Source file was:
int main(void) { return 0; }
Performing C SOURCE FILE Test check_C__nostartfiles__nostdlib__isystem___opt_gnuarmemb_bin____lib_gcc_arm_none_eabi_8_3_1_include___isystem___opt_gnuarmemb_bin____lib_gcc_arm_none_eabi_8_3_1_include_fixed___Wl___unresolved_symbols_ignore_in_object_files__Wl___entry_0__nostdlib succeeded with the following output:
Change Dir: /home/roman/nordic/ncs/nrf/applications/asset_tracker/build_nrf5340pdk_nrf5340_cpuappns/CMakeFiles/CMakeTmp
Run Build Command(s):/usr/bin/ninja cmTC_f5069 && [1/2] Building C object CMakeFiles/cmTC_f5069.dir/src.c.obj
[2/2] Linking C executable cmTC_f5069
Source file was:
int main(void) { return 0; }
Performing C SOURCE FILE Test check_C__nostartfiles__nostdlib__isystem___opt_gnuarmemb_bin____lib_gcc_arm_none_eabi_8_3_1_include___isystem___opt_gnuarmemb_bin____lib_gcc_arm_none_eabi_8_3_1_include_fixed___Wl___unresolved_symbols_ignore_in_object_files__Wl___entry_0__static succeeded with the following output:
Change Dir: /home/roman/nordic/ncs/nrf/applications/asset_tracker/build_nrf5340pdk_nrf5340_cpuappns/CMakeFiles/CMakeTmp
Run Build Command(s):/usr/bin/ninja cmTC_631e9 && [1/2] Building C object CMakeFiles/cmTC_631e9.dir/src.c.obj
[2/2] Linking C executable cmTC_631e9
Source file was:
int main(void) { return 0; }
Performing C SOURCE FILE Test check_C__nostartfiles__nostdlib__isystem___opt_gnuarmemb_bin____lib_gcc_arm_none_eabi_8_3_1_include___isystem___opt_gnuarmemb_bin____lib_gcc_arm_none_eabi_8_3_1_include_fixed___Wl___unresolved_symbols_ignore_in_object_files__Wl___entry_0__no_pie succeeded with the following output:
Change Dir: /home/roman/nordic/ncs/nrf/applications/asset_tracker/build_nrf5340pdk_nrf5340_cpuappns/CMakeFiles/CMakeTmp
Run Build Command(s):/usr/bin/ninja cmTC_3afa6 && [1/2] Building C object CMakeFiles/cmTC_3afa6.dir/src.c.obj
[2/2] Linking C executable cmTC_3afa6
Source file was:
int main(void) { return 0; }
Performing C SOURCE FILE Test check_C__nostartfiles__nostdlib__isystem___opt_gnuarmemb_bin____lib_gcc_arm_none_eabi_8_3_1_include___isystem___opt_gnuarmemb_bin____lib_gcc_arm_none_eabi_8_3_1_include_fixed___Wl___unresolved_symbols_ignore_in_object_files__Wl___entry_0__Wl__X succeeded with the following output:
Change Dir: /home/roman/nordic/ncs/nrf/applications/asset_tracker/build_nrf5340pdk_nrf5340_cpuappns/CMakeFiles/CMakeTmp
Run Build Command(s):/usr/bin/ninja cmTC_ed3b6 && [1/2] Building C object CMakeFiles/cmTC_ed3b6.dir/src.c.obj
[2/2] Linking C executable cmTC_ed3b6
Source file was:
int main(void) { return 0; }
Performing C SOURCE FILE Test check_C__nostartfiles__nostdlib__isystem___opt_gnuarmemb_bin____lib_gcc_arm_none_eabi_8_3_1_include___isystem___opt_gnuarmemb_bin____lib_gcc_arm_none_eabi_8_3_1_include_fixed___Wl___unresolved_symbols_ignore_in_object_files__Wl___entry_0__Wl__N succeeded with the following output:
Change Dir: /home/roman/nordic/ncs/nrf/applications/asset_tracker/build_nrf5340pdk_nrf5340_cpuappns/CMakeFiles/CMakeTmp
Run Build Command(s):/usr/bin/ninja cmTC_f6012 && [1/2] Building C object CMakeFiles/cmTC_f6012.dir/src.c.obj
[2/2] Linking C executable cmTC_f6012
Source file was:
int main(void) { return 0; }
Performing C SOURCE FILE Test check_C__nostartfiles__nostdlib__isystem___opt_gnuarmemb_bin____lib_gcc_arm_none_eabi_8_3_1_include___isystem___opt_gnuarmemb_bin____lib_gcc_arm_none_eabi_8_3_1_include_fixed___Wl___unresolved_symbols_ignore_in_object_files__Wl___entry_0__Wl___orphan_handling_warn succeeded with the following output:
Change Dir: /home/roman/nordic/ncs/nrf/applications/asset_tracker/build_nrf5340pdk_nrf5340_cpuappns/CMakeFiles/CMakeTmp
Run Build Command(s):/usr/bin/ninja cmTC_d9524 && [1/2] Building C object CMakeFiles/cmTC_d9524.dir/src.c.obj
[2/2] Linking C executable cmTC_d9524
Source file was:
int main(void) { return 0; }
Performing C SOURCE FILE Test check_Wpointer_sign_C__nostartfiles__nostdlib__isystem___opt_gnuarmemb_bin____lib_gcc_arm_none_eabi_8_3_1_include___isystem___opt_gnuarmemb_bin____lib_gcc_arm_none_eabi_8_3_1_include_fixed___Wl___unresolved_symbols_ignore_in_object_files__Wl___entry_0 succeeded with the following output:
Change Dir: /home/roman/nordic/ncs/nrf/applications/asset_tracker/build_nrf5340pdk_nrf5340_cpuappns/CMakeFiles/CMakeTmp
Run Build Command(s):/usr/bin/ninja cmTC_9f397 && [1/2] Building C object CMakeFiles/cmTC_9f397.dir/src.c.obj
[2/2] Linking C executable cmTC_9f397
Source file was:
int main(void) { return 0; }
Performing C SOURCE FILE Test check_Wpointer_arith_C__nostartfiles__nostdlib__isystem___opt_gnuarmemb_bin____lib_gcc_arm_none_eabi_8_3_1_include___isystem___opt_gnuarmemb_bin____lib_gcc_arm_none_eabi_8_3_1_include_fixed___Wl___unresolved_symbols_ignore_in_object_files__Wl___entry_0 succeeded with the following output:
Change Dir: /home/roman/nordic/ncs/nrf/applications/asset_tracker/build_nrf5340pdk_nrf5340_cpuappns/CMakeFiles/CMakeTmp
Run Build Command(s):/usr/bin/ninja cmTC_004b5 && [1/2] Building C object CMakeFiles/cmTC_004b5.dir/src.c.obj
[2/2] Linking C executable cmTC_004b5
Source file was:
int main(void) { return 0; }
Performing C SOURCE FILE Test check_Wunused_but_set_variable_C__nostartfiles__nostdlib__isystem___opt_gnuarmemb_bin____lib_gcc_arm_none_eabi_8_3_1_include___isystem___opt_gnuarmemb_bin____lib_gcc_arm_none_eabi_8_3_1_include_fixed___Wl___unresolved_symbols_ignore_in_object_files__Wl___entry_0 succeeded with the following output:
Change Dir: /home/roman/nordic/ncs/nrf/applications/asset_tracker/build_nrf5340pdk_nrf5340_cpuappns/CMakeFiles/CMakeTmp
Run Build Command(s):/usr/bin/ninja cmTC_18bc9 && [1/2] Building C object CMakeFiles/cmTC_18bc9.dir/src.c.obj
[2/2] Linking C executable cmTC_18bc9
Source file was:
int main(void) { return 0; }
Performing C SOURCE FILE Test check_Werror_implicit_int_C__nostartfiles__nostdlib__isystem___opt_gnuarmemb_bin____lib_gcc_arm_none_eabi_8_3_1_include___isystem___opt_gnuarmemb_bin____lib_gcc_arm_none_eabi_8_3_1_include_fixed___Wl___unresolved_symbols_ignore_in_object_files__Wl___entry_0 succeeded with the following output:
Change Dir: /home/roman/nordic/ncs/nrf/applications/asset_tracker/build_nrf5340pdk_nrf5340_cpuappns/CMakeFiles/CMakeTmp
Run Build Command(s):/usr/bin/ninja cmTC_ca5c8 && [1/2] Building C object CMakeFiles/cmTC_ca5c8.dir/src.c.obj
[2/2] Linking C executable cmTC_ca5c8
Source file was:
int main(void) { return 0; }
Performing C SOURCE FILE Test check_fno_asynchronous_unwind_tables_C__nostartfiles__nostdlib__isystem___opt_gnuarmemb_bin____lib_gcc_arm_none_eabi_8_3_1_include___isystem___opt_gnuarmemb_bin____lib_gcc_arm_none_eabi_8_3_1_include_fixed___Wl___unresolved_symbols_ignore_in_object_files__Wl___entry_0 succeeded with the following output:
Change Dir: /home/roman/nordic/ncs/nrf/applications/asset_tracker/build_nrf5340pdk_nrf5340_cpuappns/CMakeFiles/CMakeTmp
Run Build Command(s):/usr/bin/ninja cmTC_cd495 && [1/2] Building C object CMakeFiles/cmTC_cd495.dir/src.c.obj
[2/2] Linking C executable cmTC_cd495
Source file was:
int main(void) { return 0; }
Performing C SOURCE FILE Test check_fno_pie_C__nostartfiles__nostdlib__isystem___opt_gnuarmemb_bin____lib_gcc_arm_none_eabi_8_3_1_include___isystem___opt_gnuarmemb_bin____lib_gcc_arm_none_eabi_8_3_1_include_fixed___Wl___unresolved_symbols_ignore_in_object_files__Wl___entry_0 succeeded with the following output:
Change Dir: /home/roman/nordic/ncs/nrf/applications/asset_tracker/build_nrf5340pdk_nrf5340_cpuappns/CMakeFiles/CMakeTmp
Run Build Command(s):/usr/bin/ninja cmTC_bcc8a && [1/2] Building C object CMakeFiles/cmTC_bcc8a.dir/src.c.obj
[2/2] Linking C executable cmTC_bcc8a
Source file was:
int main(void) { return 0; }
Performing C SOURCE FILE Test check_fno_pic_C__nostartfiles__nostdlib__isystem___opt_gnuarmemb_bin____lib_gcc_arm_none_eabi_8_3_1_include___isystem___opt_gnuarmemb_bin____lib_gcc_arm_none_eabi_8_3_1_include_fixed___Wl___unresolved_symbols_ignore_in_object_files__Wl___entry_0 succeeded with the following output:
Change Dir: /home/roman/nordic/ncs/nrf/applications/asset_tracker/build_nrf5340pdk_nrf5340_cpuappns/CMakeFiles/CMakeTmp
Run Build Command(s):/usr/bin/ninja cmTC_3e167 && [1/2] Building C object CMakeFiles/cmTC_3e167.dir/src.c.obj
[2/2] Linking C executable cmTC_3e167
Source file was:
int main(void) { return 0; }
Performing C SOURCE FILE Test check_fno_strict_overflow_C__nostartfiles__nostdlib__isystem___opt_gnuarmemb_bin____lib_gcc_arm_none_eabi_8_3_1_include___isystem___opt_gnuarmemb_bin____lib_gcc_arm_none_eabi_8_3_1_include_fixed___Wl___unresolved_symbols_ignore_in_object_files__Wl___entry_0 succeeded with the following output:
Change Dir: /home/roman/nordic/ncs/nrf/applications/asset_tracker/build_nrf5340pdk_nrf5340_cpuappns/CMakeFiles/CMakeTmp
Run Build Command(s):/usr/bin/ninja cmTC_5dd5c && [1/2] Building C object CMakeFiles/cmTC_5dd5c.dir/src.c.obj
[2/2] Linking C executable cmTC_5dd5c
Source file was:
int main(void) { return 0; }
Performing C SOURCE FILE Test check_fno_reorder_functions_C__nostartfiles__nostdlib__isystem___opt_gnuarmemb_bin____lib_gcc_arm_none_eabi_8_3_1_include___isystem___opt_gnuarmemb_bin____lib_gcc_arm_none_eabi_8_3_1_include_fixed___Wl___unresolved_symbols_ignore_in_object_files__Wl___entry_0 succeeded with the following output:
Change Dir: /home/roman/nordic/ncs/nrf/applications/asset_tracker/build_nrf5340pdk_nrf5340_cpuappns/CMakeFiles/CMakeTmp
Run Build Command(s):/usr/bin/ninja cmTC_e0a6e && [1/2] Building C object CMakeFiles/cmTC_e0a6e.dir/src.c.obj
[2/2] Linking C executable cmTC_e0a6e
Source file was:
int main(void) { return 0; }
Performing C SOURCE FILE Test check_fno_defer_pop_C__nostartfiles__nostdlib__isystem___opt_gnuarmemb_bin____lib_gcc_arm_none_eabi_8_3_1_include___isystem___opt_gnuarmemb_bin____lib_gcc_arm_none_eabi_8_3_1_include_fixed___Wl___unresolved_symbols_ignore_in_object_files__Wl___entry_0 succeeded with the following output:
Change Dir: /home/roman/nordic/ncs/nrf/applications/asset_tracker/build_nrf5340pdk_nrf5340_cpuappns/CMakeFiles/CMakeTmp
Run Build Command(s):/usr/bin/ninja cmTC_ea18f && [1/2] Building C object CMakeFiles/cmTC_ea18f.dir/src.c.obj
[2/2] Linking C executable cmTC_ea18f
Source file was:
int main(void) { return 0; }
Performing C SOURCE FILE Test check_fmacro_prefix_map__home_roman_nordic_ncs_nrf_applications_asset_tracker_CMAKE_SOURCE_DIR_C__nostartfiles__nostdlib__isystem___opt_gnuarmemb_bin____lib_gcc_arm_none_eabi_8_3_1_include___isystem___opt_gnuarmemb_bin____lib_gcc_arm_none_eabi_8_3_1_include_fixed___Wl___unresolved_symbols_ignore_in_object_files__Wl___entry_0 succeeded with the following output:
Change Dir: /home/roman/nordic/ncs/nrf/applications/asset_tracker/build_nrf5340pdk_nrf5340_cpuappns/CMakeFiles/CMakeTmp
Run Build Command(s):/usr/bin/ninja cmTC_cc43b && [1/2] Building C object CMakeFiles/cmTC_cc43b.dir/src.c.obj
[2/2] Linking C executable cmTC_cc43b
Source file was:
int main(void) { return 0; }
Performing C SOURCE FILE Test check_fmacro_prefix_map__home_roman_nordic_ncs_zephyr_ZEPHYR_BASE_C__nostartfiles__nostdlib__isystem___opt_gnuarmemb_bin____lib_gcc_arm_none_eabi_8_3_1_include___isystem___opt_gnuarmemb_bin____lib_gcc_arm_none_eabi_8_3_1_include_fixed___Wl___unresolved_symbols_ignore_in_object_files__Wl___entry_0 succeeded with the following output:
Change Dir: /home/roman/nordic/ncs/nrf/applications/asset_tracker/build_nrf5340pdk_nrf5340_cpuappns/CMakeFiles/CMakeTmp
Run Build Command(s):/usr/bin/ninja cmTC_8fc56 && [1/2] Building C object CMakeFiles/cmTC_8fc56.dir/src.c.obj
[2/2] Linking C executable cmTC_8fc56
Source file was:
int main(void) { return 0; }
Performing C SOURCE FILE Test check_fmacro_prefix_map__home_roman_nordic_ncs_WEST_TOPDIR_C__nostartfiles__nostdlib__isystem___opt_gnuarmemb_bin____lib_gcc_arm_none_eabi_8_3_1_include___isystem___opt_gnuarmemb_bin____lib_gcc_arm_none_eabi_8_3_1_include_fixed___Wl___unresolved_symbols_ignore_in_object_files__Wl___entry_0 succeeded with the following output:
Change Dir: /home/roman/nordic/ncs/nrf/applications/asset_tracker/build_nrf5340pdk_nrf5340_cpuappns/CMakeFiles/CMakeTmp
Run Build Command(s):/usr/bin/ninja cmTC_4456c && [1/2] Building C object CMakeFiles/cmTC_4456c.dir/src.c.obj
[2/2] Linking C executable cmTC_4456c
Source file was:
int main(void) { return 0; }
Performing C SOURCE FILE Test check_ffunction_sections_C__nostartfiles__nostdlib__isystem___opt_gnuarmemb_bin____lib_gcc_arm_none_eabi_8_3_1_include___isystem___opt_gnuarmemb_bin____lib_gcc_arm_none_eabi_8_3_1_include_fixed___Wl___unresolved_symbols_ignore_in_object_files__Wl___entry_0 succeeded with the following output:
Change Dir: /home/roman/nordic/ncs/nrf/applications/asset_tracker/build_nrf5340pdk_nrf5340_cpuappns/CMakeFiles/CMakeTmp
Run Build Command(s):/usr/bin/ninja cmTC_9b3af && [1/2] Building C object CMakeFiles/cmTC_9b3af.dir/src.c.obj
[2/2] Linking C executable cmTC_9b3af
Source file was:
int main(void) { return 0; }
Performing C SOURCE FILE Test check_fdata_sections_C__nostartfiles__nostdlib__isystem___opt_gnuarmemb_bin____lib_gcc_arm_none_eabi_8_3_1_include___isystem___opt_gnuarmemb_bin____lib_gcc_arm_none_eabi_8_3_1_include_fixed___Wl___unresolved_symbols_ignore_in_object_files__Wl___entry_0 succeeded with the following output:
Change Dir: /home/roman/nordic/ncs/nrf/applications/asset_tracker/build_nrf5340pdk_nrf5340_cpuappns/CMakeFiles/CMakeTmp
Run Build Command(s):/usr/bin/ninja cmTC_11afb && [1/2] Building C object CMakeFiles/cmTC_11afb.dir/src.c.obj
[2/2] Linking C executable cmTC_11afb
Source file was:
int main(void) { return 0; }
Loading solution asset_tracker.emProject Executing load commands cmake -GNinja -DBOARD=nrf5340pdk_nrf5340_cpuappns -DBOARD_DIR=/home/roman/nordic/ncs/zephyr/boards/arm/nrf5340pdk_nrf5340 -DZEPHYR_TOOLCHAIN_VARIANT=gnuarmemb -DGNUARMEMB_TOOLCHAIN_PATH=/opt/gnuarmemb -B/home/roman/nordic/ncs/nrf/applications/asset_tracker/build_nrf5340pdk_nrf5340_cpuappns -H/home/roman/nordic/ncs/nrf/applications/asset_tracker -DEXTRA_KCONFIG_TARGETS=menuconfig_ses -DEXTRA_KCONFIG_TARGET_COMMAND_FOR_menuconfig_ses=/home/roman/nordic/segger_embedded_studio/html/configure_nordic_project_menuconfig.py Including boilerplate (Zephyr base (cached)): /home/roman/nordic/ncs/zephyr/cmake/app/boilerplate.cmake -- Application: /home/roman/nordic/ncs/nrf/applications/asset_tracker -- Zephyr version: 2.3.0-rc1 (/home/roman/nordic/ncs/zephyr) -- Board: nrf5340pdk_nrf5340_cpuappns -- Found west: /home/roman/.local/bin/west (found suitable version "0.7.2", minimum required is "0.7.1") -- Found dtc: /usr/bin/dtc (found suitable version "1.5.0", minimum required is "1.4.6") -- Found toolchain: gnuarmemb (/opt/gnuarmemb) -- Found BOARD.dts: /home/roman/nordic/ncs/zephyr/boards/arm/nrf5340pdk_nrf5340/nrf5340pdk_nrf5340_cpuappns.dts nrf5340pdk_nrf5340_cpuappns.dts.pre.tmp:87.42-99.3: Warning (unique_unit_address_if_enabled): /soc/peripheral@40000000/flash-controller@39000: duplicate unit-address (also used in node /soc/peripheral@40000000/kmu@39000) nrf5340pdk_nrf5340_cpuappns.dts.pre.tmp:361.19-367.3: Warning (unique_unit_address_if_enabled): /soc/peripheral@40000000/clock@5000: duplicate unit-address (also used in node /soc/peripheral@40000000/power@5000) nrf5340pdk_nrf5340_cpuappns.dts.pre.tmp:578.31-579.5: Warning (unique_unit_address_if_enabled): /reserved-memory/image@20000000: duplicate unit-address (also used in node /reserved-memory/image_s@20000000) also defined at nrf5340pdk_nrf5340_cpuappns.dts.pre.tmp:598.14-600.3 -- Generated zephyr.dts: /home/roman/nordic/ncs/nrf/applications/asset_tracker/build_nrf5340pdk_nrf5340_cpuappns/zephyr/zephyr.dts -- Generated devicetree_unfixed.h: /home/roman/nordic/ncs/nrf/applications/asset_tracker/build_nrf5340pdk_nrf5340_cpuappns/zephyr/include/generated/devicetree_unfixed.h Parsing /home/roman/nordic/ncs/nrf/applications/asset_tracker/Kconfig Loaded configuration '/home/roman/nordic/ncs/nrf/applications/asset_tracker/build_nrf5340pdk_nrf5340_cpuappns/zephyr/.config' warning: the value '' is invalid for FLIP_INPUT (defined at /home/roman/nordic/ncs/nrf/applications/asset_tracker/Kconfig:191), which has type int -- assignment ignored warning: the value '' is invalid for TEMP_SIM_BUTTON (defined at /home/roman/nordic/ncs/nrf/applications/asset_tracker/Kconfig:350), which has type int -- assignment ignored error: Aborting due to Kconfig warnings CMake Error at /home/roman/nordic/ncs/zephyr/cmake/kconfig.cmake:217 (message): command failed with return code: 1 Call Stack (most recent call first): /home/roman/nordic/ncs/zephyr/cmake/app/boilerplate.cmake:506 (include) /home/roman/nordic/ncs/zephyr/share/zephyr-package/cmake/ZephyrConfig.cmake:24 (include) /home/roman/nordic/ncs/zephyr/share/zephyr-package/cmake/ZephyrConfig.cmake:40 (include_boilerplate) CMakeLists.txt:16 (find_package) -- Configuring incomplete, errors occurred! See also "/home/roman/nordic/ncs/nrf/applications/asset_tracker/build_nrf5340pdk_nrf5340_cpuappns/CMakeFiles/CMakeOutput.log". See also "/home/roman/nordic/ncs/nrf/applications/asset_tracker/build_nrf5340pdk_nrf5340_cpuappns/CMakeFiles/CMakeError.log". Project load failed Reported error: solution load command failed (1)
# SPDX-License-Identifier: Apache-2.0
# Folders needed for conf/mconf files (kconfig has no method of redirecting all output files).
# conf/mconf needs to be run from a different directory because of: GH-3408
file(MAKE_DIRECTORY ${PROJECT_BINARY_DIR}/kconfig/include/generated)
file(MAKE_DIRECTORY ${PROJECT_BINARY_DIR}/kconfig/include/config)
if(KCONFIG_ROOT)
# KCONFIG_ROOT has either been specified as a CMake variable or is
# already in the CMakeCache.txt. This has precedence.
elseif(EXISTS ${APPLICATION_SOURCE_DIR}/Kconfig)
set(KCONFIG_ROOT ${APPLICATION_SOURCE_DIR}/Kconfig)
else()
set(KCONFIG_ROOT ${ZEPHYR_BASE}/Kconfig)
endif()
set(BOARD_DEFCONFIG ${BOARD_DIR}/${BOARD}_defconfig)
set(DOTCONFIG ${PROJECT_BINARY_DIR}/.config)
set(PARSED_KCONFIG_SOURCES_TXT ${PROJECT_BINARY_DIR}/kconfig/sources.txt)
if(CONF_FILE)
string(REPLACE " " ";" CONF_FILE_AS_LIST "${CONF_FILE}")
endif()
if(OVERLAY_CONFIG)
string(REPLACE " " ";" OVERLAY_CONFIG_AS_LIST "${OVERLAY_CONFIG}")
endif()
# DTS_ROOT_BINDINGS is a semicolon separated list, this causes
# problems when invoking kconfig_target since semicolon is a special
# character in the C shell, so we make it into a question-mark
# separated list instead.
string(REPLACE ";" "?" DTS_ROOT_BINDINGS "${DTS_ROOT_BINDINGS}")
set(ENV{srctree} ${ZEPHYR_BASE})
set(ENV{KERNELVERSION} ${KERNELVERSION})
set(ENV{KCONFIG_CONFIG} ${DOTCONFIG})
set(ENV{PYTHON_EXECUTABLE} ${PYTHON_EXECUTABLE})
# Set environment variables so that Kconfig can prune Kconfig source
# files for other architectures
set(ENV{ARCH} ${ARCH})
set(ENV{BOARD_DIR} ${BOARD_DIR})
set(ENV{SOC_DIR} ${SOC_DIR})
set(ENV{SHIELD_AS_LIST} "${SHIELD_AS_LIST}")
set(ENV{CMAKE_BINARY_DIR} ${CMAKE_BINARY_DIR})
set(ENV{ARCH_DIR} ${ARCH_DIR})
set(ENV{DTS_POST_CPP} ${DTS_POST_CPP})
set(ENV{DTS_ROOT_BINDINGS} "${DTS_ROOT_BINDINGS}")
set(ENV{TOOLCHAIN_KCONFIG_DIR} "${TOOLCHAIN_KCONFIG_DIR}")
set(ENV{EXTRA_DTC_FLAGS} ${EXTRA_DTC_FLAGS})
# Allow out-of-tree users to add their own Kconfig python frontend
# targets by appending targets to the CMake list
# 'EXTRA_KCONFIG_TARGETS' and setting variables named
# 'EXTRA_KCONFIG_TARGET_COMMAND_FOR_<target>'
#
# e.g.
# cmake -DEXTRA_KCONFIG_TARGETS=cli
# -DEXTRA_KCONFIG_TARGET_COMMAND_FOR_cli=cli_kconfig_frontend.py
set(EXTRA_KCONFIG_TARGET_COMMAND_FOR_menuconfig
${ZEPHYR_BASE}/scripts/kconfig/menuconfig.py
)
set(EXTRA_KCONFIG_TARGET_COMMAND_FOR_guiconfig
${ZEPHYR_BASE}/scripts/kconfig/guiconfig.py
)
set(EXTRA_KCONFIG_TARGET_COMMAND_FOR_hardenconfig
${ZEPHYR_BASE}/scripts/kconfig/hardenconfig.py
)
foreach(kconfig_target
menuconfig
guiconfig
hardenconfig
${EXTRA_KCONFIG_TARGETS}
)
add_custom_target(
${kconfig_target}
${CMAKE_COMMAND} -E env
PYTHON_EXECUTABLE=${PYTHON_EXECUTABLE}
srctree=${ZEPHYR_BASE}
KERNELVERSION=${KERNELVERSION}
ZEPHYR_BASE=${ZEPHYR_BASE}
KCONFIG_CONFIG=${DOTCONFIG}
ARCH=$ENV{ARCH}
BOARD_DIR=$ENV{BOARD_DIR}
SOC_DIR=$ENV{SOC_DIR}
SHIELD_AS_LIST=$ENV{SHIELD_AS_LIST}
CMAKE_BINARY_DIR=$ENV{CMAKE_BINARY_DIR}
ZEPHYR_TOOLCHAIN_VARIANT=${ZEPHYR_TOOLCHAIN_VARIANT}
TOOLCHAIN_KCONFIG_DIR=${TOOLCHAIN_KCONFIG_DIR}
ARCH_DIR=$ENV{ARCH_DIR}
EXTRA_DTC_FLAGS=${EXTRA_DTC_FLAGS}
DTS_POST_CPP=${DTS_POST_CPP}
DTS_ROOT_BINDINGS=${DTS_ROOT_BINDINGS}
${PYTHON_EXECUTABLE}
${EXTRA_KCONFIG_TARGET_COMMAND_FOR_${kconfig_target}}
${KCONFIG_ROOT}
WORKING_DIRECTORY ${PROJECT_BINARY_DIR}/kconfig
USES_TERMINAL
)
endforeach()
# Support assigning Kconfig symbols on the command-line with CMake
# cache variables prefixed with 'CONFIG_'. This feature is
# experimental and undocumented until it has undergone more
# user-testing.
unset(EXTRA_KCONFIG_OPTIONS)
get_cmake_property(cache_variable_names CACHE_VARIABLES)
foreach (name ${cache_variable_names})
if("${name}" MATCHES "^CONFIG_")
# When a cache variable starts with 'CONFIG_', it is assumed to be
# a Kconfig symbol assignment from the CMake command line.
set(EXTRA_KCONFIG_OPTIONS
"${EXTRA_KCONFIG_OPTIONS}\n${name}=${${name}}"
)
endif()
endforeach()
if(EXTRA_KCONFIG_OPTIONS)
set(EXTRA_KCONFIG_OPTIONS_FILE ${PROJECT_BINARY_DIR}/misc/generated/extra_kconfig_options.conf)
file(WRITE
${EXTRA_KCONFIG_OPTIONS_FILE}
${EXTRA_KCONFIG_OPTIONS}
)
endif()
# Bring in extra configuration files dropped in by the user or anyone else;
# make sure they are set at the end so we can override any other setting
file(GLOB config_files ${APPLICATION_BINARY_DIR}/*.conf)
list(SORT config_files)
set(
merge_config_files
${BOARD_DEFCONFIG}
${CONF_FILE_AS_LIST}
${shield_conf_files}
${OVERLAY_CONFIG_AS_LIST}
${EXTRA_KCONFIG_OPTIONS_FILE}
${config_files}
)
# Create a list of absolute paths to the .config sources from
# merge_config_files, which is a mix of absolute and relative paths.
set(merge_config_files_with_absolute_paths "")
foreach(f ${merge_config_files})
if(IS_ABSOLUTE ${f})
set(path ${f})
else()
set(path ${APPLICATION_SOURCE_DIR}/${f})
endif()
list(APPEND merge_config_files_with_absolute_paths ${path})
endforeach()
foreach(f ${merge_config_files_with_absolute_paths})
if(NOT EXISTS ${f} OR IS_DIRECTORY ${f})
message(FATAL_ERROR "File not found: ${f}")
endif()
endforeach()
# Calculate a checksum of merge_config_files to determine if we need
# to re-generate .config
set(merge_config_files_checksum "")
foreach(f ${merge_config_files_with_absolute_paths})
file(MD5 ${f} checksum)
set(merge_config_files_checksum "${merge_config_files_checksum}${checksum}")
endforeach()
# Create a new .config if it does not exists, or if the checksum of
# the dependencies has changed
set(merge_config_files_checksum_file ${PROJECT_BINARY_DIR}/.cmake.dotconfig.checksum)
set(CREATE_NEW_DOTCONFIG 1)
# Check if the checksum file exists too before trying to open it, though it
# should under normal circumstances
if(EXISTS ${DOTCONFIG} AND EXISTS ${merge_config_files_checksum_file})
# Read out what the checksum was previously
file(READ
${merge_config_files_checksum_file}
merge_config_files_checksum_prev
)
if(
${merge_config_files_checksum} STREQUAL
${merge_config_files_checksum_prev}
)
# Checksum is the same as before
set(CREATE_NEW_DOTCONFIG 0)
endif()
endif()
if(CREATE_NEW_DOTCONFIG)
set(input_configs_are_handwritten --handwritten-input-configs)
set(input_configs ${merge_config_files})
else()
set(input_configs ${DOTCONFIG})
endif()
execute_process(
COMMAND
${PYTHON_EXECUTABLE}
${ZEPHYR_BASE}/scripts/kconfig/kconfig.py
--zephyr-base=${ZEPHYR_BASE}
${input_configs_are_handwritten}
${KCONFIG_ROOT}
${DOTCONFIG}
${AUTOCONF_H}
${PARSED_KCONFIG_SOURCES_TXT}
${input_configs}
WORKING_DIRECTORY ${APPLICATION_SOURCE_DIR}
# The working directory is set to the app dir such that the user
# can use relative paths in CONF_FILE, e.g. CONF_FILE=nrf5.conf
RESULT_VARIABLE ret
)
if(NOT "${ret}" STREQUAL "0")
message(FATAL_ERROR "command failed with return code: ${ret}")
endif()
if(CREATE_NEW_DOTCONFIG)
# Write the new configuration fragment checksum. Only do this if kconfig.py
# succeeds, to avoid marking zephyr/.config as up-to-date when it hasn't been
# regenerated.
file(WRITE ${merge_config_files_checksum_file}
${merge_config_files_checksum})
endif()
# Read out the list of 'Kconfig' sources that were used by the engine.
file(STRINGS ${PARSED_KCONFIG_SOURCES_TXT} PARSED_KCONFIG_SOURCES_LIST)
# Force CMAKE configure when the Kconfig sources or configuration files changes.
foreach(kconfig_input
${merge_config_files}
${DOTCONFIG}
${PARSED_KCONFIG_SOURCES_LIST}
)
set_property(DIRECTORY APPEND PROPERTY CMAKE_CONFIGURE_DEPENDS ${kconfig_input})
endforeach()
add_custom_target(config-sanitycheck DEPENDS ${DOTCONFIG})
# Remove the CLI Kconfig symbols from the namespace and
# CMakeCache.txt. If the symbols end up in DOTCONFIG they will be
# re-introduced to the namespace through 'import_kconfig'.
foreach (name ${cache_variable_names})
if("${name}" MATCHES "^CONFIG_")
unset(${name})
unset(${name} CACHE)
endif()
endforeach()
# Parse the lines prefixed with CONFIG_ in the .config file from Kconfig
import_kconfig(CONFIG_ ${DOTCONFIG})
# Re-introduce the CLI Kconfig symbols that survived
foreach (name ${cache_variable_names})
if("${name}" MATCHES "^CONFIG_")
if(DEFINED ${name})
set(${name} ${${name}} CACHE STRING "")
endif()
endif()
endforeach()
Compiling the C compiler identification source file "CMakeCCompilerId.c" failed.
Compiler: C:/Users/Roman/ncs/v1.3.0/toolchain/opt/bin/arm-none-eabi-gcc.exe
Build flags:
Id flags:
The output was:
1
c:/users/roman/ncs/v1.3.0/toolchain/opt/bin/../lib/gcc/arm-none-eabi/9.2.1/../../../../arm-none-eabi/bin/ld.exe: c:/users/roman/ncs/v1.3.0/toolchain/opt/bin/../lib/gcc/arm-none-eabi/9.2.1/../../../../arm-none-eabi/lib\libc.a(lib_a-exit.o): in function `exit':
exit.c:(.text.exit+0x2c): undefined reference to `_exit'
collect2.exe: error: ld returned 1 exit status
Compiling the CXX compiler identification source file "CMakeCXXCompilerId.cpp" failed.
Compiler: C:/Users/Roman/ncs/v1.3.0/toolchain/opt/bin/arm-none-eabi-gcc.exe
Build flags:
Id flags:
The output was:
1
c:/users/roman/ncs/v1.3.0/toolchain/opt/bin/../lib/gcc/arm-none-eabi/9.2.1/../../../../arm-none-eabi/bin/ld.exe: c:/users/roman/ncs/v1.3.0/toolchain/opt/bin/../lib/gcc/arm-none-eabi/9.2.1/../../../../arm-none-eabi/lib\libc.a(lib_a-exit.o): in function `exit':
exit.c:(.text.exit+0x2c): undefined reference to `_exit'
collect2.exe: error: ld returned 1 exit status
Performing C SOURCE FILE Test check_C__nostartfiles__nostdlib__isystem__c__users_roman_ncs_v1_3_0_toolchain_opt_bin____lib_gcc_arm_none_eabi_9_2_1_include___isystem__c__users_roman_ncs_v1_3_0_toolchain_opt_bin____lib_gcc_arm_none_eabi_9_2_1_include_fixed___Wl___unresolved_symbols_ignore_in_object_files__Wl___entry_0__mfloat_abi_hard failed with the following output:
Change Dir: C:/Users/Roman/ncs/v1.3.0/nrf/applications/asset_tracker/build_nrf5340pdk_nrf5340_cpuappns/CMakeFiles/CMakeTmp
Run Build Command:"C:/Users/Roman/ncs/v1.3.0/toolchain/opt/bin/ninja.exe" "cmTC_1a880"
[1/2] Building C object CMakeFiles/cmTC_1a880.dir/src.c.obj
FAILED: CMakeFiles/cmTC_1a880.dir/src.c.obj
C:\Users\Roman\ncs\v1.3.0\toolchain\opt\bin\arm-none-eabi-gcc.exe -Dcheck_C__nostartfiles__nostdlib__isystem__c__users_roman_ncs_v1_3_0_toolchain_opt_bin____lib_gcc_arm_none_eabi_9_2_1_include___isystem__c__users_roman_ncs_v1_3_0_toolchain_opt_bin____lib_gcc_arm_none_eabi_9_2_1_include_fixed___Wl___unresolved_symbols_ignore_in_object_files__Wl___entry_0__mfloat_abi_hard -nostartfiles -nostdlib -isystem "c:/users/roman/ncs/v1.3.0/toolchain/opt/bin/../lib/gcc/arm-none-eabi/9.2.1/include" -isystem "c:/users/roman/ncs/v1.3.0/toolchain/opt/bin/../lib/gcc/arm-none-eabi/9.2.1/include-fixed" -Wl,--unresolved-symbols=ignore-in-object-files -Wl,--entry=0 -mfloat-abi=hard -o CMakeFiles/cmTC_1a880.dir/src.c.obj -c src.c
cc1.exe: error: '-mfloat-abi=hard': selected processor lacks an FPU
ninja: build stopped: subcommand failed.
Source file was:
int main(void) { return 0; }
The target system is: Generic - 2.3.0 - arm
The host system is: Windows - 10.0.19041 - AMD64
Compiling the C compiler identification source file "CMakeCCompilerId.c" succeeded.
Compiler: C:/Users/Roman/ncs/v1.3.0/toolchain/opt/bin/arm-none-eabi-gcc.exe
Build flags:
Id flags: -c
The output was:
0
Compilation of the C compiler identification source "CMakeCCompilerId.c" produced "CMakeCCompilerId.o"
The C compiler identification is GNU, found in "C:/Users/Roman/ncs/v1.3.0/nrf/applications/asset_tracker/build_nrf5340pdk_nrf5340_cpuappns/CMakeFiles/3.13.4/CompilerIdC/CMakeCCompilerId.o"
Compiling the CXX compiler identification source file "CMakeCXXCompilerId.cpp" succeeded.
Compiler: C:/Users/Roman/ncs/v1.3.0/toolchain/opt/bin/arm-none-eabi-gcc.exe
Build flags:
Id flags: -c
The output was:
0
Compilation of the CXX compiler identification source "CMakeCXXCompilerId.cpp" produced "CMakeCXXCompilerId.o"
The CXX compiler identification is GNU, found in "C:/Users/Roman/ncs/v1.3.0/nrf/applications/asset_tracker/build_nrf5340pdk_nrf5340_cpuappns/CMakeFiles/3.13.4/CompilerIdCXX/CMakeCXXCompilerId.o"
Checking whether the ASM compiler is GNU using "--version" matched "(GNU assembler)|(GCC)|(Free Software Foundation)":
arm-none-eabi-gcc.exe (GNU Tools for Arm Embedded Processors 9-2019-q4-major) 9.2.1 20191025 (release) [ARM/arm-9-branch revision 277599]
Copyright (C) 2019 Free Software Foundation, Inc.
This is free software; see the source for copying conditions. There is NO
warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
Performing C SOURCE FILE Test check_C__nostartfiles__nostdlib__isystem__c__users_roman_ncs_v1_3_0_toolchain_opt_bin____lib_gcc_arm_none_eabi_9_2_1_include___isystem__c__users_roman_ncs_v1_3_0_toolchain_opt_bin____lib_gcc_arm_none_eabi_9_2_1_include_fixed___Wl___unresolved_symbols_ignore_in_object_files__Wl___entry_0__mfpu_fpv5_sp_d16 succeeded with the following output:
Change Dir: C:/Users/Roman/ncs/v1.3.0/nrf/applications/asset_tracker/build_nrf5340pdk_nrf5340_cpuappns/CMakeFiles/CMakeTmp
Run Build Command:"C:/Users/Roman/ncs/v1.3.0/toolchain/opt/bin/ninja.exe" "cmTC_f8c2b"
[1/2] Building C object CMakeFiles/cmTC_f8c2b.dir/src.c.obj
[2/2] Linking C executable cmTC_f8c2b
Source file was:
int main(void) { return 0; }
Performing C SOURCE FILE Test check_fmacro_prefix_map_C__Users_Roman_ncs_v1_3_0_nrf_applications_asset_tracker_CMAKE_SOURCE_DIR_C__nostartfiles__nostdlib__isystem__c__users_roman_ncs_v1_3_0_toolchain_opt_bin____lib_gcc_arm_none_eabi_9_2_1_include___isystem__c__users_roman_ncs_v1_3_0_toolchain_opt_bin____lib_gcc_arm_none_eabi_9_2_1_include_fixed___Wl___unresolved_symbols_ignore_in_object_files__Wl___entry_0 succeeded with the following output:
Change Dir: C:/Users/Roman/ncs/v1.3.0/nrf/applications/asset_tracker/build_nrf5340pdk_nrf5340_cpuappns/CMakeFiles/CMakeTmp
Run Build Command:"C:/Users/Roman/ncs/v1.3.0/toolchain/opt/bin/ninja.exe" "cmTC_da91d"
[1/2] Building C object CMakeFiles/cmTC_da91d.dir/src.c.obj
[2/2] Linking C executable cmTC_da91d
Source file was:
int main(void) { return 0; }
Loading solution asset_tracker.emProject Executing load commands cmake -GNinja -DBOARD=nrf5340pdk_nrf5340_cpuappns -DBOARD_DIR=C:/Users/Roman/ncs/v1.3.0/zephyr/boards/arm/nrf5340pdk_nrf5340 -DZEPHYR_TOOLCHAIN_VARIANT=gnuarmemb -DGNUARMEMB_TOOLCHAIN_PATH=C:/Users/Roman/ncs/v1.3.0/toolchain/opt -BC:/Users/Roman/ncs/v1.3.0/nrf/applications/asset_tracker/build_nrf5340pdk_nrf5340_cpuappns -HC:/Users/Roman/ncs/v1.3.0/nrf/applications/asset_tracker -DEXTRA_KCONFIG_TARGETS=menuconfig_ses -DEXTRA_KCONFIG_TARGET_COMMAND_FOR_menuconfig_ses=C:/Users/Roman/ncs/v1.3.0/toolchain/segger_embedded_studio/html/configure_nordic_project_menuconfig.py Including boilerplate (Zephyr base (cached)): C:/Users/Roman/ncs/v1.3.0/zephyr/cmake/app/boilerplate.cmake -- Application: C:/Users/Roman/ncs/v1.3.0/nrf/applications/asset_tracker -- Using NCS Toolchain 1.3.0 for building. (C:/Users/Roman/ncs/v1.3.0/toolchain/cmake) -- Zephyr version: 2.3.0-rc1 (C:/Users/Roman/ncs/v1.3.0/zephyr) -- Board: nrf5340pdk_nrf5340_cpuappns -- Found west: C:/Users/Roman/ncs/v1.3.0/toolchain/opt/bin/Scripts/west.exe (found suitable version "0.7.2", minimum required is "0.7.1") -- Found dtc: C:/Users/Roman/ncs/v1.3.0/toolchain/opt/bin/dtc.exe (found suitable version "1.4.7", minimum required is "1.4.6") -- Found toolchain: gnuarmemb (C:/Users/Roman/ncs/v1.3.0/toolchain/opt) -- Found BOARD.dts: C:/Users/Roman/ncs/v1.3.0/zephyr/boards/arm/nrf5340pdk_nrf5340/nrf5340pdk_nrf5340_cpuappns.dts -- Generated zephyr.dts: C:/Users/Roman/ncs/v1.3.0/nrf/applications/asset_tracker/build_nrf5340pdk_nrf5340_cpuappns/zephyr/zephyr.dts -- Generated devicetree_unfixed.h: C:/Users/Roman/ncs/v1.3.0/nrf/applications/asset_tracker/build_nrf5340pdk_nrf5340_cpuappns/zephyr/include/generated/devicetree_unfixed.h warning: the value '' is invalid for FLIP_INPUT (defined at C:/Users/Roman/ncs/v1.3.0/nrf/applications/asset_tracker/Kconfig:191), which has type int -- assignment ignored warning: the value '' is invalid for TEMP_SIM_BUTTON (defined at C:/Users/Roman/ncs/v1.3.0/nrf/applications/asset_tracker/Kconfig:350), which has type int -- assignment ignored Parsing C:/Users/Roman/ncs/v1.3.0/nrf/applications/asset_tracker/Kconfig Loaded configuration 'C:/Users/Roman/ncs/v1.3.0/nrf/applications/asset_tracker/build_nrf5340pdk_nrf5340_cpuappns/zephyr/.config' error: Aborting due to Kconfig warnings CMake Error at C:/Users/Roman/ncs/v1.3.0/zephyr/cmake/kconfig.cmake:217 (message): command failed with return code: 1 Call Stack (most recent call first): C:/Users/Roman/ncs/v1.3.0/zephyr/cmake/app/boilerplate.cmake:506 (include) C:/Users/Roman/ncs/v1.3.0/zephyr/share/zephyr-package/cmake/ZephyrConfig.cmake:24 (include) C:/Users/Roman/ncs/v1.3.0/zephyr/share/zephyr-package/cmake/ZephyrConfig.cmake:40 (include_boilerplate) CMakeLists.txt:16 (find_package) -- Configuring incomplete, errors occurred! See also "C:/Users/Roman/ncs/v1.3.0/nrf/applications/asset_tracker/build_nrf5340pdk_nrf5340_cpuappns/CMakeFiles/CMakeOutput.log". See also "C:/Users/Roman/ncs/v1.3.0/nrf/applications/asset_tracker/build_nrf5340pdk_nrf5340_cpuappns/CMakeFiles/CMakeError.log". Project load failed Reported error: solution load command failed (1)
# SPDX-License-Identifier: Apache-2.0
# Folders needed for conf/mconf files (kconfig has no method of redirecting all output files).
# conf/mconf needs to be run from a different directory because of: GH-3408
file(MAKE_DIRECTORY ${PROJECT_BINARY_DIR}/kconfig/include/generated)
file(MAKE_DIRECTORY ${PROJECT_BINARY_DIR}/kconfig/include/config)
if(KCONFIG_ROOT)
# KCONFIG_ROOT has either been specified as a CMake variable or is
# already in the CMakeCache.txt. This has precedence.
elseif(EXISTS ${APPLICATION_SOURCE_DIR}/Kconfig)
set(KCONFIG_ROOT ${APPLICATION_SOURCE_DIR}/Kconfig)
else()
set(KCONFIG_ROOT ${ZEPHYR_BASE}/Kconfig)
endif()
set(BOARD_DEFCONFIG ${BOARD_DIR}/${BOARD}_defconfig)
set(DOTCONFIG ${PROJECT_BINARY_DIR}/.config)
set(PARSED_KCONFIG_SOURCES_TXT ${PROJECT_BINARY_DIR}/kconfig/sources.txt)
if(CONF_FILE)
string(REPLACE " " ";" CONF_FILE_AS_LIST "${CONF_FILE}")
endif()
if(OVERLAY_CONFIG)
string(REPLACE " " ";" OVERLAY_CONFIG_AS_LIST "${OVERLAY_CONFIG}")
endif()
# DTS_ROOT_BINDINGS is a semicolon separated list, this causes
# problems when invoking kconfig_target since semicolon is a special
# character in the C shell, so we make it into a question-mark
# separated list instead.
string(REPLACE ";" "?" DTS_ROOT_BINDINGS "${DTS_ROOT_BINDINGS}")
set(ENV{srctree} ${ZEPHYR_BASE})
set(ENV{KERNELVERSION} ${KERNELVERSION})
set(ENV{KCONFIG_CONFIG} ${DOTCONFIG})
set(ENV{PYTHON_EXECUTABLE} ${PYTHON_EXECUTABLE})
# Set environment variables so that Kconfig can prune Kconfig source
# files for other architectures
set(ENV{ARCH} ${ARCH})
set(ENV{BOARD_DIR} ${BOARD_DIR})
set(ENV{SOC_DIR} ${SOC_DIR})
set(ENV{SHIELD_AS_LIST} "${SHIELD_AS_LIST}")
set(ENV{CMAKE_BINARY_DIR} ${CMAKE_BINARY_DIR})
set(ENV{ARCH_DIR} ${ARCH_DIR})
set(ENV{DTS_POST_CPP} ${DTS_POST_CPP})
set(ENV{DTS_ROOT_BINDINGS} "${DTS_ROOT_BINDINGS}")
set(ENV{TOOLCHAIN_KCONFIG_DIR} "${TOOLCHAIN_KCONFIG_DIR}")
set(ENV{EXTRA_DTC_FLAGS} ${EXTRA_DTC_FLAGS})
# Allow out-of-tree users to add their own Kconfig python frontend
# targets by appending targets to the CMake list
# 'EXTRA_KCONFIG_TARGETS' and setting variables named
# 'EXTRA_KCONFIG_TARGET_COMMAND_FOR_<target>'
#
# e.g.
# cmake -DEXTRA_KCONFIG_TARGETS=cli
# -DEXTRA_KCONFIG_TARGET_COMMAND_FOR_cli=cli_kconfig_frontend.py
set(EXTRA_KCONFIG_TARGET_COMMAND_FOR_menuconfig
${ZEPHYR_BASE}/scripts/kconfig/menuconfig.py
)
set(EXTRA_KCONFIG_TARGET_COMMAND_FOR_guiconfig
${ZEPHYR_BASE}/scripts/kconfig/guiconfig.py
)
set(EXTRA_KCONFIG_TARGET_COMMAND_FOR_hardenconfig
${ZEPHYR_BASE}/scripts/kconfig/hardenconfig.py
)
foreach(kconfig_target
menuconfig
guiconfig
hardenconfig
${EXTRA_KCONFIG_TARGETS}
)
add_custom_target(
${kconfig_target}
${CMAKE_COMMAND} -E env
PYTHON_EXECUTABLE=${PYTHON_EXECUTABLE}
srctree=${ZEPHYR_BASE}
KERNELVERSION=${KERNELVERSION}
ZEPHYR_BASE=${ZEPHYR_BASE}
KCONFIG_CONFIG=${DOTCONFIG}
ARCH=$ENV{ARCH}
BOARD_DIR=$ENV{BOARD_DIR}
SOC_DIR=$ENV{SOC_DIR}
SHIELD_AS_LIST=$ENV{SHIELD_AS_LIST}
CMAKE_BINARY_DIR=$ENV{CMAKE_BINARY_DIR}
ZEPHYR_TOOLCHAIN_VARIANT=${ZEPHYR_TOOLCHAIN_VARIANT}
TOOLCHAIN_KCONFIG_DIR=${TOOLCHAIN_KCONFIG_DIR}
ARCH_DIR=$ENV{ARCH_DIR}
EXTRA_DTC_FLAGS=${EXTRA_DTC_FLAGS}
DTS_POST_CPP=${DTS_POST_CPP}
DTS_ROOT_BINDINGS=${DTS_ROOT_BINDINGS}
${PYTHON_EXECUTABLE}
${EXTRA_KCONFIG_TARGET_COMMAND_FOR_${kconfig_target}}
${KCONFIG_ROOT}
WORKING_DIRECTORY ${PROJECT_BINARY_DIR}/kconfig
USES_TERMINAL
)
endforeach()
# Support assigning Kconfig symbols on the command-line with CMake
# cache variables prefixed with 'CONFIG_'. This feature is
# experimental and undocumented until it has undergone more
# user-testing.
unset(EXTRA_KCONFIG_OPTIONS)
get_cmake_property(cache_variable_names CACHE_VARIABLES)
foreach (name ${cache_variable_names})
if("${name}" MATCHES "^CONFIG_")
# When a cache variable starts with 'CONFIG_', it is assumed to be
# a Kconfig symbol assignment from the CMake command line.
set(EXTRA_KCONFIG_OPTIONS
"${EXTRA_KCONFIG_OPTIONS}\n${name}=${${name}}"
)
endif()
endforeach()
if(EXTRA_KCONFIG_OPTIONS)
set(EXTRA_KCONFIG_OPTIONS_FILE ${PROJECT_BINARY_DIR}/misc/generated/extra_kconfig_options.conf)
file(WRITE
${EXTRA_KCONFIG_OPTIONS_FILE}
${EXTRA_KCONFIG_OPTIONS}
)
endif()
# Bring in extra configuration files dropped in by the user or anyone else;
# make sure they are set at the end so we can override any other setting
file(GLOB config_files ${APPLICATION_BINARY_DIR}/*.conf)
list(SORT config_files)
set(
merge_config_files
${BOARD_DEFCONFIG}
${CONF_FILE_AS_LIST}
${shield_conf_files}
${OVERLAY_CONFIG_AS_LIST}
${EXTRA_KCONFIG_OPTIONS_FILE}
${config_files}
)
# Create a list of absolute paths to the .config sources from
# merge_config_files, which is a mix of absolute and relative paths.
set(merge_config_files_with_absolute_paths "")
foreach(f ${merge_config_files})
if(IS_ABSOLUTE ${f})
set(path ${f})
else()
set(path ${APPLICATION_SOURCE_DIR}/${f})
endif()
list(APPEND merge_config_files_with_absolute_paths ${path})
endforeach()
foreach(f ${merge_config_files_with_absolute_paths})
if(NOT EXISTS ${f} OR IS_DIRECTORY ${f})
message(FATAL_ERROR "File not found: ${f}")
endif()
endforeach()
# Calculate a checksum of merge_config_files to determine if we need
# to re-generate .config
set(merge_config_files_checksum "")
foreach(f ${merge_config_files_with_absolute_paths})
file(MD5 ${f} checksum)
set(merge_config_files_checksum "${merge_config_files_checksum}${checksum}")
endforeach()
# Create a new .config if it does not exists, or if the checksum of
# the dependencies has changed
set(merge_config_files_checksum_file ${PROJECT_BINARY_DIR}/.cmake.dotconfig.checksum)
set(CREATE_NEW_DOTCONFIG 1)
# Check if the checksum file exists too before trying to open it, though it
# should under normal circumstances
if(EXISTS ${DOTCONFIG} AND EXISTS ${merge_config_files_checksum_file})
# Read out what the checksum was previously
file(READ
${merge_config_files_checksum_file}
merge_config_files_checksum_prev
)
if(
${merge_config_files_checksum} STREQUAL
${merge_config_files_checksum_prev}
)
# Checksum is the same as before
set(CREATE_NEW_DOTCONFIG 0)
endif()
endif()
if(CREATE_NEW_DOTCONFIG)
set(input_configs_are_handwritten --handwritten-input-configs)
set(input_configs ${merge_config_files})
else()
set(input_configs ${DOTCONFIG})
endif()
execute_process(
COMMAND
${PYTHON_EXECUTABLE}
${ZEPHYR_BASE}/scripts/kconfig/kconfig.py
--zephyr-base=${ZEPHYR_BASE}
${input_configs_are_handwritten}
${KCONFIG_ROOT}
${DOTCONFIG}
${AUTOCONF_H}
${PARSED_KCONFIG_SOURCES_TXT}
${input_configs}
WORKING_DIRECTORY ${APPLICATION_SOURCE_DIR}
# The working directory is set to the app dir such that the user
# can use relative paths in CONF_FILE, e.g. CONF_FILE=nrf5.conf
RESULT_VARIABLE ret
)
if(NOT "${ret}" STREQUAL "0")
message(FATAL_ERROR "command failed with return code: ${ret}")
endif()
if(CREATE_NEW_DOTCONFIG)
# Write the new configuration fragment checksum. Only do this if kconfig.py
# succeeds, to avoid marking zephyr/.config as up-to-date when it hasn't been
# regenerated.
file(WRITE ${merge_config_files_checksum_file}
${merge_config_files_checksum})
endif()
# Read out the list of 'Kconfig' sources that were used by the engine.
file(STRINGS ${PARSED_KCONFIG_SOURCES_TXT} PARSED_KCONFIG_SOURCES_LIST)
# Force CMAKE configure when the Kconfig sources or configuration files changes.
foreach(kconfig_input
${merge_config_files}
${DOTCONFIG}
${PARSED_KCONFIG_SOURCES_LIST}
)
set_property(DIRECTORY APPEND PROPERTY CMAKE_CONFIGURE_DEPENDS ${kconfig_input})
endforeach()
add_custom_target(config-sanitycheck DEPENDS ${DOTCONFIG})
# Remove the CLI Kconfig symbols from the namespace and
# CMakeCache.txt. If the symbols end up in DOTCONFIG they will be
# re-introduced to the namespace through 'import_kconfig'.
foreach (name ${cache_variable_names})
if("${name}" MATCHES "^CONFIG_")
unset(${name})
unset(${name} CACHE)
endif()
endforeach()
# Parse the lines prefixed with CONFIG_ in the .config file from Kconfig
import_kconfig(CONFIG_ ${DOTCONFIG})
# Re-introduce the CLI Kconfig symbols that survived
foreach (name ${cache_variable_names})
if("${name}" MATCHES "^CONFIG_")
if(DEFINED ${name})
set(${name} ${${name}} CACHE STRING "")
endif()
endif()
endforeach()
Can you point me what wrong is with my installation and what should I do to fix it?