CODECOMPOSER: Linker issue undefined references nostdlib

Part Number: CODECOMPOSER
Other Parts Discussed in Thread: MSPM0C1104

My code calls sqrt from math.h and abs from stdlib. I had to specify -fno-math-errno so that it fits into the 1KiB SRAM of my MSPM0C1104. I also tried using --specs=nano.specs, but I do not need error codes and that still eats 0x60B and ultimately runs into the same issue.

Moving -lc -lgcc -lm to before my .o files in the linker executable only causes other issues to appear. This also does not seem possible in the project settings GUI.

I can find all the libraries on the paths but errno is still expected. There are also other undefined references to __aeabi_* functions.

[0]**** Build of configuration 'Debug' for project 'myproj' ****

[1]"C:\\TI\\ccs2041\\ccs\\utils\\bin\\gmake" -k -j 16 all -O

[2]Building file: "../1104_20pin.syscfg"
[3]Invoking: SysConfig
[4]"C:/TI/sysconfig_1.25.0/sysconfig_cli.bat" -s "C:/TI/mspm0_sdk_2_09_00_01/.metadata/product.json" -d "MSPM0C110X" -p "VSSOP-20(DGS20)" -r "Default" --script "C:/Projects/LinkerIssue/1104_20pin.syscfg" --context "system" -o "." --compiler gcc
[5]Running script...
[6]Validating...
[7]warning: /ti/project_config/ProjectConfig: All four File Generation options must be enabled in order to guarantee Device Migration support. If an option is disabled, the user must manually configure that setting on its own file.
[8]warning: ADC12(/ti/driverlib/ADC12) hwNumerator: This selection has no effect unless Averaging Mode is enabled in any of the ADCMEMs
[9]warning: ADC12(/ti/driverlib/ADC12) hwDenominator: This selection has no effect unless Averaging Mode is enabled in any of the ADCMEMs
[10]warning: ADC12(/ti/driverlib/ADC12) enableHWAverage: This selection has no effect unless Averaging Mode is enabled in any of the ADCMEMs
[11]info: ADC12(/ti/driverlib/ADC12) resolution: Note: for MSPM00C, please refer to the device datasheet to review the reduction on linearity when using 12-bit resolution
[12]info: ADC12(/ti/driverlib/ADC12) totalConversionRate: When Power Down Mode is set to Auto, ADC wakeup time may need to be considered in each sample window. Refer to the device specific data sheet for specifications on the ADC Wakeup Time.
[13]0 error(s), 4 warning(s)
[14]Generating Code (1104_20pin.syscfg)...
[15]Writing C:\Projects\LinkerIssue\Debug\device.opt...
[16]Writing C:\Projects\LinkerIssue\Debug\device.lds.genlibs...
[17]Writing C:\Projects\LinkerIssue\Debug\ti_msp_dl_config.c...
[18]Writing C:\Projects\LinkerIssue\Debug\ti_msp_dl_config.h...
[19]Writing C:\Projects\LinkerIssue\Debug\Event.dot...
[20]Finished building: "../1104_20pin.syscfg"

[21]Building file: "C:/TI/mspm0_sdk_2_09_00_01/source/ti/devices/msp/m0p/startup_system_files/gcc/startup_mspm0c110x_gcc.c"
[22]Invoking: GNU Compiler
[23]"C:/TI/gcc_arm_none_eabi_9_2_1/bin/arm-none-eabi-gcc-9.2.1.exe" -c @"device.opt"  -mcpu=cortex-m0plus -march=armv6-m -mthumb -mfloat-abi=soft -I"C:/Projects/LinkerIssue" -I"C:/Projects/LinkerIssue/Debug" -I"C:/TI/mspm0_sdk_2_09_00_01/source/third_party/CMSIS/Core/Include" -I"C:/TI/mspm0_sdk_2_09_00_01/source" -I"C:/TI/gcc_arm_none_eabi_9_2_1/arm-none-eabi/include/newlib-nano" -I"C:/TI/gcc_arm_none_eabi_9_2_1/arm-none-eabi/include" -O2 -ffunction-sections -fdata-sections -g -gdwarf-3 -gstrict-dwarf -Wall -v -fno-math-errno -MMD -MP -MF"startup_mspm0c110x_gcc.d_raw" -MT"startup_mspm0c110x_gcc.o" -std=c99 @"./device.opt"  -o"startup_mspm0c110x_gcc.o" "C:/TI/mspm0_sdk_2_09_00_01/source/ti/devices/msp/m0p/startup_system_files/gcc/startup_mspm0c110x_gcc.c"
[24]Using built-in specs.
[25]COLLECT_GCC=C:/TI/gcc_arm_none_eabi_9_2_1/bin/arm-none-eabi-gcc-9.2.1.exe
[26]Target: arm-none-eabi
[27]Configured with: /mnt/workspace/workspace/GCC-9-pipeline/jenkins-GCC-9-pipeline-100_20191030_1572397542/src/gcc/configure --build=x86_64-linux-gnu --host=i686-w64-mingw32 --target=arm-none-eabi --prefix=/mnt/workspace/workspace/GCC-9-pipeline/jenkins-GCC-9-pipeline-100_20191030_1572397542/install-mingw --libexecdir=/mnt/workspace/workspace/GCC-9-pipeline/jenkins-GCC-9-pipeline-100_20191030_1572397542/install-mingw/lib --infodir=/mnt/workspace/workspace/GCC-9-pipeline/jenkins-GCC-9-pipeline-100_20191030_1572397542/install-mingw/share/doc/gcc-arm-none-eabi/info --mandir=/mnt/workspace/workspace/GCC-9-pipeline/jenkins-GCC-9-pipeline-100_20191030_1572397542/install-mingw/share/doc/gcc-arm-none-eabi/man --htmldir=/mnt/workspace/workspace/GCC-9-pipeline/jenkins-GCC-9-pipeline-100_20191030_1572397542/install-mingw/share/doc/gcc-arm-none-eabi/html --pdfdir=/mnt/workspace/workspace/GCC-9-pipeline/jenkins-GCC-9-pipeline-100_20191030_1572397542/install-mingw/share/doc/gcc-arm-none-eabi/pdf --enable-languages=c,c++ --enable-mingw-wildcard --disable-decimal-float --disable-libffi --disable-libgomp --disable-libmudflap --disable-libquadmath --disable-libssp --disable-libstdcxx-pch --disable-nls --disable-shared --disable-threads --disable-tls --with-gnu-as --with-gnu-ld --with-headers=yes --with-newlib --with-python-dir=share/gcc-arm-none-eabi --with-sysroot=/mnt/workspace/workspace/GCC-9-pipeline/jenkins-GCC-9-pipeline-100_20191030_1572397542/install-mingw/arm-none-eabi --with-libiconv-prefix=/mnt/workspace/workspace/GCC-9-pipeline/jenkins-GCC-9-pipeline-100_20191030_1572397542/build-mingw/host-libs/usr --with-gmp=/mnt/workspace/workspace/GCC-9-pipeline/jenkins-GCC-9-pipeline-100_20191030_1572397542/build-mingw/host-libs/usr --with-mpfr=/mnt/workspace/workspace/GCC-9-pipeline/jenkins-GCC-9-pipeline-100_20191030_1572397542/build-mingw/host-libs/usr --with-mpc=/mnt/workspace/workspace/GCC-9-pipeline/jenkins-GCC-9-pipeline-100_20191030_1572397542/build-mingw/host-libs/usr --with-isl=/mnt/workspace/workspace/GCC-9-pipeline/jenkins-GCC-9-pipeline-100_20191030_1572397542/build-mingw/host-libs/usr --with-libelf=/mnt/workspace/workspace/GCC-9-pipeline/jenkins-GCC-9-pipeline-100_20191030_1572397542/build-mingw/host-libs/usr --with-host-libstdcxx='-static-libgcc -Wl,-Bstatic,-lstdc++,-Bdynamic -lm' --with-pkgversion='GNU Tools for Arm Embedded Processors 9-2019-q4-major' --with-multilib-list=rmprofile
[28]Thread model: single
[29]gcc version 9.2.1 20191025 (release) [ARM/arm-9-branch revision 277599] (GNU Tools for Arm Embedded Processors 9-2019-q4-major)
[30]COLLECT_GCC_OPTIONS='-c' '-D' '__MSPM0C1104__' '-D' '__USE_SYSCONFIG__' '-mcpu=cortex-m0plus'  '-mthumb' '-mfloat-abi=soft' '-I' 'C:/Projects/LinkerIssue' '-I' 'C:/Projects/LinkerIssue/Debug' '-I' 'C:/TI/mspm0_sdk_2_09_00_01/source/third_party/CMSIS/Core/Include' '-I' 'C:/TI/mspm0_sdk_2_09_00_01/source' '-I' 'C:/TI/gcc_arm_none_eabi_9_2_1/arm-none-eabi/include/newlib-nano' '-I' 'C:/TI/gcc_arm_none_eabi_9_2_1/arm-none-eabi/include' '-O2' '-ffunction-sections' '-fdata-sections' '-g' '-gdwarf-3' '-gstrict-dwarf' '-Wall' '-v' '-fno-math-errno' '-MMD' '-MP' '-MF' 'startup_mspm0c110x_gcc.d_raw' '-MT' 'startup_mspm0c110x_gcc.o' '-std=c99' '-D' '__MSPM0C1104__' '-D' '__USE_SYSCONFIG__' '-o' 'startup_mspm0c110x_gcc.o' '-march=armv6-m'
[31] c:/ti/gcc_arm_none_eabi_9_2_1/bin/../lib/gcc/arm-none-eabi/9.2.1/cc1.exe -quiet -v @C:\Users\RAE41~1.HTT\AppData\Local\Temp\1\ccLBZ2N5 -imultilib thumb/v6-m/nofp -iprefix c:\ti\gcc_arm_none_eabi_9_2_1\bin\../lib/gcc/arm-none-eabi/9.2.1/ -isysroot c:\ti\gcc_arm_none_eabi_9_2_1\bin\../arm-none-eabi -MMD startup_mspm0c110x_gcc.d -MF startup_mspm0c110x_gcc.d_raw -MP -MT startup_mspm0c110x_gcc.o -D__USES_INITFINI__ -D __MSPM0C1104__ -D __USE_SYSCONFIG__ -D __MSPM0C1104__ -D __USE_SYSCONFIG__ C:/TI/mspm0_sdk_2_09_00_01/source/ti/devices/msp/m0p/startup_system_files/gcc/startup_mspm0c110x_gcc.c -quiet -dumpbase startup_mspm0c110x_gcc.c -mcpu=cortex-m0plus -mthumb -mfloat-abi=soft -march=armv6-m -auxbase-strip startup_mspm0c110x_gcc.o -g -gdwarf-3 -gstrict-dwarf -O2 -Wall -std=c99 -version -ffunction-sections -fdata-sections -fno-math-errno -o C:\Users\RAE41~1.HTT\AppData\Local\Temp\1\ccWpt5e1.s
[32]GNU C99 (GNU Tools for Arm Embedded Processors 9-2019-q4-major) version 9.2.1 20191025 (release) [ARM/arm-9-branch revision 277599] (arm-none-eabi)
[33]	compiled by GNU C version 5.3.1 20160211, GMP version 6.1.0, MPFR version 3.1.4, MPC version 1.0.3, isl version isl-0.18-GMP

