caml-list - the Caml user's mailing list
 help / color / mirror / Atom feed
* Re: [Felix-impl] it no me build
       [not found] <131e28b50705141643l195bae7cxb80c278e5eec7c4f@mail.gmail.com>
@ 2007-05-15  4:00 ` skaller
  2007-05-15  4:29   ` [Caml-list] " Erick Tryzelaar
  2007-05-15 17:47 ` [Felix-impl] " skaller
  1 sibling, 1 reply; 18+ messages in thread
From: skaller @ 2007-05-15  4:00 UTC (permalink / raw)
  To: Rhythmic Fistman; +Cc: felix-impl, caml-list

On Tue, 2007-05-15 at 01:43 +0200, Rhythmic Fistman wrote:
> camlopt.opt  -w yzex -warn-error FDPSU   -a -o
> dypgen/generators/pgen/pgen.cmxa
> dypgen/generators/pgen/pgen_parser_param.cmx
> dypgen/generators/pgen/pgen_lexer.cmx
> CAML LINKING EXECUTABLES
> ocamlopt.opt  -w yzex -warn-error FDPSU  -I src -I dypgen/dyplib -I
> dypgen/generators/pgen -o bin/pgen flx_version.cmxa dyplib.cmxa
> pgen.cmxa src/flx_version_hook.ml dypgen/generators/pgen/pgen.cmx
> /usr/bin/ld: Undefined symbols:
> _camlParser

This works fine on Linux.

Maybe this is the -pack option not working on OSX?


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


^ permalink raw reply	[flat|nested] 18+ messages in thread

* Re: [Caml-list] Re: [Felix-impl] it no me build
  2007-05-15  4:00 ` [Felix-impl] it no me build skaller
@ 2007-05-15  4:29   ` Erick Tryzelaar
  2007-05-15  8:48     ` Rhythmic Fistman
  0 siblings, 1 reply; 18+ messages in thread
From: Erick Tryzelaar @ 2007-05-15  4:29 UTC (permalink / raw)
  To: skaller; +Cc: Rhythmic Fistman, caml-list, felix-impl

skaller wrote:
> On Tue, 2007-05-15 at 01:43 +0200, Rhythmic Fistman wrote:
>   
>> camlopt.opt  -w yzex -warn-error FDPSU   -a -o
>> dypgen/generators/pgen/pgen.cmxa
>> dypgen/generators/pgen/pgen_parser_param.cmx
>> dypgen/generators/pgen/pgen_lexer.cmx
>> CAML LINKING EXECUTABLES
>> ocamlopt.opt  -w yzex -warn-error FDPSU  -I src -I dypgen/dyplib -I
>> dypgen/generators/pgen -o bin/pgen flx_version.cmxa dyplib.cmxa
>> pgen.cmxa src/flx_version_hook.ml dypgen/generators/pgen/pgen.cmx
>> /usr/bin/ld: Undefined symbols:
>> _camlParser
>>     
>
> This works fine on Linux.
>
> Maybe this is the -pack option not working on OSX?
>
>
>   
I don't think -pack worked on OSX until a more recent version of ocaml 
3.09. Which one are you using?


^ permalink raw reply	[flat|nested] 18+ messages in thread

