On 20/05/2019 14:42, emiliocabrera via lfs-dev wrote:
Hi. I´m at 5.5.1 Installation of Cross GCC, I´m building the LFS V8.4
on a VirtualBox machine with Debian x86_x64 installed. I get this error:
Configuring stage 2 in ./intl
You should be using lfs-support for this kind of question. If you agree
move the thread to lfs-support.
The above line tells us two things:
(1) the build system somehow enters "stage 2"
(2) it tries to configure the intl dir.
(1) should only happen when doing native builds: it means the compiler
tries to compile itself with what has been built during "stage 1". This
cannot happen when cross compiling, because a cross compiler cannot
rebuild itself. So it looks like something has gone wrong when passing
the configure flag:
--target=$LFS_TGT
Either $LFS_TGT was not set (this may happen if you logged out and in
and forgot to su to user lfs)
Or the backslash `\' character at the end of the line above was
forgotten, or followed by a space. The second possibility may occur if
pasting from pdf.
Or $LFS_TGT does is set to a wrong value.
(2) shouldn't happen if you passed "--disable-nls". So again, maybe a
missing `\' character.
I think you should review your configure command (using "history" for
example).
Also, it is always a good idea to try:
echo LFS=$LFS LFS_TGT=$LFS_TGT PATH=$PATH
whoami
env
and anything ensuring you are using the right environment.
Regards
Pierre
configure: creating cache ./config.cache
checking whether make sets $(MAKE)... yes
checking for a BSD-compatible install... /usr/bin/install -c
checking whether NLS is requested... no
checking for msgfmt... no
checking for gmsgfmt... :
checking for xgettext... no
checking for msgmerge... no
checking for x86_64-pc-linux-gnu-gcc...
/lfs/sources/gcc-8.2.0/build/./prev-gcc/xgcc
-B/lfs/sources/gcc-8.2.0/build/./prev-gcc/
-B/tools/x86_64-pc-linux-gnu/bin/ -B/tools/x86_64-pc-linux-gnu/bin/
-B/tools/x86_64-pc-linux-gnu/lib/ -isystem
/tools/x86_64-pc-linux-gnu/include -isystem
/tools/x86_64-pc-linux-gnu/sys-include
checking for C compiler default output file name...
configure: error: in `/lfs/sources/gcc-8.2.0/build/intl':
configure: error: C compiler cannot create executables
See `config.log' for more details.
Makefile:8925: recipe for target 'configure-stage2-intl' failed
make[2]: *** [configure-stage2-intl] Error 77
make[2]: Leaving directory '/lfs/sources/gcc-8.2.0/build'
Makefile:21584: recipe for target 'stage2-bubble' failed
make[1]: *** [stage2-bubble] Error 2
make[1]: Leaving directory '/lfs/sources/gcc-8.2.0/build'
Makefile:896: recipe for target 'all' failed
make: *** [all] Error 2
I had check the config.log on /lfs/sources/gcc-8.2.0/build/intl
directory and I get this:
configure:3000: /lfs/sources/gcc-8.2.0/build/./prev-gcc/xgcc
-B/lfs/sources/gcc-8.2.0/build/./prev-gcc/
-B/tools/x86_64-pc-linux-gnu/bin/ -B/tools/x86_64-pc-linux-gnu/bin/
-B/tools/x86_64-pc-linux-gnu/lib/ -is$
/tools/x86_64-pc-linux-gnu/bin/ld: cannot find crt1.o: No such file or
directory
/tools/x86_64-pc-linux-gnu/bin/ld: cannot find crti.o: No such file or
directory
/tools/x86_64-pc-linux-gnu/bin/ld: cannot find -lc
/tools/x86_64-pc-linux-gnu/bin/ld: cannot find crtn.o: No such file or
directory
collect2: error: ld returned 1 exit status
configure:3004: $? = 1
configure:3041: result:
configure: failed program was:
| /* confdefs.h */
| #define PACKAGE_NAME ""
| #define PACKAGE_TARNAME ""
| #define PACKAGE_VERSION ""
| #define PACKAGE_STRING ""
| #define PACKAGE_BUGREPORT ""
| #define PACKAGE_URL ""
| /* end confdefs.h. */
|
| int
| main ()
| {
|
| ;
| return 0;
| }
configure:3047: error: in `/lfs/sources/gcc-8.2.0/build/intl':
configure:3051: error: C compiler cannot create executables
See `config.log' for more details.
In this config.log the error says /tools/x86_64-pc-linux-gnu/bin/ld:
cannot find crt1.o: No such file or directory I checked
/tools/x86_64-pc-linux-gnu/bin and "ld" ain´t a directory just a file.
I had being looking on internet I most of people just solve the
problem by reinstalling the HOST, or they solve the problem but they
don´t know how and the other answer I get is that I should install the
libc6-dev which I did but it din´t work.
Please HELP!!!!!
--
http://lists.linuxfromscratch.org/listinfo/lfs-dev
FAQ: http://www.linuxfromscratch.org/faq/
Unsubscribe: See the above information page