Thread 中讨论的其他器件:SYSBIOS
我的配置:
CCS:12.4.0.00007
SimpleLink SDK:7.10.1.24
TI GCC:9.2.1
主机操作系统:macOS 14.1.1 (23B81)、基于 x86的 CPU
示例项目: temp_sensor_CC1352R1_LAUNCHXL_tirtos7_gcc (实际上与具有 GCC 的所有项目相关)
我将尝试基于 GCC 和 TI RTOS 7构建全新的示例工程、并在链接器阶段收到错误:
.../lib/gcc/arm-none-eabi/9.2.1/liblto_plugin.so:加载插件时出错:dlopen (/Users/skulyk/ti/gcc_arm_none_eabi_9_2_1/bin/../lib/gcc/arm-none-eabi/9.2.1/liblto_plugin.so、0x0002)
Building target: "temp_sensor_CC1352R1_LAUNCHXL_tirtos7_gcc.out" Invoking: GNU Linker "/Users/username/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_MTD=1 -DOPENTHREAD_CONFIG_FILE='"openthread-config-cc13x2_26x2-mtd.h"' -DOPENTHREAD_PROJECT_CORE_CONFIG_FILE='"openthread-core-cc13x2_26x2-config.h"' -DTIOP_CUI=1 -DCUI_POSIX=1 -DBOARD_DISPLAY_USE_LCD=0 -DDeviceFamily_CC13X2_CC26X2 -Os -ffunction-sections -fdata-sections -g -gdwarf-3 -gstrict-dwarf -Wall -fno-common -mcpu=cortex-m4 -Wl,-Map,"temp_sensor_CC1352R1_LAUNCHXL_tirtos7_gcc.map" -nostartfiles -static -Wl,--gc-sections -L"/Users/username/Development/ccs/libopenthread_mtd_cc13x2_26x2_gcc/OptimizeSize" -L"/Users/username/Development/ccs/libopenthread_platform_utils_mtd_cc13x2_26x2_gcc/OptimizeSize" -L"/Users/username/Development/ccs/libmbedcrypto_cc13x2_26x2_gcc/OptimizeSize" -L"/Users/username/ti/simplelink_cc13xx_cc26xx_sdk_7_10_01_24/source" -L"/Users/username/ti/simplelink_cc13xx_cc26xx_sdk_7_10_01_24/kernel/tirtos7/packages" -L"/Users/username/Development/ccs/temp_sensor_CC1352R1_LAUNCHXL_tirtos7_gcc/Debug/syscfg" -L"/Users/username/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"temp_sensor_CC1352R1_LAUNCHXL_tirtos7_gcc.out" "./cui.o" "./disp_utils.o" "./main.o" "./otstack.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" "./tempsensor.o" "./tiop_ui.o" "./otsupport/otrtosapi.o" "./platform/alarm.o" "./platform/alarm_micro.o" "./platform/diag.o" "./platform/entropy.o" "./platform/misc.o" "./platform/radio.o" "./platform/settings.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"../cc13x2_cc26x2_tirtos7.lds" -lopenthread_mtd -lopenthread_platform_utils_mtd -lmbedcrypto "/Users/username/Development/ccs/temp_sensor_CC1352R1_LAUNCHXL_tirtos7_gcc/Debug/syscfg/ti_utils_build_linker.cmd.genlibs" -l:"ti/devices/cc13x2_cc26x2/driverlib/bin/gcc/driverlib.lib" -lgcc -lc -lm -lnosys makefile:180: recipe for target 'temp_sensor_CC1352R1_LAUNCHXL_tirtos7_gcc.out' failed /Users/username/ti/gcc_arm_none_eabi_9_2_1/bin/../lib/gcc/arm-none-eabi/9.2.1/../../../../arm-none-eabi/bin/ld: /Users/username/ti/gcc_arm_none_eabi_9_2_1/bin/../lib/gcc/arm-none-eabi/9.2.1/liblto_plugin.so: error loading plugin: dlopen(/Users/username/ti/gcc_arm_none_eabi_9_2_1/bin/../lib/gcc/arm-none-eabi/9.2.1/liblto_plugin.so, 0x0002): tried: '/Users/username/ti/gcc_arm_none_eabi_9_2_1/bin/../lib/gcc/arm-none-eabi/9.2.1/liblto_plugin.so' (not a mach-o file), '/System/Volumes/Preboot/Cryptexes/OS/Users/username/ti/gcc_arm_none_eabi_9_2_1/bin/../lib/gcc/arm-none-eabi/9.2.1/liblto_plugin.so' (no such file), '/Users/username/ti/gcc_arm_none_eabi_9_2_1/bin/../lib/gcc/arm-none-eabi/9.2.1/liblto_plugin.so' (not a mach-o file), '/Users/username/ti/gcc_arm_none_eabi_9_2_1/lib/gcc/arm-none-eabi/9.2.1/liblto_plugin.so' (not a mach-o file), '/System/Volumes/Preboot/Cryptexes/OS/Users/username/ti/gcc_arm_none_eabi_9_2_1/lib/gcc/arm-none-eabi/9.2.1/liblto_plugin.so' (no such file), '/Users/username/ti/gcc_arm_none_eabi_9_2_1/lib/gcc/arm-none-eabi/9.2.1/liblto_plugin.so' (not a mach-o file) collect2: error: ld returned 1 exit status
与 TI Clang 一起建造很好