Part Number: CC2652R7
Other Parts Discussed in Thread: SYSBIOS
Hi experts,
I tried to build the TI RCP examples using gcc compiler.
A link error is occurring as shown below.
Of course, if I use the TI Clang compiler, no problem.
But I have to use gcc.
We look forward to your kind advise.
Building target: "rcp_LP_CC2652R7_tirtos7_gcc.out"
Invoking: GNU Linker
"/home/nama/ti/gcc_arm_none_eabi_9_2_1/bin/arm-none-eabi-gcc-9.2.1" -mfpu=fpv4-sp-d16 -fno-exceptions -DHAVE_CONFIG_H -DBoard_EXCLUDE_NVS_EXTERNAL_FLASH -DNVOCMP_POSIX_MUTEX -DNVOCMP_NVPAGES=2 -DNDEBUG -DBOARD_DISPLAY_USE_UART=1 -DMBEDTLS_CONFIG_FILE='"mbedtls-config-cc13x2_26x2.h"' -DOPENTHREAD_RADIO=1 -DOPENTHREAD_CONFIG_FILE='"openthread-config-cc13x2_26x2-rcp.h"' -DOPENTHREAD_PROJECT_CORE_CONFIG_FILE='"openthread-core-cc13x2_26x2-config.h"' -DPLATFORM_SPI_CRC_SUPPORT -DDeviceFamily_CC13X2X7_CC26X2X7 -Os -ffunction-sections -fdata-sections -g -gdwarf-3 -gstrict-dwarf -Wall -fno-common -mcpu=cortex-m4 -Wl,-Map,"rcp_LP_CC2652R7_tirtos7_gcc.map" -nostartfiles -static -Wl,--gc-sections -L"/home/nama/workspace_v12/libopenthread_rcp_cc13x2_26x2_gcc/OptimizeSize" -L"/home/nama/workspace_v12/libopenthread_radio_cc13x2_26x2_gcc/OptimizeSize" -L"/home/nama/workspace_v12/libopenthread_platform_utils_radio_cc13x2_26x2_gcc/OptimizeSize" -L"/home/nama/workspace_v12/libmbedcrypto_cc13x2_26x2_gcc/OptimizeSize" -L"/home/nama/ti/simplelink_cc13xx_cc26xx_sdk_7_10_00_98/source" -L"/home/nama/ti/simplelink_cc13xx_cc26xx_sdk_7_10_00_98/kernel/tirtos7/packages" -L"/home/nama/workspace_v12/rcp_LP_CC2652R7_tirtos7_gcc/Debug/syscfg" -L"/home/nama/ti/gcc_arm_none_eabi_9_2_1/arm-none-eabi/lib/thumb/v7e-m/hard" -Wl,--defsym,NVOCMP_NVPAGES=2 -march=armv7e-m -mthumb -mfloat-abi=hard -mfpu=fpv4-sp-d16 --specs=nano.specs -o"rcp_LP_CC2652R7_tirtos7_gcc.out" "./main.o" "./otstack.o" "./rcp.o" "./syscfg/tiop_config.o" "./syscfg/ti_devices_config.o" "./syscfg/ti_radio_config.o" "./syscfg/ti_drivers_config.o" "./syscfg/ti_sysbios_config.o" "./otsupport/otrtosapi.o" "./platform/alarm.o" "./platform/alarm_micro.o" "./platform/diag.o" "./platform/entropy.o" "./platform/misc.o" "./platform/ncp.o" "./platform/radio.o" "./platform/settings.o" "./platform/spi_periph.o" "./platform/system.o" "./platform/uart.o" "./platform/crypto/aes_alt.o" "./platform/crypto/crypto_misc.o" "./platform/crypto/ecjpake_alt.o" "./platform/crypto/sha256_alt.o" "./platform/nv/crc.o" "./platform/nv/nvocmp.o" -Wl,-T"../cc13x2x7_cc26x2x7_tirtos7.lds" -lopenthread_rcp -lopenthread_radio -lopenthread_platform_utils_radio -lmbedcrypto "/home/nama/workspace_v12/rcp_LP_CC2652R7_tirtos7_gcc/Debug/syscfg/ti_utils_build_linker.cmd.genlibs" -l:"ti/devices/cc13x2x7_cc26x2x7/driverlib/bin/gcc/driverlib.lib" -lgcc -lc -lm -lnosys
makefile:181: recipe for target 'rcp_LP_CC2652R7_tirtos7_gcc.out' failed
/home/nama/ti/gcc_arm_none_eabi_9_2_1/bin/../lib/gcc/arm-none-eabi/9.2.1/../../../../arm-none-eabi/bin/ld: /home/nama/ti/gcc_arm_none_eabi_9_2_1/bin/../lib/gcc/arm-none-eabi/9.2.1/liblto_plugin.so: error loading plugin: /home/nama/ti/gcc_arm_none_eabi_9_2_1/bin/../lib/gcc/arm-none-eabi/9.2.1/liblto_plugin.so: file too short
collect2: error: ld returned 1 exit status
gmake[1]: *** [rcp_LP_CC2652R7_tirtos7_gcc.out] Error 1
gmake: *** [all] Error 2
makefile:171: recipe for target 'all' failed
**** Build Finished ****