bug-glibc
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

glibc 2.2 building problem: "make check" fails twice


From: Minko Markov
Subject: glibc 2.2 building problem: "make check" fails twice
Date: Tue, 02 Jan 2001 01:50:40 -0500

Hello,

I have Linux, originally RH 6.0, kernel upgraded to 2.2.17,
glibc 2.1.3, gcc 2.95.2.  glibc 2.1.3 is rpm-based, gcc is compiled
here. The CPU is AMD K6-II.

I compiled glibc-2.2 successfully. However, "make check" failed
afterwards. That is what I did:

 1. renamed /usr/include to something else
 2. created new /usr/include    (in fact, it is a softlink,
    so that I can switch /usr/include to either the old or the
    new one).
 3. in the new /usr/include, created softlinks 
      /usr/include/linux -> /usr/src/linux/include/linux and
      /usr/include/asm   -> /usr/src/linux/include/asm
    In other words, /usr/include during the build is empty,
    except for the softlinks.
 4. the sources of glibc-2.2 are in /usr/local/src/glibc/glibc-2.2/
    I created /usr/local/src/glibc/glibc_build/ and went there.

 5. unset LD_LIBRARY_PATH
 6. export CFLAGS="-O6 -march=k6 -mpcu=k6"
 7. ../glibc-2.2/configure --prefix=/usr --enable-add-ons
 8. make
 9. make check

"make check"  output 652 lines, testing successfully, and then failed, saying:
 cd /usr/local/src/glibc/glibc_build/stdlib && gcc   -include ../config.h \
               /usr/local/src/glibc/glibc-2.2/stdlib/isomac.c -o isomac
 /usr/local/src/glibc/glibc-2.2/stdlib/isomac.c:74: stdio.h: No such file or 
directory
 /usr/local/src/glibc/glibc-2.2/stdlib/isomac.c:75: stdlib.h: No such file or 
directory
 /usr/local/src/glibc/glibc-2.2/stdlib/isomac.c:76: string.h: No such file or 
directory
 make[2]: *** [/usr/local/src/glibc/glibc_build/stdlib/isomac] Error 1
 make[2]: Leaving directory `/usr/local/src/glibc/glibc-2.2/stdlib'
 make[1]: *** [stdlib/tests] Error 2
 make[1]: Leaving directory `/usr/local/src/glibc/glibc-2.2'
 make: *** [check] Error 2

Indeed, when gcc attempts to compile isomac.c, it does not get any command-line
argument that instructs it to consider (as an include directory)
/usr/local/src/glibc/glibc-2.2/include/  , which is where stdio.h, stdlib.h
and string.h of the *new* glibc are. And /usr/include is empty.

Then I ran "make -k check", and all the remaining tests were successful,
except for one more error:
  cd /usr/local/src/glibc/glibc_build/posix && gcc   -include ../config.h \
                 /usr/local/src/glibc/glibc-2.2/posix/annexc.c -o annexc
  /usr/local/src/glibc/glibc-2.2/posix/annexc.c:19: ctype.h: No such file or 
directory
  /usr/local/src/glibc/glibc-2.2/posix/annexc.c:20: fnmatch.h: No such file or 
directory
  /usr/local/src/glibc/glibc-2.2/posix/annexc.c:21: stdio.h: No such file or 
directory
  /usr/local/src/glibc/glibc-2.2/posix/annexc.c:22: stdlib.h: No such file or 
directory
  /usr/local/src/glibc/glibc-2.2/posix/annexc.c:23: string.h: No such file or 
directory
  /usr/local/src/glibc/glibc-2.2/posix/annexc.c:24: unistd.h: No such file or 
directory
  /usr/local/src/glibc/glibc-2.2/posix/annexc.c:25: signal.h: No such file or 
directory
  /usr/local/src/glibc/glibc-2.2/posix/annexc.c:26: sys/wait.h: No such file or 
directory
  make[2]: *** [/usr/local/src/glibc/glibc_build/posix/annexc] Error 1
  make[2]: Target `tests' not remade because of errors.
  make[2]: Leaving directory `/usr/local/src/glibc/glibc-2.2/posix'
  make[1]: *** [posix/tests] Error 2

The type of error here is exactly the same as above -- gcc attempts
to compile a file (annexc.c), without considering
/usr/local/src/glibc/glibc-2.2/include/  for header files.

I will appreciate any information. Most likely, the newly-build glibc is OK.
Still I cannot understand why, on only 2 occasions, gcc is not told to
look for include files at the proper places. From what I read, it is OK
to have an empty /usr/include/ directory during the building of glibc,
because we don't want to use old headers for the new library. ??


Best Regards,
Minko Markov


-- 
Minko Markov  -  Doctoral Student in Computer Science,
                 University of Victoria, Victoria, CANADA
email: address@hidden
office: (250) 721-8768                             home: (250) 385-1041



reply via email to

[Prev in Thread] Current Thread [Next in Thread]