[34]GGC heuristics: --param ggc-min-expand=100 --param ggc-min-heapsize=131072
[35]ignoring duplicate directory "c:/ti/gcc_arm_none_eabi_9_2_1/lib/gcc/../../lib/gcc/arm-none-eabi/9.2.1/include"
[36]ignoring nonexistent directory "c:\ti\gcc_arm_none_eabi_9_2_1\bin\../arm-none-eabi/mnt/workspace/workspace/GCC-9-pipeline/jenkins-GCC-9-pipeline-100_20191030_1572397542/install-mingw/lib/gcc/arm-none-eabi/9.2.1/../../../../include"
[37]ignoring duplicate directory "c:/ti/gcc_arm_none_eabi_9_2_1/lib/gcc/../../lib/gcc/arm-none-eabi/9.2.1/include-fixed"
[38]ignoring duplicate directory "c:/ti/gcc_arm_none_eabi_9_2_1/lib/gcc/../../lib/gcc/arm-none-eabi/9.2.1/../../../../arm-none-eabi/include"
[39]ignoring nonexistent directory "c:\ti\gcc_arm_none_eabi_9_2_1\bin\../arm-none-eabi/usr/include"
[40]ignoring duplicate directory "C:/TI/gcc_arm_none_eabi_9_2_1/arm-none-eabi/include"
[41]  as it is a non-system directory that duplicates a system directory
[42]#include "..." search starts here:
[43]#include <...> search starts here:
[44] C:/Projects/LinkerIssue
[45] C:/Projects/LinkerIssue/Debug
[46] C:/TI/mspm0_sdk_2_09_00_01/source/third_party/CMSIS/Core/Include
[47] C:/TI/mspm0_sdk_2_09_00_01/source
[48] C:/TI/gcc_arm_none_eabi_9_2_1/arm-none-eabi/include/newlib-nano
[49] c:\ti\gcc_arm_none_eabi_9_2_1\bin\../lib/gcc/arm-none-eabi/9.2.1/include
[50] c:\ti\gcc_arm_none_eabi_9_2_1\bin\../lib/gcc/arm-none-eabi/9.2.1/include-fixed
[51] c:\ti\gcc_arm_none_eabi_9_2_1\bin\../lib/gcc/arm-none-eabi/9.2.1/../../../../arm-none-eabi/include
[52]End of search list.
[53]GNU C99 (GNU Tools for Arm Embedded Processors 9-2019-q4-major) version 9.2.1 20191025 (release) [ARM/arm-9-branch revision 277599] (arm-none-eabi)
[54]	compiled by GNU C version 5.3.1 20160211, GMP version 6.1.0, MPFR version 3.1.4, MPC version 1.0.3, isl version isl-0.18-GMP

