[lfs-support] 5.4.1 Binutils-2.23.2 error

2013-09-11 Thread virgo

Hello,
I have a problem on LFS v7.4, chapter 5.4.1: Installation of Cross Binutils


'configure' step seemes to be ok.


The 'make' command logs the following lines:
...
make[2]: Entering directory `/mnt/lfs/sources/binutils-build/bfd'
Making info in doc
make[3]: Entering directory `/mnt/lfs/sources/binutils-build/bfd/doc'
restore=:  backupdir=.am$$  \
rm -rf $backupdir  mkdir $backupdir  \
if (/mnt/lfs/sources/binutils-2.23.2/missing makeinfo 
--split-size=500
--split-size=500 --version) /dev/null 21; then \
  for f in bfd.info bfd.info-[0-9] bfd.info-[0-9][0-9] bfd.i[0-9]
bfd.i[0-9][0-9]; do \
if test -f $f; then mv $f $backupdir; restore=mv; else :; fi; \
  done; \
else :; fi  \
if /mnt/lfs/sources/binutils-2.23.2/missing makeinfo 
--split-size=500
--split-size=500   -I ../../../binutils-2.23.2/bfd/doc \
 -o bfd.info `test -f 'bfd.texinfo' || echo
'../../../binutils-2.23.2/bfd/doc/'`bfd.texinfo; \
then \
  rc=0; \
