configure does not handle FreeBSD current (i.e. 10) correctly, leading to build failures #6072
Original bug ID: 6072
Ocaml does not build on FreeBSD-Current, which has version 10.0. The issue is in the configure script, which has this clause to detect shared library support:
This fails for freebsd-current, which reports:
$ uname -r
Steps to reproduce
'make world.opt' fails at:
../../boot/ocamlrun ../../tools/ocamlmklib -o unix -oc unix -ocamlopt '../../ocamlcompopt.sh' -linkall unix.cmx unixLabels.cmx
This may indicate a deeper bug: although configure reports (erroneously) that shared libraries are not supported, the build still tries to build one.
Configuration for the bytecode compiler:
The text was updated successfully, but these errors were encountered:
Comment author: @damiendoligez
About the "deeper bug": there are two kinds of support for dynamic linking, which are tested independently by the configure script:
In your case, it looks like configure decided that (1) is not supported, but (2) is.
Comment author: mundkur
The patch doesn't quite work, since "$target" is set to "x86_64-unknown-freebsd10.0". The following clause works:
It might be too brittle against future breakage to be used as is, but indicates the matching needed.