* Re: [Caml-list] Re: [Felix-impl] it no me build
  2007-05-15  4:29   ` [Caml-list] " Erick Tryzelaar
@ 2007-05-15  8:48     ` Rhythmic Fistman
  2007-05-15  9:06       ` [Felix-impl] [Caml-list] " skaller
  0 siblings, 1 reply; 18+ messages in thread
From: Rhythmic Fistman @ 2007-05-15  8:48 UTC (permalink / raw)
  To: Erick Tryzelaar; +Cc: skaller, caml-list, felix-impl

On 5/15/07, Erick Tryzelaar <idadesub@users.sourceforge.net> wrote:
> skaller wrote:
> > On Tue, 2007-05-15 at 01:43 +0200, Rhythmic Fistman wrote:
> >
> >> camlopt.opt  -w yzex -warn-error FDPSU   -a -o
> >> dypgen/generators/pgen/pgen.cmxa
> >> dypgen/generators/pgen/pgen_parser_param.cmx
> >> dypgen/generators/pgen/pgen_lexer.cmx
> >> CAML LINKING EXECUTABLES
> >> ocamlopt.opt  -w yzex -warn-error FDPSU  -I src -I dypgen/dyplib -I
> >> dypgen/generators/pgen -o bin/pgen flx_version.cmxa dyplib.cmxa
> >> pgen.cmxa src/flx_version_hook.ml dypgen/generators/pgen/pgen.cmx
> >> /usr/bin/ld: Undefined symbols:
> >> _camlParser
> >>
> >
> > This works fine on Linux.
> >
> > Maybe this is the -pack option not working on OSX?
> >
> >
> >
> I don't think -pack worked on OSX until a more recent version of ocaml
> 3.09. Which one are you using?

The Objective Caml toplevel, version 3.09.2


^ permalink raw reply	[flat|nested] 18+ messages in thread

* Re: [Felix-impl] [Caml-list] Re:  it no me build
  2007-05-15  8:48     ` Rhythmic Fistman
@ 2007-05-15  9:06       ` skaller
  2007-05-15  9:12         ` Rhythmic Fistman
  2007-05-15  9:13         ` Rhythmic Fistman
  0 siblings, 2 replies; 18+ messages in thread
From: skaller @ 2007-05-15  9:06 UTC (permalink / raw)
  To: Rhythmic Fistman; +Cc: Erick Tryzelaar, caml-list, felix-impl, Emmanuel Onzon

On Tue, 2007-05-15 at 10:48 +0200, Rhythmic Fistman wrote:
> On 5/15/07, Erick Tryzelaar <idadesub@users.sourceforge.net> wrote:
> > skaller wrote:
> > > On Tue, 2007-05-15 at 01:43 +0200, Rhythmic Fistman wrote:
> > >
> > >> camlopt.opt  -w yzex -warn-error FDPSU   -a -o
> > >> dypgen/generators/pgen/pgen.cmxa
> > >> dypgen/generators/pgen/pgen_parser_param.cmx
> > >> dypgen/generators/pgen/pgen_lexer.cmx
> > >> CAML LINKING EXECUTABLES
> > >> ocamlopt.opt  -w yzex -warn-error FDPSU  -I src -I dypgen/dyplib -I
> > >> dypgen/generators/pgen -o bin/pgen flx_version.cmxa dyplib.cmxa
> > >> pgen.cmxa src/flx_version_hook.ml dypgen/generators/pgen/pgen.cmx
> > >> /usr/bin/ld: Undefined symbols:
> > >> _camlParser
> > >>
> > >
> > > This works fine on Linux.
> > >
> > > Maybe this is the -pack option not working on OSX?
> > >
> > >
> > >
> > I don't think -pack worked on OSX until a more recent version of ocaml
> > 3.09. Which one are you using?
> 
> The Objective Caml toplevel, version 3.09.2

Can you try building Dypgen directly from the dypgen tarball using
the provided makefile?

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


^ permalink raw reply	[flat|nested] 18+ messages in thread

* Re: [Felix-impl] [Caml-list] Re: it no me build
  2007-05-15  9:06       ` [Felix-impl] [Caml-list] " skaller