[55]GGC heuristics: --param ggc-min-expand=100 --param ggc-min-heapsize=131072
[56]Compiler executable checksum: d48d906eaae8455a6540c74ba2cbe16a
[57]COLLECT_GCC_OPTIONS='-c' '-D' '__MSPM0C1104__' '-D' '__USE_SYSCONFIG__' '-mcpu=cortex-m0plus'  '-mthumb' '-mfloat-abi=soft' '-I' 'C:/Projects/LinkerIssue' '-I' 'C:/Projects/LinkerIssue/Debug' '-I' 'C:/TI/mspm0_sdk_2_09_00_01/source/third_party/CMSIS/Core/Include' '-I' 'C:/TI/mspm0_sdk_2_09_00_01/source' '-I' 'C:/TI/gcc_arm_none_eabi_9_2_1/arm-none-eabi/include/newlib-nano' '-I' 'C:/TI/gcc_arm_none_eabi_9_2_1/arm-none-eabi/include' '-O2' '-ffunction-sections' '-fdata-sections' '-g' '-gdwarf-3' '-gstrict-dwarf' '-Wall' '-v' '-fno-math-errno' '-MMD' '-MP' '-MF' 'startup_mspm0c110x_gcc.d_raw' '-MT' 'startup_mspm0c110x_gcc.o' '-std=c99' '-D' '__MSPM0C1104__' '-D' '__USE_SYSCONFIG__' '-o' 'startup_mspm0c110x_gcc.o' '-march=armv6-m'
[58] c:/ti/gcc_arm_none_eabi_9_2_1/bin/../lib/gcc/arm-none-eabi/9.2.1/../../../../arm-none-eabi/bin/as.exe -v -I C:/Projects/LinkerIssue -I C:/Projects/LinkerIssue/Debug -I C:/TI/mspm0_sdk_2_09_00_01/source/third_party/CMSIS/Core/Include -I C:/TI/mspm0_sdk_2_09_00_01/source -I C:/TI/gcc_arm_none_eabi_9_2_1/arm-none-eabi/include/newlib-nano -I C:/TI/gcc_arm_none_eabi_9_2_1/arm-none-eabi/include -march=armv6-m -mfloat-abi=soft -meabi=5 -o startup_mspm0c110x_gcc.o C:\Users\RAE41~1.HTT\AppData\Local\Temp\1\ccWpt5e1.s
[59]GNU assembler version 2.33.1 (arm-none-eabi) using BFD version (GNU Tools for Arm Embedded Processors 9-2019-q4-major) 2.33.1.20191025
[60]COMPILER_PATH=c:/ti/gcc_arm_none_eabi_9_2_1/bin/../lib/gcc/arm-none-eabi/9.2.1/;c:/ti/gcc_arm_none_eabi_9_2_1/bin/../lib/gcc/;c:/ti/gcc_arm_none_eabi_9_2_1/bin/../lib/gcc/arm-none-eabi/9.2.1/../../../../arm-none-eabi/bin/
[61]LIBRARY_PATH=c:/ti/gcc_arm_none_eabi_9_2_1/bin/../lib/gcc/arm-none-eabi/9.2.1/thumb/v6-m/nofp/;c:/ti/gcc_arm_none_eabi_9_2_1/bin/../lib/gcc/arm-none-eabi/9.2.1/../../../../arm-none-eabi/lib/thumb/v6-m/nofp/;c:/ti/gcc_arm_none_eabi_9_2_1/bin/../arm-none-eabi/lib/thumb/v6-m/nofp/;c:/ti/gcc_arm_none_eabi_9_2_1/bin/../lib/gcc/arm-none-eabi/9.2.1/;c:/ti/gcc_arm_none_eabi_9_2_1/bin/../lib/gcc/;c:/ti/gcc_arm_none_eabi_9_2_1/bin/../lib/gcc/arm-none-eabi/9.2.1/../../../../arm-none-eabi/lib/;c:/ti/gcc_arm_none_eabi_9_2_1/bin/../arm-none-eabi/lib/
[62]COLLECT_GCC_OPTIONS='-c' '-D' '__MSPM0C1104__' '-D' '__USE_SYSCONFIG__' '-mcpu=cortex-m0plus'  '-mthumb' '-mfloat-abi=soft' '-I' 'C:/Projects/LinkerIssue' '-I' 'C:/Projects/LinkerIssue/Debug' '-I' 'C:/TI/mspm0_sdk_2_09_00_01/source/third_party/CMSIS/Core/Include' '-I' 'C:/TI/mspm0_sdk_2_09_00_01/source' '-I' 'C:/TI/gcc_arm_none_eabi_9_2_1/arm-none-eabi/include/newlib-nano' '-I' 'C:/TI/gcc_arm_none_eabi_9_2_1/arm-none-eabi/include' '-O2' '-ffunction-sections' '-fdata-sections' '-g' '-gdwarf-3' '-gstrict-dwarf' '-Wall' '-v' '-fno-math-errno' '-MMD' '-MP' '-MF' 'startup_mspm0c110x_gcc.d_raw' '-MT' 'startup_mspm0c110x_gcc.o' '-std=c99' '-D' '__MSPM0C1104__' '-D' '__USE_SYSCONFIG__' '-o' 'startup_mspm0c110x_gcc.o' '-march=armv6-m'
[63]Finished building: "C:/TI/mspm0_sdk_2_09_00_01/source/ti/devices/msp/m0p/startup_system_files/gcc/startup_mspm0c110x_gcc.c"

[64]Building file: "../main.c"
[65]Invoking: GNU Compiler
[66]"C:/TI/gcc_arm_none_eabi_9_2_1/bin/arm-none-eabi-gcc-9.2.1.exe" -c @"device.opt"  -mcpu=cortex-m0plus -march=armv6-m -mthumb -mfloat-abi=soft -I"C:/Projects/LinkerIssue" -I"C:/Projects/LinkerIssue/Debug" -I"C:/TI/mspm0_sdk_2_09_00_01/source/third_party/CMSIS/Core/Include" -I"C:/TI/mspm0_sdk_2_09_00_01/source" -I"C:/TI/gcc_arm_none_eabi_9_2_1/arm-none-eabi/include/newlib-nano" -I"C:/TI/gcc_arm_none_eabi_9_2_1/arm-none-eabi/include" -O2 -ffunction-sections -fdata-sections -g -gdwarf-3 -gstrict-dwarf -Wall -v -fno-math-errno -MMD -MP -MF"main.d_raw" -MT"main.o" -std=c99 @"./device.opt"  -o"main.o" "../main.c"
[67]Using built-in specs.
[68]COLLECT_GCC=C:/TI/gcc_arm_none_eabi_9_2_1/bin/arm-none-eabi-gcc-9.2.1.exe
[69]Target: arm-none-eabi
[70]Configured with: /mnt/workspace/workspace/GCC-9-pipeline/jenkins-GCC-9-pipeline-100_20191030_1572397542/src/gcc/configure --build=x86_64-linux-gnu --host=i686-w64-mingw32 --target=arm-none-eabi --prefix=/mnt/workspace/workspace/GCC-9-pipeline/jenkins-GCC-9-pipeline-100_20191030_1572397542/install-mingw --libexecdir=/mnt/workspace/workspace/GCC-9-pipeline/jenkins-GCC-9-pipeline-100_20191030_1572397542/install-mingw/lib --infodir=/mnt/workspace/workspace/GCC-9-pipeline/jenkins-GCC-9-pipeline-100_20191030_1572397542/install-mingw/share/doc/gcc-arm-none-eabi/info --mandir=/mnt/workspace/workspace/GCC-9-pipeline/jenkins-GCC-9-pipeline-100_20191030_1572397542/install-mingw/share/doc/gcc-arm-none-eabi/man --htmldir=/mnt/workspace/workspace/GCC-9-pipeline/jenkins-GCC-9-pipeline-100_20191030_1572397542/install-mingw/share/doc/gcc-arm-none-eabi/html --pdfdir=/mnt/workspace/workspace/GCC-9-pipeline/jenkins-GCC-9-pipeline-100_20191030_1572397542/install-mingw/share/doc/gcc-arm-none-eabi/pdf --enable-languages=c,c++ --enable-mingw-wildcard --disable-decimal-float --disable-libffi --disable-libgomp --disable-libmudflap --disable-libquadmath --disable-libssp --disable-libstdcxx-pch --disable-nls --disable-shared --disable-threads --disable-tls --with-gnu-as --with-gnu-ld --with-headers=yes --with-newlib --with-python-dir=share/gcc-arm-none-eabi --with-sysroot=/mnt/workspace/workspace/GCC-9-pipeline/jenkins-GCC-9-pipeline-100_20191030_1572397542/install-mingw/arm-none-eabi --with-libiconv-prefix=/mnt/workspace/workspace/GCC-9-pipeline/jenkins-GCC-9-pipeline-100_20191030_1572397542/build-mingw/host-libs/usr --with-gmp=/mnt/workspace/workspace/GCC-9-pipeline/jenkins-GCC-9-pipeline-100_20191030_1572397542/build-mingw/host-libs/usr --with-mpfr=/mnt/workspace/workspace/GCC-9-pipeline/jenkins-GCC-9-pipeline-100_20191030_1572397542/build-mingw/host-libs/usr --with-mpc=/mnt/workspace/workspace/GCC-9-pipeline/jenkins-GCC-9-pipeline-100_20191030_1572397542/build-mingw/host-libs/usr --with-isl=/mnt/workspace/workspace/GCC-9-pipeline/jenkins-GCC-9-pipeline-100_20191030_1572397542/build-mingw/host-libs/usr --with-libelf=/mnt/workspace/workspace/GCC-9-pipeline/jenkins-GCC-9-pipeline-100_20191030_1572397542/build-mingw/host-libs/usr --with-host-libstdcxx='-static-libgcc -Wl,-Bstatic,-lstdc++,-Bdynamic -lm' --with-pkgversion='GNU Tools for Arm Embedded Processors 9-2019-q4-major' --with-multilib-list=rmprofile
[71]Thread model: single
[72]gcc version 9.2.1 20191025 (release) [ARM/arm-9-branch revision 277599] (GNU Tools for Arm Embedded Processors 9-2019-q4-major)
[73]COLLECT_GCC_OPTIONS='-c' '-D' '__MSPM0C1104__' '-D' '__USE_SYSCONFIG__' '-mcpu=cortex-m0plus'  '-mthumb' '-mfloat-abi=soft' '-I' 'C:/Projects/LinkerIssue' '-I' 'C:/Projects/LinkerIssue/Debug' '-I' 'C:/TI/mspm0_sdk_2_09_00_01/source/third_party/CMSIS/Core/Include' '-I' 'C:/TI/mspm0_sdk_2_09_00_01/source' '-I' 'C:/TI/gcc_arm_none_eabi_9_2_1/arm-none-eabi/include/newlib-nano' '-I' 'C:/TI/gcc_arm_none_eabi_9_2_1/arm-none-eabi/include' '-O2' '-ffunction-sections' '-fdata-sections' '-g' '-gdwarf-3' '-gstrict-dwarf' '-Wall' '-v' '-fno-math-errno' '-MMD' '-MP' '-MF' 'main.d_raw' '-MT' 'main.o' '-std=c99' '-D' '__MSPM0C1104__' '-D' '__USE_SYSCONFIG__' '-o' 'main.o' '-march=armv6-m'
[74] c:/ti/gcc_arm_none_eabi_9_2_1/bin/../lib/gcc/arm-none-eabi/9.2.1/cc1.exe -quiet -v @C:\Users\RAE41~1.HTT\AppData\Local\Temp\1\cc3e2804 -imultilib thumb/v6-m/nofp -iprefix c:\ti\gcc_arm_none_eabi_9_2_1\bin\../lib/gcc/arm-none-eabi/9.2.1/ -isysroot c:\ti\gcc_arm_none_eabi_9_2_1\bin\../arm-none-eabi -MMD main.d -MF main.d_raw -MP -MT main.o -D__USES_INITFINI__ -D __MSPM0C1104__ -D __USE_SYSCONFIG__ -D __MSPM0C1104__ -D __USE_SYSCONFIG__ ../main.c -quiet -dumpbase main.c -mcpu=cortex-m0plus -mthumb -mfloat-abi=soft -march=armv6-m -auxbase-strip main.o -g -gdwarf-3 -gstrict-dwarf -O2 -Wall -std=c99 -version -ffunction-sections -fdata-sections -fno-math-errno -o C:\Users\RAE41~1.HTT\AppData\Local\Temp\1\ccaZ7Jo0.s
[75]GNU C99 (GNU Tools for Arm Embedded Processors 9-2019-q4-major) version 9.2.1 20191025 (release) [ARM/arm-9-branch revision 277599] (arm-none-eabi)
[76]	compiled by GNU C version 5.3.1 20160211, GMP version 6.1.0, MPFR version 3.1.4, MPC version 1.0.3, isl version isl-0.18-GMP

