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

libcamlrun.a Error 1 #26359

Closed
kid-with-phone opened this issue Aug 15, 2024 · 5 comments
Closed

libcamlrun.a Error 1 #26359

kid-with-phone opened this issue Aug 15, 2024 · 5 comments

Comments

@kid-with-phone
Copy link

Installation fails:

#=== ERROR while compiling ocaml-base-compiler.5.2.0 ==========#
# context     2.2.0 | linux/arm64 |  | https://opam.ocaml.org#47c192ba656a7b302c16bde355fbbe34e0dbf937
# path        ~/.opam/default/.opam-switch/build/ocaml-base-compiler.5.2.0
# command     /data/data/com.termux/files/usr/bin/make -j7
# exit-code   2
# env-file    /data/data/com.termux/files/usr/tmp/opam-xxx-5475/ocaml-base-compiler-5475-0ee6d1.env
# output-file /data/data/com.termux/files/usr/tmp/opam-xxx-5475/ocaml-base-compiler-5475-0ee6d1.out
### output ###
# make[1]: Entering directory '/data/data/com.termux/files/home/.opam/default/.opam-switch/build/ocaml-base-compiler.5.2.0'
# [...]
#   CC runtime/weak.b.o
#   CC runtime/backtrace_byt.b.o
#   CC runtime/fail_byt.b.o
#   CC runtime/fix_code.b.o
#   CC runtime/interp.b.o
#   CC runtime/startup_byt.b.o
#   CC runtime/zstd.b.o
#   MKLIB runtime/libcamlrun.a
# make[1]: *** [Makefile:1315: runtime/libcamlrun.a] Error 1
# make[1]: Leaving directory '/data/data/com.termux/files/home/.opam/default/.opam-switch/build/ocaml-base-compiler.5.2.0'
# make: *** [Makefile:830: world.opt] Error 2
~ $ opam config report
# opam config report
# opam-version         2.2.0
# self-upgrade         no
# system               arch=arm64 os=linux os-distribution=android os-version=10
# solver               builtin-mccs+glpk
# install-criteria     -removed,-count[avoid-version,changed],-count[version-lag,request],-count[version-lag,changed],-count[missing-depexts,changed],-changed
# upgrade-criteria     -removed,-count[avoid-version,changed],-count[version-lag,solution],-count[missing-depexts,changed],-new
# jobs                 7
# current-switch       none set
~ $
@kit-ty-kate
Copy link
Member

Could you display what's in /data/data/com.termux/files/usr/tmp/opam-xxx-5475/ocaml-base-compiler-5475-0ee6d1.out? If the file doesn't exist anymore, could you restart the command with --verbose ?

In any case this is an error in the OCaml compiler package, not in opam itself so i'm moving this ticket to opam-repository

@kit-ty-kate kit-ty-kate transferred this issue from ocaml/opam Aug 15, 2024
@kid-with-phone
Copy link
Author

Sorry for the delay, I didn't get a notification
I pasted the output into a file:
opam.txt

@kit-ty-kate
Copy link
Member

mmh, there doesn't seem to be any relevant error message other than

#   MKLIB runtime/libcamlrun.a
# make[1]: *** [Makefile:1315: runtime/libcamlrun.a] Error 1

Could you open a ticket in the OCaml issue tracker: https://github.com/ocaml/ocaml/issues
the compiler devs might be able to understand this better than i do

@MisterDA
Copy link
Contributor

MisterDA commented Sep 4, 2024

This can be closed, the issue is handled in the compiler.

@kit-ty-kate
Copy link
Member

Will be fixed by ocaml/ocaml#13405

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

3 participants