2016-06-03 12:24 GMT-03:00 Jamenson Ferreira Espindula de Almeida Melo
<[email protected]>:
> -----BEGIN PGP SIGNED MESSAGE-----
> Hash: SHA256
>
>
>
> Jaboatão dos Guararapes, Pernambuco, Brazil, June 03 2016.
>
>
> ====================
> ====================
>
>
> Subject: gcc-5.3.0 - pass 1 build error
>
>
> ====================
> ====================
>
>
> The error:
>
> g++: error: \
> /usr/lib/gcc/x86_64-linux-gnu/4.9/../../../x86_64-linux-gnu/crti.o: \
> No such file or directory
> g++: error: /usr/lib/gcc/x86_64-linux-gnu/4.9/crtbeginS.o: No such \
> file or directory
> g++: error: /usr/lib/gcc/x86_64-linux-gnu/4.9/crtendS.o: No such file \
> or directory
> g++: error:
> /usr/lib/gcc/x86_64-linux-gnu/4.9/../../../x86_64-linux-gnu/crtn.o: \
> No such file or directory
> Makefile:409: recipe for target 'libcc1.la' failed
> make[3]: *** [libcc1.la] Error 1
> make[3]: Leaving directory '/mnt/lfs/sources/gcc-5.3.0/build/libcc1'
> Makefile:291: recipe for target 'all' failed
> make[2]: *** [all] Error 2
> make[2]: Leaving directory '/mnt/lfs/sources/gcc-5.3.0/build/libcc1'
> Makefile:10614: recipe for target 'all-libcc1' failed
> make[1]: *** [all-libcc1] Error 2
> make[1]: Leaving directory '/mnt/lfs/sources/gcc-5.3.0/build'
> Makefile:858: recipe for target 'all' failed
> make: *** [all] Error 2
>
>
>
> ====================
> ====================
>
>
> Version check script output:
>
> bash, version 4.3.24(1)-release
> /bin/sh -> /bin/bash
> Binutils: (GNU Binutils) 2.24
> bison (GNU Bison) 3.0.2
> yacc is bison (GNU Bison) 3.0.2
> bzip2,  Version 1.0.6, 6-Sept-2010.
> Coreutils:  8.23
> diff (GNU diffutils) 3.3
> find (GNU findutils) 4.4.2
> GNU Awk 4.1.1, API: 1.1 (GNU MPFR 3.1.2-p10, GNU MP 6.0.0)
> /usr/bin/awk -> /usr/bin/gawk
> gcc (GCC) 4.9.1
> g++ (GCC) 4.9.1
> (GNU libc) 2.20
> grep (GNU grep) 2.20
> gzip 1.6
> Linux version 3.16.2-jfeam-2015dez21 (jamenson@lfs-comp02) (gcc \
> version 4.9.1 (GCC) ) #1 SMP Mon Dec 21 06:25:57 BRT 2015
> m4 (GNU M4) 1.4.17
> GNU Make 4.0
> GNU patch 2.7.1
> Perl version='5.20.0';
> sed (GNU sed) 4.2.2
> tar (GNU tar) 1.28
> makeinfo (GNU texinfo) 5.2
> xz (XZ Utils) 5.0.5
> g++ compilation OK
>
>
> ====================
> ====================
>
>
> Hi all!
>
> I am trying to build a LFS 7.9 (SysV version).   Detail: instead of
> making a new partition following the book instructions, I am trying to
> build the system in an ext4 file system archive (root.ext4), mounted in
> loop mode (loop0).   My LFS host system is 7.6 (systemd version).
>
> Any idea about the gcc-5.3.0 build error here described?
>
>
> Thank you.
>
>
> Jamenson Ferreira Espindula de Almeida Melo
> GNU/Linux user # 166197
> https://linuxcounter.net/cert/166197.png
>
> Key fingerprint:
> 234D 1914 4224 7C53 BD13  6855 2AE0 25C0 08A8 6180
>
>
> -----BEGIN PGP SIGNATURE-----
> Version: GnuPG v2.1.4 (GNU/Linux)
>
> iQEcBAEBCAAGBQJXUaCwAAoJECrgJcAIqGGAqwMIAI/d35InS7i+5Wxgp/nHeKv9
> fFvH9sPTAbKwsXWQr+Z8obExiO21ywXiBSJRotPwM1A6rn8kKpoOguvCG7jqsuvS
> maNPYhKI8sg/vxax8Z/lumlto9Kp5wGTrUcUCp+NHStJOIuPuXPl7yyr5ifrCS6L
> XmpwGc8Ghnj/ISwLUENV8lFbiC7yXzxJdVm+aZM4VPgxdzI1sdLqVROxKZRq3/NN
> 0dXah737M3Cqq3aP1a80bDpMVB8K6hVNgQYOd2AeWEagXdOuDXFVQe6yc+UIWPox
> Hhk5kuWMbtunuV2/sOsQJ3Mje3duyirVvbZW/YNFQ37QyWK4qc68W9VSBVBNb6k=
> =ktfZ
> -----END PGP SIGNATURE-----

I have solved the problem.  I followed this post:


-------- Cut and Paste begin ---------


/mnt/lfs/sources/gcc-build/./gcc/as: line 106: exec: --: invalid option

I think this was the result of building the pass1 of binutils with dash. I
can't be too sure, but if you changed the sh link after binutils pass1,
while building gcc, then 'as' may give you issues.  That's all I can think
of.

Sincerely,

William Harrington

<http://lists.linuxfromscratch.org/pipermail/lfs-support/2015-April/048620.html>


-------- Cut and Paste end ---------


I also confirm that.  I have rebuild and reinstall binutils-2.26, after
that gcc-5.3.0 has build and install normally.

Remembering: I am building and installing on an ext4 filesystem in an
archive (root.ext4), not in a partition.   Thinking well about this, I
remembered the first error probably was lack of space in the archive.
I moved the archive to another partition (correct), but, inadvertently,
build and install binutils-2.26 with other Operational System (Debian
8), on which bash is, precisely, a symlink to dash.   I think that could
contaminate binutils, reflecting on gcc-5.3.0.  The errors raised was
typical:

xgcc: error: unrecognized command line option '-V'
xgcc: fatal error: no input files

xgcc: error: unrecognized command line option '-qversion'
xgcc: fatal error: no input files

/mnt/lfs/sources/gcc-5.3.0/build/./gcc/as: line 106: \
exec: --: invalid option
exec: usage: exec [-cl] [-a name] [command \
[arguments ...]] [redirection ...]

configure:3695: error: in
`/mnt/lfs/sources/gcc-5.3.0/build/x86_64-lfs-linux-gnu/libgcc':
configure:3698: error: cannot compute suffix of object files: cannot
compile
See `config.log' for more details.


configure: exit 1


That was it!


Jamenson Ferreira Espindula de Almeida Melo
GNU/Linux user # 166197
https://linuxcounter.net/cert/166197.png

Key fingerprint:
234D 1914 4224 7C53 BD13  6855 2AE0 25C0 08A8 6180
-- 
http://lists.linuxfromscratch.org/listinfo/blfs-support
FAQ: http://www.linuxfromscratch.org/blfs/faq.html
Unsubscribe: See the above information page

Reply via email to