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.

Lot of compilation errors when using MSP GCC for SPPdemo

Other Parts Discussed in Thread: MSP430F5438A

Hi,

I am trying to compile SPP demo stack using MSP GCC compiler and i see lot of issues which i don't see when using TI's compiler.

1. Firstly, when i import project, i see lot of include directories are not included (This is common for both TI and MSP GCC compiler). Is this expected or am i missing something here?

2. If i include all directories of missing header files, i see ton's of errors as follows. But the same error is not seen when using TI's compiler? Again am i missing something here.

In fact i see same kind of behavior when i try to compiler A2DP demo.

Description Resource Path Location Type
unknown type name '__SIZE_T_TYPE__' SPPDemo line 69, external location: C:\ti\ccsv6\tools\compiler\msp430_4.3.3\include\stdio.h C/C++ Problem
unused variable 'dummy' [-Wunused-variable] HCITRANS.c /SPPDemo line 531 C/C++ Problem
'RxInIndex' defined but not used [-Wunused-variable] HAL.c /SPPDemo/MSP430_EXP5438 line 87 C/C++ Problem
conflicting types for built-in function '__bis_SR_register_on_exit' SPPDemo line 103, external location: c:\ti\ccsv6\ccs_base\msp430\include_gcc\in430.h C/C++ Problem
expected '=', ',', ';', 'asm' or '__attribute__' before 'void' HAL.c /SPPDemo/MSP430_EXP5438 line 1084 C/C++ Problem
macro "_get_SR_register" passed 1 arguments, but takes just 0 SPPDemo line 50, external location: C:\ti\ccsv6\tools\compiler\msp430_4.3.3\include\intrinsics.h C/C++ Problem
expected identifier or '(' before '{' token SPPDemo line 107, external location: c:\ti\ccsv6\ccs_base\msp430\include_gcc\in430.h C/C++ Problem
ignoring #pragma vector [-Wunknown-pragmas] HAL.c /SPPDemo/MSP430_EXP5438 line 1029 C/C++ Problem
expected '=', ',', ';', 'asm' or '__attribute__' before 'void' HAL.c /SPPDemo/MSP430_EXP5438 line 1019 C/C++ Problem
expected identifier or '(' before '{' token SPPDemo line 121, external location: c:\ti\ccsv6\ccs_base\msp430\include_gcc\in430.h C/C++ Problem
ignoring #pragma vector [-Wunknown-pragmas] HAL.c /SPPDemo/MSP430_EXP5438 line 1083 C/C++ Problem
expected identifier or '(' before 'unsigned' SPPDemo line 57, external location: C:\ti\ccsv6\tools\compiler\msp430_4.3.3\include\intrinsics.h C/C++ Problem
expected '=', ',', ';', 'asm' or '__attribute__' before 'void' HAL.c /SPPDemo/MSP430_EXP5438 line 1030 C/C++ Problem
expected identifier or '(' before '{' token SPPDemo line 92, external location: c:\ti\ccsv6\ccs_base\msp430\include_gcc\in430.h C/C++ Problem
expected identifier or '(' before '__asm__' SPPDemo line 72, external location: c:\ti\ccsv6\ccs_base\msp430\include_gcc\in430.h C/C++ Problem
ignoring #pragma vector [-Wunknown-pragmas] HAL.c /SPPDemo/MSP430_EXP5438 line 1018 C/C++ Problem
conflicting types for built-in function '__bic_SR_register_on_exit' SPPDemo line 102, external location: c:\ti\ccsv6\ccs_base\msp430\include_gcc\in430.h C/C++ Problem
expected identifier or '(' before '__asm__' SPPDemo line 77, external location: c:\ti\ccsv6\ccs_base\msp430\include_gcc\in430.h C/C++ Problem
gmake: *** [HCITRANS.o] Error 1 SPPDemo C/C++ Problem
gmake: *** [Main.o] Error 1 SPPDemo C/C++ Problem
fatal error: SS1BTVS.h: No such file or directory SPPDemo line 19, external location: C:\ti\Connectivity\CC256X BT\CC256x MSP430 Bluetopia SDK\v1.5 R2\MSP430_Experimentor\Samples\SPPDemo\Main.h C/C++ Problem
unknown type name '__SIZE_T_TYPE__' SPPDemo line 57, external location: C:\ti\ccsv6\tools\compiler\msp430_4.3.3\include\string.h C/C++ Problem
gmake: *** [SPPDemo.o] Error 1 SPPDemo C/C++ Problem
macro "_disable_interrupts" passed 1 arguments, but takes just 0 SPPDemo line 44, external location: C:\ti\ccsv6\tools\compiler\msp430_4.3.3\include\intrinsics.h C/C++ Problem
macro "_enable_interrupts" passed 1 arguments, but takes just 0 SPPDemo line 43, external location: C:\ti\ccsv6\tools\compiler\msp430_4.3.3\include\intrinsics.h C/C++ Problem
gmake: *** [BTPSKRNL.o] Error 1 SPPDemo C/C++ Problem
gmake: *** [BTPSVEND.o] Error 1 SPPDemo C/C++ Problem
gmake: *** [pre_init.o] Error 1 SPPDemo C/C++ Problem
implicit declaration of function '__va_argref' [-Wimplicit-function-declaration] BTPSKRNL.c /SPPDemo line 1246 C/C++ Problem
implicit declaration of function '__va_parmadr' [-Wimplicit-function-declaration] BTPSKRNL.c /SPPDemo line 1246 C/C++ Problem
expected identifier or '(' before '{' token SPPDemo line 148, external location: c:\ti\ccsv6\ccs_base\msp430\include_gcc\in430.h C/C++ Problem
cast from pointer to integer of different size [-Wpointer-to-int-cast] BTPSKRNL.c /SPPDemo line 1340 C/C++ Problem
macro "_get_SP_register" passed 1 arguments, but takes just 0 SPPDemo line 67, external location: C:\ti\ccsv6\tools\compiler\msp430_4.3.3\include\intrinsics.h C/C++ Problem
gmake: *** [sprintf.o] Error 1 SPPDemo C/C++ Problem
implicit declaration of function '__INTADDR__' [-Wimplicit-function-declaration] BTPSKRNL.c /SPPDemo line 258 C/C++ Problem
fatal error: SS1BTVS.h: No such file or directory BTPSVEND.c /SPPDemo line 19 C/C++ Problem
expected identifier or '(' before '{' token SPPDemo line 195, external location: c:\ti\ccsv6\ccs_base\msp430\include_gcc\in430.h C/C++ Problem
expected expression before 'char' sprintf.c /SPPDemo line 281 C/C++ Problem
implicit declaration of function '__va_parmadr' [-Wimplicit-function-declaration] sprintf.c /SPPDemo line 312 C/C++ Problem
expected identifier or '(' before '{' token SPPDemo line 241, external location: c:\ti\ccsv6\ccs_base\msp430\include_gcc\in430.h C/C++ Problem
expected expression before 'int' sprintf.c /SPPDemo line 273 C/C++ Problem
expected identifier or '(' before '{' token SPPDemo line 211, external location: c:\ti\ccsv6\ccs_base\msp430\include_gcc\in430.h C/C++ Problem
expected expression before 'int' sprintf.c /SPPDemo line 277 C/C++ Problem
expected identifier or '(' before '{' token SPPDemo line 181, external location: c:\ti\ccsv6\ccs_base\msp430\include_gcc\in430.h C/C++ Problem
expected expression before 'int' sprintf.c /SPPDemo line 267 C/C++ Problem
implicit declaration of function '__va_argref' [-Wimplicit-function-declaration] sprintf.c /SPPDemo line 261 C/C++ Problem
expected identifier or '(' before '{' token SPPDemo line 61, external location: c:\ti\ccsv6\ccs_base\msp430\include_gcc\in430.h C/C++ Problem
expected expression before 'long' sprintf.c /SPPDemo line 261 C/C++ Problem
macro "_get_interrupt_state" passed 1 arguments, but takes just 0 SPPDemo line 65, external location: C:\ti\ccsv6\tools\compiler\msp430_4.3.3\include\intrinsics.h C/C++ Problem
expected identifier or '(' before '{' token SPPDemo line 256, external location: c:\ti\ccsv6\ccs_base\msp430\include_gcc\in430.h C/C++ Problem
expected identifier or '(' before '{' token SPPDemo line 225, external location: c:\ti\ccsv6\ccs_base\msp430\include_gcc\in430.h C/C++ Problem
cast from pointer to integer of different size [-Wpointer-to-int-cast] pre_init.c /SPPDemo line 43 C/C++ Problem
cast from pointer to integer of different size [-Wpointer-to-int-cast] pre_init.c /SPPDemo line 40 C/C++ Problem
gmake: *** [MSP430_EXP5438/HAL.o] Error 1 SPPDemo C/C++ Problem
gmake: Target `all' not remade because of errors. SPPDemo C/C++ Problem
expected '=', ',', ';', 'asm' or '__attribute__' before 'void' HCITRANS.c /SPPDemo line 177 C/C++ Problem
ignoring #pragma vector [-Wunknown-pragmas] HCITRANS.c /SPPDemo line 176 C/C++ Problem

-Prashanth