Page 1 of 1

question about the GCC Cross-compiler on the wiki

Posted: Sat Feb 21, 2009 9:37 am
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

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

Posted: Sat Feb 21, 2009 10:30 am
by Martijn
You should download and extract binutils into /usr/src and replace x.xx with the correct version number.

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

Posted: Sat Feb 21, 2009 10:33 am
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

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

Posted: Sat Feb 21, 2009 11:31 am
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

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

Posted: Sat Feb 21, 2009 12:56 pm
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.

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

Posted: Sat Feb 21, 2009 1:09 pm
by RedDemon1970
well i tried it and it worked thanks, thanks a lot