English version
Accueil     À propos     Téléchargement     Ressources     Contactez-nous    

Ce site est rarement mis à jour. Pour les informations les plus récentes, rendez-vous sur le nouveau site OCaml à l'adresse ocaml.org.

Browse thread
cvs ocaml build failing
[ Home ] [ Index: by date | by threads ]
[ Search: ]

[ Message by date: previous | next ] [ Message in thread: previous | next ] [ Thread: previous | next ]
Date: 2009-04-16 (16:50)
From: Stéphane Glondu <steph@g...>
Subject: Re: [Caml-list] cvs ocaml build failing
Joel Reymont a écrit :
>> That would be my fault (I guess). See PR#3047. I haven't tested the
>> patch with the ocamlbuild-based build system, but I guess "initgroups.o"
>> and "setgroups.o" are missing from otherlibs/unix/libunix.clib... Could
>> you check that updating libunix.clib solves your build failure?
> How do I check?

Add initgroups.o and setgroups.o in otherlibs/unix/libunix.clib, then
launch again the compilation.

> BTW, there was another error with regular make process.
> boot/ocamlrun boot/ocamlc -nostdlib -I boot  -linkall -o ocaml.tmp
> toplevel/toplevellib.cma toplevel/topstart.cmo
> File "_none_", line 1, characters 0-1:
> Error: Error while linking boot/stdlib.cma(Pervasives):
> The external function `caml_log1p_float' is not available
> make[1]: *** [ocaml] Error 2

It seems that -lm is missing in BYTECCLIBS and/or NATIVECCLIBS (see
config/Makefile). However, the ./configure script should have done this
for you. This might be worth a bugreport.

Please pay attention and don't mix both build systems: either use make
or ocamlbuild, but don't run make after having used ocamlbuild nor
vice-versa. To be sure, start from a fresh CVS checkout.