Glibc 2.3.3-5.1 'make check' failure in Ch6

Sergei msurgeN054M at yahoo.com
Thu May 20 14:15:20 PDT 2004


Hello,

I'm following LFS5.1, C{,XX}FLAGS, CHOST are unset.

There is a weird problem happening here. Compilation is fine.
However, once I run 'make check' I get the following error:

-----------------------------------------------------------------------
GCONV_PATH=/home/lfs/work/glibc-build/iconvdata LC_ALL=C
MALLOC_TRACE=/home/lfs/work/glibc-build/posix/tst-boost.mtrace  /home/lfs/work/glibc-build/elf/ld-linux.so.2
--library-path /home/lfs/work/glibc-build:/home/lfs/work/glibc-build/math:/home/lfs/work/glibc-build/elf:/home/lfs/work/glibc-build/dlfcn:/home/lfs/work/glibc-build/nss:/home/lfs/work/glibc-build/nis:/home/lfs/work/glibc-build/rt:/home/lfs/work/glibc-build/resolv:/home/lfs/work/glibc-build/crypt:/home/lfs/work/glibc-build/linuxthreads /home/lfs/work/glibc-build/posix/tst-boost
BOOST.tests > /home/lfs/work/glibc-build/posix/tst-boost.out
gcc wordexp-test.c -c -std=gnu99 -O2 -Wall -Winline -Wstrict-prototypes
-Wwrite-strings -g -mpreferred-stack-boundary=2     -I../include -I.
-I/home/lfs/work/glibc-build/posix -I.. -I../libio 
-I/home/lfs/work/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/i686
-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/i686/fpu -I../sysdeps/i386/i686
-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 /tools/lib/gcc-lib/i686-pc-linux-gnu/3.3.3/include
-isystem /usr/include -D_LIBC_REENTRANT -include ../include/libc-symbols.h  
-DNOT_IN_libc=1    -o /home/lfs/work/glibc-build/posix/wordexp-test.o -MD
-MP -MF /home/lfs/work/glibc-build/posix/wordexp-test.o.dt
gcc -nostdlib -nostartfiles -o /home/lfs/work/glibc-build/posix/wordexp-test 
-Wl,-dynamic-linker=/tmp/pkg-glibc/usr/lib/ld-linux.so.2  
-Wl,-z,combreloc  /home/lfs/work/glibc-build/csu/crt1.o /home/lfs/work/glibc-build/csu/crti.o
`gcc
--print-file-name=crtbegin.o` /home/lfs/work/glibc-build/posix/wordexp-test.o 
-Wl,-rpath-link=/home/lfs/work/glibc-build:/home/lfs/work/glibc-build/math:/home/lfs/work/glibc-build/elf:/home/lfs/work/glibc-build/dlfcn:/home/lfs/work/glibc-build/nss:/home/lfs/work/glibc-build/nis:/home/lfs/work/glibc-build/rt:/home/lfs/work/glibc-build/resolv:/home/lfs/work/glibc-build/crypt:/home/lfs/work/glibc-build/linuxthreads /home/lfs/work/glibc-build/libc.so.6 /home/lfs/work/glibc-build/libc_nonshared.a
-lgcc -lgcc_eh `gcc
--print-file-name=crtend.o` /home/lfs/work/glibc-build/csu/crtn.o
/home/lfs/work/glibc-build/posix/wordexp-test.o(.text+0xd1): In function
`main':
/home/lfs/work/glibc-2.3.3-lfs-5.1/posix/wordexp-test.c:249: the use of
`tmpnam' is dangerous, better use `mkstemp'
GCONV_PATH=/home/lfs/work/glibc-build/iconvdata
LC_ALL=C   /home/lfs/work/glibc-build/elf/ld-linux.so.2
--library-path /home/lfs/work/glibc-build:/home/lfs/work/glibc-build/math:/home/lfs/work/glibc-build/elf:/home/lfs/work/glibc-build/dlfcn:/home/lfs/work/glibc-build/nss:/home/lfs/work/glibc-build/nis:/home/lfs/work/glibc-build/rt:/home/lfs/work/glibc-build/resolv:/home/lfs/work/glibc-build/crypt:/home/lfs/work/glibc-build/linuxthreads /home/lfs/work/glibc-build/posix/wordexp-test 
> /home/lfs/work/glibc-build/posix/wordexp-test.out
make[2]: *** [/home/lfs/work/glibc-build/posix/wordexp-test.out] Error 1
make[2]: Leaving directory `/home/lfs/work/glibc-2.3.3-lfs-5.1/posix'
make[1]: *** [posix/tests] Error 2
make[1]: Leaving directory `/home/lfs/work/glibc-2.3.3-lfs-5.1'
make: *** [check] Error 2
-----------------------------------------------------------------------