[77]GGC heuristics: --param ggc-min-expand=100 --param ggc-min-heapsize=131072
[78]ignoring duplicate directory "c:/ti/gcc_arm_none_eabi_9_2_1/lib/gcc/../../lib/gcc/arm-none-eabi/9.2.1/include"
[79]ignoring nonexistent directory "c:\ti\gcc_arm_none_eabi_9_2_1\bin\../arm-none-eabi/mnt/workspace/workspace/GCC-9-pipeline/jenkins-GCC-9-pipeline-100_20191030_1572397542/install-mingw/lib/gcc/arm-none-eabi/9.2.1/../../../../include"
[80]ignoring duplicate directory "c:/ti/gcc_arm_none_eabi_9_2_1/lib/gcc/../../lib/gcc/arm-none-eabi/9.2.1/include-fixed"
[81]ignoring duplicate directory "c:/ti/gcc_arm_none_eabi_9_2_1/lib/gcc/../../lib/gcc/arm-none-eabi/9.2.1/../../../../arm-none-eabi/include"
[82]ignoring nonexistent directory "c:\ti\gcc_arm_none_eabi_9_2_1\bin\../arm-none-eabi/usr/include"
[83]ignoring duplicate directory "C:/TI/gcc_arm_none_eabi_9_2_1/arm-none-eabi/include"
[84]  as it is a non-system directory that duplicates a system directory
[85]#include "..." search starts here:
[86]#include <...> search starts here:
[87] C:/Projects/LinkerIssue
[88] C:/Projects/LinkerIssue/Debug
[89] C:/TI/mspm0_sdk_2_09_00_01/source/third_party/CMSIS/Core/Include
[90] C:/TI/mspm0_sdk_2_09_00_01/source
[91] C:/TI/gcc_arm_none_eabi_9_2_1/arm-none-eabi/include/newlib-nano
[92] c:\ti\gcc_arm_none_eabi_9_2_1\bin\../lib/gcc/arm-none-eabi/9.2.1/include
[93] c:\ti\gcc_arm_none_eabi_9_2_1\bin\../lib/gcc/arm-none-eabi/9.2.1/include-fixed
[94] c:\ti\gcc_arm_none_eabi_9_2_1\bin\../lib/gcc/arm-none-eabi/9.2.1/../../../../arm-none-eabi/include
[95]End of search list.
[96]GNU C99 (GNU Tools for Arm Embedded Processors 9-2019-q4-major) version 9.2.1 20191025 (release) [ARM/arm-9-branch revision 277599] (arm-none-eabi)
[97]	compiled by GNU C version 5.3.1 20160211, GMP version 6.1.0, MPFR version 3.1.4, MPC version 1.0.3, isl version isl-0.18-GMP

[98]GGC heuristics: --param ggc-min-expand=100 --param ggc-min-heapsize=131072
[99]Compiler executable checksum: d48d906eaae8455a6540c74ba2cbe16a
[100]COLLECT_GCC_OPTIONS='-c' '-D' '__MSPM0C1104__' '-D' '__USE_SYSCONFIG__' '-mcpu=cortex-m0plus'  '-mthumb' '-mfloat-abi=soft' '-I' 'C:/Projects/LinkerIssue' '-I' 'C:/Projects/LinkerIssue/Debug' '-I' 'C:/TI/mspm0_sdk_2_09_00_01/source/third_party/CMSIS/Core/Include' '-I' 'C:/TI/mspm0_sdk_2_09_00_01/source' '-I' 'C:/TI/gcc_arm_none_eabi_9_2_1/arm-none-eabi/include/newlib-nano' '-I' 'C:/TI/gcc_arm_none_eabi_9_2_1/arm-none-eabi/include' '-O2' '-ffunction-sections' '-fdata-sections' '-g' '-gdwarf-3' '-gstrict-dwarf' '-Wall' '-v' '-fno-math-errno' '-MMD' '-MP' '-MF' 'main.d_raw' '-MT' 'main.o' '-std=c99' '-D' '__MSPM0C1104__' '-D' '__USE_SYSCONFIG__' '-o' 'main.o' '-march=armv6-m'
[101] c:/ti/gcc_arm_none_eabi_9_2_1/bin/../lib/gcc/arm-none-eabi/9.2.1/../../../../arm-none-eabi/bin/as.exe -v -I C:/Projects/LinkerIssue -I C:/Projects/LinkerIssue/Debug -I C:/TI/mspm0_sdk_2_09_00_01/source/third_party/CMSIS/Core/Include -I C:/TI/mspm0_sdk_2_09_00_01/source -I C:/TI/gcc_arm_none_eabi_9_2_1/arm-none-eabi/include/newlib-nano -I C:/TI/gcc_arm_none_eabi_9_2_1/arm-none-eabi/include -march=armv6-m -mfloat-abi=soft -meabi=5 -o main.o C:\Users\RAE41~1.HTT\AppData\Local\Temp\1\ccaZ7Jo0.s
[102]GNU assembler version 2.33.1 (arm-none-eabi) using BFD version (GNU Tools for Arm Embedded Processors 9-2019-q4-major) 2.33.1.20191025
[103]COMPILER_PATH=c:/ti/gcc_arm_none_eabi_9_2_1/bin/../lib/gcc/arm-none-eabi/9.2.1/;c:/ti/gcc_arm_none_eabi_9_2_1/bin/../lib/gcc/;c:/ti/gcc_arm_none_eabi_9_2_1/bin/../lib/gcc/arm-none-eabi/9.2.1/../../../../arm-none-eabi/bin/
[104]LIBRARY_PATH=c:/ti/gcc_arm_none_eabi_9_2_1/bin/../lib/gcc/arm-none-eabi/9.2.1/thumb/v6-m/nofp/;c:/ti/gcc_arm_none_eabi_9_2_1/bin/../lib/gcc/arm-none-eabi/9.2.1/../../../../arm-none-eabi/lib/thumb/v6-m/nofp/;c:/ti/gcc_arm_none_eabi_9_2_1/bin/../arm-none-eabi/lib/thumb/v6-m/nofp/;c:/ti/gcc_arm_none_eabi_9_2_1/bin/../lib/gcc/arm-none-eabi/9.2.1/;c:/ti/gcc_arm_none_eabi_9_2_1/bin/../lib/gcc/;c:/ti/gcc_arm_none_eabi_9_2_1/bin/../lib/gcc/arm-none-eabi/9.2.1/../../../../arm-none-eabi/lib/;c:/ti/gcc_arm_none_eabi_9_2_1/bin/../arm-none-eabi/lib/
[105]COLLECT_GCC_OPTIONS='-c' '-D' '__MSPM0C1104__' '-D' '__USE_SYSCONFIG__' '-mcpu=cortex-m0plus'  '-mthumb' '-mfloat-abi=soft' '-I' 'C:/Projects/LinkerIssue' '-I' 'C:/Projects/LinkerIssue/Debug' '-I' 'C:/TI/mspm0_sdk_2_09_00_01/source/third_party/CMSIS/Core/Include' '-I' 'C:/TI/mspm0_sdk_2_09_00_01/source' '-I' 'C:/TI/gcc_arm_none_eabi_9_2_1/arm-none-eabi/include/newlib-nano' '-I' 'C:/TI/gcc_arm_none_eabi_9_2_1/arm-none-eabi/include' '-O2' '-ffunction-sections' '-fdata-sections' '-g' '-gdwarf-3' '-gstrict-dwarf' '-Wall' '-v' '-fno-math-errno' '-MMD' '-MP' '-MF' 'main.d_raw' '-MT' 'main.o' '-std=c99' '-D' '__MSPM0C1104__' '-D' '__USE_SYSCONFIG__' '-o' 'main.o' '-march=armv6-m'
[106]Finished building: "../main.c"

