Compiling Binutils 2.20.1
Hello everybody
I try to compile binutils 2.20.1 with the LFS Manual 6.7. I use a UBUNTU 11.10 as a host system. I use the following configure: Code:
../binutils-2.20.1/configure --target=$LFS_TGT --prefix=/tools --disable-nls --disable-werror Code:
gcc -c -DHAVE_CONFIG_H -g -O2 -I. -I../../binutils-2.20.1/libiberty/../include -W -Wall -Wwrite-strings -Wc++-compat -Wstrict-prototypes -pedantic ../../binutils-2.20.1/libiberty/regex.c -o regex.o Secondly, how can I solve such problems by myself? the config.log file has no further information about the error above. How can I narrow down the problem? Can anybody give me some advice about the error above? Greetings |
Did you make sure the host system is compliant by running the version check script
|
OUTPUT of the test:
Code:
I am using the LFS Manual more as a guideline to prepare my own toolchain. Greetings |
So there are a few problems there these need to be fixed 1st. Apt get can get the packages you require then check version check again restart build fromscratch
|
Ok i try to fix it.
|
you still have some errors in the output.
version-check.sh: line 20: /lib/libc.so.6: No such file or directory version-check.sh: line 26: patch: command not found version-check.sh: line 30: makeinfo: command not found These need to be fixed |
sorry i post the last one too early... i saw that too... at the moment the output looks like this:
Code:
bash, version 4.2.10(1)-release |
I had to make a symlink for it to work on mine
Code:
sudo ln -s /lib/i386-linux-gnu/libc-2.13.so /lib/libc.so.6 |
Ok now everything is fine with the symlink. But i'm stuck again until I compile the binutils 2.20.1. It is the same error as above. Any further suggestions? The error is mentioning something about that two declarations of malloc are found isn't it? Do I have to exclude a specific path for the make command for further progress?
|
what is the output of echo $LFS
|
echo $LFS => /media/lfs
this is another harddrive. The lfs has the /tools & /sources folders. Just 2 minutes before i tried to compile binutils with the root rights and i did work... something with my lfs user is quite not right... ??? |
What isz the output of
Code:
ls -l /lib/libc.* lrwxrwxrwx 1 root root 32 2011-10-10 19:16 /lib/libc.so.6 -> /lib/i386-linux-gnu/libc-2.13.so |
lfs@marius-HP-Pavilion-dv9500-Notebook-PC:~$ ls -l /lib/libc.*
lrwxrwxrwx 1 root root 29 Nov 8 23:15 /lib/libc.so.6 -> /lib/i386-linux-gnu/libc.so.6 The same output as yours. |
No yours is different mine points to i386-linux-gnu/libc-2.13.so yours is /libc.so.6. did you pass the version check
|
yes, i thought that i take the same static library as from the test output:
Code:
lfs@marius-HP-Pavilion-dv9500-Notebook-PC:~$ bash version-check.sh |
I did found the trouble maker...
In the root directory... i had already a /tools folder which had some crap in it. I removed this folder and created a simlink to $LFS/tools. Now it worked. Thanks for other the help! Hope i get further tomorrow with compiling gcc 4.5.1. Just as question: I only want to work the CHAPTER 5 of the LFS Manual to get a functional toolchain. After that can I copy the toolchain to a already compiled linux kernel? Will the toolchain be able to compile further tools? |
Hi,
Before you start you need to correct this: Quote:
Quote:
Hope this helps. |
Ok i'll correct that.
Maybe I misunderstand the LFS manual.. I thought that the Toolchain will be prepared that it is host independent. I refer to section 5.2: Quote:
|
Hi,
Quote:
Quote:
I do wonder if this is going to work. You might want to keep us updated on your progress, it could be of value for others that want to try this. Hope this helps. |
I will keep you posted to my progress with the toolchain. I approached the section "5.8 Adjusting the Toolchain". Everything else worked well.
The exact kernel version of the embedded device is 2.6.39.1. I downloaded it on my host system into the sources folder. I used this for the section "5.6 Linux-2.6.35.4 API Headers" to expose the API to my kernel version (2.6.39.1). Further information will follow or further questions will be asked. |
All times are GMT -5. The time now is 06:10 PM. |