ocaml-opam / opam-user-setup

Simplify the configuration of editors for using OCaml tools
Other
81 stars 12 forks source link

3.12.1 compilation broken #44

Closed rjbou closed 6 years ago

rjbou commented 6 years ago

PR #43 fails:

$ make
ocamlbuild -r \
  -tag debug \
  -I . -I ocamltop -I emacs -I vim -I sublime -I gedit \
  -use-ocamlfind -pkg unix -pkg re -pkg re.pcre -pkg cmdliner \
  -pp /home/rjbou/ocamlpro/opam-user-setup/pp_401.ml \
  ousMain.native
+ /home/rjbou/.opam/3.12.1/bin/ocamlfind ocamlopt -c -g -package cmdliner -package re -package re.pcre -package unix -pp /home/rjbou/ocamlpro/opam-user-setup/pp_401.ml -I vim -I gedit -I emacs -I ocamltop -I sublime -o ousMisc.cmx ousMisc.ml
/tmp/camlasm080479.s: Assembler messages:
/tmp/camlasm080479.s:218: Error: junk `revapply (%rip)' after expression
/tmp/camlasm080479.s:218: Error: missing or invalid immediate expression `25revapply@GOTPCREL(%rip)'
/tmp/camlasm080479.s:233: Error: junk `apply (%rip)' after expression
/tmp/camlasm080479.s:233: Error: missing or invalid immediate expression `25apply@GOTPCREL(%rip)'
/tmp/camlasm080479.s:337: Error: junk `apply (%rip)' after expression
/tmp/camlasm080479.s:337: Error: missing or invalid immediate expression `25apply@GOTPCREL(%rip)'
/tmp/camlasm080479.s:379: Error: junk `apply (%rip)' after expression
/tmp/camlasm080479.s:379: Error: missing or invalid immediate expression `25apply@GOTPCREL(%rip)'
File "/tmp/camlpp2422ae", line 1, characters 0-1:
Error: Assembler error, input left in file /tmp/camlasm080479.s
Command exited with code 2.
Compilation unsuccessful after building 21 targets (0 cached) in 00:00:00.
Makefile:19: recipe for target '_build/ousMain.native' failed
make: *** [_build/ousMain.native] Error 10

context:

$ opam config report
# opam config report
# opam-version      2.0.0~rc2 (a1737429b7b20c43cc24e52670bb6809c5505fb2) 
# self-upgrade      no
# system            arch=x86_64 os=linux os-distribution=debian os-version=9.4
# solver            builtin-mccs+glpk
# install-criteria  -removed,-count[version-lag,request],-count[version-lag,changed],-changed
# upgrade-criteria  -removed,-count[version-lag,solution],-new
# jobs              7
# repositories      1 (http), 1 (local)
# pinned            0
# current-switch    3.12.1

and

$ opam list
# Packages matching: installed
# Name              # Installed # Synopsis
base-bigarray       base        Bigarray library distributed with the OCaml compiler
base-bytes          backport    Bytes compatibility library distributed with ocamlfind
base-ocamlbuild     base        OCamlbuild binary and libraries distributed with the OCaml compiler
base-threads        base        Threads library distributed with the OCaml compiler
base-unix           base        Unix library distributed with the OCaml compiler
cmdliner            0.9.8       Declarative definition of command line interfaces for OCaml
conf-m4             1           Virtual package relying on m4
ocaml               3.12.1      The OCaml compiler (virtual package)
ocaml-base-compiler 3.12.1      Official 3.12.1 release
ocamlbuild          0           Build system distributed with the OCaml compiler since OCaml 3.10.0
ocamlfind           1.7.3-1     A library manager for OCaml
re                  1.7.1       RE is a regular expression library for OCaml
rjbou commented 6 years ago

It was caused by external definitions, not handled by ocaml 3.12.