question about the GCC Cross-compiler on the wiki

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
RedDemon1970
Posts: 13
Joined: Sat Jan 24, 2009 11:25 am
Location: Belgium

question about the GCC Cross-compiler on the wiki

Post by RedDemon1970 »

I'm trying to make the basic C kernel form the tutorials running to get an idea of how things work, but i dont get passed true this

GCC Cross-Compiler

just under the title binutils stands
cd /usr/src/build-binutils
../binutils-x.xx/configure --target=$TARGET --prefix=$PREFIX --disable-nls
make all
make install
well, what's meant with the line " ../binutils-x.xx/configure --target=$TARGET --prefix=$PREFIX --disable-nls" ?

i tried it as an command but the console sais then the following
[root@localhost build-binutils]# ../binutils-x.xx/configure --target=$TARGET --prefix=$PREFIX --disable-nls
bash: ../binutils-x.xx/configure: Onbekend bestand of map
*onbekend bestand of map means unkown file or map in dutch

so can anybody help me? much thanks in advance
Martijn
Posts: 22
Joined: Tue Feb 26, 2008 3:43 am
Location: The Netherlands

Re: question about the GCC Cross-compiler on the wiki

Post by Martijn »

You should download and extract binutils into /usr/src and replace x.xx with the correct version number.
User avatar
Creature
Member
Member
Posts: 548
Joined: Sat Dec 27, 2008 2:34 pm
Location: Belgium

Re: question about the GCC Cross-compiler on the wiki

Post by Creature »

So if you have version 1.93 (random number), your directory would be called 'binutils-1.93' and you would enter:

Code: Select all

../binutils-1.93/configure --target=$TARGET --prefix=$PREFIX --disable-nls
When the chance of succeeding is 99%, there is still a 50% chance of that success happening.
RedDemon1970
Posts: 13
Joined: Sat Jan 24, 2009 11:25 am
Location: Belgium

Re: question about the GCC Cross-compiler on the wiki

Post by RedDemon1970 »

well, believe it or not, i did and it's still a no for my shell

first, this is my directory
/usr/src/binutils-2.19.1
and this is the result
[root@localhost src]# ../binutils-2.19.1/configure --target=$TARGET --prefix=$PREFIX --disable-nls
bash: ../binutils-2.19.1/configure: Onbekend bestand of map
and if i use ../binutils-2.19 the shell sais the same

what am i doing wrong? btw thx for the help so far
User avatar
Firestryke31
Member
Member
Posts: 550
Joined: Sat Nov 29, 2008 1:07 pm
Location: Throw a dart at central Texas
Contact:

Re: question about the GCC Cross-compiler on the wiki

Post by Firestryke31 »

First question: What folder is the command being run from? The command uses relative path stuff, so if configure isn't in the right place relative to the folder you're in, you probably need to change folders. While some may argue against it, another option is just using the full path to the file: /usr/src/binutils-2.19.1/configure

If that doesn't work, then ls /usr/src and see if the folder is actually there.
Owner of Fawkes Software.
Wierd Al wrote: You think your Commodore 64 is really neato,
What kind of chip you got in there, a Dorito?
RedDemon1970
Posts: 13
Joined: Sat Jan 24, 2009 11:25 am
Location: Belgium

Re: question about the GCC Cross-compiler on the wiki

Post by RedDemon1970 »

well i tried it and it worked thanks, thanks a lot
Post Reply