[107]Building file: "ti_msp_dl_config.c"
[108]Invoking: GNU Compiler
[109]"C:/TI/gcc_arm_none_eabi_9_2_1/bin/arm-none-eabi-gcc-9.2.1.exe" -c @"device.opt"  -mcpu=cortex-m0plus -march=armv6-m -mthumb -mfloat-abi=soft -I"C:/Projects/LinkerIssue" -I"C:/Projects/LinkerIssue/Debug" -I"C:/TI/mspm0_sdk_2_09_00_01/source/third_party/CMSIS/Core/Include" -I"C:/TI/mspm0_sdk_2_09_00_01/source" -I"C:/TI/gcc_arm_none_eabi_9_2_1/arm-none-eabi/include/newlib-nano" -I"C:/TI/gcc_arm_none_eabi_9_2_1/arm-none-eabi/include" -O2 -ffunction-sections -fdata-sections -g -gdwarf-3 -gstrict-dwarf -Wall -v -fno-math-errno -MMD -MP -MF"ti_msp_dl_config.d_raw" -MT"ti_msp_dl_config.o" -std=c99 @"./device.opt"  -o"ti_msp_dl_config.o" "ti_msp_dl_config.c"
[110]Using built-in specs.
[111]COLLECT_GCC=C:/TI/gcc_arm_none_eabi_9_2_1/bin/arm-none-eabi-gcc-9.2.1.exe
[112]Target: arm-none-eabi
[113]Configured with: /mnt/workspace/workspace/GCC-9-pipeline/jenkins-GCC-9-pipeline-100_20191030_1572397542/src/gcc/configure --build=x86_64-linux-gnu --host=i686-w64-mingw32 --target=arm-none-eabi --prefix=/mnt/workspace/workspace/GCC-9-pipeline/jenkins-GCC-9-pipeline-100_20191030_1572397542/install-mingw --libexecdir=/mnt/workspace/workspace/GCC-9-pipeline/jenkins-GCC-9-pipeline-100_20191030_1572397542/install-mingw/lib --infodir=/mnt/workspace/workspace/GCC-9-pipeline/jenkins-GCC-9-pipeline-100_20191030_1572397542/install-mingw/share/doc/gcc-arm-none-eabi/info --mandir=/mnt/workspace/workspace/GCC-9-pipeline/jenkins-GCC-9-pipeline-100_20191030_1572397542/install-mingw/share/doc/gcc-arm-none-eabi/man --htmldir=/mnt/workspace/workspace/GCC-9-pipeline/jenkins-GCC-9-pipeline-100_20191030_1572397542/install-mingw/share/doc/gcc-arm-none-eabi/html --pdfdir=/mnt/workspace/workspace/GCC-9-pipeline/jenkins-GCC-9-pipeline-100_20191030_1572397542/install-mingw/share/doc/gcc-arm-none-eabi/pdf --enable-languages=c,c++ --enable-mingw-wildcard --disable-decimal-float --disable-libffi --disable-libgomp --disable-libmudflap --disable-libquadmath --disable-libssp --disable-libstdcxx-pch --disable-nls --disable-shared --disable-threads --disable-tls --with-gnu-as --with-gnu-ld --with-headers=yes --with-newlib --with-python-dir=share/gcc-arm-none-eabi --with-sysroot=/mnt/workspace/workspace/GCC-9-pipeline/jenkins-GCC-9-pipeline-100_20191030_1572397542/install-mingw/arm-none-eabi --with-libiconv-prefix=/mnt/workspace/workspace/GCC-9-pipeline/jenkins-GCC-9-pipeline-100_20191030_1572397542/build-mingw/host-libs/usr --with-gmp=/mnt/workspace/workspace/GCC-9-pipeline/jenkins-GCC-9-pipeline-100_20191030_1572397542/build-mingw/host-libs/usr --with-mpfr=/mnt/workspace/workspace/GCC-9-pipeline/jenkins-GCC-9-pipeline-100_20191030_1572397542/build-mingw/host-libs/usr --with-mpc=/mnt/workspace/workspace/GCC-9-pipeline/jenkins-GCC-9-pipeline-100_20191030_1572397542/build-mingw/host-libs/usr --with-isl=/mnt/workspace/workspace/GCC-9-pipeline/jenkins-GCC-9-pipeline-100_20191030_1572397542/build-mingw/host-libs/usr --with-libelf=/mnt/workspace/workspace/GCC-9-pipeline/jenkins-GCC-9-pipeline-100_20191030_1572397542/build-mingw/host-libs/usr --with-host-libstdcxx='-static-libgcc -Wl,-Bstatic,-lstdc++,-Bdynamic -lm' --with-pkgversion='GNU Tools for Arm Embedded Processors 9-2019-q4-major' --with-multilib-list=rmprofile
[114]Thread model: single
[115]gcc version 9.2.1 20191025 (release) [ARM/arm-9-branch revision 277599] (GNU Tools for Arm Embedded Processors 9-2019-q4-major)
[116]COLLECT_GCC_OPTIONS='-c' '-D' '__MSPM0C1104__' '-D' '__USE_SYSCONFIG__' '-mcpu=cortex-m0plus'  '-mthumb' '-mfloat-abi=soft' '-I' 'C:/Projects/LinkerIssue' '-I' 'C:/Projects/LinkerIssue/Debug' '-I' 'C:/TI/mspm0_sdk_2_09_00_01/source/third_party/CMSIS/Core/Include' '-I' 'C:/TI/mspm0_sdk_2_09_00_01/source' '-I' 'C:/TI/gcc_arm_none_eabi_9_2_1/arm-none-eabi/include/newlib-nano' '-I' 'C:/TI/gcc_arm_none_eabi_9_2_1/arm-none-eabi/include' '-O2' '-ffunction-sections' '-fdata-sections' '-g' '-gdwarf-3' '-gstrict-dwarf' '-Wall' '-v' '-fno-math-errno' '-MMD' '-MP' '-MF' 'ti_msp_dl_config.d_raw' '-MT' 'ti_msp_dl_config.o' '-std=c99' '-D' '__MSPM0C1104__' '-D' '__USE_SYSCONFIG__' '-o' 'ti_msp_dl_config.o' '-march=armv6-m'
[117] c:/ti/gcc_arm_none_eabi_9_2_1/bin/../lib/gcc/arm-none-eabi/9.2.1/cc1.exe -quiet -v @C:\Users\RAE41~1.HTT\AppData\Local\Temp\1\ccVipPB6 -imultilib thumb/v6-m/nofp -iprefix c:\ti\gcc_arm_none_eabi_9_2_1\bin\../lib/gcc/arm-none-eabi/9.2.1/ -isysroot c:\ti\gcc_arm_none_eabi_9_2_1\bin\../arm-none-eabi -MMD ti_msp_dl_config.d -MF ti_msp_dl_config.d_raw -MP -MT ti_msp_dl_config.o -D__USES_INITFINI__ -D __MSPM0C1104__ -D __USE_SYSCONFIG__ -D __MSPM0C1104__ -D __USE_SYSCONFIG__ ti_msp_dl_config.c -quiet -dumpbase ti_msp_dl_config.c -mcpu=cortex-m0plus -mthumb -mfloat-abi=soft -march=armv6-m -auxbase-strip ti_msp_dl_config.o -g -gdwarf-3 -gstrict-dwarf -O2 -Wall -std=c99 -version -ffunction-sections -fdata-sections -fno-math-errno -o C:\Users\RAE41~1.HTT\AppData\Local\Temp\1\cccSTR21.s
[118]GNU C99 (GNU Tools for Arm Embedded Processors 9-2019-q4-major) version 9.2.1 20191025 (release) [ARM/arm-9-branch revision 277599] (arm-none-eabi)
[119]	compiled by GNU C version 5.3.1 20160211, GMP version 6.1.0, MPFR version 3.1.4, MPC version 1.0.3, isl version isl-0.18-GMP

