Page 1 of 1

Errors Building binutils 2.19

Posted: Wed Feb 25, 2009 9:46 pm
by gsingh2011
I'm working on setting up a cross compiler and according to the tutorial I need binutils. So I downloaded the package, untared it, and I ran the commands:

export PREFIX=/usr/cross
export TARGET=i586-elf
cd /usr/src/build-binutils
../binutils-2.19/configure --target=$TARGET --prefix=$PREFIX --disable-nls
make all
make install
make check

I'm using Cygwin on Windows XP. The make check shows me some errors but I have no clue what to do... Should I copy and part of the output of make check or should I post the config.log. I'm new to all of this so I don't really know...

Re: Errors Building binutils 2.19

Posted: Thu Feb 26, 2009 1:58 am
by xenos
Posting the errors would certainly be a good idea, so others can see what's going wrong.

Re: Errors Building binutils 2.19

Posted: Thu Feb 26, 2009 2:12 am
by Solar
gsingh2011 wrote:The make check shows me some errors but I have no clue what to do...
I admit I have never tried 'make check'. ;-)

Re: Errors Building binutils 2.19

Posted: Thu Feb 26, 2009 5:19 am
by Creature
Solar wrote:
gsingh2011 wrote:The make check shows me some errors but I have no clue what to do...
I admit I have never tried 'make check'. ;-)
As far as I'm concerned, if everything else but 'make check' fails and you've checked that the /usr/cross/bin folder contains all the executables 'i586-elf-ar', 'i586-elf-gcc', etc. don't worry about it ;).

Re: Errors Building binutils 2.19

Posted: Thu Feb 26, 2009 10:50 am
by xenos
What does "make check" check, anyway? Probably it checks whether the cross compiler can create executables - which is certainly not true, since there are no startup files or libraries to link an executable. But that doesn't matter since it is not intended to create executables, but to create some standalone os kernel, which is a completely different thing.