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.

GCC ustdlib compile errors

Other Parts Discussed in Thread: TM4C123GH6PGE

Hey there guys,

I'm playing around with grlib_example, and everything work just fine when I use TI compiler, but when I switch to GCC I get these errors:

**** Build of configuration Debug for project Prd ****

"D:\\TI\\ccsv6\\utils\\bin\\gmake" -k all
'Building file: ../grlib_demo.c'
'Invoking: GNU Compiler'
"D:/TI/ccsv6/tools/compiler/gcc-arm-none-eabi-4_7-2013q3/bin/arm-none-eabi-gcc.exe" -c -mcpu=cortex-m4 -march=armv7e-m -mthumb -mfloat-abi=softfp -mfpu=fpv4-sp-d16 -DPART_TM4C123GH6PGE -DTARGET_IS_BLIZZARD_RA1 -I"D:/TI/ccsv6/tools/compiler/gcc-arm-none-eabi-4_7-2013q3/arm-none-eabi/include" -I"D:/TI/SW-TM4C-2.1.0.12573" -ffunction-sections -fdata-sections -g -gstrict-dwarf -Wall -MMD -MP -MF"grlib_demo.d" -MT"grlib_demo.d" -o"grlib_demo.o" "../grlib_demo.c"
In file included from ../grlib_demo.c:51:0:
D:/TI/SW-TM4C-2.1.0.12573/utils/ustdlib.h:55:38: error: expected ';', ',' or ')' before 's'
D:/TI/SW-TM4C-2.1.0.12573/utils/ustdlib.h:57:37: error: expected ';', ',' or ')' before 's'
D:/TI/SW-TM4C-2.1.0.12573/utils/ustdlib.h:64:39: error: expected ';', ',' or ')' before 's1'
D:/TI/SW-TM4C-2.1.0.12573/utils/ustdlib.h:66:44: error: expected ';', ',' or ')' before 'nptr'
D:/TI/SW-TM4C-2.1.0.12573/utils/ustdlib.h:68:57: error: expected ';', ',' or ')' before 'nptr'
D:/TI/SW-TM4C-2.1.0.12573/utils/ustdlib.h:70:39: error: expected ';', ',' or ')' before 's'
../grlib_demo.c: In function 'OnSliderChange':
../grlib_demo.c:897:9: warning: implicit declaration of function 'usprintf' [-Wimplicit-function-declaration]
gmake: *** [grlib_demo.o] Error 1
'Building file: D:/TI/SW-TM4C-2.1.0.12573/utils/ustdlib.c'
'Invoking: GNU Compiler'
"D:/TI/ccsv6/tools/compiler/gcc-arm-none-eabi-4_7-2013q3/bin/arm-none-eabi-gcc.exe" -c -mcpu=cortex-m4 -march=armv7e-m -mthumb -mfloat-abi=softfp -mfpu=fpv4-sp-d16 -DPART_TM4C123GH6PGE -DTARGET_IS_BLIZZARD_RA1 -I"D:/TI/ccsv6/tools/compiler/gcc-arm-none-eabi-4_7-2013q3/arm-none-eabi/include" -I"D:/TI/SW-TM4C-2.1.0.12573" -ffunction-sections -fdata-sections -g -gstrict-dwarf -Wall -MMD -MP -MF"ustdlib.d" -MT"ustdlib.d" -o"ustdlib.o" "D:/TI/SW-TM4C-2.1.0.12573/utils/ustdlib.c"
In file included from D:/TI/SW-TM4C-2.1.0.12573/utils/ustdlib.c:27:0:
D:/TI/SW-TM4C-2.1.0.12573/utils/ustdlib.h:55:38: error: expected ';', ',' or ')' before 's'
D:/TI/SW-TM4C-2.1.0.12573/utils/ustdlib.h:57:37: error: expected ';', ',' or ')' before 's'
D:/TI/SW-TM4C-2.1.0.12573/utils/ustdlib.h:64:39: error: expected ';', ',' or ')' before 's1'
D:/TI/SW-TM4C-2.1.0.12573/utils/ustdlib.h:66:44: error: expected ';', ',' or ')' before 'nptr'
D:/TI/SW-TM4C-2.1.0.12573/utils/ustdlib.h:68:57: error: expected ';', ',' or ')' before 'nptr'
D:/TI/SW-TM4C-2.1.0.12573/utils/ustdlib.h:70:39: error: expected ';', ',' or ')' before 's'
D:/TI/SW-TM4C-2.1.0.12573/utils/ustdlib.c:65:26: error: expected ';', ',' or ')' before 's1'
D:/TI/SW-TM4C-2.1.0.12573/utils/ustdlib.c:158:28: error: expected ';', ',' or ')' before 's'
D:/TI/SW-TM4C-2.1.0.12573/utils/ustdlib.c:731:26: error: expected ';', ',' or ')' before 's'
D:/TI/SW-TM4C-2.1.0.12573/utils/ustdlib.c:809:27: error: expected ';', ',' or ')' before 's'
D:/TI/SW-TM4C-2.1.0.12573/utils/ustdlib.c:1104:52: error: expected ';', ',' or ')' before 'endptr'
gmake: *** [ustdlib.o] Error 1
gmake: Target `all' not remade because of errors.

**** Build Finished ****

I'm running out of ideas here. Any one had similar issues? Note, that everything is linked and fine, but ustdlib gives me problems.
And I'm using CCSv6, with TM4C123GH6PGE mcu.

Thanks