Quantcast
Channel: MSP430 Technical Forums
Viewing all articles
Browse latest Browse all 2077

msp430-elf-gcc and OSX

$
0
0

Hi guys,

 

TI/Redhat has released the beta version of CC6 with Gcc 4.8 (as mentioned http://forum.43oh.com/topic/4500-msp430-elf-gcc-red-hat-version-available-in-ccs6-beta/ )

 

I was not aware if anybody has tried to compile those sources on the OSX platform.. So I tried and followed this path:

 

1) Download source files and header files from the TI webpage (msp430-130423-272-source.tar.bz2, GCC_RH_20131206) and remove packages that are not yet supported by the platform (GDB):

tar xjf ../msp430-130423-272-source.tar.bz2
cd source/tools
rm -r gdb tk tcl itcl sim libgui

3) configure 

cd ../..
mkdir bin; cd bin
export PREFIX="/users/xxx/msp430/"
../sources/tools/configure --prefix=$PREFIX --target=msp430-elf --disable-werror

the --disable-werror surpresses warnings from clang

 

4) make

make 
make install

5) headers

extract header files to your installation directory

 

Note that I haven't checked if the produces binaries are ok.

 

If anybody has worked out how to compile GDB with theses sources that would be great. So far I've figured out that the LDFLAGS must be set to  -L/opt/X11/lib to overcome errors that X11 was not found.


Viewing all articles
Browse latest Browse all 2077

Trending Articles