gcc compilation failed in version-check.sh script
Under the page http://www.linuxfromscratch.org/lfs/.../hostreqs.html there is a script that checks versions:
Code:
cat > version-check.sh << "EOF" #!/bin/bash # Simple script to list version numbers of critical development tools export LC_ALL=C bash --version | head -n1 | cut -d" " -f2-4 echo "/bin/sh -> `readlink -f /bin/sh`" echo -n "Binutils: "; ld --version | head -n1 | cut -d" " -f3- bison --version | head -n1 if [ -e /usr/bin/yacc ]; then echo "/usr/bin/yacc -> `readlink -f /usr/bin/yacc`"; else echo "yacc not found"; fi bzip2 --version 2>&1 < /dev/null | head -n1 | cut -d" " -f1,6- echo -n "Coreutils: "; chown --version | head -n1 | cut -d")" -f2 diff --version | head -n1 find --version | head -n1 gawk --version | head -n1 if [ -e /usr/bin/awk ]; then echo "/usr/bin/awk -> `readlink -f /usr/bin/awk`"; else echo "awk not found"; fi gcc --version | head -n1 ldd --version | head -n1 | cut -d" " -f2- # glibc version grep --version | head -n1 gzip --version | head -n1 cat /proc/version m4 --version | head -n1 make --version | head -n1 patch --version | head -n1 echo Perl `perl -V:version` sed --version | head -n1 tar --version | head -n1 echo "Texinfo: `makeinfo --version | head -n1`" xz --version | head -n1 echo 'main(){}' > dummy.c && gcc -o dummy dummy.c if [ -x dummy ] then echo "gcc compilation OK"; else echo "gcc compilation failed"; fi rm -f dummy.c dummy EOF bash version-check.sh Code:
bash, version 4.2.24(1)-release Any help much appreciated, thank you! |
Quote:
The brown part looks very odd. You are checking your host and I see a directory that points to /tools/bin? How did that happen. /tools is part of LFS and not relevant at this point (and surely unwanted!). |
Quote:
At this point it would probably be easier to just start from the beginning. Obviously I strayed from the guide to get myself to this point so I will accept my defeat :newbie: Thank you for the quick reply :D |
Quote:
Can you put up the [SOLVED] tag if this is resolved. first post -> Thread Tools -> Mark this thread as solved |
i m also having an error in this
this is the output of the bash version-check.sh
Code:
sarthak@sarthak:~$ bash version-check.sh |
Install binutils.
|
Quote:
thankyou |
Re #7.
? May be you didn't install a complete "binutils", but only the run time files ? $ sudo apt-get install binutils-dev |
after installing this there is no improvement
output remains the same |
Re #9.
Which output remains the same ? Quote:
2) Install g++ : $ sudo apt-get install g++ .. And run ./version-check.sh .. to check that things improved. When everything is OK : Start from scratch with chapter 5.4, Binutils-2.25 - Pass 1 - |
Quote:
Quote:
please help |
thanks for every help you all have given to me
i found my answer and corrected it. now building it from scratch |
All times are GMT -5. The time now is 07:32 AM. |