尝试从 Resource Explorer (pwm_leed_driver、GCC 版本)导入一个示例、需要安装 GNU 工具9.2.1。
编译出具有以下错误的炸弹:
生成目标:"pwm_led_driver_lp_MSPM0L1306_nortos_gcc.out"
调用:GNU 链接器
/home/hans/bin/ccs1230/ccs/utils/gcc_arm_none_eabi_9_2_1/bin/arm-none-eabi-gcc-9.2.1 /home/hans/workspace_v10/pwm_led_driver_LP_MSPM0L1306_nortos_gcc/Debug/syscfg /home/hans/bin/ccs1230/ccs/utils/gcc_arm_none_eabi_9_2_1/arm-none-eabi/lib/thumb/v6-m/nofp /gcc/startup_mspm0l1306_gcc.o /home/hans/bin/ccs1230/ccs/utils/mspm0_sdk_1_10_00_05/source/ti/driverlib/lib/gcc/m0p/mspm0l11xx_l13xx/driverlib.a -D__MSPM0L1306_-O2 -ffunaccept-sections -fdata-sections -g -gdwarf-3 -gstrict-dwarf -wall -mlm -mfloat-abi=soft -wl、-map、"pwm_led_driver_lpm0L1306_nortos_gcc.map"-gstrict-mflo_dnots"-mflouds"-mwl_mspm_l_mspirm_sl"-mspwl_m_m_mspots"-ml-mspwl"-ml-m_sl_mspwl"/syscfg/ti_msp_dl_config.o -mspm_m_sl_sl_mspwl"/home/hans/bin/ccs1230/ccs/utils/mspm0_sdk_1_10_00_05/source/ti/driverlib/lib/gcc/m0p/mspm0l11xx_l13xx -mspm_sl_m_reled 驱动程序。
Makefile:141:目标"pwm_leed_driver_lp_MSPM0L1306_nortos_gcc.out"的配方失败
/home/hans/bin/ccs1230/ccs/utils/gcc_arm_none_eabi_9_2_1/bin/../lib/gcc/arm-none-eabi/9.2.1/../../../../arm-none-eabi/bin/ld:/home/hans/bin/ccs1230/ccs/utils/gcc_arm_none_eabi_9_2_1/bin/../lib/gcc/arm-none-eabi/9.2.1/liblto_plugin.so:加载插件时出错:/home/hans/bin/ccs1230/ccs/utils/gcc_arm_none_eabi_9_2_1/bin/../lib/gcc/arm-none-eabi/9.2.1/liblto_plugin.so:文件太短
collect2:错误:LD 返回1个退出状态
gmake[1]:***[PWM_LED_DRIVER_LP_MSPM0L1306_nortos_gcc.out]错误1
gmake:***[全部]错误2
Makefile:137:目标"全部"的食谱失败
****构建完成****
似乎启动了安装程序、因为上述文件是包含目标库文件的简单文本文件。 这不是符号链接的工作方式。
可修复方式:
$ rm -f liblto_plugin.so
$rm -f liblto_plugin.so.0
$ ln -s liblto_plugin.so.0.0.0 libblto_plugin.so
$ ln -s liblto_plugin.so.0.0.0 libblto_plugin.so.0