Re: Problems while building mspgcc

Gunnar Henne <[email protected]>
Newsgroups gmane.comp.hardware.texas-instruments.msp430.gcc.user
Message-ID <[email protected]>
Hello,

I found a convenient way to build the last LTS release. The Energia
projects contains a script for this purpose:
https://github.com/energia/Energia/blob/master/build/linux/dist/tools/build-mspgcc

Regards,
Gunnar

Am 22.03.2013 17:33, schrieb Gunnar Henne:
> Hello,
>
> I cloned the repositories for binutils and gcc from:
> git://mspgcc.git.sourceforge.net/gitroot/mspgcc/binutils
> git://mspgcc.git.sourceforge.net/gitroot/mspgcc/gcc
>
> I find it more convenient to check out already patched code from the git
> repository than download the original sources and patch them.
>
> Then I switched to the last LTS Release: remotes/origin/lts/20120406
>
> After that I did an out of source build of binutils using this configure
> command:
>  ../binutils/configure --target=msp430 --enable-languages=c
> --program-prefix="msp430-" --prefix=/opt/mspgcc
> ("--enable-languages=c" does not seem to harm.)
>
> The build went through smoothly and install succeded also.
>
> I configured gcc with the same options to ../configure but when I tried
> to compile I am stuck with this error:
> ---------------------------------
> ....
> Running configure in multilib subdir mcpu-430x
> pwd: /home/gunnar/tmp/msp430/gcc_build/msp430
> mkdir mcpu-430x
> configure: creating cache ./config.cache
> checking build system type... x86_64-unknown-linux-gnu
> checking host system type... msp430-unknown-none
> checking for --enable-version-specific-runtime-libs... no
> checking for a BSD-compatible install... /usr/bin/install -c
> checking for gawk... gawk
> checking for msp430-ar... /opt/mspgcc/msp430/bin/ar
> checking for msp430-lipo... msp430-lipo
> checking for msp430-nm... /home/gunnar/tmp/msp430/gcc_build/./gcc/nm
> checking for msp430-ranlib... /opt/mspgcc/msp430/bin/ranlib
> checking for msp430-strip... /opt/mspgcc/msp430/bin/strip
> checking whether ln -s works... yes
> checking for msp430-gcc... /home/gunnar/tmp/msp430/gcc_build/./gcc/xgcc
> -B/home/gunnar/tmp/msp430/gcc_build/./gcc/ -B/opt/mspgcc/msp430/bin/
> -B/opt/mspgcc/msp430/lib/ -isystem /opt/mspgcc/msp430/include -isystem
> /opt/mspgcc/msp430/sys-include  -mcpu=430x
> checking for suffix of object files... configure: error: in
> `/home/gunnar/tmp/msp430/gcc_build/msp430/mcpu-430x/libgcc':
> configure: error: cannot compute suffix of object files: cannot compile
> See `config.log' for more details.
> make[1]: *** [configure-target-libgcc] Error 1
> make[1]: Leaving directory `/home/gunnar/tmp/msp430/gcc_build'
> make: *** [all] Error 2
> ---------------------------------------------------------------
>
> What did I do wrong? I tried to find actual build instructions but
> always stubled about quite outdated stuff.
> Is there a build-script for the last LTS release around? Or an apt
> repository for ubuntu?
>
> Greetings,
>
> Gunnar Henne
>


------------------------------------------------------------------------------
Minimize network downtime and maximize team effectiveness.
Reduce network management and security costs.Learn how to hire 
the most talented Cisco Certified professionals. Visit the 
Employer Resources Portal
http://www.cisco.com/web/learning/employer_resources/index.html
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.