Hi,

this error message is in deed helpful. So the sys/eventfd.h header is
unavailable?

Gerd


> I'm also getting this error on CentOS 5.5. This is the first time I've had
> trouble installing godi on any system, so something changed with ocamlnet
> and I'm not sure how to get around it. Here's my exact error:
>
> + gcc -fno-defer-pop -Wall -D_FILE_OFFSET_BITS=64 -D_REENTRANT -fPIC -c
> -O
>  -I'/home/aa144/usr/godi312/lib/ocaml/std-lib' 'netsys_c_poll.c'
> netsys_c_poll.c:12:25: error: sys/eventfd.h: No such file or directory
> netsys_c_poll.c: In function 'netsys_create_event_aggreg':
> netsys_c_poll.c:235: warning: implicit declaration of function 'eventfd'
> Error: Exec error: File
> /home/aa144/usr/godi312/build/godi/godi-ocamlnet/work/ocamlnet-3.5.1/src/netsys/./../../Makefile.rules,
> line 122: Command returned with non-zero exit code
> Error: Exec error: File
> /home/aa144/usr/godi312/build/godi/godi-ocamlnet/work/ocamlnet-3.5.1/./Makefile,
> line 19: Command returned with non-zero exit code
> Error: Exec error: File
> /home/aa144/usr/godi312/build/godi/godi-ocamlnet/./../../mk/bsd.pkg.mk,
> line 1039: Command returned with non-zero exit code
> Error: Exec error: File
> /home/aa144/usr/godi312/build/godi/godi-ocamlnet/./../../mk/bsd.pkg.mk,
> line 1378: Command returned with non-zero exit code
> Error: Command fails with code 1: godi_console
>
>
> On Mon, Apr 30, 2012 at 6:30 PM, Sebastien Mondet <
> sebastien.mon...@gmail.com> wrote:
>
>>
>> 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
>>
> _______________________________________________
> Godi-list mailing list
> Godi-list@ocaml-programming.de
> https://godirepo.camlcity.org/mailman/listinfo/godi-list


-- 
Gerd Stolpmann, Darmstadt, Germany    g...@gerd-stolpmann.de
Creator of GODI and camlcity.org.
Contact details:        http://www.camlcity.org/contact.html
Company homepage:       http://www.gerd-stolpmann.de
*** Searching for new projects! Need consulting for system
*** programming in Ocaml? Gerd Stolpmann can help you.

_______________________________________________
Godi-list mailing list
Godi-list@ocaml-programming.de
https://godirepo.camlcity.org/mailman/listinfo/godi-list

Reply via email to