caml-list - the Caml user's mailing list
 help / color / mirror / Atom feed
* Odd OCAMLRUNPARAM behavior
@ 2006-09-16 14:45 Denis Bueno
  2006-09-16 14:52 ` [Caml-list] " Chris King
  0 siblings, 1 reply; 3+ messages in thread
From: Denis Bueno @ 2006-09-16 14:45 UTC (permalink / raw)
  To: OCaml Mailing List

What could explain this behavior?

`test_cobasa' is a binary produced by ocamlc.opt.

,----
| $ echo $OCAMLRUNPARAM
| b
| $ ./test_cobasa -v -f ../test/constraint.cob
| debug1: Parsing '../test/constraint.cob'...
| Fatal error: exception ErrorMsg.Todo
| $ OCAMLRUNPARAM="b" ./test_cobasa -v -f ../test/constraint.cob
| debug1: Parsing '../test/constraint.cob'...
| Fatal error: exception ErrorMsg.Todo
| Raised at file "cobasaParser.mly", line 455, characters 38-51
| Called from file "parsing.ml", line 135, characters 39-75
| Called from file "parsing.ml", line 156, characters 4-28
| Re-raised at file "parsing.ml", line 174, characters 14-17
| Called from file "driver.ml", line 125, characters 12-81
| Called from file "driver.ml", line 165, characters 13-36
| $
`----

Shouldn't the first invocation of test_cobasa give me a stack trace?

-Denis


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

* Re: [Caml-list] Odd OCAMLRUNPARAM behavior
  2006-09-16 14:45 Odd OCAMLRUNPARAM behavior Denis Bueno
@ 2006-09-16 14:52 ` Chris King
  2006-09-16 15:38   ` Denis Bueno
  0 siblings, 1 reply; 3+ messages in thread
From: Chris King @ 2006-09-16 14:52 UTC (permalink / raw)
  To: Denis Bueno; +Cc: OCaml Mailing List

On 9/16/06, Denis Bueno <dbueno@gmail.com> wrote:
> What could explain this behavior?

Did you remember to "export OCAMLRUNPARAM"?

- Chris


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

* Re: Re: [Caml-list] Odd OCAMLRUNPARAM behavior
  2006-09-16 14:52 ` [Caml-list] " Chris King
@ 2006-09-16 15:38   ` Denis Bueno
  0 siblings, 0 replies; 3+ messages in thread
From: Denis Bueno @ 2006-09-16 15:38 UTC (permalink / raw)
  To: Chris King; +Cc: OCaml Mailing List

On 9/16/06, Chris King <colanderman@gmail.com> wrote:
> On 9/16/06, Denis Bueno <dbueno@gmail.com> wrote:
> > What could explain this behavior?
>
> Did you remember to "export OCAMLRUNPARAM"?

No.

Funny, I thought if you didn't export that the variable wouldn't even
show up in the shell. Thanks for the tip.

-Denis


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

end of thread, other threads:[~2006-09-16 15:38 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2006-09-16 14:45 Odd OCAMLRUNPARAM behavior Denis Bueno
2006-09-16 14:52 ` [Caml-list] " Chris King
2006-09-16 15:38   ` Denis Bueno

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