Hi again

The manual says:
CC: This variable selects the C compiler to use. Normally, gcc is
preferred. This variable must not be set to an absolute path but just to
the name of the compiler command.
http://godi.camlcity.org/godi/user-doc/umanual.html#htoc2

But when I try to use a different gcc (which appends the options below to
the cmd-line), gcc keeps being used anyways.

Is that normal?

Seb





On Mon, Apr 30, 2012 at 17:49, Sebastien Mondet
<sebastien.mon...@gmail.com>wrote:

>
> Hi
>
>
> I'm trying to bootstrap GODI in a pretty adverse environment (Red Hat 5.1).
>
> It used to work a few months ago but now it seems that "netsys" which is
> built during bootstrap_stage2, needs header files and libraries from GLIBC
> that are not in GLIBC 2.5.
> (the first one to make it fail is <sys/eventfd.h>)
>
> But we have GLIBC 2.10 installed somewhere else.
>
> I have tried to use:
>   export C_INCLUDE_PATH=$GLIBC_INC
>   export LIBRARY_PATH=$GLIBC_LIB
> and a bunch of combinations of LD_LIBRARY_PATH and LD_PRELOAD ...
>
> I tried them before, after, and between stage 1 and stage 2. But it never
> succeeds (always differently: GLIBC version errors, seg-faults, "This
> architecture seems to be neither 32 bits nor 64 bits").
>
>
> does anyone have an idea of how to go through this?
>
>
> I guess the normal thing to do is to use the 2.10 since the beginning but
> in that case i don't know how tell godi's bootstrap stage1 to compile
> ocamlfatrun & co with the right library (they crash looking for the 2.5
> one).
> It seems that every call to gcc should have something like  "
>  -Wl,-rpath=$GLIBC_LIB  -Wl,-dynamic-linker=$GLIBC_LIB/ld-linux-x86-64.so.2
>  " but I don't know how to tell the bootstrap to use that everywhere.
>
>
>
> Thanks for any help
> Seb
>
>
>
_______________________________________________
Godi-list mailing list
Godi-list@ocaml-programming.de
https://godirepo.camlcity.org/mailman/listinfo/godi-list

Reply via email to