HaxeFoundation / haxe

Haxe - The Cross-Platform Toolkit
https://haxe.org
6.19k stars 656 forks source link

Cannot build development branch (can 3.4.7) on Linux, ocamlfind: package extlib not found #7486

Closed jcward closed 6 years ago

jcward commented 6 years ago

Like the title says, I can build 3.4.7 tag, but not develpoment branch.

From Ubuntu 16.04, 64-bit linux, 16.04, ocaml 4.02.3 and extlib 1.7.5:

image

@andyli - have the requirements changed?

andyli commented 6 years ago

Our CI built it without problem and I also built it my Ubuntu machine. Double check your submodules and also clean everything (git clean -fdx in both the project root and each of the submodule dir).

jcward commented 6 years ago

Interesting, peeking in .travis.yml, running these lines did build haxe successfully:

make package_src -s
opam config exec -- make -s STATICLINK=1 libs
opam config exec -- make -s -j STATICLINK=1 haxe
opam config exec -- make -s haxelib
make package_bin -s

Perhaps the instructions in BUILDING.md need to be updated? I'll close this bug.

andyli commented 6 years ago

Probably you didn't run

eval `opam config env`

Normally opam asks if you want to add this line to your .bashrc/.profile when you install opam. Maybe you've said no, in which case you have to run it manually run it whenever you want to use opam.