glibc-2.3.2 (Chapter 5) is confused by earlier errors

Brett lfs at brettscaife.org
Sun Nov 16 04:29:39 PST 2003


On Sun, 16 Nov 2003 21:29:51 +1100
Greg Schafer <gschafer at zip.com.au> wrote:

> > 
> > ----------------
> > 
> > mkdir /home/lfs/glibc-build/gnu
> > mkdir /home/lfs/glibc-build/csu
> > In file included from version.c:33:
> > /home/lfs/glibc-build/csu/version-info.h:1:1: missing terminating "
> >    character
> > /home/lfs/glibc-build/csu/version-info.h:2:1: missing terminating "
> >    character
> > /home/lfs/glibc-build/csu/version-info.h:3:1: missing terminating "
> >    character
> > /home/lfs/glibc-build/csu/version-info.h:4:1: missing terminating "
> >    character
> > In file included from ../include/pthread.h:1,
> >                  from
> > ../linuxthreads/sysdeps/pthread/bits/libc-lock.h:23,
> >                  from ../sysdeps/generic/ldsodefs.h:38,
> >                  from ../sysdeps/unix/sysv/linux/ldsodefs.h:25,
> >                  from ../sysdeps/unix/sysv/linux/init-first.c:30:
> > ../linuxthreads/sysdeps/pthread/pthread.h:163: error: parse error
> >    before "__thread"
> 
> It looks like you erroneously applied the GCC "No-Fixincludes" patch in the
> first pass of GCC when the book clearly states only apply it in the second
> pass. In other words, you might have made a boo-boo. You're not very far in,
> so best bet is wipe everything and start again from scratch.
> -- 

Greg,
      I've checked how I built GCC and I didn't apply any patch to GCC before I built it. This is the script I used to build GCC, which I think is what the book requires:

----------
  mkdir gcc-build &&
  cd gcc-build &&

  ../gcc-3.3.2/configure --prefix=/tools --with-local-prefix=tools \
    --disable-nls --enable-shared --enable-languages=c && 

  make BOOT_LDFLAGS="-static" bootstrap &&

  make install  &&

  ln -s gcc /tools/bin/cc
----------

Any other ideas would be appreciated.

Brett
 



More information about the lfs-support mailing list