Installing glibc-2.3.3-lfs-5.1 error

Ken Moffat ken at kenmoffat.uklinux.net
Mon Jun 7 15:01:38 PDT 2004


On Mon, 7 Jun 2004, Anders Lingfors wrote:

> When trying to install glibc-2.3.3 (LFS 5.1.1, chapter 5), I get the following error:
>
> make -C math subdir_install make[2]: Entering directory
> `/mnt/lfs/sources/glibc-2.3.3-lfs-5.1/math' /usr/bin/install -c -m 644
> math.h /tools/include/math.h /usr/bin/install -c -m 644
> bits/mathcalls.h /tools/include/bits/mathcalls.h /usr/bin/install -c
> -m 644 ../sysdeps/i386/fpu/bits/mathinline.h
> /tools/include/bits/mathinline.h /usr/bin/install -c -m 644
> ../sysdeps/i386/bits/huge_val.h /tools/include/bits/huge_val.h
> /usr/bin/install -c -m 644 ../sysdeps/ieee754/bits/nan.h
> /tools/include/bits/nan.h /usr/bin/install -c -m 644
> ../sysdeps/i386/fpu_control.h /tools/include/fpu_control.h
> /usr/bin/install -c -m 644 complex.h /tools/include/complex.h
> /usr/bin/install -c -m 644 bits/cmathcalls.h
> /tools/include/bits/cmathcalls.h /usr/bin/install -c -m 644 fenv.h
> /tools/include/fenv.h /usr/bin/install -c -m 644
> ../sysdeps/i386/fpu/bits/fenv.h /tools/include/bits/fenv.h
> /usr/bin/install -c -m 644 ../sysdeps/generic/bits/fenvinline.h
> /tools/include/bits/fenvinline.h /usr/bin/install -c -m 644
> ../sysdeps/i386/fpu/bits/mathdef.h /tools/include/bits/mathdef.h
> /usr/bin/install -c -m 644 tgmath.h /tools/include/tgmath.h
> /usr/bin/install -c -m 644 ../sysdeps/ieee754/ieee754.h
> /tools/include/ieee754.h echo '#include
> <../sysdeps/ieee754/dbl-64/s_isinf.c>' >
> /mnt/lfs/sources/glibc-build/math/m_isinf.cT mv -f
> /mnt/lfs/sources/glibc-build/math/m_isinf.cT
> /mnt/lfs/sources/glibc-build/math/m_isinf.c gcc -B/tools/bin/
> /mnt/lfs/sources/glibc-build/math/m_isinf.c -c -std=gnu99 -O2 -Wall
> -Winline -Wstrict-prototypes -Wwrite-strings -g
> -mpreferred-stack-boundary=4 -fPIC -Wno-uninitialized
                              ^^^^^^
> -D__NO_MATH_INLINES -D__LIBC_INTERNAL_MATH_INLINES -I../include -I.
> -I/mnt/lfs/sources/glibc-build/math -I.. -I../libio
> -I/mnt/lfs/sources/glibc-build -I../sysdeps/i386/elf
> -I../linuxthreads/sysdeps/unix/sysv/linux/i386
> -I../linuxthreads/sysdeps/unix/sysv/linux
> -I../linuxthreads/sysdeps/pthread -I../sysdeps/pthread
> -I../linuxthreads/sysdeps/unix/sysv -I../linuxthreads/sysdeps/unix
> -I../linuxthreads/sysdeps/i386/i586 -I../linuxthreads/sysdeps/i386
> -I../sysdeps/unix/sysv/linux/i386 -I../sysdeps/unix/sysv/linux
> -I../sysdeps/gnu -I../sysdeps/unix/common -I../sysdeps/unix/mman
> -I../sysdeps/unix/inet -I../sysdeps/unix/sysv/i386
> -I../sysdeps/unix/sysv -I../sysdeps/unix/i386 -I../sysdeps/unix
> -I../sysdeps/posix -I../sysdeps/i386/i586 -I../sysdeps/i386/i486
> -I../sysdeps/i386/fpu -I../sysdeps/i386 -I../sysdeps/wordsize-32
> -I../sysdeps/ieee754/ldbl-96 -I../sysdeps/ieee754/dbl-64
> -I../sysdeps/ieee754/flt-32 -I../sysdeps/ieee754
> -I../sysdeps/generic/elf -I../sysdeps/generic -nostdinc -isystem
> /mnt/lfs/tools/bin/../lib/gcc-lib/i586-pc-linux-gnu/3.3.3/include
> -isystem /tools/include -D_LIBC_REENTRANT -include
> ../include/libc-symbols.h -DPIC -DSHARED -DNOT_IN_libc=1
                            ^^^^^ ^^^^^^^^
> -DIS_IN_libm=1 -o /mnt/lfs/sources/glibc-build/math/m_isinf.os -MD -MP
                                                               ^
> -MF /mnt/lfs/sources/glibc-build/math/m_isinf.os.dt gcc: cannot
                                                 ^
> specify -o with -c or -S and multiple compilations make[2]: ***
> [/mnt/lfs/sources/glibc-build/math/m_isinf.os] Error 1 make[2]:
> Leaving directory `/mnt/lfs/sources/glibc-2.3.3-lfs-5.1/math' make[1]:
> *** [math/subdir_install] Error 2 make[1]: Leaving directory
> `/mnt/lfs/sources/glibc-2.3.3-lfs-5.1' make: *** [install] Error 2
>

 I don't have any idea what is wrong, but looking at a handy i686 log
shows that mine didn't have the -fPIC, nor the -DPIC -DSHARED that you
have.  More worryingly, my output went into m_isinf.o and the final
file referenced on my system was m_isinf.o.dt

> I have done everything as describes in the book up to this point,
> except that I'm installing LFS on a loopback device as described in
> http://www.se.linuxfromscratch.org/hints/downloads/files/one-partition-hint.txt.
> Everything has been fine up to this point. Any help is appreciated.
>
> /Anders
>

 Any chance you can attach the config.log (bzip2'd or gzipped) ?  If
it's excessively big, send it to me privately and I'll diff it against
my log from configuring / building / installing to see if I can see
anything (may take a little while, there will be spurious differences
e.g between i586 and i686).

 Unless, of course, someone else recognises the problem.

Ken
-- 
 das eine Mal als Tragödie, das andere Mal als Farce




More information about the lfs-support mailing list