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: 6046 Reporter:@avsm Assigned to:@damiendoligez Status: closed (set by @damiendoligez on 2013-07-23T15:30:59Z) Resolution: fixed Priority: normal Severity: minor Platform: debian wheezy Target version: 4.01.0+dev Category: configure and build/install
Bug description
I have 3.12.1 installed as my system ocaml compiler, and then a checkout of the 4.01 branch of ocaml.
The bigarray tests fail:
~/src/git/ocaml/ocaml/testsuite$ make one DIR=tests/lib-bigarray
Running tests from 'tests/lib-bigarray' ...
... testing 'bigarrays.ml': ocamlcFatal error: unknown C primitive `caml_ba_dim_1'
make[4]: *** [run-file] Error 2
=> failed
... testing 'fftba.ml': ocamlc ocamlopt => passed
... testing 'pr5115.ml': ocamlc ocamlopt => passed
If I apply the patch below to set CAML_LD_LIBRARY_PATH instead of LD_LIBRARY_PATH, then the latest dllbigarray.so is picked up, and the test passes.
This is because the system ocaml has a /usr/lib/ocaml/stublibs in its ld.conf, which has a higher precedence than LD_LIBRARY_PATH (but not CAML_LD_LIBRARY_PATH).
Steps to reproduce
have 3.12.1 system compiler installed
$ cd testsuite
$ make one DIR=tests/lib-bigarray
The text was updated successfully, but these errors were encountered:
Because the precedence of CAML_LD_LIBRARY_PATH is not documented, I think a better solution will be to set the OCAMLLIB variable to a directory with a ld.conf file built for this purpose.
Original bug ID: 6046
Reporter: @avsm
Assigned to: @damiendoligez
Status: closed (set by @damiendoligez on 2013-07-23T15:30:59Z)
Resolution: fixed
Priority: normal
Severity: minor
Platform: debian wheezy
Target version: 4.01.0+dev
Category: configure and build/install
Bug description
I have 3.12.1 installed as my system ocaml compiler, and then a checkout of the 4.01 branch of ocaml.
The bigarray tests fail:
~/src/git/ocaml/ocaml/testsuite$ make one DIR=tests/lib-bigarray
Running tests from 'tests/lib-bigarray' ...
... testing 'bigarrays.ml': ocamlcFatal error: unknown C primitive `caml_ba_dim_1'
make[4]: *** [run-file] Error 2
=> failed
... testing 'fftba.ml': ocamlc ocamlopt => passed
... testing 'pr5115.ml': ocamlc ocamlopt => passed
If I apply the patch below to set CAML_LD_LIBRARY_PATH instead of LD_LIBRARY_PATH, then the latest dllbigarray.so is picked up, and the test passes.
diff --git a/testsuite/makefiles/Makefile.common b/testsuite/makefiles/Makefile.common
index 5f543c6..9d2716d 100644
--- a/testsuite/makefiles/Makefile.common
+++ b/testsuite/makefiles/Makefile.common
@@ -22,7 +22,7 @@ CYGPATH=echo
DIFF=diff -q
CANKILL=true
SORT=sort
-SET_LD_PATH=LD_LIBRARY_PATH="$(LD_PATH)"
+SET_LD_PATH=CAML_LD_LIBRARY_PATH="$(LD_PATH)"
The variables above may be overridden by .../config/Makefile
OTOPDIR is either TOPDIR or WINTOPDIR, whichever is appropriate for
~/src/git/ocaml/ocaml/testsuite$ make one DIR=tests/lib-bigarray 2>&1|more
Running tests from 'tests/lib-bigarray' ...
... testing 'bigarrays.ml': ocamlc ocamlopt => passed
... testing 'fftba.ml': ocamlc ocamlopt => passed
... testing 'pr5115.ml': ocamlc ocamlopt => passed
This is because the system ocaml has a /usr/lib/ocaml/stublibs in its ld.conf, which has a higher precedence than LD_LIBRARY_PATH (but not CAML_LD_LIBRARY_PATH).
Steps to reproduce
have 3.12.1 system compiler installed
$ cd testsuite
$ make one DIR=tests/lib-bigarray
The text was updated successfully, but these errors were encountered: