OCaml Forge

Detail: [#1360] ocamlbuild picks up the wrong ocamlfind

Bugs: Browse | Download .csv | Monitor

[#1360] ocamlbuild picks up the wrong ocamlfind

Date:
2013-12-31 10:27
Priority:
3
State:
Closed
Submitted by:
Jérémie Dimino (dim)
Assigned to:
Sylvain Le Gall (gildor-admin)
Product:
OASIS
Due in version:
None
Resolution:
Fixed
Severity:
major
Version:
0.4.0
Component:
OASIS
Operating System:
All
 
URL:
Summary:
ocamlbuild picks up the wrong ocamlfind

Detailed description
Starting with oasis 0.4.0 it seems that ocamlbuild is no longer using the right ocamlfind.

For instance, with pa_ounit 109.53.02 (https://ocaml.janestreet.com/ocaml-core/109.53.00/individual/pa_ounit-109.53.02.tar.gz):

$ ./configure
[...]
$ grep ocamlfind setup.data
ocamlfind="/Users/jdimino/.opam/system/bin/ocamlfind"
$ make
[...]
+ /opt/local/bin/ocamlfind ocamldep -package oUnit [...]
ocamlfind: Package `oUnit' not found
Command exited with code 2
[...]
$ which ocamlfind
/Users/jdimino/.opam/system/bin/ocamlfind
$ ocamlfind query oUnit
/Users/jdimino/.opam/system/lib/oUnit
$ /opt/local/bin/ocamlfind query oUnit
ocamlfind: Package `oUnit' not found

It works fine with pa_ounit-109.53.00, which is using oasis 0.3.0.

Followup

Message
Date: 2014-02-24 23:50
Sender: Sylvain Le Gall

I was able to reproduce and fix the bug:

https://github.com/ocaml/oasis/commit/687b5befef3847137652dfc6117cd874b9d58d80

This should be fixed in the next release.
Date: 2014-02-24 13:14
Sender: Sylvain Le Gall

I don't know the default shell for Mac, but I think we found a possible root cause. Once I'll be able to test, I'll just switch to After_options.

FYI, I am not questioning the fact that the proposed fix is right or wrong. I just need to code a test to be sure that we are doing the right thing and that this will never appear again.
Date: 2014-02-24 11:58
Sender: Jérémie Dimino

> Where is the PATH sets to access /Users/jdimino/.opam/system/bin ? (.profiles, .bashrc ?)

.bashrc

> Because you may have a mismatch into the default command shell (e.g dash) and the one you use on command line (e.g. bash).

This was on a mac, so there might be such a problem.

But I still do think the Before_options case in myocamlbuild.ml should be replaced by After_options. At the moment:

- at Before_options, the generated myocamlbuild.ml sets Options.ocamlc to "/path/to/ocamlfind ocamlc" with the /path/to/ocamlfind stored in setup.data
- then command line options are parsed by ocamlbuild which sets Options.ocamlc to just "ocamlfind ocamlc".
Date: 2014-02-24 11:21
Sender: Sylvain Le Gall

My jenkins instance use 4.00.1. The -use-ocamlfind needs 3.12.1. So I think it is fine.

But I have an idea about what is the problem.

Where is the PATH sets to access /Users/jdimino/.opam/system/bin ? (.profiles, .bashrc ?)

Because you may have a mismatch into the default command shell (e.g dash) and the one you use on command line (e.g. bash). This may explain the difference and the reason why my test succeed (I force the environment variable).

I will change my test to force PATH for configure and not force it for build. This may trigger the expected behavior.

N.B. this may solve the problem for ocamlfind BUT you will have problem for a lot of others tool.

Log of a typical build:
2014-02-23T13:28:16+00:00 jenkins-wheezy32#01 I: Change directory to "/tmp/ounit-28ec68-jenkins-wheezy32#01.dir/set-ocamlfind"
2014-02-23T13:28:16+00:00 jenkins-wheezy32#01 I: I: Running command ''/usr/opt/godi/bin/ocamlc.opt' -config > '/tmp/oasis-275d9c.txt''
2014-02-23T13:28:16+00:00 jenkins-wheezy32#01 I: I: Running command ''/tmp/ounit-28ec68-jenkins-wheezy32#01.dir/build/bin/ocamlfind' query -format %v findlib > '/tmp/oasis-b118da.txt''
2014-02-23T13:28:16+00:00 jenkins-wheezy32#01 I: I: Running command ''/tmp/ounit-28ec68-jenkins-wheezy32#01.dir/build/bin/ocamlfind' query -predicates native dynlink -format %d/%a > '/tmp/oasis-97cb74.txt''
2014-02-23T13:28:16+00:00 jenkins-wheezy32#01 I: I: Running command ''/tmp/ounit-28ec68-jenkins-wheezy32#01.dir/build/bin/ocamlfind' query -format %v findlib > '/tmp/oasis-f6c48d.txt''
2014-02-23T13:28:16+00:00 jenkins-wheezy32#01 I: I: Running command ''/tmp/ounit-28ec68-jenkins-wheezy32#01.dir/build/bin/ocamlfind' query -format %v findlib > '/tmp/oasis-6bd496.txt''
2014-02-23T13:28:16+00:00 jenkins-wheezy32#01 I: I: Running command ''/tmp/ounit-28ec68-jenkins-wheezy32#01.dir/build/bin/ocamlfind' query -predicates native dynlink -format %d/%a > '/tmp/oasis-70afe9.txt''
2014-02-23T13:28:16+00:00 jenkins-wheezy32#01 I:
2014-02-23T13:28:16+00:00 jenkins-wheezy32#01 I: Configuration:
2014-02-23T13:28:16+00:00 jenkins-wheezy32#01 I: ocamlfind: ........................................... /tmp/ounit-28ec68-jenkins-wheezy32#01.dir/build/bin/ocamlfind
2014-02-23T13:28:16+00:00 jenkins-wheezy32#01 I: ocamlc: .............................................. /usr/opt/godi/bin/ocamlc.opt
2014-02-23T13:28:16+00:00 jenkins-wheezy32#01 I: ocamlopt: ............................................ /usr/opt/godi/bin/ocamlopt.opt
2014-02-23T13:28:16+00:00 jenkins-wheezy32#01 I: ocamlbuild: .......................................... /usr/opt/godi/bin/ocamlbuild
2014-02-23T13:28:16+00:00 jenkins-wheezy32#01 I: Package name: ........................................ set-ocamlfind
2014-02-23T13:28:16+00:00 jenkins-wheezy32#01 I: Package version: ..................................... 0.0.1
2014-02-23T13:28:16+00:00 jenkins-wheezy32#01 I: os_type: ............................................. Unix
2014-02-23T13:28:16+00:00 jenkins-wheezy32#01 I: system: .............................................. linux_elf
2014-02-23T13:28:16+00:00 jenkins-wheezy32#01 I: architecture: ........................................ i386
2014-02-23T13:28:16+00:00 jenkins-wheezy32#01 I: ccomp_type: .......................................... cc
2014-02-23T13:28:16+00:00 jenkins-wheezy32#01 I: ocaml_version: ....................................... 4.00.1
2014-02-23T13:28:16+00:00 jenkins-wheezy32#01 I: standard_library_default: ............................ /usr/opt/godi/lib/ocaml/std-lib
2014-02-23T13:28:16+00:00 jenkins-wheezy32#01 I: standard_library: .................................... /usr/opt/godi/lib/ocaml/std-lib
2014-02-23T13:28:16+00:00 jenkins-wheezy32#01 I: standard_runtime: .................................... /usr/opt/godi/bin/ocamlrun
2014-02-23T13:28:16+00:00 jenkins-wheezy32#01 I: bytecomp_c_compiler: ................................. gcc -fno-defer-pop -Wall -D_FILE_OFFSET_BITS=64 -D_REENTRANT -fPIC
2014-02-23T13:28:16+00:00 jenkins-wheezy32#01 I: native_c_compiler: ................................... gcc -Wall -D_FILE_OFFSET_BITS=64 -D_REENTRANT
2014-02-23T13:28:16+00:00 jenkins-wheezy32#01 I: model: ............................................... default
2014-02-23T13:28:16+00:00 jenkins-wheezy32#01 I: ext_obj: ............................................. .o
2014-02-23T13:28:16+00:00 jenkins-wheezy32#01 I: ext_asm: ............................................. .s
2014-02-23T13:28:16+00:00 jenkins-wheezy32#01 I: ext_lib: ............................................. .a
2014-02-23T13:28:16+00:00 jenkins-wheezy32#01 I: ext_dll: ............................................. .so
2014-02-23T13:28:16+00:00 jenkins-wheezy32#01 I: default_executable_name: ............................. a.out
2014-02-23T13:28:16+00:00 jenkins-wheezy32#01 I: systhread_supported: ................................. true
2014-02-23T13:28:16+00:00 jenkins-wheezy32#01 I: Install architecture-independent files dir: .......... /usr/local
2014-02-23T13:28:16+00:00 jenkins-wheezy32#01 I: Install architecture-dependent files in dir: ......... $prefix
2014-02-23T13:28:16+00:00 jenkins-wheezy32#01 I: User executables: .................................... $exec_prefix/bin
2014-02-23T13:28:16+00:00 jenkins-wheezy32#01 I: System admin executables: ............................ $exec_prefix/sbin
2014-02-23T13:28:16+00:00 jenkins-wheezy32#01 I: Program executables: ................................. $exec_prefix/libexec
2014-02-23T13:28:16+00:00 jenkins-wheezy32#01 I: Read-only single-machine data: ....................... $prefix/etc
2014-02-23T13:28:16+00:00 jenkins-wheezy32#01 I: Modifiable architecture-independent data: ............ $prefix/com
2014-02-23T13:28:16+00:00 jenkins-wheezy32#01 I: Modifiable single-machine data: ...................... $prefix/var
2014-02-23T13:28:16+00:00 jenkins-wheezy32#01 I: Object code libraries: ............................... $exec_prefix/lib
2014-02-23T13:28:16+00:00 jenkins-wheezy32#01 I: Read-only arch-independent data root: ................ $prefix/share
2014-02-23T13:28:16+00:00 jenkins-wheezy32#01 I: Read-only architecture-independent data: ............. $datarootdir
2014-02-23T13:28:16+00:00 jenkins-wheezy32#01 I: Info documentation: .................................. $datarootdir/info
2014-02-23T13:28:16+00:00 jenkins-wheezy32#01 I: Locale-dependent data: ............................... $datarootdir/locale
2014-02-23T13:28:16+00:00 jenkins-wheezy32#01 I: Man documentation: ................................... $datarootdir/man
2014-02-23T13:28:16+00:00 jenkins-wheezy32#01 I: Documentation root: .................................. $datarootdir/doc/$pkg_name
2014-02-23T13:28:16+00:00 jenkins-wheezy32#01 I: HTML documentation: .................................. $docdir
2014-02-23T13:28:16+00:00 jenkins-wheezy32#01 I: DVI documentation: ................................... $docdir
2014-02-23T13:28:16+00:00 jenkins-wheezy32#01 I: PDF documentation: ................................... $docdir
2014-02-23T13:28:16+00:00 jenkins-wheezy32#01 I: PS documentation: .................................... $docdir
2014-02-23T13:28:16+00:00 jenkins-wheezy32#01 I: findlib_version: ..................................... 1.4
2014-02-23T13:28:16+00:00 jenkins-wheezy32#01 I: is_native: ........................................... true
2014-02-23T13:28:16+00:00 jenkins-wheezy32#01 I: suffix_program: ......................................
2014-02-23T13:28:16+00:00 jenkins-wheezy32#01 I: Remove a file.: ...................................... rm -f
2014-02-23T13:28:16+00:00 jenkins-wheezy32#01 I: Remove a director
2014-02-23T13:28:16+00:00 jenkins-wheezy32#01 I: y.: ................................. rm -rf
2014-02-23T13:28:16+00:00 jenkins-wheezy32#01 I: Turn ocaml debug flag on: ............................ true
2014-02-23T13:28:16+00:00 jenkins-wheezy32#01 I: Turn ocaml profile flag on: .......................... false
2014-02-23T13:28:16+00:00 jenkins-wheezy32#01 I: Compiler support generation of .cmxs.: ............... true
2014-02-23T13:28:16+00:00 jenkins-wheezy32#01 I: OCamlbuild additional flags: .........................
2014-02-23T13:28:16+00:00 jenkins-wheezy32#01 I: Create documentations: ............................... true
2014-02-23T13:28:16+00:00 jenkins-wheezy32#01 I: Compile tests executable and library and run them: ... false
2014-02-23T13:28:16+00:00 jenkins-wheezy32#01 I:
2014-02-23T13:28:16+00:00 jenkins-wheezy32#01 I:
2014-02-23T13:28:16+00:00 jenkins-wheezy32#01 I: Removed a temporary file: "/tmp/ounit-0fe1a4-jenkins-wheezy32#01.txt".
2014-02-23T13:28:16+00:00 jenkins-wheezy32#01 I: Time spent in 'run_ocaml_setup_ml -configure': 0.827299s
2014-02-23T13:28:16+00:00 jenkins-wheezy32#01 I: Created a temporary file: "/tmp/ounit-5987cb-jenkins-wheezy32#01.txt".
2014-02-23T13:28:16+00:00 jenkins-wheezy32#01 I: Starting command '/tmp/ounit-28ec68-jenkins-wheezy32#01.dir/precompile/setup
2014-02-23T13:28:16+00:00 jenkins-wheezy32#01 I: -info -debug
2014-02-23T13:28:16+00:00 jenkins-wheezy32#01 I: -build'.
2014-02-23T13:28:16+00:00 jenkins-wheezy32#01 I: Working directory: "/tmp/ounit-28ec68-jenkins-wheezy32#01.dir/set-ocamlfind"
2014-02-23T13:28:16+00:00 jenkins-wheezy32#01 I: Environment:
2014-02-23T13:28:16+00:00 jenkins-wheezy32#01 I: OCAMLPATH=/tmp/ounit-28ec68-jenkins-wheezy32#01.dir/build/lib/ocaml
2014-02-23T13:28:16+00:00 jenkins-wheezy32#01 I: PATH=/tmp/ounit-28ec68-jenkins-wheezy32#01.dir/build/bin:/usr/opt/godi/sbin:/usr/opt/godi/bin:/var/lib/jenkins/workspace/ocaml-oasis/build/bin:/usr/local/bin:/usr/bin:/bin:/usr/local/games:/usr/games
2014-02-23T13:28:16+00:00 jenkins-wheezy32#01 I: LD_LIBRARY_PATH=/tmp/ounit-28ec68-jenkins-wheezy32#01.dir/build/lib/ocaml:/tmp/ounit-28ec68-jenkins-wheezy32#01.dir/build/lib:/tmp/ounit-28ec68-jenkins-wheezy32#01.dir/build/lib/ocaml:/usr/lib/jvm/java-6-openjdk-i386/jre/lib/i386/client:/usr/lib/jvm/java-6-openjdk-i386/jre/lib/i386:/usr/lib/jvm/java-6-openjdk-i386/jre/../lib/i386
2014-02-23T13:28:16+00:00 jenkins-wheezy32#01 I: OCAMLFIND_DESTDIR=/tmp/ounit-28ec68-jenkins-wheezy32#01.dir/build/lib/ocaml
2014-02-23T13:28:16+00:00 jenkins-wheezy32#01 I: OCAMLFIND_LDCONF=ignore
2014-02-23T13:28:16+00:00 jenkins-wheezy32#01 I: OCAML_TOPLEVEL_PATH=
2014-02-23T13:28:16+00:00 jenkins-wheezy32#01 I: REAL_OCAMLFIND=/usr/opt/godi/bin/ocamlfind
2014-02-23T13:28:16+00:00 jenkins-wheezy32#01 I: PATH=/usr/opt/godi/sbin:/usr/opt/godi/bin:/var/lib/jenkins/workspace/ocaml-oasis/build/bin:/usr/local/bin:/usr/bin:/bin:/usr/local/games:/usr/games
2014-02-23T13:28:16+00:00 jenkins-wheezy32#01 I: OCAMLRUNPARAM=b
2014-02-23T13:28:16+00:00 jenkins-wheezy32#01 I: Change directory to "/tmp/ounit-28ec68-jenkins-wheezy32#01.dir/set-ocamlfind"
2014-02-23T13:28:17+00:00 jenkins-wheezy32#01 I: I: Running command ''/usr/opt/godi/bin/ocamlbuild' main.byte -tag debug'
2014-02-23T13:28:17+00:00 jenkins-wheezy32#01 I: /usr/opt/godi/bin/ocamlopt.opt -I /usr/opt/godi/lib/ocaml/std-lib/ocamlbuild unix.cmxa /usr/opt/godi/lib/ocaml/std-lib/ocamlbuild/ocamlbuildlib.cmxa myocamlbuild.ml /usr/opt/godi/lib/ocaml/std-lib/ocamlbuild/ocamlbuild.cmx -o myocamlbuild
2014-02-23T13:28:17+00:00 jenkins-wheezy32#01 I: /tmp/ounit-28ec68-jenkins-wheezy32#01.dir/build/bin/ocamlfind ocamldep -modules main.ml > main.ml.depends
2014-02-23T13:28:17+00:00 jenkins-wheezy32#01 I: /tmp/ounit-28ec68-jenkins-wheezy32#01.dir/build/bin/ocamlfind ocamlc -c -g -o main.cmo main.ml
2014-02-23T13:28:17+00:00 jenkins-wheezy32#01 I: /tmp/ounit-28ec68-jenkins-wheezy32#01.dir/build/bin/ocamlfind ocamlc -g -linkpkg main.cmo -o main.byte
2014-02-23T13:28:17+00:00 jenkins-wheezy32#01 I:
2014-02-23T13:28:17+00:00 jenkins-wheezy32#01 I: Removed a temporary file: "/tmp/ounit-5987cb-jenkins-wheezy32#01.txt".
2014-02-23T13:28:17+00:00 jenkins-wheezy32#01 I: Time spent in 'run_ocaml_setup_ml -build': 1.287376s
2014-02-23T13:28:17+00:00 jenkins-wheezy32#01 I: ### Starting build.
2014-02-23T13:28:17+00:00 jenkins-wheezy32#01 I: # Target: main.ml.depends, tags: { debug, extension:ml, file:main.ml, ocaml, ocamldep, quiet, traverse }
2014-02-23T13:28:17+00:00 jenkins-wheezy32#01 I: /tmp/ounit-28ec68-jenkins-wheezy32#01.dir/build/bin/ocamlfind ocamldep -modules main.ml > main.ml.depends
2014-02-23T13:28:17+00:00 jenkins-wheezy32#01 I: # Target: main.cmo, tags: { byte, compile, debug, extension:cmo, extension:ml, file:main.cmo, file:main.ml, implem, ocaml, quiet, traverse }
2014-02-23T13:28:17+00:00 jenkins-wheezy32#01 I: /tmp/ounit-28ec68-jenkins-wheezy32#01.dir/build/bin/ocamlfind ocamlc -c -g -o main.cmo main.ml
2014-02-23T13:28:17+00:00 jenkins-wheezy32#01 I: # Target: main.byte, tags: { byte, debug, dont_link_with, extension:byte, file:main.byte, link, ocaml, program, quiet, traverse }
2014-02-23T13:28:17+00:00 jenkins-wheezy32#01 I: /tmp/ounit-28ec68-jenkins-wheezy32#01.dir/build/bin/ocamlfind ocamlc -g -linkpkg main.cmo -o main.byte
2014-02-23T13:28:17+00:00 jenkins-wheezy32#01 I: # Compilation successful.
2014-02-23T13:28:17+00:00 jenkins-wheezy32#01 I:
2014-02-23T13:28:17+00:00 jenkins-wheezy32#01 I: Test OASIS:13:Plugin OCamlbuild:1:set-ocamlfind is successful.
Date: 2014-02-24 09:33
Sender: Jérémie Dimino

Which version of OCaml did you tested with? It needs to be one with which oasis is using the ocamlfind mode of ocamlbuild. The problem is that ocamlbuild sets Options.ocamlc, Options.ocamlopt, etc after oasis.
Date: 2014-02-20 01:57
Sender: Sylvain Le Gall

I have implemented a test here:
https://github.com/ocaml/oasis/blob/5508ac3225104fa90d504878bee1f0d8a1c3189b/test/TestOCamlbuild.ml#L60

I create a fake ocamlfind and run a build with it. I check every line in the build log to see if we really use the fake one. It seems to work as expected.

I must admit I have no clue where your error comes from.

Can you try again with oasis 0.4.2?

Here are my logs:
2014-02-20T01:47:27+00:00 zetta#01 I: Change directory to "/tmp/ounit-38efdd-zetta#01.dir/set-ocamlfind"
2014-02-20T01:47:27+00:00 zetta#01 I: I: Running command ''/usr/bin/ocamlc.opt' -config > '/tmp/oasis-6b7a1b.txt''
2014-02-20T01:47:27+00:00 zetta#01 I: I: Running command ''/tmp/ounit-38efdd-zetta#01.dir/build/bin/ocamlfind' query -format %v findlib > '/tmp/oasis-0cef59.txt''
2014-02-20T01:47:27+00:00 zetta#01 I: I: Running command ''/tmp/ounit-38efdd-zetta#01.dir/build/bin/ocamlfind' query -predicates native dynlink -format %d/%a > '/tmp/oasis-e19853.txt''
2014-02-20T01:47:27+00:00 zetta#01 I: I: Running command ''/tmp/ounit-38efdd-zetta#01.dir/build/bin/ocamlfind' query -format %v findlib > '/tmp/oasis-48fc7b.txt''
2014-02-20T01:47:27+00:00 zetta#01 I: I: Running command ''/tmp/ounit-38efdd-zetta#01.dir/build/bin/ocamlfind' query -predicates native dynlink -format %d/%a > '/tmp/oasis-74e4e7.txt''
2014-02-20T01:47:27+00:00 zetta#01 I:
2014-02-20T01:47:27+00:00 zetta#01 I: Configuration:
2014-02-20T01:47:27+00:00 zetta#01 I: ocamlfind: ..................................... /tmp/ounit-38efdd-zetta#01.dir/build/bin/ocamlfind

...

2014-02-20T01:47:27+00:00 zetta#01 I: findlib: [WARNING] Package estring has multiple definitions in /home/gildor/programmation/00build/ocaml-3.12.1-linux-amd64-libc2.13/lib/ocaml/estring/META, /usr/lib/ocaml/estring/META
2014-02-20T01:47:27+00:00 zetta#01 I: /tmp/ounit-38efdd-zetta#01.dir/build/bin/ocamlfind ocamldep -modules main.ml > main.ml.depends
2014-02-20T01:47:27+00:00 zetta#01 I: /tmp/ounit-38efdd-zetta#01.dir/build/bin/ocamlfind ocamlc -c -g -o main.cmo main.ml
2014-02-20T01:47:27+00:00 zetta#01 I: /tmp/ounit-38efdd-zetta#01.dir/build/bin/ocamlfind ocamlc -g -linkpkg main.cmo -o main.byte
2014-02-20T01:47:27+00:00 zetta#01 I:
2014-02-20T01:47:27+00:00 zetta#01 I: Removed a temporary file: "/tmp/ounit-4d2146-zetta#01.txt".
2014-02-20T01:47:27+00:00 zetta#01 I: Time spent in 'run_ocaml_setup_ml -build': 0.201059s
2014-02-20T01:47:27+00:00 zetta#01 I: ### Starting build.
2014-02-20T01:47:27+00:00 zetta#01 I: # Target: main.ml.depends, tags: { debug, extension:ml, file:main.ml, ocaml, ocamldep, quiet, traverse }
2014-02-20T01:47:27+00:00 zetta#01 I: /tmp/ounit-38efdd-zetta#01.dir/build/bin/ocamlfind ocamldep -modules main.ml > main.ml.depends
2014-02-20T01:47:27+00:00 zetta#01 I: # Target: main.cmo, tags: { byte, compile, debug, extension:cmo, extension:ml, file:main.cmo, file:main.ml, implem, ocaml, quiet, traverse }
2014-02-20T01:47:27+00:00 zetta#01 I: /tmp/ounit-38efdd-zetta#01.dir/build/bin/ocamlfind ocamlc -c -g -o main.cmo main.ml
2014-02-20T01:47:27+00:00 zetta#01 I: # Target: main.byte, tags: { byte, debug, dont_link_with, extension:byte, file:main.byte, link, ocaml, program, quiet, traverse }
2014-02-20T01:47:27+00:00 zetta#01 I: /tmp/ounit-38efdd-zetta#01.dir/build/bin/ocamlfind ocamlc -g -linkpkg main.cmo -o main.byte
2014-02-20T01:47:27+00:00 zetta#01 I: # Compilation successful.
Date: 2014-01-02 09:10
Sender: Jérémie Dimino

> That is strange, because I have patched OASIS to precisely use ocamlfind as define in setup.data. Look at this line:
> https://github.com/ocaml/oasis/blob/master/src/plugins/ocamlbuild/MyOCamlbuildFindlib.ml#L73

If I replace Before_options by After_options it works fine.

> Can you check if there is no stale setup.data ?

I ran ./configure from a clean folder.
Date: 2014-01-01 12:40
Sender: Sylvain Le Gall

That is strange, because I have patched OASIS to precisely use ocamlfind as define in setup.data. Look at this line:
https://github.com/ocaml/oasis/blob/master/src/plugins/ocamlbuild/MyOCamlbuildFindlib.ml#L73

The fact that you get the full path of ocamlfind tends to prove that it gets it from somewhere.

Can you check if there is no stale setup.data ?

Attached Files:

Changes:

Field Old Value Date By
status_idOpen2014-03-25 01:14gildor-admin
close_dateNone2014-03-25 01:14gildor-admin
ResolutionAwaiting Response2014-02-24 23:50gildor-admin
assigned_tonone2014-02-20 01:58gildor-admin
ResolutionNone2014-02-20 01:58gildor-admin