cross-compile fails binutils(2.16/2.16.1/2.17)
Posted: Sun Mar 04, 2007 11:29 pm
I tried to make cross-compiler for i386-elf.
Ubuntu, kernel 2.6.15-28-386 is my system
I have tried: binutils-2.16, binutils-2.16.1, binutils-2.17.
All three complain about using host and target in the same line (I am not doing this). They even complain when I don't put in target.
Here is my line from the wiki.
export PREFIX=/usr/cross
export TARGET=i386-elf
cd /usr/src/build-binutils
../binutils-2.16.1/configure --target=$TARGET --prefix=$PREFIX --disable-nls make all install
Here is the output from the configuration command for the gcc side.
(The exact same line is used as that is in the wiki)
loading cache ./config.cache
checking host system type... i686-pc-linux-gnu
checking target system type... i386-pc-elf
checking build system type... i686-pc-linux-gnu
checking for a BSD compatible install... (cached) /usr/bin/install -c
checking whether ln works... (cached) yes
checking whether ln -s works... (cached) yes
checking for gcc... (cached) gcc
checking whether the C compiler (gcc ) works... yes
checking whether the C compiler (gcc ) is a cross-compiler... no
checking whether we are using GNU C... (cached) yes
checking whether gcc accepts -g... (cached) yes
checking for gnatbind... no
checking whether compiler driver understands Ada... (cached) no
checking how to compare bootstrapped objects... (cached) cmp --ignore-initial=16 $$f1 $$f2
checking for correct version of gmp.h... no
*** This configuration is not supported in the following subdirectories:
target-libmudflap
(Any other directories should still work fine.)
checking for bison... (cached) bison -y
checking for bison... (cached) bison
checking for gm4... (cached) m4
checking for flex... no
checking for lex... no
checking for flex... no
checking for makeinfo... no
checking for expect... no
checking for runtest... no
checking for i686-pc-linux-gnu-ar... (cached) ar
checking for i686-pc-linux-gnu-as... (cached) as
checking for i686-pc-linux-gnu-dlltool... no
checking for dlltool... no
checking for i686-pc-linux-gnu-ld... (cached) ld
checking for i686-pc-linux-gnu-lipo... no
checking for lipo... no
checking for i686-pc-linux-gnu-nm... (cached) nm
checking for i686-pc-linux-gnu-ranlib... (cached) ranlib
checking for i686-pc-linux-gnu-strip... (cached) strip
checking for i686-pc-linux-gnu-windres... no
checking for windres... no
checking for i686-pc-linux-gnu-objcopy... (cached) objcopy
checking for i686-pc-linux-gnu-objdump... (cached) objdump
checking for i386-elf-ar... (cached) ar
checking for i386-elf-as... (cached) as
checking for i386-elf-cc... (cached) cc
checking for i386-elf-c++... (cached) c++
checking for i386-elf-dlltool... no
checking for i386-elf-gcc... (cached) gcc
checking for i386-elf-gcj... no
checking for i386-elf-gfortran... no
checking for i386-elf-ld... (cached) ld
checking for i386-elf-lipo... no
checking for i386-elf-nm... (cached) nm
checking for i386-elf-objdump... (cached) objdump
checking for i386-elf-ranlib... (cached) ranlib
checking for i386-elf-strip... (cached) strip
checking for i386-elf-windres... no
checking where to find the target ar... pre-installed
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++... pre-installed
checking where to find the target c++ for libstdc++... pre-installed
checking where to find the target dlltool... pre-installed
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 ld... pre-installed
checking where to find the target lipo... pre-installed
checking where to find the target nm... pre-installed
checking where to find the target objdump... pre-installed
checking where to find the target ranlib... pre-installed
checking where to find the target strip... pre-installed
checking where to find the target windres... pre-installed
checking whether to enable maintainer-specific portions of Makefiles... no
checking if symbolic links between directories work... (cached) yes
creating ./config.status
creating Makefile
I'm not sure what else I need to post.
Anybody know why it is so messed up?
Ubuntu, kernel 2.6.15-28-386 is my system
I have tried: binutils-2.16, binutils-2.16.1, binutils-2.17.
All three complain about using host and target in the same line (I am not doing this). They even complain when I don't put in target.
Here is my line from the wiki.
export PREFIX=/usr/cross
export TARGET=i386-elf
cd /usr/src/build-binutils
../binutils-2.16.1/configure --target=$TARGET --prefix=$PREFIX --disable-nls make all install
Here is the output from the configuration command for the gcc side.
(The exact same line is used as that is in the wiki)
loading cache ./config.cache
checking host system type... i686-pc-linux-gnu
checking target system type... i386-pc-elf
checking build system type... i686-pc-linux-gnu
checking for a BSD compatible install... (cached) /usr/bin/install -c
checking whether ln works... (cached) yes
checking whether ln -s works... (cached) yes
checking for gcc... (cached) gcc
checking whether the C compiler (gcc ) works... yes
checking whether the C compiler (gcc ) is a cross-compiler... no
checking whether we are using GNU C... (cached) yes
checking whether gcc accepts -g... (cached) yes
checking for gnatbind... no
checking whether compiler driver understands Ada... (cached) no
checking how to compare bootstrapped objects... (cached) cmp --ignore-initial=16 $$f1 $$f2
checking for correct version of gmp.h... no
*** This configuration is not supported in the following subdirectories:
target-libmudflap
(Any other directories should still work fine.)
checking for bison... (cached) bison -y
checking for bison... (cached) bison
checking for gm4... (cached) m4
checking for flex... no
checking for lex... no
checking for flex... no
checking for makeinfo... no
checking for expect... no
checking for runtest... no
checking for i686-pc-linux-gnu-ar... (cached) ar
checking for i686-pc-linux-gnu-as... (cached) as
checking for i686-pc-linux-gnu-dlltool... no
checking for dlltool... no
checking for i686-pc-linux-gnu-ld... (cached) ld
checking for i686-pc-linux-gnu-lipo... no
checking for lipo... no
checking for i686-pc-linux-gnu-nm... (cached) nm
checking for i686-pc-linux-gnu-ranlib... (cached) ranlib
checking for i686-pc-linux-gnu-strip... (cached) strip
checking for i686-pc-linux-gnu-windres... no
checking for windres... no
checking for i686-pc-linux-gnu-objcopy... (cached) objcopy
checking for i686-pc-linux-gnu-objdump... (cached) objdump
checking for i386-elf-ar... (cached) ar
checking for i386-elf-as... (cached) as
checking for i386-elf-cc... (cached) cc
checking for i386-elf-c++... (cached) c++
checking for i386-elf-dlltool... no
checking for i386-elf-gcc... (cached) gcc
checking for i386-elf-gcj... no
checking for i386-elf-gfortran... no
checking for i386-elf-ld... (cached) ld
checking for i386-elf-lipo... no
checking for i386-elf-nm... (cached) nm
checking for i386-elf-objdump... (cached) objdump
checking for i386-elf-ranlib... (cached) ranlib
checking for i386-elf-strip... (cached) strip
checking for i386-elf-windres... no
checking where to find the target ar... pre-installed
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++... pre-installed
checking where to find the target c++ for libstdc++... pre-installed
checking where to find the target dlltool... pre-installed
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 ld... pre-installed
checking where to find the target lipo... pre-installed
checking where to find the target nm... pre-installed
checking where to find the target objdump... pre-installed
checking where to find the target ranlib... pre-installed
checking where to find the target strip... pre-installed
checking where to find the target windres... pre-installed
checking whether to enable maintainer-specific portions of Makefiles... no
checking if symbolic links between directories work... (cached) yes
creating ./config.status
creating Makefile
I'm not sure what else I need to post.
Anybody know why it is so messed up?