Error during GCC Cross-Compiler compilation

Question about which tools to use, bugs, the best way to implement a function, etc should go here. Don't forget to see if your question is answered in the wiki first! When in doubt post here.
Post Reply
Codeman1980
Posts: 8
Joined: Sat Feb 01, 2014 10:15 am

Error during GCC Cross-Compiler compilation

Post by Codeman1980 »

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
User avatar
sortie
Member
Member
Posts: 931
Joined: Wed Mar 21, 2012 3:01 pm
Libera.chat IRC: sortie

Re: Error during GCC Cross-Compiler compilation

Post by sortie »

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.
Codeman1980
Posts: 8
Joined: Sat Feb 01, 2014 10:15 am

Re: Error during GCC Cross-Compiler compilation

Post by Codeman1980 »

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
Attachments
config.txt
(26.44 KiB) Downloaded 58 times
Codeman1980
Posts: 8
Joined: Sat Feb 01, 2014 10:15 am

Re: Error during GCC Cross-Compiler compilation

Post by Codeman1980 »

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
User avatar
sortie
Member
Member
Posts: 931
Joined: Wed Mar 21, 2012 3:01 pm
Libera.chat IRC: sortie

Re: Error during GCC Cross-Compiler compilation

Post by sortie »

Please, post your terminal session, not config.log.
Codeman1980
Posts: 8
Joined: Sat Feb 01, 2014 10:15 am

Re: Error during GCC Cross-Compiler compilation

Post by Codeman1980 »

Hello,

Enclosed you'll find now the output from the configure command.

Thanks

-Klaus
Attachments
output.txt
(3.93 KiB) Downloaded 132 times
Codeman1980
Posts: 8
Joined: Sat Feb 01, 2014 10:15 am

Re: Error during GCC Cross-Compiler compilation

Post by Codeman1980 »

Enclosed you will also find the output of the make command.
Attachments
make_output.txt
(61.69 KiB) Downloaded 106 times
User avatar
iansjack
Member
Member
Posts: 4711
Joined: Sat Mar 31, 2012 3:07 am
Location: Chichester, UK

Re: Error during GCC Cross-Compiler compilation

Post by iansjack »

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.
Codeman1980
Posts: 8
Joined: Sat Feb 01, 2014 10:15 am

Re: Error during GCC Cross-Compiler compilation

Post by Codeman1980 »

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
User avatar
Combuster
Member
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

Post by Combuster »

Codeman1980 wrote:binutils-2.23.52
Where do people keep getting non-existent releases from?
"Certainly avoid yourself. He is a newbie and might not realize it. You'll hate his code deeply a few years down the road." - Sortie
[ My OS ] [ VDisk/SFS ]
Post Reply