[120]GGC heuristics: --param ggc-min-expand=100 --param ggc-min-heapsize=131072
[121]ignoring duplicate directory "c:/ti/gcc_arm_none_eabi_9_2_1/lib/gcc/../../lib/gcc/arm-none-eabi/9.2.1/include"
[122]ignoring nonexistent directory "c:\ti\gcc_arm_none_eabi_9_2_1\bin\../arm-none-eabi/mnt/workspace/workspace/GCC-9-pipeline/jenkins-GCC-9-pipeline-100_20191030_1572397542/install-mingw/lib/gcc/arm-none-eabi/9.2.1/../../../../include"
[123]ignoring duplicate directory "c:/ti/gcc_arm_none_eabi_9_2_1/lib/gcc/../../lib/gcc/arm-none-eabi/9.2.1/include-fixed"
[124]ignoring duplicate directory "c:/ti/gcc_arm_none_eabi_9_2_1/lib/gcc/../../lib/gcc/arm-none-eabi/9.2.1/../../../../arm-none-eabi/include"
[125]ignoring nonexistent directory "c:\ti\gcc_arm_none_eabi_9_2_1\bin\../arm-none-eabi/usr/include"
[126]ignoring duplicate directory "C:/TI/gcc_arm_none_eabi_9_2_1/arm-none-eabi/include"
[127]  as it is a non-system directory that duplicates a system directory
[128]#include "..." search starts here:
[129]#include <...> search starts here:
[130] C:/Projects/LinkerIssue
[131] C:/Projects/LinkerIssue/Debug
[132] C:/TI/mspm0_sdk_2_09_00_01/source/third_party/CMSIS/Core/Include
[133] C:/TI/mspm0_sdk_2_09_00_01/source
[134] C:/TI/gcc_arm_none_eabi_9_2_1/arm-none-eabi/include/newlib-nano
[135] c:\ti\gcc_arm_none_eabi_9_2_1\bin\../lib/gcc/arm-none-eabi/9.2.1/include
[136] c:\ti\gcc_arm_none_eabi_9_2_1\bin\../lib/gcc/arm-none-eabi/9.2.1/include-fixed
[137] c:\ti\gcc_arm_none_eabi_9_2_1\bin\../lib/gcc/arm-none-eabi/9.2.1/../../../../arm-none-eabi/include
[138]End of search list.
[139]GNU C99 (GNU Tools for Arm Embedded Processors 9-2019-q4-major) version 9.2.1 20191025 (release) [ARM/arm-9-branch revision 277599] (arm-none-eabi)
[140]	compiled by GNU C version 5.3.1 20160211, GMP version 6.1.0, MPFR version 3.1.4, MPC version 1.0.3, isl version isl-0.18-GMP

[141]GGC heuristics: --param ggc-min-expand=100 --param ggc-min-heapsize=131072
[142]Compiler executable checksum: d48d906eaae8455a6540c74ba2cbe16a
[143]COLLECT_GCC_OPTIONS='-c' '-D' '__MSPM0C1104__' '-D' '__USE_SYSCONFIG__' '-mcpu=cortex-m0plus'  '-mthumb' '-mfloat-abi=soft' '-I' 'C:/Projects/LinkerIssue' '-I' 'C:/Projects/LinkerIssue/Debug' '-I' 'C:/TI/mspm0_sdk_2_09_00_01/source/third_party/CMSIS/Core/Include' '-I' 'C:/TI/mspm0_sdk_2_09_00_01/source' '-I' 'C:/TI/gcc_arm_none_eabi_9_2_1/arm-none-eabi/include/newlib-nano' '-I' 'C:/TI/gcc_arm_none_eabi_9_2_1/arm-none-eabi/include' '-O2' '-ffunction-sections' '-fdata-sections' '-g' '-gdwarf-3' '-gstrict-dwarf' '-Wall' '-v' '-fno-math-errno' '-MMD' '-MP' '-MF' 'ti_msp_dl_config.d_raw' '-MT' 'ti_msp_dl_config.o' '-std=c99' '-D' '__MSPM0C1104__' '-D' '__USE_SYSCONFIG__' '-o' 'ti_msp_dl_config.o' '-march=armv6-m'
[144] c:/ti/gcc_arm_none_eabi_9_2_1/bin/../lib/gcc/arm-none-eabi/9.2.1/../../../../arm-none-eabi/bin/as.exe -v -I C:/Projects/LinkerIssue -I C:/Projects/LinkerIssue/Debug -I C:/TI/mspm0_sdk_2_09_00_01/source/third_party/CMSIS/Core/Include -I C:/TI/mspm0_sdk_2_09_00_01/source -I C:/TI/gcc_arm_none_eabi_9_2_1/arm-none-eabi/include/newlib-nano -I C:/TI/gcc_arm_none_eabi_9_2_1/arm-none-eabi/include -march=armv6-m -mfloat-abi=soft -meabi=5 -o ti_msp_dl_config.o C:\Users\RAE41~1.HTT\AppData\Local\Temp\1\cccSTR21.s
[145]GNU assembler version 2.33.1 (arm-none-eabi) using BFD version (GNU Tools for Arm Embedded Processors 9-2019-q4-major) 2.33.1.20191025
[146]COMPILER_PATH=c:/ti/gcc_arm_none_eabi_9_2_1/bin/../lib/gcc/arm-none-eabi/9.2.1/;c:/ti/gcc_arm_none_eabi_9_2_1/bin/../lib/gcc/;c:/ti/gcc_arm_none_eabi_9_2_1/bin/../lib/gcc/arm-none-eabi/9.2.1/../../../../arm-none-eabi/bin/
[147]LIBRARY_PATH=c:/ti/gcc_arm_none_eabi_9_2_1/bin/../lib/gcc/arm-none-eabi/9.2.1/thumb/v6-m/nofp/;c:/ti/gcc_arm_none_eabi_9_2_1/bin/../lib/gcc/arm-none-eabi/9.2.1/../../../../arm-none-eabi/lib/thumb/v6-m/nofp/;c:/ti/gcc_arm_none_eabi_9_2_1/bin/../arm-none-eabi/lib/thumb/v6-m/nofp/;c:/ti/gcc_arm_none_eabi_9_2_1/bin/../lib/gcc/arm-none-eabi/9.2.1/;c:/ti/gcc_arm_none_eabi_9_2_1/bin/../lib/gcc/;c:/ti/gcc_arm_none_eabi_9_2_1/bin/../lib/gcc/arm-none-eabi/9.2.1/../../../../arm-none-eabi/lib/;c:/ti/gcc_arm_none_eabi_9_2_1/bin/../arm-none-eabi/lib/
[148]COLLECT_GCC_OPTIONS='-c' '-D' '__MSPM0C1104__' '-D' '__USE_SYSCONFIG__' '-mcpu=cortex-m0plus'  '-mthumb' '-mfloat-abi=soft' '-I' 'C:/Projects/LinkerIssue' '-I' 'C:/Projects/LinkerIssue/Debug' '-I' 'C:/TI/mspm0_sdk_2_09_00_01/source/third_party/CMSIS/Core/Include' '-I' 'C:/TI/mspm0_sdk_2_09_00_01/source' '-I' 'C:/TI/gcc_arm_none_eabi_9_2_1/arm-none-eabi/include/newlib-nano' '-I' 'C:/TI/gcc_arm_none_eabi_9_2_1/arm-none-eabi/include' '-O2' '-ffunction-sections' '-fdata-sections' '-g' '-gdwarf-3' '-gstrict-dwarf' '-Wall' '-v' '-fno-math-errno' '-MMD' '-MP' '-MF' 'ti_msp_dl_config.d_raw' '-MT' 'ti_msp_dl_config.o' '-std=c99' '-D' '__MSPM0C1104__' '-D' '__USE_SYSCONFIG__' '-o' 'ti_msp_dl_config.o' '-march=armv6-m'
[149]Finished building: "ti_msp_dl_config.c"