@ 2007-05-15  9:12         ` Rhythmic Fistman
  2007-05-15  9:33           ` Erick Tryzelaar
  2007-05-15  9:13         ` Rhythmic Fistman
  1 sibling, 1 reply; 18+ messages in thread
From: Rhythmic Fistman @ 2007-05-15  9:12 UTC (permalink / raw)
  To: skaller; +Cc: Erick Tryzelaar, caml-list, felix-impl, Emmanuel Onzon

On 5/15/07, skaller <skaller@users.sourceforge.net> wrote:
> On Tue, 2007-05-15 at 10:48 +0200, Rhythmic Fistman wrote:
> > On 5/15/07, Erick Tryzelaar <idadesub@users.sourceforge.net> wrote:
> > > skaller wrote:
> > > > On Tue, 2007-05-15 at 01:43 +0200, Rhythmic Fistman wrote:
> > > >
> > > >> camlopt.opt  -w yzex -warn-error FDPSU   -a -o
> > > >> dypgen/generators/pgen/pgen.cmxa
> > > >> dypgen/generators/pgen/pgen_parser_param.cmx
> > > >> dypgen/generators/pgen/pgen_lexer.cmx
> > > >> CAML LINKING EXECUTABLES
> > > >> ocamlopt.opt  -w yzex -warn-error FDPSU  -I src -I dypgen/dyplib -I
> > > >> dypgen/generators/pgen -o bin/pgen flx_version.cmxa dyplib.cmxa
> > > >> pgen.cmxa src/flx_version_hook.ml dypgen/generators/pgen/pgen.cmx
> > > >> /usr/bin/ld: Undefined symbols:
> > > >> _camlParser
> > > >>
> > > >
> > > > This works fine on Linux.
> > > >
> > > > Maybe this is the -pack option not working on OSX?
> > > >
> > > >
> > > >
> > > I don't think -pack worked on OSX until a more recent version of ocaml
> > > 3.09. Which one are you using?
> >
> > The Objective Caml toplevel, version 3.09.2
>
> Can you try building Dypgen directly from the dypgen tarball using
> the provided makefile?


What tarball?


^ permalink raw reply	[flat|nested] 18+ messages in thread

* Re: [Felix-impl] [Caml-list] Re: it no me build
  2007-05-15  9:06       ` [Felix-impl] [Caml-list] " skaller
  2007-05-15  9:12         ` Rhythmic Fistman
@ 2007-05-15  9:13         ` Rhythmic Fistman
  2007-05-15  9:17           ` skaller
  1 sibling, 1 reply; 18+ messages in thread
From: Rhythmic Fistman @ 2007-05-15  9:13 UTC (permalink / raw)
  To: skaller; +Cc: Erick Tryzelaar, caml-list, felix-impl, Emmanuel Onzon

On 5/15/07, skaller <skaller@users.sourceforge.net> wrote:
> On Tue, 2007-05-15 at 10:48 +0200, Rhythmic Fistman wrote:
> > On 5/15/07, Erick Tryzelaar <idadesub@users.sourceforge.net> wrote:
> > > skaller wrote:
> > > > On Tue, 2007-05-15 at 01:43 +0200, Rhythmic Fistman wrote:
> > > >
> > > >> camlopt.opt  -w yzex -warn-error FDPSU   -a -o
> > > >> dypgen/generators/pgen/pgen.cmxa
> > > >> dypgen/generators/pgen/pgen_parser_param.cmx
> > > >> dypgen/generators/pgen/pgen_lexer.cmx
> > > >> CAML LINKING EXECUTABLES
> > > >> ocamlopt.opt  -w yzex -warn-error FDPSU  -I src -I dypgen/dyplib -I
> > > >> dypgen/generators/pgen -o bin/pgen flx_version.cmxa dyplib.cmxa
> > > >> pgen.cmxa src/flx_version_hook.ml dypgen/generators/pgen/pgen.cmx
> > > >> /usr/bin/ld: Undefined symbols:
> > > >> _camlParser
> > > >>
> > > >
> > > > This works fine on Linux.
> > > >
> > > > Maybe this is the -pack option not working on OSX?
> > > >
> > > >
> > > >
> > > I don't think -pack worked on OSX until a more recent version of ocaml
> > > 3.09. Which one are you using?
> >
> > The Objective Caml toplevel, version 3.09.2
>
> Can you try building Dypgen directly from the dypgen tarball using
> the provided makefile?

Sorry, just got to go bury a sheep's head. Got a link?


^ permalink raw reply	[flat|nested] 18+ messages in thread

* Re: [Felix-impl] [Caml-list] Re: it no me build
  2007-05-15  9:13         ` Rhythmic Fistman
@ 2007-05-15  9:17           ` skaller
  2007-05-15  9:33             ` Rhythmic Fistman
  0 siblings, 1 reply; 18+ messages in thread
