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
checking build system type... x86_64-unknown-linux-gnu checking host system type... x86_64-unknown-linux-gnu checking target system type... msp430-unknown-elf checking for a BSD-compatible install... /usr/bin/install -c checking whether ln works... yes checking whether ln -s works... yes checking for a sed that does not truncate output... /bin/sed checking for gawk... no checking for mawk... mawk checking for libatomic support... no checking for libcilkrts support... no checking for libitm support... no checking for libsanitizer support... no checking for libvtv support... no checking for gcc... gcc checking for C compiler default output file name... a.out checking whether the C compiler works... yes checking whether we are cross compiling... no checking for suffix of executables... checking for suffix of object files... o checking whether we are using the GNU C compiler... yes checking whether gcc accepts -g... yes checking for gcc option to accept ISO C89... none needed checking for g++... g++ checking whether we are using the GNU C++ compiler... yes checking whether g++ accepts -g... yes checking whether g++ accepts -static-libstdc++ -static-libgcc... yes checking for gnatbind... no checking for gnatmake... no checking whether compiler driver understands Ada... no checking how to compare bootstrapped objects... cmp --ignore-initial=16 $$f1 $$f2 checking for objdir... .libs configure: WARNING: using in-tree ISL, disabling version check configure: WARNING: using in-tree CLooG, disabling version check *** This configuration is not supported in the following subdirectories: target-libgomp target-libatomic target-libcilkrts target-libitm target-libsanitizer target-libvtv gnattools target-libada target-libgfortran target-libgo target-libffi target-libbacktrace target-zlib target-libjava target-libobjc target-boehm-gc (Any other directories should still work fine.) checking for default BUILD_CONFIG... checking for --enable-vtable-verify... no checking for bison... no checking for byacc... no checking for yacc... no checking for bison... no checking for gm4... no checking for gnum4... no checking for m4... m4 checking for flex... no checking for lex... no checking for flex... no checking for makeinfo... makeinfo checking for expect... no checking for runtest... no checking for ar... ar checking for as... as checking for dlltool... no checking for ld... ld checking for lipo... no checking for nm... nm checking for ranlib... ranlib checking for strip... strip checking for windres... no checking for windmc... no checking for objcopy... objcopy checking for objdump... objdump checking for readelf... readelf checking for msp430-elf-cc... no checking for msp430-elf-gcc... no checking for msp430-elf-c++... no checking for msp430-elf-g++... no checking for msp430-elf-cxx... no checking for msp430-elf-gxx... no checking for msp430-elf-gcc... no checking for msp430-elf-gcj... no checking for msp430-elf-gfortran... no checking for msp430-elf-gccgo... no checking for ar... no checking for msp430-elf-ar... no checking for as... no checking for msp430-elf-as... no checking for dlltool... no checking for msp430-elf-dlltool... no checking for ld... no checking for msp430-elf-ld... no checking for lipo... no checking for msp430-elf-lipo... no checking for nm... no checking for msp430-elf-nm... no checking for objdump... no checking for msp430-elf-objdump... no checking for ranlib... no checking for msp430-elf-ranlib... no checking for readelf... no checking for msp430-elf-readelf... no checking for strip... no checking for msp430-elf-strip... no checking for windres... no checking for msp430-elf-windres... no checking for windmc... no checking for msp430-elf-windmc... no checking where to find the target ar... just compiled checking where to find the target as... pre-installed checking where to find the target cc... just compiled checking where to find the target c++... just compiled checking where to find the target c++ for libstdc++... just compiled checking where to find the target dlltool... just compiled checking where to find the target gcc... just compiled checking where to find the target gcj... pre-installed checking where to find the target gfortran... pre-installed checking where to find the target gccgo... pre-installed checking where to find the target ld... pre-installed checking where to find the target lipo... pre-installed checking where to find the target nm... just compiled checking where to find the target objdump... just compiled checking where to find the target ranlib... just compiled checking where to find the target readelf... just compiled checking where to find the target strip... just compiled checking where to find the target windres... just compiled checking where to find the target windmc... just compiled checking whether to enable maintainer-specific portions of Makefiles... no configure: creating ./config.status config.status: creating Makefile
Attachment:
config.log
Description: Binary data