You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Original bug ID: 6072 Reporter: mundkur Status: closed (set by @xavierleroy on 2015-12-11T18:21:02Z) Resolution: fixed Priority: low Severity: major OS: FreeBSD OS Version: 10 Target version: 4.01.0+dev Fixed in version: 4.01.0+dev Category: configure and build/install
Bug description
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:
../../boot/ocamlrun ../../tools/ocamlmklib -o unix -oc unix -ocamlopt '../../ocamlcompopt.sh' -linkall unix.cmx unixLabels.cmx
../../ocamlcompopt.sh -shared -o unix.cmxs -I . unix.cmxa
-o: not found
File "caml_startup", line 1:
Error: Error during linking
*** Error code 2
Stop.
make: stopped in /pool/users/pm524/build/ocaml/otherlibs/unix
Additional information
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:
C compiler used........... gcc
options for compiling..... -fno-defer-pop -Wall -D_FILE_OFFSET_BITS=64 -D_REENTRANT -D_THREAD_SAFE
options for linking....... -lm -lcurses -pthread
shared libraries not supported
About the "deeper bug": there are two kinds of support for dynamic linking, which are tested independently by the configure script:
"Dynamic loading of shared libraries" and "shared libraries are supported": this is for the byte-code interpreter to use dynamic linking to load external primitives. If you don't have that, you have to compile your byte-code executables with -custom.
"native dynlink": this is dynamic linking of native-code files, and production of dynamically-linkable files.
In your case, it looks like configure decided that (1) is not supported, but (2) is.
Original bug ID: 6072
Reporter: mundkur
Status: closed (set by @xavierleroy on 2015-12-11T18:21:02Z)
Resolution: fixed
Priority: low
Severity: major
OS: FreeBSD
OS Version: 10
Target version: 4.01.0+dev
Fixed in version: 4.01.0+dev
Category: configure and build/install
Bug description
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:
$ config/gnu/config.guess
x86_64-unknown-freebsd10.0
$ uname -r
10.0-CURRENT
Steps to reproduce
'make world.opt' fails at:
../../boot/ocamlrun ../../tools/ocamlmklib -o unix -oc unix -ocamlopt '../../ocamlcompopt.sh' -linkall unix.cmx unixLabels.cmx
../../ocamlcompopt.sh -shared -o unix.cmxs -I . unix.cmxa
-o: not found
File "caml_startup", line 1:
Error: Error during linking
*** Error code 2
Stop.
make: stopped in /pool/users/pm524/build/ocaml/otherlibs/unix
Additional information
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:
C compiler used........... gcc
options for compiling..... -fno-defer-pop -Wall -D_FILE_OFFSET_BITS=64 -D_REENTRANT -D_THREAD_SAFE
options for linking....... -lm -lcurses -pthread
shared libraries not supported
File attachments
The text was updated successfully, but these errors were encountered: