Quantcast
Channel: OCaml - Topics tagged dune
Viewing all articles
Browse latest Browse all 521

FreeBSD: "opam install dune" fails

$
0
0

Dear All,

I am trying to setup ocaml on FreeBSD13.0-RELEASE-p4 and as a part of it was installing dune using ‘opam install dune’. However this command fails with the following error message. Kindly guide how to proceed with this. Regards
(ps: I have removed links ‘https://…’ to be able to make this post)

ankit@:~ $ opam install dune
The following actions will be performed:
  ∗ install ocamlfind                1.9.1    [required by ocamlfind-secondary]
  ∗ install ocaml-secondary-compiler 4.08.1-1 [required by ocamlfind-secondary]
  ∗ install ocamlfind-secondary      1.9.1    [required by dune]
  ∗ install dune                     2.9.1
===== ∗ 4 =====
Do you want to continue? [Y/n] y

<><> Gathering sources ><><><><><><><><><><><><><><><><><><><><><><><><><><><><>
[ocaml-secondary-compiler.4.08.1-1] downloaded from...
[ocamlfind.1.9.1] downloaded from cache at ...
[dune.2.9.1] downloaded from cache at ...
[ocamlfind-secondary.1.9.1] downloaded from cache at ...

<><> Processing actions <><><><><><><><><><><><><><><><><><><><><><><><><><><><>
[ERROR] The compilation of ocaml-secondary-compiler failed at
        "/usr/local/bin/gmake -j1 world.opt".
∗ installed ocamlfind.1.9.1

#=== ERROR while compiling ocaml-secondary-compiler.4.08.1-1 ==================#
# context     2.0.8 | freebsd/x86_64 | ocaml-system.4.05.0 | https://opam.ocaml.org#0eacced0
# path        /usr/home/ankit/.opam/default/.opam-switch/build/ocaml-secondary-compiler.4.08.1-1
# command     /usr/local/bin/gmake -j1 world.opt
# exit-code   2
# env-file    /usr/home/ankit/.opam/log/ocaml-secondary-compiler-4178-af57d6.env
# output-file /usr/home/ankit/.opam/log/ocaml-secondary-compiler-4178-af57d6.out
### output ###
# [...]
# cc -c -O2 -fno-strict-aliasing -fwrapv -Wall -g -fPIC -D_FILE_OFFSET_BITS=64 -D_REENTRANT -DCAML_NAME_SPACE  -DOCAML_STDLIB_DIR='"/usr/home/ankit/.opam/default/share/ocaml-secondary-compiler/lib"'  -o main_bpic.o main.c
# rm -f libcamlrun_pic.a && ar rc libcamlrun_pic.a  interp_bpic.o misc_bpic.o stacks_bpic.o fix_code_bpic.o startup_aux_bpic.o startup_byt_bpic.o freelist_bpic.o major_gc_bpic.o minor_gc_bpic.o memory_bpic.o alloc_bpic.o roots_byt_bpic.o globroots_bpic.o fail_byt_bpic.o signals_bpic.o signals_byt_bpic.o printexc_bpic.o backtrace_byt_bpic.o backtrace_bpic.o compare_bpic.o ints_bpic.o floats_bpic[...]
# cc -shared -o libcamlrun_shared.so interp_bpic.o misc_bpic.o stacks_bpic.o fix_code_bpic.o startup_aux_bpic.o startup_byt_bpic.o freelist_bpic.o major_gc_bpic.o minor_gc_bpic.o memory_bpic.o alloc_bpic.o roots_byt_bpic.o globroots_bpic.o fail_byt_bpic.o signals_bpic.o signals_byt_bpic.o printexc_bpic.o backtrace_byt_bpic.o backtrace_bpic.o compare_bpic.o ints_bpic.o floats_bpic.o str_bpic.o a[...]
# ld: error: duplicate symbol: caml_debug_info
# >>> defined at backtrace_byt.c:47
# >>>            backtrace_byt_bpic.o:(caml_debug_info)
# >>> defined at backtrace.c:31
# >>>            backtrace_bpic.o:(.bss+0x10)
# cc: error: linker command failed with exit code 1 (use -v to see invocation)
# gmake[1]: *** [Makefile:310: libcamlrun_shared.so] Error 1
# gmake[1]: Leaving directory '/usr/home/ankit/.opam/default/.opam-switch/build/ocaml-secondary-compiler.4.08.1-1/runtime'
# gmake: *** [Makefile:323: coldstart] Error 2



<><> Error report <><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><>
┌─ The following actions failed
│ λ build ocaml-secondary-compiler 4.08.1-1
└─ 
┌─ The following changes have been performed (the rest was aborted)
│ ∗ install ocamlfind 1.9.1
└─

14 posts - 7 participants

Read full topic


Viewing all articles
Browse latest Browse all 521

Trending Articles