Hi,
I would like to be able to build the libc.a library first with CLANG then with GCC.
Is there a list of files and and a makefile for it ? (maybe a-CCS project)
Thanks,
Eli
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.
Hi,
I would like to be able to build the libc.a library first with CLANG then with GCC.
Is there a list of files and and a makefile for it ? (maybe a-CCS project)
Thanks,
Eli
I presume you mean the tiarmclang compiler. Unfortunately, we do not supply a method for building libc.a, or any of the RTS libraries that come with the compiler.
Thanks and regards,
-George
Hi,
I'm getting some libc.a errors when trying to compile mcu_sdk_243x tcpserver example with GCC.
-
c:/ti/gcc-arm-none-eabi-6-2017-q1-update/bin/../lib/gcc/arm-none-eabi/6.3.1/../../../../arm-none-eabi/lib/thumb/v7-ar/fpv3/hard/libc.a(lib_a-exit.o):
In function `exit': exit.c:(.text.exit+0x1c): undefined reference to `_exit'
-
I think that the libc.a I'm using from GCC - doesn't have the exit function.
Is that the case ?
Is there any work around ?
Thanks,
Eli
In function `exit': exit.c:(.text.exit+0x1c): undefined reference to `_exit'
Does your program need to use Semihosting to allow use of stdio to allow I/O via the CCS debugger?
If not, adding --specs=nosys.specs to the linker options as suggested in the StackOverflow thread exit.c:(.text+0x18): undefined reference to `_exit' when using arm-none-eabi-gcc should help to remove the linker error.