This is the mail archive of the gcc@gcc.gnu.org mailing list for the GCC project.


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

Re: compilation of libio failing on linux/libc6


> 
> hjl@lucon.org (H.J. Lu) writes:
> 
> > > With the latest cvs tree of egcs, libc-980125, and linux-2.1.81, libio 
> > > compilation in egcs is failing for me at
> > > 
> > > test -z "" || \
> > >   /usr/src/egcs/gcc/xgcc -B/usr/src/egcs/gcc/ -c -O2 -g -fvtable-thunks -fno-implicit-templates -I. -I. -nostdinc++ -D_IO_MTSAFE_IO  builtinbuf.cc -o pic/builtinbuf.o
> > > /usr/src/egcs/gcc/xgcc -B/usr/src/egcs/gcc/ -c -O2 -g -fvtable-thunks -fno-implicit-templates -I. -I. -nostdinc++ -D_IO_MTSAFE_IO builtinbuf.cc
> > > In file included from libio.h:30,
> > >                  from streambuf.h:36,
> > >                  from builtinbuf.h:32,
> > >                  from builtinbuf.cc:29:
> > > _G_config.h:43: syntax error before `;'
> > > make: *** [builtinbuf.o] Error 1
> > > 
> > > Line 43 in _G_config.h is
> > > 
> > 
> > Please find out why _G_config.h is generated. _G_config.h should
> > not be generated for glibc 2 unless you did some strange things
> > while configuring egcs. How did you configure egcs?
> 
> The problem is that _G_CONFIG_H is set to _G_config.h in
> libio/Makefile, and later set to null by the inserted linux-mt
> fragment, but only after it is too late, and a bunch of stuff has
> already used $(_G_CONFIG_H).
> 
> It looks like an ordering problem, the makefile lines generated by
> config.shared are inserted into the Makefile before target-mkfrag is.

It is strange. Ulrich has worked hard to get it right. It worked
for me. It may be a new bug in egcs. I will take a look when I get
time.


-- 
H.J. Lu (hjl@gnu.org)


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