fails to build on armv7l/ChromeOS
satmandu opened this issue · comments
Problem occurs when building wayland-proxy-virtwl
[NOTE] Package wayland-proxy-virtwl is currently pinned to file:///usr/local/tmp/crew/wayland_proxy_virtwl.20211118213136.dir (version ~dev).
wayland-proxy-virtwl is now pinned to file:///usr/local/tmp/crew/wayland_proxy_virtwl.20211118214104.dir (version ~dev)
[wayland-proxy-virtwl.~dev] synchronised (file:///usr/local/tmp/crew/wayland_proxy_virtwl.20211118214104.dir)
The following actions will be performed:
∗ install logs 0.7.0 [required by wayland-proxy-virtwl]
∗ install wayland 1.0 [required by wayland-proxy-virtwl]
∗ install wayland-proxy-virtwl ~dev*
===== ∗ 3 =====
<><> Processing actions <><><><><><><><><><><><><><><><><><><><><><><><><><><><>
⬇ retrieved logs.0.7.0 (cached)
⬇ retrieved wayland.1.0 (cached)
⬇ retrieved wayland-proxy-virtwl.~dev (file:///usr/local/tmp/crew/wayland_proxy_virtwl.20211118214104.dir)
[ERROR] The compilation of logs.0.7.0 failed at "ocaml pkg/pkg.ml build --pinned false --with-js_of_ocaml false --with-fmt true --with-cmdliner true --with-lwt true --with-base-threads true".
#=== ERROR while compiling logs.0.7.0 =========================================#
# context 2.1.1 | linux/arm32 | ocaml.4.12.0 | https://opam.ocaml.org#65e6196c
# path /usr/local/opam/default/.opam-switch/build/logs.0.7.0
# command /usr/local/opam/default/bin/ocaml pkg/pkg.ml build --pinned false --with-js_of_ocaml false --with-fmt true --with-cmdliner true --with-lwt true --with-base-threads true
# exit-code 1
# env-file /usr/local/opam/log/logs-89626-2a4d1e.env
# output-file /usr/local/opam/log/logs-89626-2a4d1e.out
### output ###
# pkg.ml: [ERROR] cmd ['ocamlbuild' '-use-ocamlfind' '-classic-display' '-j' '4' '-tag' 'debug'
# [...]
# 'src/logs_fmt.cmx' 'src/logs_fmt.cmi' 'src/logs_fmt.mli'
# 'src/logs_cli.a' 'src/logs_cli.cmxs' 'src/logs_cli.cmxa'
# 'src/logs_cli.cma' 'src/logs_cli.cmx' 'src/logs_cli.cmi'
# 'src/logs_cli.mli' 'src/logs_lwt.a' 'src/logs_lwt.cmxs'
# 'src/logs_lwt.cmxa' 'src/logs_lwt.cma' 'src/logs_lwt.cmx'
# 'src/logs_lwt.cmi' 'src/logs_lwt.mli' 'src/logs_top.a'
# 'src/logs_top.cmxs' 'src/logs_top.cmxa' 'src/logs_top.cma'
# 'src/logs_top.cmx' 'src/logs_threaded.a' 'src/logs_threaded.cmxs'
# 'src/logs_threaded.cmxa' 'src/logs_threaded.cma' 'src/logs_threaded.cmx'
# 'src/logs_threaded.cmi' 'src/logs_threaded.mli' 'src/logs_top_init.ml'
# 'src/logs_fmt_top_init.ml' 'test/tool.ml' 'test/tags.ml']: exited with 10
<><> Error report <><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><>
┌─ The following actions failed
│ λ build logs 0.7.0
└─
╶─ No changes have been performed
As you can read, without the full logs I cannot tell you anything.
opam install logs --root=/usr/local/opam
The following actions will be performed:
∗ install logs 0.7.0
<><> Processing actions <><><><><><><><><><><><><><><><><><><><><><><><><><><><>
⬇ retrieved logs.0.7.0 (cached)
[ERROR] The compilation of logs.0.7.0 failed at "ocaml pkg/pkg.ml build --pinned false --with-js_of_ocaml false --with-fmt true --with-cmdliner true --with-lwt true
--with-base-threads true".
#=== ERROR while compiling logs.0.7.0 =========================================#
# context 2.1.1 | linux/arm32 | ocaml.4.12.0 | https://opam.ocaml.org#65e6196c
# path /usr/local/opam/default/.opam-switch/build/logs.0.7.0
# command /usr/local/opam/default/bin/ocaml pkg/pkg.ml build --pinned false --with-js_of_ocaml false --with-fmt true --with-cmdliner true --with-lwt true --with-base-threads true
# exit-code 1
# env-file /usr/local/opam/log/logs-89701-f539b8.env
# output-file /usr/local/opam/log/logs-89701-f539b8.out
### output ###
# pkg.ml: [ERROR] cmd ['ocamlbuild' '-use-ocamlfind' '-classic-display' '-j' '4' '-tag' 'debug'
# [...]
# 'src/logs_fmt.cmx' 'src/logs_fmt.cmi' 'src/logs_fmt.mli'
# 'src/logs_cli.a' 'src/logs_cli.cmxs' 'src/logs_cli.cmxa'
# 'src/logs_cli.cma' 'src/logs_cli.cmx' 'src/logs_cli.cmi'
# 'src/logs_cli.mli' 'src/logs_lwt.a' 'src/logs_lwt.cmxs'
# 'src/logs_lwt.cmxa' 'src/logs_lwt.cma' 'src/logs_lwt.cmx'
# 'src/logs_lwt.cmi' 'src/logs_lwt.mli' 'src/logs_top.a'
# 'src/logs_top.cmxs' 'src/logs_top.cmxa' 'src/logs_top.cma'
# 'src/logs_top.cmx' 'src/logs_threaded.a' 'src/logs_threaded.cmxs'
# 'src/logs_threaded.cmxa' 'src/logs_threaded.cma' 'src/logs_threaded.cmx'
# 'src/logs_threaded.cmi' 'src/logs_threaded.mli' 'src/logs_top_init.ml'
# 'src/logs_fmt_top_init.ml' 'test/tool.ml' 'test/tags.ml']: exited with 10
<><> Error report <><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><>
┌─ The following actions failed
│ λ build logs 0.7.0
└─
╶─ No changes have been performed
# Run eval $(opam env --root=/usr/local/opam) to update the current shell environment
Here's the outfile referenced above:
ocamlfind ocamldep -modules src/logs.ml > src/logs.ml.depends
ocamlfind ocamldep -modules src/logs.mli > src/logs.mli.depends
ocamlfind ocamlc -c -g -bin-annot -safe-string -I src -I test -o src/logs.cmi src/logs.mli
ocamlfind ocamlopt -c -g -bin-annot -safe-string -I src -I test -o src/logs.cmx src/logs.ml
ocamlfind ocamlopt -a -I src src/logs.cmx -o src/logs.cmxa
ocamlfind ocamlopt -shared -linkall -I src src/logs.cmxa -o src/logs.cmxs
+ ocamlfind ocamlopt -shared -linkall -I src src/logs.cmxa -o src/logs.cmxs
/usr/local/bin/ld: internal error in output_address, at ../../gold/output.cc:3075
collect2: error: ld returned 1 exit status
File "caml_startup", line 1:
Error: Error during linking (exit code 1)
Command exited with code 2.
pkg.ml: [ERROR] cmd ['ocamlbuild' '-use-ocamlfind' '-classic-display' '-j' '4' '-tag' 'debug'
'-build-dir' '_build' 'opam' 'pkg/META' 'CHANGES.md' 'LICENSE.md'
'README.md' 'src/logs.a' 'src/logs.cmxs' 'src/logs.cmxa' 'src/logs.cma'
'src/logs.cmx' 'src/logs.cmi' 'src/logs.mli' 'src/logs_fmt.a'
'src/logs_fmt.cmxs' 'src/logs_fmt.cmxa' 'src/logs_fmt.cma'
'src/logs_fmt.cmx' 'src/logs_fmt.cmi' 'src/logs_fmt.mli'
'src/logs_cli.a' 'src/logs_cli.cmxs' 'src/logs_cli.cmxa'
'src/logs_cli.cma' 'src/logs_cli.cmx' 'src/logs_cli.cmi'
'src/logs_cli.mli' 'src/logs_lwt.a' 'src/logs_lwt.cmxs'
'src/logs_lwt.cmxa' 'src/logs_lwt.cma' 'src/logs_lwt.cmx'
'src/logs_lwt.cmi' 'src/logs_lwt.mli' 'src/logs_top.a'
'src/logs_top.cmxs' 'src/logs_top.cmxa' 'src/logs_top.cma'
'src/logs_top.cmx' 'src/logs_threaded.a' 'src/logs_threaded.cmxs'
'src/logs_threaded.cmxa' 'src/logs_threaded.cma' 'src/logs_threaded.cmx'
'src/logs_threaded.cmi' 'src/logs_threaded.mli' 'src/logs_top_init.ml'
'src/logs_fmt_top_init.ml' 'test/tool.ml' 'test/tags.ml']: exited with 10
- ocamlfind ocamlopt -shared -linkall -I src src/logs.cmxa -o src/logs.cmxs
/usr/local/bin/ld: internal error in output_address, at ../../gold/output.cc:3075
collect2: error: ld returned 1 exit status
Doesn't look like a logs
issue did you try to install other things ?
Are you sure you have the right permissions:
opam install logs --root=/usr/local/opam
Looks like a bunch of packages do get installed, and permissions are not an issue there:
∗ installed ppxlib.0.23.0
∗ installed ppx_cstruct.6.0.1
∗ installed lwt.5.4.2
∗ installed cstruct-lwt.6.0.1
[ERROR] The compilation of logs.0.7.0 failed at "ocaml pkg/pkg.ml build --pinned false --with-js_of_ocaml false --with-fmt true --with-cmdliner true --with-lwt true --with-base-threads true".
#=== ERROR while compiling logs.0.7.0 =========================================#
# context 2.1.1 | linux/arm32 | ocaml.4.12.0 | https://opam.ocaml.org#65e6196c
# path /usr/local/opam/default/.opam-switch/build/logs.0.7.0
# command /usr/local/opam/default/bin/ocaml pkg/pkg.ml build --pinned false --with-js_of_ocaml false --with-fmt true --with-cmdliner true --with-lwt true --with-base-threads true
# exit-code 1
# env-file /usr/local/opam/log/logs-914-c875a9.env
# output-file /usr/local/opam/log/logs-914-c875a9.out
### output ###
# pkg.ml: [ERROR] cmd ['ocamlbuild' '-use-ocamlfind' '-classic-display' '-j' '4' '-tag' 'debug'
# [...]
# 'src/logs_fmt.cmx' 'src/logs_fmt.cmi' 'src/logs_fmt.mli'
# 'src/logs_cli.a' 'src/logs_cli.cmxs' 'src/logs_cli.cmxa'
# 'src/logs_cli.cma' 'src/logs_cli.cmx' 'src/logs_cli.cmi'
# 'src/logs_cli.mli' 'src/logs_lwt.a' 'src/logs_lwt.cmxs'
# 'src/logs_lwt.cmxa' 'src/logs_lwt.cma' 'src/logs_lwt.cmx'
# 'src/logs_lwt.cmi' 'src/logs_lwt.mli' 'src/logs_top.a'
# 'src/logs_top.cmxs' 'src/logs_top.cmxa' 'src/logs_top.cma'
# 'src/logs_top.cmx' 'src/logs_threaded.a' 'src/logs_threaded.cmxs'
# 'src/logs_threaded.cmxa' 'src/logs_threaded.cma' 'src/logs_threaded.cmx'
# 'src/logs_threaded.cmi' 'src/logs_threaded.mli' 'src/logs_top_init.ml'
# 'src/logs_fmt_top_init.ml' 'test/tool.ml' 'test/tags.ml']: exited with 10
<><> Error report <><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><>
┌─ The following actions failed
│ λ build logs 0.7.0
└─
┌─ The following changes have been performed (the rest was aborted)
│ ∗ install base v0.14.1
│ ∗ install base-bytes base
│ ∗ install bigarray-compat 1.0.0
│ ∗ install cmdliner 1.0.4
│ ∗ install cppo 1.6.8
│ ∗ install csexp 1.5.1
│ ∗ install cstruct 6.0.1
│ ∗ install cstruct-lwt 6.0.1
│ ∗ install dune 2.9.1
│ ∗ install dune-configurator 2.9.1
│ ∗ install fmt 0.9.0
│ ∗ install lwt 5.4.2
│ ∗ install mmap 1.1.0
│ ∗ install num 1.4
│ ∗ install ocaml-compiler-libs v0.12.4
│ ∗ install ocamlbuild 0.14.0
│ ∗ install ocamlfind 1.9.1
│ ∗ install ocplib-endian 1.2
│ ∗ install parsexp v0.14.1
│ ∗ install ppx_cstruct 6.0.1
│ ∗ install ppx_derivers 1.2.1
│ ∗ install ppxlib 0.23.0
│ ∗ install result 1.5
│ ∗ install seq base
│ ∗ install sexplib v0.14.0
│ ∗ install sexplib0 v0.14.0
│ ∗ install stdlib-shims 0.3.0
│ ∗ install topkg 1.0.4
│ ∗ install xmlm 1.3.0
└─
And the same issue
ocamlfind ocamldep -modules src/logs.ml > src/logs.ml.depends
ocamlfind ocamldep -modules src/logs.mli > src/logs.mli.depends
ocamlfind ocamlc -c -g -bin-annot -safe-string -I src -I test -o src/logs.cmi src/logs.mli
ocamlfind ocamlopt -c -g -bin-annot -safe-string -I src -I test -o src/logs.cmx src/logs.ml
ocamlfind ocamlopt -a -I src src/logs.cmx -o src/logs.cmxa
ocamlfind ocamlopt -shared -linkall -I src src/logs.cmxa -o src/logs.cmxs
+ ocamlfind ocamlopt -shared -linkall -I src src/logs.cmxa -o src/logs.cmxs
/usr/local/bin/ld: internal error in output_address, at ../../gold/output.cc:3075
collect2: error: ld returned 1 exit status
File "caml_startup", line 1:
Error: Error during linking (exit code 1)
Command exited with code 2.
pkg.ml: [ERROR] cmd ['ocamlbuild' '-use-ocamlfind' '-classic-display' '-j' '4' '-tag' 'debug'
'-build-dir' '_build' 'opam' 'pkg/META' 'CHANGES.md' 'LICENSE.md'
'README.md' 'src/logs.a' 'src/logs.cmxs' 'src/logs.cmxa' 'src/logs.cma'
'src/logs.cmx' 'src/logs.cmi' 'src/logs.mli' 'src/logs_fmt.a'
'src/logs_fmt.cmxs' 'src/logs_fmt.cmxa' 'src/logs_fmt.cma'
'src/logs_fmt.cmx' 'src/logs_fmt.cmi' 'src/logs_fmt.mli'
'src/logs_cli.a' 'src/logs_cli.cmxs' 'src/logs_cli.cmxa'
'src/logs_cli.cma' 'src/logs_cli.cmx' 'src/logs_cli.cmi'
'src/logs_cli.mli' 'src/logs_lwt.a' 'src/logs_lwt.cmxs'
'src/logs_lwt.cmxa' 'src/logs_lwt.cma' 'src/logs_lwt.cmx'
'src/logs_lwt.cmi' 'src/logs_lwt.mli' 'src/logs_top.a'
'src/logs_top.cmxs' 'src/logs_top.cmxa' 'src/logs_top.cma'
'src/logs_top.cmx' 'src/logs_threaded.a' 'src/logs_threaded.cmxs'
'src/logs_threaded.cmxa' 'src/logs_threaded.cma' 'src/logs_threaded.cmx'
'src/logs_threaded.cmi' 'src/logs_threaded.mli' 'src/logs_top_init.ml'
'src/logs_fmt_top_init.ml' 'test/tool.ml' 'test/tags.ml']: exited with 10
~
Actually... it looks like this was a gold linker issue. Switching to ld.bfd appears to have rectified the issue.
Thanks!