This is the mail archive of the libc-hacker@sourceware.cygnus.com mailing list for the glibc project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

EGCS build barf


After upgrading to glibc 2.0.108 (I believe that is when it occurred), I
could no longer successfully build egcs. The build pukes during the final
libio stage...

test x"yes" != xyes || \
  /usr/src/egcsobj/gcc/xgcc -B/usr/src/egcsobj/gcc/ -B/usr/i586-pc-linux-gnu/bin/ -c -O2 -mpentium -march=pentium -D_GNU_SOURCE -fvtable-thunks -D_GNU_SOURCE -fno-implicit-templates -I. -I../../../egcs/libio -nostdinc++ -D_IO_MTSAFE_IO -fpic ../../../egcs/libio/parsestream.cc -o pic/parsestream.o
In file included from /usr/include/bits/libc-lock.h:23,
                 from ../../../egcs/libio/libioP.h:32,
                 from ../../../egcs/libio/parsestream.cc:30:
/usr/include/pthread.h:434: Internal compiler error.
/usr/include/pthread.h:434: Please submit a full bug report to `egcs-bugs@cygnus.com'.
/usr/include/pthread.h:434: See <URL:http://egcs.cygnus.com/faq.html#bugreport> for details.
make: *** [parsestream.o] Error 1

If I comment out the offending functions, the build will continue a bit
but eventually that undeclared malloc gets you. I have no clue whether
this is a egcs or glibc thing, so I'm CC'ing to egcs-bugs as well :)

If you need more info, I'm more than happy to oblige.

>From pthread.h:

/* Return current value of the thread-specific data slot identified by KEY.  */
extern void *__pthread_getspecific __P ((pthread_key_t __key)); 
extern void *pthread_getspecific __P ((pthread_key_t __key));

>From stdlib.h:

extern __ptr_t malloc __P ((size_t __size));
(...)
extern __ptr_t valloc __P ((size_t __size));

>From alloca.h:

/* Allocate a block that will be freed when the calling function exits.  */
extern __ptr_t alloca __P ((size_t __size));



Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]