Error during GCC Cross-Compiler compilation
-
- Posts: 8
- Joined: Sat Feb 01, 2014 10:15 am
Error during GCC Cross-Compiler compilation
Hello,
I'm currently "trying" to compile the GCC compiler as described here: http://wiki.osdev.org/Cannot_perform_PE ... on-PE_file
Unfortunately the compilation process doesn't succeed during the compilation of the binutils.
When I look into the config.log file, I can see the following error messages multiple times:
configure:4214: $? = 0
configure:4203: gcc -v >&5
Using built-in specs.
COLLECT_GCC=gcc
COLLECT_LTO_WRAPPER=/usr/libexec/gcc/x86_64-pc-cygwin/4.8.2/lto-wrapper.exe
Target: x86_64-pc-cygwin
Configured with: /cygdrive/i/szsz/tmpp/cygwin64/gcc/gcc-4.8.2-2/src/gcc-4.8.2/configure --srcdir=/cygdrive/i/szsz/tmpp/cygwin64/gcc/gcc-4.8.2-2/src/gcc-4.8.2 --prefix=/usr --exec-prefix=/usr --bindir=/usr/bin --sbindir=/usr/sbin --libexecdir=/usr/libexec --datadir=/usr/share --localstatedir=/var --sysconfdir=/etc --libdir=/usr/lib --datarootdir=/usr/share --docdir=/usr/share/doc/gcc --htmldir=/usr/share/doc/gcc/html -C --build=x86_64-pc-cygwin --host=x86_64-pc-cygwin --target=x86_64-pc-cygwin --without-libiconv-prefix --without-libintl-prefix --enable-shared --enable-shared-libgcc --enable-static --enable-version-specific-runtime-libs --enable-bootstrap --disable-__cxa_atexit --with-dwarf2 --with-tune=generic --enable-languages=ada,c,c++,fortran,lto,objc,obj-c++ --enable-graphite --enable-threads=posix --enable-libatomic --enable-libgomp --disable-libitm --enable-libquadmath --enable-libquadmath-support --enable-libssp --enable-libada --enable-libgcj-sublibs --disable-java-awt --disable-symvers --with-ecj-jar=/usr/share/java/ecj.jar --with-gnu-ld --with-gnu-as --with-cloog-include=/usr/include/cloog-isl --without-libiconv-prefix --without-libintl-prefix --with-system-zlib
Thread model: posix
gcc version 4.8.2 (GCC)
configure:4214: $? = 0
configure:4203: gcc -V >&5
gcc: error: unrecognized command line option '-V'
gcc: fatal error: no input files
compilation terminated.
Any ideas on that?
Thanks for your help
-Klaus
I'm currently "trying" to compile the GCC compiler as described here: http://wiki.osdev.org/Cannot_perform_PE ... on-PE_file
Unfortunately the compilation process doesn't succeed during the compilation of the binutils.
When I look into the config.log file, I can see the following error messages multiple times:
configure:4214: $? = 0
configure:4203: gcc -v >&5
Using built-in specs.
COLLECT_GCC=gcc
COLLECT_LTO_WRAPPER=/usr/libexec/gcc/x86_64-pc-cygwin/4.8.2/lto-wrapper.exe
Target: x86_64-pc-cygwin
Configured with: /cygdrive/i/szsz/tmpp/cygwin64/gcc/gcc-4.8.2-2/src/gcc-4.8.2/configure --srcdir=/cygdrive/i/szsz/tmpp/cygwin64/gcc/gcc-4.8.2-2/src/gcc-4.8.2 --prefix=/usr --exec-prefix=/usr --bindir=/usr/bin --sbindir=/usr/sbin --libexecdir=/usr/libexec --datadir=/usr/share --localstatedir=/var --sysconfdir=/etc --libdir=/usr/lib --datarootdir=/usr/share --docdir=/usr/share/doc/gcc --htmldir=/usr/share/doc/gcc/html -C --build=x86_64-pc-cygwin --host=x86_64-pc-cygwin --target=x86_64-pc-cygwin --without-libiconv-prefix --without-libintl-prefix --enable-shared --enable-shared-libgcc --enable-static --enable-version-specific-runtime-libs --enable-bootstrap --disable-__cxa_atexit --with-dwarf2 --with-tune=generic --enable-languages=ada,c,c++,fortran,lto,objc,obj-c++ --enable-graphite --enable-threads=posix --enable-libatomic --enable-libgomp --disable-libitm --enable-libquadmath --enable-libquadmath-support --enable-libssp --enable-libada --enable-libgcj-sublibs --disable-java-awt --disable-symvers --with-ecj-jar=/usr/share/java/ecj.jar --with-gnu-ld --with-gnu-as --with-cloog-include=/usr/include/cloog-isl --without-libiconv-prefix --without-libintl-prefix --with-system-zlib
Thread model: posix
gcc version 4.8.2 (GCC)
configure:4214: $? = 0
configure:4203: gcc -V >&5
gcc: error: unrecognized command line option '-V'
gcc: fatal error: no input files
compilation terminated.
Any ideas on that?
Thanks for your help
-Klaus
Re: Error during GCC Cross-Compiler compilation
You forgot to follow the instructions in the tutorial, I guess.
Please attach the ./configure lines you used and the entire shell session and outputs, so we can review. You may be looking at a red herring.
Please attach the ./configure lines you used and the entire shell session and outputs, so we can review. You may be looking at a red herring.
-
- Posts: 8
- Joined: Sat Feb 01, 2014 10:15 am
Re: Error during GCC Cross-Compiler compilation
Hello,
I have installed all the prerequisites as described at http://wiki.osdev.org/Cannot_perform_PE ... on-PE_file.
But when I run configure through the following command line, I get some errors in the file "build-binutils/config.log"
cd $HOME/src
mkdir build-binutils
cd build-binutils
../binutils-x.y.z/configure --target=$TARGET --prefix="$PREFIX" --disable-nls
I have attached the config.log file with the error messages.
Thanks
-Klaus
I have installed all the prerequisites as described at http://wiki.osdev.org/Cannot_perform_PE ... on-PE_file.
But when I run configure through the following command line, I get some errors in the file "build-binutils/config.log"
cd $HOME/src
mkdir build-binutils
cd build-binutils
../binutils-x.y.z/configure --target=$TARGET --prefix="$PREFIX" --disable-nls
I have attached the config.log file with the error messages.
Thanks
-Klaus
- Attachments
-
- config.txt
- (26.44 KiB) Downloaded 58 times
-
- Posts: 8
- Joined: Sat Feb 01, 2014 10:15 am
Re: Error during GCC Cross-Compiler compilation
Of course, I have replaced
../binutils-x.y.z/configure --target=$TARGET --prefix="$PREFIX" --disable-nls
with
../binutils-2.23.52/configure --target=$TARGET --prefix="$PREFIX" --disable-nls
Thanks
-Klaus
../binutils-x.y.z/configure --target=$TARGET --prefix="$PREFIX" --disable-nls
with
../binutils-2.23.52/configure --target=$TARGET --prefix="$PREFIX" --disable-nls
Thanks
-Klaus
Re: Error during GCC Cross-Compiler compilation
Please, post your terminal session, not config.log.
-
- Posts: 8
- Joined: Sat Feb 01, 2014 10:15 am
Re: Error during GCC Cross-Compiler compilation
Hello,
Enclosed you'll find now the output from the configure command.
Thanks
-Klaus
Enclosed you'll find now the output from the configure command.
Thanks
-Klaus
- Attachments
-
- output.txt
- (3.93 KiB) Downloaded 132 times
-
- Posts: 8
- Joined: Sat Feb 01, 2014 10:15 am
Re: Error during GCC Cross-Compiler compilation
Enclosed you will also find the output of the make command.
- Attachments
-
- make_output.txt
- (61.69 KiB) Downloaded 106 times
Re: Error during GCC Cross-Compiler compilation
Errors are to be expected in the config.log file. As long as it creates a makefile there shouldn't be a problem. You don't show us the command that you used to run the make.
-
- Posts: 8
- Joined: Sat Feb 01, 2014 10:15 am
Re: Error during GCC Cross-Compiler compilation
Hello,
It seems now that the make process of the binutils is working.
I had to start the command line with administrative privileges under Windows 7... ;-(
And currently the compilation of GCC is running... #FingersCrossed
Sorry for the confusion...
-Klaus
It seems now that the make process of the binutils is working.
I had to start the command line with administrative privileges under Windows 7... ;-(
And currently the compilation of GCC is running... #FingersCrossed
Sorry for the confusion...
-Klaus
- Combuster
- Member
- Posts: 9301
- Joined: Wed Oct 18, 2006 3:45 am
- Libera.chat IRC: [com]buster
- Location: On the balcony, where I can actually keep 1½m distance
- Contact:
Re: Error during GCC Cross-Compiler compilation
Where do people keep getting non-existent releases from?Codeman1980 wrote:binutils-2.23.52