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 |
All times are GMT -5. The time now is 12:27 AM. |