First blamed on CFLAGS, but after  while ended up with all unset.
each time I compile the build is clean from before...
That's what I was trying to execute:
-----------------------------------------------------------
mkdir -p /tmp/pkg-glibc{,/usr,/lib,/install}
cd /home/lfs/work
rm -rf glibc-build glibc-2.3.3-lfs-5.1 #clean up from Ch5
unset CFLAGS CXXFLAGS CHOST
#export CFLAGS="-O2 -march=i686" #Seems to be safe as Slackware uses this
#export CXXFLAGS=$CFLAGS
tar jxvf glibc-2.3.3-lfs-5.1.tar.bz2
mkdir glibc-build
cd glibc-build
../glibc-2.3.3-lfs-5.1/configure --prefix=/tmp/pkg-glibc/usr \
    --disable-profile --enable-add-ons=linuxthreads \
    --libexecdir=/usr/lib --with-headers=/usr/include \
    --without-cvs
make
make check
-----------------------------------------------------------------
(those dirs in /tmp are for slackware pkg manager).

Now I issue next 'make check' to skip previous error and get:
-----------------------------------------------------------------------
GCONV_PATH=/home/lfs/work/glibc-build/iconvdata
LC_ALL=C   /home/lfs/work/glibc-build/elf/ld-linux.so.2
--library-path /home/lfs/work/glibc-build:/home/lfs/work/glibc-build/math:/home/lfs/work/glibc-build/elf:/home/lfs/work/glibc-build/dlfcn:/home/lfs/work/glibc-build/nss:/home/lfs/work/glibc-build/nis:/home/lfs/work/glibc-build/rt:/home/lfs/work/glibc-build/resolv:/home/lfs/work/glibc-build/crypt:/home/lfs/work/glibc-build/linuxthreads /home/lfs/work/glibc-build/stdio-common/scanf3 
> /home/lfs/work/glibc-build/stdio-common/scanf3.out
GCONV_PATH=/home/lfs/work/glibc-build/iconvdata
LC_ALL=C   /home/lfs/work/glibc-build/elf/ld-linux.so.2
--library-path /home/lfs/work/glibc-build:/home/lfs/work/glibc-build/math:/home/lfs/work/glibc-build/elf:/home/lfs/work/glibc-build/dlfcn:/home/lfs/work/glibc-build/nss:/home/lfs/work/glibc-build/nis:/home/lfs/work/glibc-build/rt:/home/lfs/work/glibc-build/resolv:/home/lfs/work/glibc-build/crypt:/home/lfs/work/glibc-build/linuxthreads /home/lfs/work/glibc-build/stdio-common/scanf4 
> /home/lfs/work/glibc-build/stdio-common/scanf4.out
make[2]: *** [/home/lfs/work/glibc-build/stdio-common/scanf4.out] Error 134
make[2]: Leaving directory `/home/lfs/work/glibc-2.3.3-lfs-5.1/stdio-common'
make[1]: *** [stdio-common/tests] Error 2
make[1]: Leaving directory `/home/lfs/work/glibc-2.3.3-lfs-5.1'
make: *** [check] Error 2
-----------------------------------------------------------------------
another 'make check' and everything is done.... 

Thank you in advance,
Sergei



More information about the lfs-support mailing list