Version française
Home     About     Download     Resources     Contact us    
Browse thread
Re: [Felix-impl] it no me build
[ Home ] [ Index: by date | by threads ]
[ Search: ]

[ Message by date: previous | next ] [ Message in thread: previous | next ] [ Thread: previous | next ]
Date: -- (:)
From: skaller <skaller@u...>
Subject: Re: [Felix-impl] [Caml-list] Re: it no me build
On Tue, 2007-05-15 at 18:31 -0700, Erick Tryzelaar wrote:
> skaller wrote:
> > On Tue, 2007-05-15 at 14:56 -0700, Erick Tryzelaar wrote:
> >> Emmanuel Onzon wrote:
> >>> In the next version of dypgen I will get rid of -pack, because it
> >>> makes things simpler. I hope it will improve RF's problem.
> >> I'm not sure if it's a pack issue. I can take your Makefiles and get it 
> >> to work using ocamlopt, so I think it's a problem in our build system.
> >
> > That's possible .. but it builds on Linux.
> >
> > The thing to do is use the Makefile to build with debugging log,
> > then do Felix build, and compare the compiler/link/pack/make
> > the library steps to see if I messed up something.
> 
> That was a pain. I found the problem, and a workaround. The line:
> 
> ocamlopt.opt -w yzex -warn-error FDPSU -I dypgen/dyplib -pack -o 
> dypgen/dyplib/dyp.cmx dypgen/dyplib/sig.cmi dypgen/dyplib/gs.cmx 
> dypgen/dyplib/priority_by_relation.cmx dypgen/dyplib/automaton.cmx 
> dypgen/dyplib/parser.cmx
> 
> Needs a "-I dypgen/dyplib", like this:
> 
> ocamlopt.opt -w yzex -warn-error FDPSU -pack -o dypgen/dyplib/dyp.cmx 
> dypgen/dyplib/sig.cmi dypgen/dyplib/gs.cmx 
> dypgen/dyplib/priority_by_relation.cmx dypgen/dyplib/automaton.cmx 
> dypgen/dyplib/parser.cmx
> 
> I'm guessing ocaml needs to bake the path into the pack file, or 
> something. I'll change the build system so it works.
> 
> I'm sure this is a bug in ocaml since it works everywhere else. We 
> probably should file an ocaml bug on it.

Ahem .. the lines are backwards -- that's a huge dyslexia :)

So the bug in Ocaml is, on OSX we use:

ocamlopt.opt  -w yzex -warn-error FDPSU  -pack -o dypgen/dyplib/dyp.cmx
dypgen/dyplib/sig.cmi dypgen/dyplib/gs.cmx
dypgen/dyplib/priority_by_relation.cmx dypgen/dyplib/automaton.cmx
dypgen/dyplib/parser.cmx 

but we needed:

ocamlopt.opt  -w yzex -warn-error FDPSU  -I dypgen/dyplib -pack -o
dypgen/dyplib/dyp.cmx dypgen/dyplib/sig.cmi dypgen/dyplib/gs.cmx
dypgen/dyplib/priority_by_relation.cmx dypgen/dyplib/automaton.cmx
dypgen/dyplib/parser.cmx 


-- 
John Skaller <skaller at users dot sf dot net>
Felix, successor to C++: http://felix.sf.net