Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

opam install eigen fails on freebsd #38

Closed
devosalain opened this issue Jun 1, 2022 · 6 comments
Closed

opam install eigen fails on freebsd #38

devosalain opened this issue Jun 1, 2022 · 6 comments

Comments

@devosalain
Copy link

Error:

HOST:x: /home/x >opam install eigen   
Constructing initial basis...
Number of 0-1 knapsack inequalities = 11114
Constructing conflict graph...
Conflict graph has 1824 + 497 = 2321 vertices
The following actions will be performed:
  ∗ install eigen 0.3.2
<><> Processing actions <><><><><><><><><><><><><><><><><><><><><><><><><><><><>
⬇ retrieved eigen.0.3.2  (cached)
[ERROR] The compilation of eigen.0.3.2 failed at "dune build -p eigen -j 7".

#=== ERROR while compiling eigen.0.3.2 ========================================#
# context     2.1.2 | freebsd/x86_64 | ocaml-base-compiler.4.11.2 | https://opam.ocaml.org#04b12199
# path        /usr/home/x/.opam/4.11.2/.opam-switch/build/eigen.0.3.2
# command     /usr/home/x/.opam/4.11.2/bin/dune build -p eigen -j 7
# exit-code   1
# env-file    /usr/home/x/.opam/log/eigen-15719-29ced3.env
# output-file /usr/home/x/.opam/log/eigen-15719-29ced3.out
### output ###
# compiling c program:                                                                                                                                                      
# [...]
#  |   #endif
#  | 
#  | const char *s0 = "BEGIN-0-" PLATFORM_NAME "-END";
# run: gcc -O2 -fno-strict-aliasing -fwrapv -fPIC -I /usr/home/x/.opam/4.11.2/lib/ocaml -o /tmp/build_7ef769_dune/ocaml-configurator39fff0/c-test-0/test.o -c /tmp/build_7ef769_dune/ocaml-configurator39fff0/c-test-0/test.c -lm
# -> process exited with code 1
# -> stdout:
# -> stderr:
#  | /tmp/build_7ef769_dune/ocaml-configurator39fff0/c-test-0/test.c:21:29: error: expected ',' or ';' before 'PLATFORM_NAME'
#  |    21 | const char *s0 = "BEGIN-0-" PLATFORM_NAME "-END";
#  |       |                             ^~~~~~~~~~~~~
# Error: failed to compile program
<><> Error report <><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><>
┌─ The following actions failed
│ λ build eigen 0.3.2
└─ 
╶─ No changes have been performed
HOST:x: /home/x >
@mseri
Copy link
Member

mseri commented Jun 1, 2022

Thanks for the report. For the moment you can work around it with opam pin eigen.0.3.0. This is however a bug in dune-configurator, could you open an issue on dune’s repository?

@devosalain
Copy link
Author

devosalain commented Jun 1, 2022

I'm currently installing compiling additional libraries on FreeBSD OS. I'll inform if "opam eigen" works later.

@mseri
Copy link
Member

mseri commented Jun 2, 2022

Actually, I take it back, I had a deeper look and it is a bug here. I am missing the unkown platform. I'll make a patch and release the new version. Thanks for the report.

@devosalain
Copy link
Author

devosalain commented Jun 2, 2022

After installing OS package "eigen-3.3.9_1" , opam fails with the same error.

@mseri
Copy link
Member

mseri commented Jun 2, 2022

Can you try opam install eigen.0.3.0 and opam pin eigen git+https://github.com/owlbarn/eigen? Those versions should be fixed

@devosalain
Copy link
Author

opam install eigen.0.3.0 worked. Followed by opam install owl.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants