Trying to import an example from the resource explorer (pwm_led_driver, GCC version) which needed gnu tool 9.2.1 to be installed.
Compilation bombs out with the following error:
Building target: "pwm_led_driver_LP_MSPM0L1306_nortos_gcc.out"
Invoking: GNU Linker
"/home/hans/bin/ccs1230/ccs/utils/gcc_arm_none_eabi_9_2_1/bin/arm-none-eabi-gcc-9.2.1" -D__MSPM0L1306__ -O2 -ffunction-sections -fdata-sections -g -gdwarf-3 -gstrict-dwarf -Wall -mthumb -mfloat-abi=soft -Wl,-Map,"pwm_led_driver_LP_MSPM0L1306_nortos_gcc.map" -static -Wl,--gc-sections -L"/home/hans/bin/ccs1230/ccs/utils/mspm0_sdk_1_10_00_05/source/ti/driverlib/lib/gcc/m0p/mspm0l11xx_l13xx" -L"/home/hans/workspace_v10/pwm_led_driver_LP_MSPM0L1306_nortos_gcc/Debug/syscfg" -L"/home/hans/bin/ccs1230/ccs/utils/gcc_arm_none_eabi_9_2_1/arm-none-eabi/lib/thumb/v6-m/nofp" -march=armv6-m -mthumb -o"pwm_led_driver_LP_MSPM0L1306_nortos_gcc.out" "./pwm_led_driver.o" "./syscfg/ti_msp_dl_config.o" "./gcc/startup_mspm0l1306_gcc.o" -Wl,-T"../mspm0l1306.lds" "/home/hans/bin/ccs1230/ccs/utils/mspm0_sdk_1_10_00_05/source/ti/driverlib/lib/gcc/m0p/mspm0l11xx_l13xx/driverlib.a" -lgcc -lc -lm -lnosys
makefile:141: recipe for target 'pwm_led_driver_LP_MSPM0L1306_nortos_gcc.out' failed
/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: error loading plugin: /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: file too short
collect2: error: ld returned 1 exit status
gmake[1]: *** [pwm_led_driver_LP_MSPM0L1306_nortos_gcc.out] Error 1
gmake: *** [all] Error 2
makefile:137: recipe for target 'all' failed
**** Build Finished ****
Seems the installer is borked as the mentioned files are simple text files containing the target library file. That is not how a symbolic links work.
Fixable by:
$ rm -f liblto_plugin.so
$rm -f liblto_plugin.so.0
$ ln -s liblto_plugin.so.0.0.0 liblto_plugin.so
$ ln -s liblto_plugin.so.0.0.0 liblto_plugin.so.0