Closed jserot closed 5 years ago
Hmmm.
Which compiler are you using?
It uses the cpuid
lib to configure the build, and that fails to load. And it fails to load because it fails to resolve the symbol ___cpuid
. And this is where it gets weird, because similarly-named __cpuid
should have been provided by the headers, and generate no external linkage.
$ gcc --version
Configured with: --prefix=/Applications/Xcode.app/Contents/Developer/usr --with-gxx-include-dir=/usr/include/c++/4.2.1
Apple LLVM version 5.0 (clang-500.2.79) (based on LLVM 3.3svn)
Target: x86_64-apple-darwin13.4.0
Thread model: posix
$ ocamlc -v
The OCaml compiler, version 4.06.0
FWIW I can't reproduce the problem but my gcc
is a bit older:
> gcc --version
Configured with: --prefix=/Applications/Xcode.app/Contents/Developer/usr --with-gxx-include-dir=/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.14.sdk/usr/include/c++/4.2.1
Apple LLVM version 10.0.0 (clang-1000.11.45.5)
Target: x86_64-apple-darwin18.2.0
Thread model: posix
InstalledDir: /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin
Could you maybe try to update to a later version of xcode ?
Thanks for testing, Daniel. Your version is newer, you meant (10.0.0, mine 5.0) ? I will try to update xcode to see if it solves the pb.
Solved by
opam remove cpuid
opam install cpuid
opam clean
opam install nocrypto
Cool, thanks for getting back with the resolution.
Because the
nocrypto
package is in the dependency list, this bug prevents building theopampublish
plugin :(