building gcc 4.9.0 cross compiler for msp430 fails - cannot compute suffix of object files

Christoph K. christoph@kobenetz.de
Thu May 8 17:10:00 GMT 2014


Hi,

I still have the same problem, can anyone help, please?!

Christoph


On Fri, 2 May 2014 13:26:14 +0200
"Christoph K." <christoph@kobenetz.de> wrote:

> Hi,
> 
> I want to compile gcc 4.9.0 as a cross compiler for the msp430 architecture.
> 
> 
> About the prerequisites
> -----------------------
> Binutils 2.24 sources have been downloaded, a symbolic link
> "binutils" has been created in the gcc source dir.
> 
> Then ...
> cd /usr/local/src/gcc-4.9.0
> ./contrib/download_prerequisites
> mkdir /usr/local/src/gcc-4.9.0-build-msp430-elf
> cd /usr/local/src/gcc-4.9.0-build-msp430-elf
> ../gcc-4.9.0/configure --target=msp430-elf \
>   --prefix=/usr/local/msp430-elf --enable-languages=c,c++
> make -j8
> 
> The whole output of configure is attached.
> 
> 
> The error
> ---------
> make of gcc fails with the following error:
> ...
> checking for msp430-elf-gcc... \
>   /usr/local/src/gcc-4.9.0-build-msp430-elf/./gcc/xgcc \
>   -B/usr/local/src/gcc-4.9.0-build-msp430-elf/./gcc/ \
>   -B/msp430-elf/bin/ -B/msp430-elf/lib/ \
>   -isystem /msp430-elf/include -isystem /msp430-elf/sys-include   
> checking for suffix of object files... configure: error: \
>   in `/usr/local/src/gcc-4.9.0-build-msp430-elf/msp430-elf/libgcc':
> configure: error: cannot compute suffix of object files: cannot compile
> See `config.log' for more details.
> make[1]: *** [configure-target-libgcc] Fehler 1
> make[1]: Leaving directory `/usr/local/src/gcc-4.9.0-build-msp430-elf'
> make: *** [all] Fehler 2
> 
> "cannot compute suffix ..." seems to be a common error message.
> I read that in the gcc faq, but didn't find a solution myself.
> 
> 
> Investigation of the problem
> ----------------------------
> There are errors in
> /usr/local/src/gcc-4.9.0-build-msp430-elf/msp430-elf/libgcc/config.log:
> 
> <snip>
> /usr/local/src/gcc-4.9.0-build-msp430-elf/./gcc/as: \
>   106: exec: -mP: not found
> </snip>
> 
> The corresponding file "config.log" is attached.
> 
> 
> Compiler & system info
> ----------------------
> # gcc -v
> Using built-in specs.
> COLLECT_GCC=gcc
> COLLECT_LTO_WRAPPER=/usr/lib/gcc/x86_64-linux-gnu/4.8/lto-wrapper
> Target: x86_64-linux-gnu
> Configured with: ../src/configure -v --with-pkgversion='Debian 4.8.2-16' \
>   --with-bugurl=file:///usr/share/doc/gcc-4.8/README.Bugs \
>   --enable-languages=c,c++,java,go,d,fortran,objc,obj-c++ --prefix=/usr \
>   --program-suffix=-4.8 --enable-shared --enable-linker-build-id \
>   --libexecdir=/usr/lib --without-included-gettext \
>   --enable-threads=posix --with-gxx-include-dir=/usr/include/c++/4.8 \
>   --libdir=/usr/lib --enable-nls --with-sysroot=/ --enable-clocale=gnu \
>   --enable-libstdcxx-debug --enable-libstdcxx-time=yes \
>   --enable-gnu-unique-object --disable-libmudflap --enable-plugin \
>   --with-system-zlib --disable-browser-plugin --enable-java-awt=gtk \
>   --enable-gtk-cairo \
>   --with-java-home=/usr/lib/jvm/java-1.5.0-gcj-4.8-amd64/jre \
>   --enable-java-home \
>   --with-jvm-root-dir=/usr/lib/jvm/java-1.5.0-gcj-4.8-amd64 \
>   --with-jvm-jar-dir=/usr/lib/jvm-exports/java-1.5.0-gcj-4.8-amd64 \
>   --with-arch-directory=amd64 \
>   --with-ecj-jar=/usr/share/java/eclipse-ecj.jar --enable-objc-gc \
>   --enable-multiarch --with-arch-32=i586 --with-abi=m64 \
>   --with-multilib-list=m32,m64,mx32 --with-tune=generic \
>   --enable-checking=release --build=x86_64-linux-gnu \
>   --host=x86_64-linux-gnu --target=x86_64-linux-gnu
> Thread model: posix
> gcc version 4.8.2 (Debian 4.8.2-16) 
> 
> # uname -a
> Linux schwarz 3.13-1-amd64 #1 SMP Debian 3.13.10-1 (2014-04-15) x86_64 GNU/Linux
> 
> 
> Please help
> Christoph


-- 
Christoph K. <christoph@kobenetz.de>



More information about the Gcc-help mailing list