Open kentookura opened 5 months ago
Hey! I don't have a macOS machine with this OS version, so can't reproduce. Can you check if this builds locally with just opam
, without opam-nix
? I feel like it could just be broken there.
I managed to build it fine with native opam/dune
Ok, thanks! I've got a VM with the right macOS version now, will fix
Hey! I can't seem to repro :(
$ git clone https://git.sr.ht/~jonsterling/ocaml-forester
$ cd ocaml-forester
$ git checkout e9bd3a5a784e8fe1a34928d85ef0188e3ea41947
HEAD is now at e9bd3a5 upgrade menhir
$ nix build
trace: warning: `overrideScope'` (from `lib.makeScope`) has been renamed to `overrideScope`.
trace: warning: `overrideScope'` (from `lib.makeScope`) has been renamed to `overrideScope`.
trace: warning: `overrideScope'` (from `lib.makeScope`) has been renamed to `overrideScope`.
$ ./result/bin/forester --version
4.1.0
$ sw_vers
ProductName: macOS
ProductVersion: 13.6
BuildVersion: 22G120
All I got during the build is some warnings about unused variables.
$ nix build github:tweag/opam-nix#eio_posix.latest
Succeeds too.
Strange, running
$ nix build github:tweag/opam-nix#eio_posix.latest
succeeds, but even after running nix flake update
(checked out at the latest commit), the build of ocaml-forester
fails with the same error.
Oh, are you running on Apple silicon (aarch64) or Intel (x86_64)?
It's an intel machine. This issue is not particularly pressing. I'm the only one who has reported this breakage and I don't regularly use apple, and none of our users have complained yet.
Similar issue?
> /nix/store/j645h2bcqjww615dfkka4v4q1nyyy5m1-cctools-port-973.0.1/libexec/as/x86_64/as: this system assembler is deprecated. Please migrate to the clang integrated assembler (`as -q').
> Undefined symbols for architecture x86_64:
> "_preadv", referenced from:
> _caml_eio_posix_preadv in libeio_posix_stubs.a(eio_posix_stubs.o)
> (maybe you meant: _caml_eio_posix_preadv)
> "_pwritev", referenced from:
> _caml_eio_posix_pwritev in libeio_posix_stubs.a(eio_posix_stubs.o)
> (maybe you meant: _caml_eio_posix_pwritev)
> ld: symbol(s) not found for architecture x86_64
> clang-11: error: linker command failed with exit code 1 (use -v to see invocation)
> File "caml_startup", line 1:
> Error: Error during linking (exit code 1)
>
For full logs, run 'nix log /nix/store/xdgsaz5j39zl7n74w53by20r3h2zmyld-forester-4.3.1.drv'.
in
~/learn/forest> sw_vers
ProductName: macOS
ProductVersion: 14.7
BuildVersion: 23H124
Oh, I think is the problem with Apple command line tools, I can't just complie a hello world
which using stdc++ library, sorry for this issue. I will try degrade the version and check this problem.
To Reproduce Run
nix build
on https://git.sr.ht/~jonsterling/ocaml-forester/commit/e9bd3a5a784e8fe1a34928d85ef0188e3ea41947Expected behavior Build succeeds
Environment