Jump to content
marfis

msp430-elf-gcc and OSX

Recommended Posts

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.

Share this post


Link to post
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.


×
×
  • Create New...