This is the mail archive of the libc-alpha@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]

Re: EGCS build barf


I have exactly the same problem using libc-2.0.105. I even did what you
did, and my build also died at malloc. Also the latest egcs fails to build
libm from glibc-2.0.108, it has problems with asm.

On Mon, 21 Dec 1998, Wesley Morgan wrote:

WM> After upgrading to glibc 2.0.108 (I believe that is when it occurred), I
WM> could no longer successfully build egcs. The build pukes during the final
WM> libio stage...
WM> 
WM> test x"yes" != xyes || \
WM>   /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
WM> In file included from /usr/include/bits/libc-lock.h:23,
WM>                  from ../../../egcs/libio/libioP.h:32,
WM>                  from ../../../egcs/libio/parsestream.cc:30:
WM> /usr/include/pthread.h:434: Internal compiler error.
WM> /usr/include/pthread.h:434: Please submit a full bug report to `egcs-bugs@cygnus.com'.
WM> /usr/include/pthread.h:434: See <URL:http://egcs.cygnus.com/faq.html#bugreport> for details.
WM> make: *** [parsestream.o] Error 1
WM> 
WM> If I comment out the offending functions, the build will continue a bit
WM> but eventually that undeclared malloc gets you. I have no clue whether
WM> this is a egcs or glibc thing, so I'm CC'ing to egcs-bugs as well :)
WM> 
WM> If you need more info, I'm more than happy to oblige.
WM> 
WM> >From pthread.h:
WM> 
WM> /* Return current value of the thread-specific data slot identified by KEY.  */
WM> extern void *__pthread_getspecific __P ((pthread_key_t __key)); 
WM> extern void *pthread_getspecific __P ((pthread_key_t __key));
WM> 
WM> >From stdlib.h:
WM> 
WM> extern __ptr_t malloc __P ((size_t __size));
WM> (...)
WM> extern __ptr_t valloc __P ((size_t __size));
WM> 
WM> >From alloca.h:
WM> 
WM> /* Allocate a block that will be freed when the calling function exits.  */
WM> extern __ptr_t alloca __P ((size_t __size));
WM> 

-- 
Richard Ketchersid, 816 Evans  _/_/   _/_/
UC Berkeley, Logic Group      _/_/_/  _/ _/         
Office Hours: W/F 10-11      _/    _/ _/_/    




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