Discussion:
[lfs-support] 5.7 - Problems configuring Glibc-2.27
miguel caldas
2018-03-30 18:41:27 UTC
Permalink
Hi,
I'm installing LFS 8.2 on a debian 9 host.
My host system requirements are these.

/bin/sh -> /bin/bash
Binutils: (GNU Binutils for Debian) 2.28
bison (GNU Bison) 3.0.4
/usr/bin/yacc -> /usr/bin/bison.yacc
bzip2, Version 1.0.6, 6-Sept-2010.
Coreutils: 8.26
diff (GNU diffutils) 3.5
find (GNU findutils) 4.7.0-git
GNU Awk 4.1.4, API: 1.1 (GNU MPFR 3.1.5, GNU MP 6.1.2)
/usr/bin/awk -> /usr/bin/gawk
gcc (Debian 6.3.0-18+deb9u1) 6.3.0 20170516
g++ (Debian 6.3.0-18+deb9u1) 6.3.0 20170516
(Debian GLIBC 2.24-11+deb9u3) 2.24
grep (GNU grep) 2.27
gzip 1.6
Linux version 4.9.0-6-amd64 (debian-***@lists.debian.org) (gcc version 6.3.0 20170516 (Debian 6.3.0-18+deb9u1) ) #1 SMP Debian 4.9.82-1+deb9u3 (2018-03-02)
m4 (GNU M4) 1.4.18
GNU Make 4.1
GNU patch 2.7.5
Perl version='5.24.1';
sed (GNU sed) 4.4
tar (GNU tar) 1.29
version-check.sh: line 47: makeinfo: command not found
xz (XZ Utils) 5.2.2
g++ compilation OK

When I try to configure the package using this command:

../configure \
--prefix=/tools \
--host=$LFS_TGT \
--build=$(../scripts/config.guess) \
--enable-kernel=3.2 \
--with-headers=/tools/include \
libc_cv_forced_unwind=yes \
libc_cv_c_cleanup=yes

I get this error message:

checking build system type... x86_64-pc-linux-gnu
checking host system type... x86_64-lfs-linux-gnu
checking for x86_64-lfs-linux-gnu-gcc... x86_64-lfs-linux-gnu-gcc
checking for suffix of object files... configure: error: in `/media/lfs/Root/sources/glibc-2.27/build':
configure: error: cannot compute suffix of object files: cannot compile
See `config.log' for more details

As suggested I went to config.log and saw the folowing information:

#define PACKAGE_TARNAME "glibc"
| #define PACKAGE_VERSION "(see version.h)"
| #define PACKAGE_STRING "GNU C Library (see version.h)"
| #define PACKAGE_BUGREPORT "https://sourceware.org/bugzilla/"
| #define PACKAGE_URL "http://www.gnu.org/software/glibc/"
| #define PKGVERSION "(GNU libc) "
| #define REPORT_BUGS_TO "<http://www.gnu.org/software/libc/bugs.html>"
| /* end confdefs.h. */
|
| int
| main ()
| {
|
| ;
| return 0;
| }
configure:2643: error: in `/media/lfs/Root/sources/glibc-2.27/build':
configure:2645: error: cannot compute suffix of object files: cannot compile
See `config.log' for more details

I have no idea of what to do next, so any help would be greatly appreciated.
Ken Moffat
2018-03-30 20:27:44 UTC
Permalink
Post by miguel caldas
Hi,
I'm installing LFS 8.2 on a debian 9 host.
My host system requirements are these.
[snip most]
Post by miguel caldas
version-check.sh: line 47: makeinfo: command not found
Very unlikely to be related to your immediate problem, but you are
missing texinfo.
Post by miguel caldas
../configure \
--prefix=/tools \
--host=$LFS_TGT \
--build=$(../scripts/config.guess) \
--enable-kernel=3.2 \
--with-headers=/tools/include \
libc_cv_forced_unwind=yes \
libc_cv_c_cleanup=yes
checking build system type... x86_64-pc-linux-gnu
checking host system type... x86_64-lfs-linux-gnu
checking for x86_64-lfs-linux-gnu-gcc... x86_64-lfs-linux-gnu-gcc
checking for suffix of object files... configure: error: in
configure: error: cannot compute suffix of object files: cannot compile
See `config.log' for more details
#define PACKAGE_TARNAME "glibc"
| #define PACKAGE_VERSION "(see version.h)"
| #define PACKAGE_STRING "GNU C Library (see version.h)"
| #define PACKAGE_BUGREPORT "https://sourceware.org/bugzilla/"
| #define PACKAGE_URL "http://www.gnu.org/software/glibc/"
| #define PKGVERSION "(GNU libc) "
| #define REPORT_BUGS_TO "<http://www.gnu.org/software/libc/bugs.html>"
| /* end confdefs.h. */
|
| int
| main ()
| {
|
| ;
| return 0;
| }
configure:2645: error: cannot compute suffix of object files: cannot compile
See `config.log' for more details
I have no idea of what to do next, so any help would be greatly appreciated.
I suggest you look around that part of config.log, there ought to be
a detailed error message for this somewhere nearby. There might
also be a lot of other apparent error reports (configure builds and
runs program fragments, often to look for things specific to certain
operating systems, and their absence will initially be recorded as
an error).

So, if you are using vim or less, open config.log and use the / key
to search (repeatedly), e.g.

/cannot compute suffix

or if spaces cause trouble

/cannot\ compute\ suffix

It will probably mention an error with your (lfs) gcc or binutils.

ĸen
--
Before the universe began, there was a sound. It went: "One, two, ONE,
two, three, four" [...] The cataclysmic power chord that followed was
the creation of time and space and matter and it does Not Fade Away.
- wiki.lspace.org/mediawiki/Music_With_Rocks_In
--
http://lists.linuxfromscratch.org/listinfo/lfs-support
FAQ: http://www.linuxfromscratch.org/blfs/faq.html
Unsubscribe: See the above information page

Do not top post on this list.

A: Because it messes up the order in which people normally read text.
Q: Why is top-posting such a bad thing?
A: Top-posting.
Q: What is the most annoying thing in e-mail?

http://en.wikip
Pierre Labastie
2018-03-31 07:54:43 UTC
Permalink
../configure                             \
      --prefix=/tools                    \
      --host=$LFS_TGT                    \
      --build=$(../scripts/config.guess) \
      --enable-kernel=3.2             \
      --with-headers=/tools/include      \
      libc_cv_forced_unwind=yes          \
      libc_cv_c_cleanup=yes
checking build system type... x86_64-pc-linux-gnu
checking host system type... x86_64-lfs-linux-gnu
checking for x86_64-lfs-linux-gnu-gcc... x86_64-lfs-linux-gnu-gcc
checking for suffix of object files... configure: error: in
configure: error: cannot compute suffix of object files: cannot compile
See `config.log' for more details
What does "x86_64-lfs-linux-gnu-gcc" return? To run this command, you should
be logged as user lfs, and the lfs partition (to /media/lfs/Root, if I
understand correctly) should be mounted.

Also, try "ls -l /tools". It should return (with a different date and time of
course):
lrwxrwxrwx 1 root root 14 févr. 14 17:44 /tools -> /media/lfs/Root/tools

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

Do not top post on this list.

A: Because it messes up the order in which people normally read text.
Q: Why is top-posting such a bad thing?
A: Top-posting.
Q: What is the most annoying thing i
Loading...