From: skaller @ 2007-05-15  9:17 UTC (permalink / raw)
  To: Rhythmic Fistman; +Cc: Erick Tryzelaar, caml-list, felix-impl, Emmanuel Onzon

On Tue, 2007-05-15 at 11:13 +0200, Rhythmic Fistman wrote:
> On 5/15/07, skaller <skaller@users.sourceforge.net> wrote:

> > Can you try building Dypgen directly from the dypgen tarball using
> > the provided makefile?
> 
> Sorry, just got to go bury a sheep's head. Got a link?

www.Google.com


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


^ permalink raw reply	[flat|nested] 18+ messages in thread

* Re: [Felix-impl] [Caml-list] Re: it no me build
  2007-05-15  9:17           ` skaller
@ 2007-05-15  9:33             ` Rhythmic Fistman
  0 siblings, 0 replies; 18+ messages in thread
From: Rhythmic Fistman @ 2007-05-15  9:33 UTC (permalink / raw)
  To: skaller; +Cc: Erick Tryzelaar, caml-list, felix-impl, Emmanuel Onzon

On 5/15/07, skaller <skaller@users.sourceforge.net> wrote:
> On Tue, 2007-05-15 at 11:13 +0200, Rhythmic Fistman wrote:
> > On 5/15/07, skaller <skaller@users.sourceforge.net> wrote:
>
> > > Can you try building Dypgen directly from the dypgen tarball using
> > > the provided makefile?
> >
> > Sorry, just got to go bury a sheep's head. Got a link?
>
> www.Google.com