else \
  rc=$?; \
  $restore $backupdir/* `echo ./bfd.info | sed 's|[^/]*$||'`; \
fi; \
rm -rf $backupdir; exit $rc
WARNING: `makeinfo' is missing on your system.  You should only need it if
 you modified a `.texi' or `.texinfo' file, or any other file
 indirectly affecting the aspect of the manual.  The spurious
 call might also be the consequence of using a buggy `make' (AIX,
 DU, IRIX).  You might want to install the `Texinfo' package or
 the `GNU make' package.  Grab either from any GNU archive site.
make[3]: *** [bfd.info] Error 1
make[3]: Leaving directory `/mnt/lfs/sources/binutils-build/bfd/doc'
Making info in po
make[3]: Entering directory `/mnt/lfs/sources/binutils-build/bfd/po'
make[3]: Nothing to be done for `info'.
make[3]: Leaving directory `/mnt/lfs/sources/binutils-build/bfd/po'
make[3]: Entering directory `/mnt/lfs/sources/binutils-build/bfd'
make[3]: Nothing to be done for `info-am'.
make[3]: Leaving directory `/mnt/lfs/sources/binutils-build/bfd'
make[2]: *** [info-recursive] Error 1
make[2]: Leaving directory `/mnt/lfs/sources/binutils-build/bfd'
make[1]: *** [all-bfd] Error 2
make[1]: Leaving directory `/mnt/lfs/sources/binutils-build'
make: *** [all] Error 2



My host is a Ubuntu 10.04.2 LTS and the output of version-check.sh is:

bash, version 4.1.5(1)-release
/bin/sh - /bin/bash
Binutils: (GNU Binutils for Ubuntu) 2.20.1-system.20100303
bison (GNU Bison) 2.3
/usr/bin/yacc - /usr/local/bin/bison
bzip2,  Version 1.0.5, 10-Dec-2007.
Coreutils:  7.4
diff (GNU diffutils) 2.8.1
find (GNU findutils) 4.4.2
GNU Awk 4.0.1
/usr/bin/awk - /usr/local/bin/gawk
gcc (Ubuntu 4.4.3-4ubuntu5.1) 4.4.3
g++ (Ubuntu 4.4.3-4ubuntu5.1) 4.4.3
(Ubuntu EGLIBC 2.11.1-0ubuntu7.12) 2.11.1
GNU grep 2.5.4
gzip 1.3.12
Linux version 3.10.9--grs-ipv6-64 (ker...@kernel.ovh.net) (gcc version
4.7.2 (Debian 4.7.2-5) ) #1 SMP Wed Aug 21 11:51:59 CEST 2013
m4 (GNU M4) 1.4.10
GNU Make 3.81
patch 2.6
Perl version='5.10.1';
GNU sed version 4.2.1
tar (GNU tar) 1.22
Texinfo: makeinfo (GNU texinfo) 4.9
xz (XZ Utils) 5.0.0
g++ compilation OK


PS: Although I'm not using Texinfo-5.1, I tried the tip from the book
Fix a couple of syntax errors that prevent the documentation from building
with Texinfo-5.1: 
sed -i -e 's/@colophon/@@colophon/' \
   -e 's/d...@cygnus.com/doc@@cygnus.com/' bfd/doc/bfd.texinfo
but it makes no difference.


Any hint on what's wrong, why the 'makeinfo' is missing?

-- 
http://linuxfromscratch.org/mailman/listinfo/lfs-support
FAQ: http://www.linuxfromscratch.org/lfs/faq.html
Unsubscribe: See the above information page


Re: [lfs-support] 5.4.1 Binutils-2.23.2 error

2013-09-11 Thread virgo
 You seem to have some required progrms in /usr/local/bin.  Does the lfs 
 user have /usr/local/bin in the PATH variable?  It's not set up that way 
 in the book by default.  Try adjusting the LFS user's ~/.bashrc to 
 include that.

Thank you very much, Bruce.
That was the problem!

For the others beginners like me:
I changed the PATH line in ~/.bashrc (for lfs user)

The old version:
PATH=/tools/bin:/bin:/usr/bin

The new vesion:
PATH=/tools/bin:/bin:/usr/bin:/usr/local/bin


 
-- Bruce
 




-- 
http://linuxfromscratch.org/mailman/listinfo/lfs-support
FAQ: http://www.linuxfromscratch.org/lfs/faq.html
Unsubscribe: See the above information page


[lfs-support] 5.9. Binutils-2.23.2 - Pass 2 - C compiler error

2013-09-12 Thread virgo
Hello everyone,
I'm out of luck with binutils as I have an error on the second pass also!


The configure command gives an error:
...
checking for gawk... gawk
checking for gcc... x86_64-lfs-linux-gnu-gcc
checking for C compiler default output file name... a.out
checking whether the C compiler works... configure: error: in
`/mnt/lfs/sources/binutils-build':
configure: error: cannot run C compiled programs.
If you meant to cross compile, use `--host'.
See `config.log' for more details.


config.log :

configure:4043: $? = 0
configure:4032: x86_64-lfs-linux-gnu-gcc -v 5
Using built-in specs.
COLLECT_GCC=x86_64-lfs-linux-gnu-gcc
COLLECT_LTO_WRAPPER=
/mnt/lfs/tools/bin/../libexec/gcc/x86_64-lfs-linux-gnu/4.8.1/lto-wrapper
Target: x86_64-lfs-linux-gnu
Configured with: ../gcc-4.8.1/configure 
--target=x86_64-lfs-linux-gnu
--prefix=/tools --with-sysroot=/mnt/lfs 
--with-newlib --without-headers
--with-local-prefix=/tools 
--with-native-system-header-dir=/tools/include
--disable-nls --disable-shared --disable-multilib 
--disable-decimal-float
--disable-threads --disable-libatomic 
--disable-libgomp --disable-libitm
--disable-libmudflap 
--disable-libquadmath
--disable-libsanitizer
--disable-libssp --disable-libstdc++-v3 
--enable-languages=c,c++
--with-mpfr-include=/mnt/lfs/sources/gcc-build/../gcc-4.8.1/mpfr/src 
--with-mpfr-lib=/mnt/lfs/sources/gcc-build/mpfr/src/.libs
Thread model: single
gcc version 4.8.1 (GCC)
configure:4043: $? = 0
configure:4032: x86_64-lfs-linux-gnu-gcc -V 5
x86_64-lfs-linux-gnu-gcc: error: unrecognized command line option '-V'
x86_64-lfs-linux-gnu-gcc: fatal error: no input files
compilation terminated.
configure:4043: $? = 1
configure:4032: x86_64-lfs-linux-gnu-gcc -qversion 5
x86_64-lfs-linux-gnu-gcc: error: unrecognized command line option '-qversion'
x86_64-lfs-linux-gnu-gcc: fatal error: no input files
compilation terminated.
configure:4043: $? = 1
configure:4063: checking for C compiler default output file name
configure:4085: x86_64-lfs-linux-gnu-gccconftest.c  5
configure:4089: $? = 0
configure:4126: result: a.out
configure:4142: checking whether the C compiler works
configure:4151: ./a.out
../binutils-2.23.2/configure: line 4153: ./a.out: No such file or directory
configure:4155: $? = 127
configure:4162: error: in `/mnt/lfs/sources/binutils-build':
configure:4166: error: cannot run C compiled programs.
If you meant to cross compile, use `--host'.
See `config.log' for more details.


Question :
Is normal that the gcc tries to be configured with
 --with-mpfr-include=/mnt/lfs/sources/gcc-build/../gcc-4.8.1/mpfr/src
--with-mpfr-lib=/mnt/lfs/sources/gcc-build/mpfr/src/.libs ?

I don't have sources/gcc-build folder as I deleted it at the end of
chapter 5.8,
as requested by the note on chapter 5.3.
I'm missing something ?
(I'll re-try without deleting it, in meantime...)

I want to say that the test at the end of chapter 5.7 was successful. 

Thanks for your time.

-- 
http://linuxfromscratch.org/mailman/listinfo/lfs-support
FAQ: http://www.linuxfromscratch.org/lfs/faq.html
Unsubscribe: See the above information page


Re: [lfs-support] 5.9. Binutils-2.23.2 - Pass 2 - C compiler error

2013-09-17 Thread virgo
virgo virgo54 at hotmail.com writes:

 
 Hello everyone,
 I'm out of luck with binutils as I have an error on the second pass also!
 
 The configure command gives an error:
 ...
 checking for gawk... gawk
 checking for gcc... x86_64-lfs-linux-gnu-gcc
 checking for C compiler default output file name... a.out
 checking whether the C compiler works... configure: error: in
 `/mnt/lfs/sources/binutils-build':
 configure: error: cannot run C compiled programs.
 If you meant to cross compile, use `--host'.
 See `config.log' for more details.

Hi, 
Just to let you know that I restart over the 5th chapter and all went
smooth. I don't know what I did wrong the first time :/

I'm not much smarter after this bug but at least I can continue!


 Thanks for your time.
 




-- 
http://linuxfromscratch.org/mailman/listinfo/lfs-support
FAQ: http://www.linuxfromscratch.org/lfs/faq.html
Unsubscribe: See the above information page