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 (17:15)
From: Joel Reymont <joelr1@g...>
Subject: Re: [Caml-list] cvs ocaml build failing

On Apr 16, 2009, at 5:50 PM, Stéphane Glondu wrote:

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

Seems to help but still bombs out.

+ boot/ocamlyacc -v ocamldoc/odoc_text_parser.mly
5 shift/reduce conflicts.
Solver failed:
   Ocamlbuild knows of no rules that apply to a target named ocamldoc/ 
odoc_opt.mlast. This can happen if you ask Ocamlbuild to build a  
target with the wrong extension (e.g. .opt instead of .native) or if  
the source files live in directories that have not been specified as  
include directories.
   - Failed to build the target ocamldoc/ocamldoc.opt
       - Building ocamldoc/ocamldoc.opt:
           - Building ocamldoc/odoc_opt.native:
               - Building ocamldoc/odoc_opt.cmx:
                   - Failed to build all of these:
                       - Building ocamldoc/odoc_opt.ml:
                           - Failed to build all of these:
                               - Building ocamldoc/odoc_opt.mlast
                               - Building ocamldoc/odoc_opt.ml4
                               - Building ocamldoc/odoc_opt.mlbuild
                               - Building ocamldoc/odoc_opt.mly
                               - Building ocamldoc/odoc_opt.mll
                       - Building ocamldoc/odoc_opt.mlpack
Compilation unsuccessful after building 2136 targets (681 cached) in  

> 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.

BYTECCLIBS=   -lcurses -lpthread

This was all working fine before, ocamlbuild and make.

> 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.

I don't mix and I always do 'make clean', 'make distclean' and './ 

	Thanks, Joel

Mac hacker with a performance bent