The one on the website
(http://perso.ens-lyon.fr/emmanuel.onzon/dypgen-20070513.tar.bz2)
builds fine.


^ permalink raw reply	[flat|nested] 18+ messages in thread

* Re: [Felix-impl] [Caml-list] Re: it no me build
  2007-05-15  9:12         ` Rhythmic Fistman
@ 2007-05-15  9:33           ` Erick Tryzelaar
  0 siblings, 0 replies; 18+ messages in thread
From: Erick Tryzelaar @ 2007-05-15  9:33 UTC (permalink / raw)
  To: Rhythmic Fistman; +Cc: skaller, Emmanuel Onzon, caml-list, felix-impl

Rhythmic Fistman wrote:
> What tarball?

http://perso.ens-lyon.fr/emmanuel.onzon/dypgen-20070513.tar.bz2


^ permalink raw reply	[flat|nested] 18+ messages in thread

* Re: [Felix-impl] it no me build
       [not found] <131e28b50705141643l195bae7cxb80c278e5eec7c4f@mail.gmail.com>
  2007-05-15  4:00 ` [Felix-impl] it no me build skaller
@ 2007-05-15 17:47 ` skaller
  2007-05-15 19:00   ` Rhythmic Fistman
  1 sibling, 1 reply; 18+ messages in thread
From: skaller @ 2007-05-15 17:47 UTC (permalink / raw)
  To: Rhythmic Fistman; +Cc: felix-impl, Emmanuel Onzon, caml-list

On Tue, 2007-05-15 at 01:43 +0200, Rhythmic Fistman wrote:
> camlopt.opt  -w yzex -warn-error FDPSU   -a -o
> dypgen/generators/pgen/pgen.cmxa
> dypgen/generators/pgen/pgen_parser_param.cmx
> dypgen/generators/pgen/pgen_lexer.cmx
> CAML LINKING EXECUTABLES
> ocamlopt.opt  -w yzex -warn-error FDPSU  -I src -I dypgen/dyplib -I
> dypgen/generators/pgen -o bin/pgen flx_version.cmxa dyplib.cmxa
> pgen.cmxa src/flx_version_hook.ml dypgen/generators/pgen/pgen.cmx
> /usr/bin/ld: Undefined symbols:
> _camlParser
> collect2: ld returned 1 exit status

I have NO idea what _camlParser is. A grep on lpsrc does not
reveal any symbol 'camlParser'.

This looks like an Ocaml bug .. weird that this thing builds
on Linux, and builds on your OSX box using the dypgen makefile,
but not the Felix build scripts.

The Felix build scripts ARE different .. but the effect should
be the same. Any which way it should either fail on all platforms
or build on all platforms .. there's no C code here, and Ocaml
is supposed to be portable.


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


^ permalink raw reply	[flat|nested] 18+ messages in thread

* Re: [Felix-impl] it no me build
  2007-05-15 17:47 ` [Felix-impl] " skaller
@ 2007-05-15 19:00   ` Rhythmic Fistman
  2007-05-15 19:43     ` skaller
  0 siblings, 1 reply; 18+ messages in thread
From: Rhythmic Fistman @ 2007-05-15 19:00 UTC (permalink / raw)
  To: skaller; +Cc: felix-impl, Emmanuel Onzon, caml-list

On 5/15/07, skaller <skaller@users.sourceforge.net> wrote:
> On Tue, 2007-05-15 at 01:43 +0200, Rhythmic Fistman wrote:
> > camlopt.opt  -w yzex -warn-error FDPSU   -a -o
> > dypgen/generators/pgen/pgen.cmxa
> > dypgen/generators/pgen/pgen_parser_param.cmx
> > dypgen/generators/pgen/pgen_lexer.cmx
> > CAML LINKING EXECUTABLES
> > ocamlopt.opt  -w yzex -warn-error FDPSU  -I src -I dypgen/dyplib -I
> > dypgen/generators/pgen -o bin/pgen flx_version.cmxa dyplib.cmxa
> > pgen.cmxa src/flx_version_hook.ml dypgen/generators/pgen/pgen.cmx
> > /usr/bin/ld: Undefined symbols:
> > _camlParser
> > collect2: ld returned 1 exit status
>
> I have NO idea what _camlParser is. A grep on lpsrc does not
> reveal any symbol 'camlParser'.
>
> This looks like an Ocaml bug .. weird that this thing builds
> on Linux, and builds on your OSX box using the dypgen makefile,
> but not the Felix build scripts.
>
> The Felix build scripts ARE different .. but the effect should
> be the same. Any which way it should either fail on all platforms
> or build on all platforms .. there's no C code here, and Ocaml
> is supposed to be portable.

Somewhere... someone lied.

Haha, just kidding. The difference is that the tarball uses ocamlc and
flx here is using ocamlc.opt. Could that be relevant?


^ permalink raw reply	[flat|nested] 18+ messages in thread

* Re: [Felix-impl] it no me build
  2007-05-15 19:00   ` Rhythmic Fistman
@ 2007-05-15 19:43     ` skaller
  2007-05-15 20:27       ` Rhythmic Fistman
  0 siblings, 1 reply; 18+ messages in thread
From: skaller @ 2007-05-15 19:43 UTC (permalink / raw)
  To: Rhythmic Fistman; +Cc: felix-impl, Emmanuel Onzon, caml-list

On Tue, 2007-05-15 at 21:00 +0200, Rhythmic Fistman wrote:

> > The Felix build scripts ARE different .. but the effect should
> > be the same. Any which way it should either fail on all platforms
> > or build on all platforms .. there's no C code here, and Ocaml
> > is supposed to be portable.
> 
> Somewhere... someone lied.
> 
> Haha, just kidding. The difference is that the tarball uses ocamlc and
> flx here is using ocamlc.opt. Could that be relevant?

As I understand it:

No. ocamlc.opt and ocamlc are functionally equivalent.
The only difference is ocamlc is compiled with ocamlc,
whereas ocamlc.opt is compiled with ocamlopt.

In other words, ocamlc.opt is faster because it is
built as native code, but they're built from the
same ocaml sources. Bootstrapping is cool!

In fact there ARE differences between ocamlc
and ocamlopt built code, apart from speed:
for example bytecode supports dynamic loading
of bytecode whereas native code does not ..
but this shouldn't affect ocamlc.

However, -pack MAY be different; it is a new feature
and didn't work on any processor other than x86 originally,
so this might be a difference. -pack does nasty stuff
with native code which requires arcane knowledge of 
object files, whereas with bytecode it's the same on
all platforms.

The -pack option 'packs' several object files into
a single object file and makes the submodules
of a the new master file.

For native code -for-pack has to be specified,
whereas it isn't used with bytecode -- so there's
a difference between ocamlc and ocamlopt .. but this
is related to the object file formats and what information
they contain (bytecode contains what ocaml wants it to,
whereas native code is machine binary and is restricted
by the platform linker format).


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


^ permalink raw reply	[flat|nested] 18+ messages in thread

* Re: [Felix-impl] it no me build
  2007-05-15 19:43     ` skaller
@ 2007-05-15 20:27       ` Rhythmic Fistman
  2007-05-15 21:30         ` [Caml-list] " Erick Tryzelaar
  0 siblings, 1 reply; 18+ messages in thread
From: Rhythmic Fistman @ 2007-05-15 20:27 UTC (permalink / raw)
  To: skaller; +Cc: felix-impl, Emmanuel Onzon, caml-list

On 5/15/07, skaller <skaller@users.sourceforge.net> wrote:
> On Tue, 2007-05-15 at 21:00 +0200, Rhythmic Fistman wrote:
>
> > > The Felix build scripts ARE different .. but the effect should
> > > be the same. Any which way it should either fail on all platforms
> > > or build on all platforms .. there's no C code here, and Ocaml
> > > is supposed to be portable.
> >
> > Somewhere... someone lied.
> >
> > Haha, just kidding. The difference is that the tarball uses ocamlc and
> > flx here is using ocamlc.opt. Could that be relevant?
>
> As I understand it:
>
> No. ocamlc.opt and ocamlc are functionally equivalent.
> The only difference is ocamlc is compiled with ocamlc,
> whereas ocamlc.opt is compiled with ocamlopt.
>
> In other words, ocamlc.opt is faster because it is
> built as native code, but they're built from the
> same ocaml sources. Bootstrapping is cool!
>
> In fact there ARE differences between ocamlc
> and ocamlopt built code, apart from speed:
> for example bytecode supports dynamic loading
> of bytecode whereas native code does not ..
> but this shouldn't affect ocamlc.
>
> However, -pack MAY be different; it is a new feature
> and didn't work on any processor other than x86 originally,
> so this might be a difference. -pack does nasty stuff
> with native code which requires arcane knowledge of
> object files, whereas with bytecode it's the same on
> all platforms.

Can we disable -pack?
Can I fall back to ocamlc? How?


^ permalink raw reply	[flat|nested] 18+ messages in thread

* Re: [Caml-list] Re: [Felix-impl] it no me build
  2007-05-15 20:27       ` Rhythmic Fistman
@ 2007-05-15 21:30         ` Erick Tryzelaar
  2007-05-15 21:39           ` Emmanuel Onzon
  0 siblings, 1 reply; 18+ messages in thread
From: Erick Tryzelaar @ 2007-05-15 21:30 UTC (permalink / raw)
  To: Rhythmic Fistman; +Cc: skaller, Emmanuel Onzon, caml-list, felix-impl

Rhythmic Fistman wrote:
> Can we disable -pack?
> Can I fall back to ocamlc? How?

I can reproduce this on my mac, in ocaml 3.09.3. It works with just 
ocamlc though. We can turn off ocamlopt by setting this:

NATIVE_CODE_COMPILER=0

in config/ocaml_config.py. I'll poke around some more to see if there's 
a real fix.

-e


^ permalink raw reply	[flat|nested] 18+ messages in thread

* Re: [Caml-list] Re: [Felix-impl] it no me build
  2007-05-15 21:30         ` [Caml-list] " Erick Tryzelaar
@ 2007-05-15 21:39           ` Emmanuel Onzon
  2007-05-15 21:56             ` Erick Tryzelaar
  0 siblings, 1 reply; 18+ messages in thread
From: Emmanuel Onzon @ 2007-05-15 21:39 UTC (permalink / raw)
  To: Erick Tryzelaar; +Cc: Rhythmic Fistman, skaller, caml-list, felix-impl

Quoting Erick Tryzelaar <idadesub@users.sourceforge.net>:

> Rhythmic Fistman wrote:
>> Can we disable -pack?
>> Can I fall back to ocamlc? How?
>
> I can reproduce this on my mac, in ocaml 3.09.3. It works with just 
> ocamlc though. We can turn off ocamlopt by setting this:
>
> NATIVE_CODE_COMPILER=0
>
> in config/ocaml_config.py. I'll poke around some more to see if 
> there's a real fix.
>
> -e
>

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.

Emmanuel


^ permalink raw reply	[flat|nested] 18+ messages in thread

* Re: [Caml-list] Re: [Felix-impl] it no me build
  2007-05-15 21:39           ` Emmanuel Onzon
@ 2007-05-15 21:56             ` Erick Tryzelaar
       [not found]               ` <1179267261.7592.86.camel@rosella.wigram>
  0 siblings, 1 reply; 18+ messages in thread
From: Erick Tryzelaar @ 2007-05-15 21:56 UTC (permalink / raw)
  To: Emmanuel Onzon; +Cc: felix-impl, Rhythmic Fistman, skaller, caml-list

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.


^ permalink raw reply	[flat|nested] 18+ messages in thread

* Re: [Felix-impl] [Caml-list] Re:  it no me build
       [not found]                 ` <464A5F02.8030001@users.sourceforge.net>
@ 2007-05-16  4:19                   ` skaller
  2007-05-16  4:24                     ` Erick Tryzelaar
  0 siblings, 1 reply; 18+ messages in thread
From: skaller @ 2007-05-16  4:19 UTC (permalink / raw)
  To: Erick Tryzelaar; +Cc: caml-list, felix-impl, Rhythmic Fistman, Emmanuel Onzon

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


^ permalink raw reply	[flat|nested] 18+ messages in thread

* Re: [Felix-impl] [Caml-list] Re:  it no me build
  2007-05-16  4:19                   ` [Felix-impl] [Caml-list] " skaller
@ 2007-05-16  4:24                     ` Erick Tryzelaar
  0 siblings, 0 replies; 18+ messages in thread
From: Erick Tryzelaar @ 2007-05-16  4:24 UTC (permalink / raw)
  To: skaller; +Cc: caml-list, felix-impl, Rhythmic Fistman, Emmanuel Onzon

skaller wrote:
> 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 
>   

Yep! Sorry for the confusion.


^ permalink raw reply	[flat|nested] 18+ messages in thread

end of thread, other threads:[~2007-05-16  4:24 UTC | newest]

Thread overview: 18+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
     [not found] <131e28b50705141643l195bae7cxb80c278e5eec7c4f@mail.gmail.com>
2007-05-15  4:00 ` [Felix-impl] it no me build skaller
2007-05-15  4:29   ` [Caml-list] " Erick Tryzelaar
2007-05-15  8:48     ` Rhythmic Fistman
2007-05-15  9:06       ` [Felix-impl] [Caml-list] " skaller
2007-05-15  9:12         ` Rhythmic Fistman
2007-05-15  9:33           ` Erick Tryzelaar
2007-05-15  9:13         ` Rhythmic Fistman
2007-05-15  9:17           ` skaller
2007-05-15  9:33             ` Rhythmic Fistman
2007-05-15 17:47 ` [Felix-impl] " skaller
2007-05-15 19:00   ` Rhythmic Fistman
2007-05-15 19:43     ` skaller
2007-05-15 20:27       ` Rhythmic Fistman
2007-05-15 21:30         ` [Caml-list] " Erick Tryzelaar
2007-05-15 21:39           ` Emmanuel Onzon
2007-05-15 21:56             ` Erick Tryzelaar
     [not found]               ` <1179267261.7592.86.camel@rosella.wigram>
     [not found]                 ` <464A5F02.8030001@users.sourceforge.net>
2007-05-16  4:19                   ` [Felix-impl] [Caml-list] " skaller
2007-05-16  4:24                     ` Erick Tryzelaar

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).