This thread has been locked.
If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.
I'm attempting to build a simple project in CLion using the gcc compiler from MSP430-GCC-OPENSOURCE. I'm getting an odd linker error. Any ideas?
#include <stdio.h>
int main() {printf("Hello, World!\n");
return 0;
}
====================[ Build | HelloWorld | Debug-msp430-gnu ]===================
/Applications/CLion.app/Contents/bin/cmake/mac/bin/cmake --build /Users/pcpro178/CLionProjects/HelloWorld/cmake-build-debug-msp430-gnu --target HelloWorld -- -j 12
Consolidate compiler generated dependencies of target HelloWorld
[ 50%] Linking C executable HelloWorld
/Users/pcpro178/ti/msp430-gcc/bin/../lib/gcc/msp430-elf/9.3.1/../../../../msp430-elf/bin/ld: warning: cannot find entry symbol arch_paths_first; defaulting to 0000000000008000
/Users/pcpro178/ti/msp430-gcc/bin/../lib/gcc/msp430-elf/9.3.1/../../../../msp430-elf/bin/ld: /Users/pcpro178/ti/msp430-gcc/bin/../lib/gcc/msp430-elf/9.3.1/../../../../msp430-elf/bin/ld: DWARF error: line info data is bigger (0xfffffffc) than the space remaining in the section (0x46)
/Users/pcpro178/ti/msp430-gcc/bin/../lib/gcc/msp430-elf/9.3.1/../../../../msp430-elf/lib/libnosys.a(sbrk.o):(.data._sbrk_heap+0x0): undefined reference to `end'
collect2: error: ld returned 1 exit status
make[3]: *** [HelloWorld] Error 1
make[2]: *** [CMakeFiles/HelloWorld.dir/all] Error 2
make[1]: *** [CMakeFiles/HelloWorld.dir/rule] Error 2
make: *** [HelloWorld] Error 2
Looks like a cmake problem. Cmake is supposed to simplify building projects but cross compilation can be tricky.
I always use just plain make.
**Attention** This is a public forum