[150]Building target: "myproj.out"
[151]Invoking: GNU Linker
[152]"C:/TI/gcc_arm_none_eabi_9_2_1/bin/arm-none-eabi-gcc-9.2.1.exe" @"device.opt"  -O2 -ffunction-sections -fdata-sections -g -gdwarf-3 -gstrict-dwarf -Wall -v -fno-math-errno -mthumb -mfloat-abi=soft -Wl,-Map,"myproj.map" -nostartfiles -nostdlib -static -Wl,--gc-sections -L"C:/TI/mspm0_sdk_2_09_00_01/source/ti/driverlib/lib/gcc/m0p/mspm0c110x" -L"C:/TI/mspm0_sdk_2_09_00_01/source" -L"C:/Projects/LinkerIssue" -L"C:/Projects/LinkerIssue/Debug/syscfg" -L"C:/TI/gcc_arm_none_eabi_9_2_1/arm-none-eabi/lib/thumb/v6-m/nofp" -march=armv6-m -mthumb --specs=nosys.specs -v -o"myproj.out" "./ti_msp_dl_config.o" "./startup_mspm0c110x_gcc.o" "./main.o" -Wl,-T"../make/myproj.lds"  -Wl,-Tdevice.lds.genlibs -l:driverlib.a -lc -lgcc -lm
[153]Using built-in specs.
[154]Reading specs from c:/ti/gcc_arm_none_eabi_9_2_1/bin/../lib/gcc/arm-none-eabi/9.2.1/../../../../arm-none-eabi/lib/nosys.specs
[155]rename spec link_gcc_c_sequence to nosys_link_gcc_c_sequence
[156]COLLECT_GCC=C:/TI/gcc_arm_none_eabi_9_2_1/bin/arm-none-eabi-gcc-9.2.1.exe
[157]COLLECT_LTO_WRAPPER=c:/ti/gcc_arm_none_eabi_9_2_1/bin/../lib/gcc/arm-none-eabi/9.2.1/lto-wrapper.exe
[158]Target: arm-none-eabi
[159]Configured with: /mnt/workspace/workspace/GCC-9-pipeline/jenkins-GCC-9-pipeline-100_20191030_1572397542/src/gcc/configure --build=x86_64-linux-gnu --host=i686-w64-mingw32 --target=arm-none-eabi --prefix=/mnt/workspace/workspace/GCC-9-pipeline/jenkins-GCC-9-pipeline-100_20191030_1572397542/install-mingw --libexecdir=/mnt/workspace/workspace/GCC-9-pipeline/jenkins-GCC-9-pipeline-100_20191030_1572397542/install-mingw/lib --infodir=/mnt/workspace/workspace/GCC-9-pipeline/jenkins-GCC-9-pipeline-100_20191030_1572397542/install-mingw/share/doc/gcc-arm-none-eabi/info --mandir=/mnt/workspace/workspace/GCC-9-pipeline/jenkins-GCC-9-pipeline-100_20191030_1572397542/install-mingw/share/doc/gcc-arm-none-eabi/man --htmldir=/mnt/workspace/workspace/GCC-9-pipeline/jenkins-GCC-9-pipeline-100_20191030_1572397542/install-mingw/share/doc/gcc-arm-none-eabi/html --pdfdir=/mnt/workspace/workspace/GCC-9-pipeline/jenkins-GCC-9-pipeline-100_20191030_1572397542/install-mingw/share/doc/gcc-arm-none-eabi/pdf --enable-languages=c,c++ --enable-mingw-wildcard --disable-decimal-float --disable-libffi --disable-libgomp --disable-libmudflap --disable-libquadmath --disable-libssp --disable-libstdcxx-pch --disable-nls --disable-shared --disable-threads --disable-tls --with-gnu-as --with-gnu-ld --with-headers=yes --with-newlib --with-python-dir=share/gcc-arm-none-eabi --with-sysroot=/mnt/workspace/workspace/GCC-9-pipeline/jenkins-GCC-9-pipeline-100_20191030_1572397542/install-mingw/arm-none-eabi --with-libiconv-prefix=/mnt/workspace/workspace/GCC-9-pipeline/jenkins-GCC-9-pipeline-100_20191030_1572397542/build-mingw/host-libs/usr --with-gmp=/mnt/workspace/workspace/GCC-9-pipeline/jenkins-GCC-9-pipeline-100_20191030_1572397542/build-mingw/host-libs/usr --with-mpfr=/mnt/workspace/workspace/GCC-9-pipeline/jenkins-GCC-9-pipeline-100_20191030_1572397542/build-mingw/host-libs/usr --with-mpc=/mnt/workspace/workspace/GCC-9-pipeline/jenkins-GCC-9-pipeline-100_20191030_1572397542/build-mingw/host-libs/usr --with-isl=/mnt/workspace/workspace/GCC-9-pipeline/jenkins-GCC-9-pipeline-100_20191030_1572397542/build-mingw/host-libs/usr --with-libelf=/mnt/workspace/workspace/GCC-9-pipeline/jenkins-GCC-9-pipeline-100_20191030_1572397542/build-mingw/host-libs/usr --with-host-libstdcxx='-static-libgcc -Wl,-Bstatic,-lstdc++,-Bdynamic -lm' --with-pkgversion='GNU Tools for Arm Embedded Processors 9-2019-q4-major' --with-multilib-list=rmprofile
[160]Thread model: single
[161]gcc version 9.2.1 20191025 (release) [ARM/arm-9-branch revision 277599] (GNU Tools for Arm Embedded Processors 9-2019-q4-major)
[162]COMPILER_PATH=c:/ti/gcc_arm_none_eabi_9_2_1/bin/../lib/gcc/arm-none-eabi/9.2.1/;c:/ti/gcc_arm_none_eabi_9_2_1/bin/../lib/gcc/;c:/ti/gcc_arm_none_eabi_9_2_1/bin/../lib/gcc/arm-none-eabi/9.2.1/../../../../arm-none-eabi/bin/
[163]LIBRARY_PATH=c:/ti/gcc_arm_none_eabi_9_2_1/bin/../lib/gcc/arm-none-eabi/9.2.1/thumb/v6-m/nofp/;c:/ti/gcc_arm_none_eabi_9_2_1/bin/../lib/gcc/arm-none-eabi/9.2.1/../../../../arm-none-eabi/lib/thumb/v6-m/nofp/;c:/ti/gcc_arm_none_eabi_9_2_1/bin/../arm-none-eabi/lib/thumb/v6-m/nofp/;c:/ti/gcc_arm_none_eabi_9_2_1/bin/../lib/gcc/arm-none-eabi/9.2.1/;c:/ti/gcc_arm_none_eabi_9_2_1/bin/../lib/gcc/;c:/ti/gcc_arm_none_eabi_9_2_1/bin/../lib/gcc/arm-none-eabi/9.2.1/../../../../arm-none-eabi/lib/;c:/ti/gcc_arm_none_eabi_9_2_1/bin/../arm-none-eabi/lib/
[164]COLLECT_GCC_OPTIONS='-D' '__MSPM0C1104__' '-D' '__USE_SYSCONFIG__' '-O2' '-ffunction-sections' '-fdata-sections' '-g' '-gdwarf-3' '-gstrict-dwarf' '-Wall' '-v' '-fno-math-errno' '-mfloat-abi=soft' '-nostartfiles' '-nostdlib' '-static' '-LC:/TI/mspm0_sdk_2_09_00_01/source/ti/driverlib/lib/gcc/m0p/mspm0c110x' '-LC:/TI/mspm0_sdk_2_09_00_01/source' '-LC:/Projects/LinkerIssue' '-LC:/Projects/LinkerIssue/Debug/syscfg' '-LC:/TI/gcc_arm_none_eabi_9_2_1/arm-none-eabi/lib/thumb/v6-m/nofp'  '-mthumb' '-specs=nosys.specs' '-v' '-o' 'myproj.out' '-march=armv6-m'
[165] c:/ti/gcc_arm_none_eabi_9_2_1/bin/../lib/gcc/arm-none-eabi/9.2.1/collect2.exe -plugin c:/ti/gcc_arm_none_eabi_9_2_1/bin/../lib/gcc/arm-none-eabi/9.2.1/liblto_plugin-0.dll -plugin-opt=c:/ti/gcc_arm_none_eabi_9_2_1/bin/../lib/gcc/arm-none-eabi/9.2.1/lto-wrapper.exe -plugin-opt=-fresolution=C:\Users\RAE41~1.HTT\AppData\Local\Temp\1\ccEz13ui.res --sysroot=c:\ti\gcc_arm_none_eabi_9_2_1\bin\../arm-none-eabi -Bstatic -X -o myproj.out @C:\Users\RAE41~1.HTT\AppData\Local\Temp\1\ccq6pPcr -Lc:/ti/gcc_arm_none_eabi_9_2_1/bin/../lib/gcc/arm-none-eabi/9.2.1/thumb/v6-m/nofp -Lc:/ti/gcc_arm_none_eabi_9_2_1/bin/../lib/gcc/arm-none-eabi/9.2.1/../../../../arm-none-eabi/lib/thumb/v6-m/nofp -Lc:/ti/gcc_arm_none_eabi_9_2_1/bin/../arm-none-eabi/lib/thumb/v6-m/nofp -Lc:/ti/gcc_arm_none_eabi_9_2_1/bin/../lib/gcc/arm-none-eabi/9.2.1 -Lc:/ti/gcc_arm_none_eabi_9_2_1/bin/../lib/gcc -Lc:/ti/gcc_arm_none_eabi_9_2_1/bin/../lib/gcc/arm-none-eabi/9.2.1/../../../../arm-none-eabi/lib -Lc:/ti/gcc_arm_none_eabi_9_2_1/bin/../arm-none-eabi/lib @C:\Users\RAE41~1.HTT\AppData\Local\Temp\1\ccOEjzTy
[166]c:/ti/gcc_arm_none_eabi_9_2_1/bin/../lib/gcc/arm-none-eabi/9.2.1/../../../../arm-none-eabi/bin/ld.exe: C:/TI/gcc_arm_none_eabi_9_2_1/arm-none-eabi/lib/thumb/v6-m/nofp\libm.a(lib_a-w_sqrt.o): in function `sqrt':
[167]w_sqrt.c:(.text.sqrt+0x2a): undefined reference to `__aeabi_dcmpun'
[168]c:/ti/gcc_arm_none_eabi_9_2_1/bin/../lib/gcc/arm-none-eabi/9.2.1/../../../../arm-none-eabi/bin/ld.exe: w_sqrt.c:(.text.sqrt+0x3c): undefined reference to `__aeabi_dcmplt'
[169]c:/ti/gcc_arm_none_eabi_9_2_1/bin/../lib/gcc/arm-none-eabi/9.2.1/../../../../arm-none-eabi/bin/ld.exe: w_sqrt.c:(.text.sqrt+0x74): undefined reference to `__aeabi_ddiv'
[170]c:/ti/gcc_arm_none_eabi_9_2_1/bin/../lib/gcc/arm-none-eabi/9.2.1/../../../../arm-none-eabi/bin/ld.exe: w_sqrt.c:(.text.sqrt+0x82): undefined reference to `__errno'
[171]c:/ti/gcc_arm_none_eabi_9_2_1/bin/../lib/gcc/arm-none-eabi/9.2.1/../../../../arm-none-eabi/bin/ld.exe: w_sqrt.c:(.text.sqrt+0xb2): undefined reference to `__errno'
[172]c:/ti/gcc_arm_none_eabi_9_2_1/bin/../lib/gcc/arm-none-eabi/9.2.1/../../../../arm-none-eabi/bin/ld.exe: C:/TI/gcc_arm_none_eabi_9_2_1/arm-none-eabi/lib/thumb/v6-m/nofp\libm.a(lib_a-e_sqrt.o): in function `__ieee754_sqrt':
[173]e_sqrt.c:(.text.__ieee754_sqrt+0x164): undefined reference to `__aeabi_dmul'
[174]c:/ti/gcc_arm_none_eabi_9_2_1/bin/../lib/gcc/arm-none-eabi/9.2.1/../../../../arm-none-eabi/bin/ld.exe: e_sqrt.c:(.text.__ieee754_sqrt+0x16c): undefined reference to `__aeabi_dadd'
[175]c:/ti/gcc_arm_none_eabi_9_2_1/bin/../lib/gcc/arm-none-eabi/9.2.1/../../../../arm-none-eabi/bin/ld.exe: e_sqrt.c:(.text.__ieee754_sqrt+0x17e): undefined reference to `__aeabi_dsub'
[176]c:/ti/gcc_arm_none_eabi_9_2_1/bin/../lib/gcc/arm-none-eabi/9.2.1/../../../../arm-none-eabi/bin/ld.exe: e_sqrt.c:(.text.__ieee754_sqrt+0x186): undefined reference to `__aeabi_ddiv'
[177]collect2.exe: error: ld returned 1 exit status

[178]**** Build finished ****
  • Moving -lc -lgcc -lm to before my .o files in the linker executable only causes other issues to appear. This also does not seem possible in the project settings GUI.

    Of course that is a problem. The linker processes your object files in the order that they appear in the command line. In order to find things you reference in your .o, they must be in files searched later. 

  • Hello David,

    you are right, but it doesn't seem that I can change it in the CCS project settings. Also, this did not fix the issue. Now I am missing __errno amongst others which I did not expect to happen at all due to -fno-math-errno.

  • From the man page:

    ‘-fno-math-errno’
    Do not set ‘errno’ after calling math functions that are executed
    with a single instruction, e.g., ‘sqrt’.

    That doesn't make errno go away. Besides, other things than math can set errno.

    Actually, looking at the code I can't see any reason to include math.h or stdlib.h.

    abs() is a simple function and once upon a time was provided via a #define. The only hazard with that was if an argument had side effects like an increment. You only have integer operations other than that call to sqrt(). So you might want to rethink using sqrt().

  • I definitely need some implementation of sqrt. My example is ultimately only that. In reality I will need to do calculations on float32 values and then get an absolute. fabs or abs, doesn't matter as long as the precision is good enough.

  • Hi RH,

    Cortex M0+ does not have a floating-point unit. I would recommend using the IQ Math library, included with the SDK. An included feature of IQ Math is finding Square Roots and Absolute values. Can you see if this will satisfy your application's needs?

    Best Regards,
    Brian

  • Hello Brian,

    I thought IQ Math was not available for MSPM0C. Is only RTS available or also MathACL? I will try this as soon as I can.

    Best Regards,

    RH

  • Hi RH,

    IQ Math is available on MSPM0C, only with RTS. M0C devices do not have math accelerator hardware.

    Best Regards,
    Brian

**Attention** This is a public forum