[gobolinux-users] Compiling Glibc 2.3.6

Lucas C. Villa Real lucasvr at gobolinux.org
Sat May 6 06:38:13 GMT 2006


On 5/5/06, Laurent Pelecq <laurent.pelecq at soleil.org> wrote:
> Hello,
>
> I've been trying to compile Glibc 2.3.6 for a while. Currently I get
> this error:
>  In file included from ../libio/stdio.h:828,
>                   from ../include/stdio.h:5,
>                   from iofflush.c:30:
>  /System/Links/Headers/bits/stdio.h:35: erreur: syntax error before '{'
>  token
>
> According to the Glibc FAQ, this is because of a bad _G_Config.h in the
> include path. But the only one comes from Glibc 2.3.2. It seems
> strange not to be able to compile the GLibc because a previous
> version is installed. And I remember having compiled version
> 2.3.6 before.
>
> Did anyone succeed in compiling Glibc recently ?

Hi there,

I've been (cross) compiling it from times to times, without problems.
I'd recommend you to look at Hisham's ChrootCompile, which might save
you some headaches. ChrootCompile is, as its name says, a tool to
enjaul the compilation so that the external environment doesn't affect
your build.

To use it:

$ cd
$ cvs -z3 -d:pserver:anonymous at cvs.savannah.nongnu.org:/sources/goboscripts
co tools/ChrootCompile
$ mkdir chroot_env
$ cd chroot_env
$ ~/tools/ChrootCompile/SetupChrootEnv
$ ./ChrootCompile /Files/Compile/Recipes/Glibc/2.3.6

Ah, and just ensure to reset your CFLAGS and LD_LIBRARY_PATH variables
before launching Compile for it. Glibc build doesn't like to be
affected by them.

Bonne chance,

--
Lucas
powered by /dev/dsp


More information about the gobolinux-users mailing list