Closed marc-chevalier closed 2 years ago
Thank you very much, @marc-chevalier, for reporting this and sorry for the delay. I fixed this along the lines you described (but just removing the -o
option and deleting all configure_test.*
files are not enough because ocamlc
outputs in a.out
by default: instead, I replaced -o /dev/null
by -o configure_test.out
). I don't think this behavior of ocamlc
is expected: I reported an OCaml issue.
Maybe a stupid question: why going with an improved version of my fix rather than using ocamlopt
? If I understand your issue on ocaml correctly, it should work as expected.
There used to be some environments which did not support native code compilation and where bytecode compiler was the only option. Not sure if it is true anymore.
When installing (with opam) in root and without sandbox, or manually (I have my reasons: I'm fighting with a terrible non-ocaml build system), the ./configure step overwrite
/dev/null
. To reproduce, as root:I think I found the cause of that:
The
-o dev/null
seems dangerous in this case. Maybe one could remove it and change the next line fromto
? Not sure this if this is good enough. But it seems to work for me. I can submit a PR if this fix suits you.
EDIT: I mean, change it in
configure.ac
of course.