Errors Building binutils 2.19

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
gsingh2011
Member
Member
Posts: 83
Joined: Tue Feb 03, 2009 11:37 am

Errors Building binutils 2.19

Post 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...
User avatar
xenos
Member
Member
Posts: 1121
Joined: Thu Aug 11, 2005 11:00 pm
Libera.chat IRC: xenos1984
Location: Tartu, Estonia
Contact:

Re: Errors Building binutils 2.19

Post by xenos »

Posting the errors would certainly be a good idea, so others can see what's going wrong.
Programmers' Hardware Database // GitHub user: xenos1984; OS project: NOS
User avatar
Solar
Member
Member
Posts: 7615
Joined: Thu Nov 16, 2006 12:01 pm
Location: Germany
Contact:

Re: Errors Building binutils 2.19

Post 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'. ;-)
Every good solution is obvious once you've found it.
User avatar
Creature
Member
Member
Posts: 548
Joined: Sat Dec 27, 2008 2:34 pm
Location: Belgium

Re: Errors Building binutils 2.19

Post 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 ;).
When the chance of succeeding is 99%, there is still a 50% chance of that success happening.
User avatar
xenos
Member
Member
Posts: 1121
Joined: Thu Aug 11, 2005 11:00 pm
Libera.chat IRC: xenos1984
Location: Tartu, Estonia
Contact:

Re: Errors Building binutils 2.19

Post 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.
Programmers' Hardware Database // GitHub user: xenos1984; OS project: NOS
Post Reply