Open Lupus opened 1 year ago
I am running into this issue too on NixOS.
@kentookura try setting OCAMLOPT
environment variable to ocamlopt path.
Getting a new error:
$ echo $OCAMLOPT
/home/kento/forest/rust-ocaml-starter/_opam/bin/ocamlopt
$ cargo build
...
error: failed to run custom build command for `ocaml-boxroot-sys v0.2.0`
...
error occurred: Command "gcc" "-O0" "-ffunction-sections" "-fdata-sections" "-fPIC" "-gdwarf-4" "-fno-omit-frame-pointer"
"-m64" "-I" "/home/kento/forest/rust-ocaml-starter/_opam/lib/ocaml" "-I" "vendor/boxroot/" "-Wall" "-Wextra" "-o"
"/home/kento/forest/rust-ocaml-starter/target/debug/build/ocaml-boxroot-sys-c1ea8bd5de447007/out/vendor/boxroot/boxroot.o"
"-c" "vendor/boxroot/boxroot.c" with args "gcc" did not execute successfully (status code exit status: 1).
This is only an excerpt of the output
If you provide more comprehensive log I might be able to help you but this is not enough to understand what's going on.
Compiling ocaml-boxroot-sys v0.2.0
The following warnings were emitted during compilation:
warning: In file included from /nix/store/wb2dlc8kpvrn960vq7j7c8822pi43n48-glibc-2.37-8-dev/include/assert.h:35,
warning: from vendor/boxroot/boxroot.c:5:
warning: /nix/store/wb2dlc8kpvrn960vq7j7c8822pi43n48-glibc-2.37-8-dev/include/features.h:413:4: warning: #warning _FORTIFY_SOURCE requires compiling with optimization (-O) [-Wcpp]
warning: 413 | # warning _FORTIFY_SOURCE requires compiling with optimization (-O)
warning: | ^~~~~~~
warning: vendor/boxroot/boxroot.c: In function ‘pool_remove’:
warning: vendor/boxroot/boxroot.c:360:31: warning: unused variable ‘cl’ [-Wunused-variable]
warning: 360 | FOREACH_GLOBAL_RING(global, cl, {
warning: | ^~
warning: vendor/boxroot/boxroot.c:164:13: note: in definition of macro ‘FOREACH_GLOBAL_RING’
warning: 164 | class cl = global_ring_classes[b__i - b__st]; \
warning: | ^~
warning: vendor/boxroot/boxroot.c: In function ‘free_all_chunks’:
warning: vendor/boxroot/boxroot.c:375:31: warning: unused variable ‘cl’ [-Wunused-variable]
warning: 375 | FOREACH_GLOBAL_RING(global, cl, { *global = NULL; });
warning: | ^~
warning: vendor/boxroot/boxroot.c:164:13: note: in definition of macro ‘FOREACH_GLOBAL_RING’
warning: 164 | class cl = global_ring_classes[b__i - b__st]; \
warning: | ^~
warning: vendor/boxroot/boxroot.c: In function ‘promotion_occupancy’:
warning: vendor/boxroot/boxroot.c:521:17: warning: comparison of integer expressions of different signedness: ‘int’ and ‘long unsigned int’ [-Wsign-compare]
warning: 521 | if (threshold <= LOW_COUNT_THRESHOLD) return LOW;
warning: | ^~
warning: vendor/boxroot/boxroot.c:522:17: warning: comparison of integer expressions of different signedness: ‘int’ and ‘long unsigned int’ [-Wsign-compare]
warning: 522 | if (threshold <= HIGH_COUNT_THRESHOLD) return HIGH;
warning: | ^~
warning: vendor/boxroot/boxroot.c: In function ‘pool_reclassify’:
warning: vendor/boxroot/boxroot.c:544:3: warning: enumeration value ‘NO_CHANGE’ not handled in switch [-Wswitch]
warning: 544 | switch (occ) {
warning: | ^~~~~~
warning: vendor/boxroot/boxroot.c: In function ‘scan_pool’:
warning: vendor/boxroot/boxroot.c:821:14: warning: passing argument 1 of ‘action’ makes pointer from integer without a cast [-Wint-conversion]
warning: 821 | action(v, (value *)current);
warning: | ^
warning: | |
warning: | value {aka long int}
warning: vendor/boxroot/boxroot.c:821:14: note: expected ‘void *’ but argument is of type ‘value’ {aka ‘long int’}
warning: vendor/boxroot/boxroot.c:821:17: warning: passing argument 2 of ‘action’ makes integer from pointer without a cast [-Wint-conversion]
warning: 821 | action(v, (value *)current);
warning: | ^~~~~~~~~~~~~~~~
warning: | |
warning: | value * {aka long int *}
warning: vendor/boxroot/boxroot.c:821:17: note: expected ‘value’ {aka ‘long int’} but argument is of type ‘value *’ {aka ‘long int *’}
warning: vendor/boxroot/boxroot.c:821:7: error: too few arguments to function ‘action’
warning: 821 | action(v, (value *)current);
warning: | ^~~~~~
warning: vendor/boxroot/boxroot.c: In function ‘boxroot_setup’:
warning: vendor/boxroot/boxroot.c:1043:31: warning: unused variable ‘cl’ [-Wunused-variable]
warning: 1043 | FOREACH_GLOBAL_RING(global, cl, { *global = NULL; });
warning: | ^~
warning: vendor/boxroot/boxroot.c:164:13: note: in definition of macro ‘FOREACH_GLOBAL_RING’
warning: 164 | class cl = global_ring_classes[b__i - b__st]; \
warning: | ^~
warning: vendor/boxroot/boxroot.c:1045:24: warning: assignment to ‘void (*)(void (*)(void *, value, volatile value *))’ {aka ‘void (*)(void (*)(void *, long int, volatile long int *))’} from incompatible pointer type ‘scan_roots_hook’ {aka ‘void (*)(void (*)(void *, long int, volatile long int *), scanning_action_flags, void *, caml_domain_state *)’} [-Wincompatible-pointer-types]
warning: 1045 | prev_scan_roots_hook = caml_scan_roots_hook;
warning: | ^
warning: vendor/boxroot/boxroot.c:1049:24: warning: assignment to ‘scan_roots_hook’ {aka ‘void (*)(void (*)(void *, long int, volatile long int *), scanning_action_flags, void *, caml_domain_state *)’} from incompatible pointer type ‘void (*)(void (*)(void *, value, volatile value *))’ {aka ‘void (*)(void (*)(void *, long int, volatile long int *))’} [-Wincompatible-pointer-types]
warning: 1049 | caml_scan_roots_hook = scanning_callback;
warning: | ^
warning: vendor/boxroot/boxroot.c: In function ‘boxroot_teardown’:
warning: vendor/boxroot/boxroot.c:1061:24: warning: assignment to ‘scan_roots_hook’ {aka ‘void (*)(void (*)(void *, long int, volatile long int *), scanning_action_flags, void *, caml_domain_state *)’} from incompatible pointer type ‘void (*)(void (*)(void *, value, volatile value *))’ {aka ‘void (*)(void (*)(void *, long int, volatile long int *))’} [-Wincompatible-pointer-types]
warning: 1061 | caml_scan_roots_hook = prev_scan_roots_hook;
warning: | ^
error: failed to run custom build command for `ocaml-boxroot-sys v0.2.0`
Caused by:
process didn't exit successfully: `/home/kento/forest/rust-ocaml-starter/target/debug/build/ocaml-boxroot-sys-63970aef14e73971/build-script-build` (exit status: 1)
--- stdout
cargo:rerun-if-changed=vendor/boxroot/boxroot.c
cargo:rerun-if-changed=vendor/boxroot/boxroot.h
cargo:rerun-if-env-changed=OCAMLOPT
cargo:rerun-if-env-changed=OCAML_WHERE_PATH
TARGET = Some("x86_64-unknown-linux-gnu")
OPT_LEVEL = Some("0")
HOST = Some("x86_64-unknown-linux-gnu")
cargo:rerun-if-env-changed=CC_x86_64-unknown-linux-gnu
CC_x86_64-unknown-linux-gnu = None
cargo:rerun-if-env-changed=CC_x86_64_unknown_linux_gnu
CC_x86_64_unknown_linux_gnu = None
cargo:rerun-if-env-changed=HOST_CC
HOST_CC = None
cargo:rerun-if-env-changed=CC
CC = Some("gcc")
cargo:rerun-if-env-changed=CRATE_CC_NO_DEFAULTS
CRATE_CC_NO_DEFAULTS = None
DEBUG = Some("true")
CARGO_CFG_TARGET_FEATURE = Some("fxsr,sse,sse2")
cargo:rerun-if-env-changed=CFLAGS_x86_64-unknown-linux-gnu
CFLAGS_x86_64-unknown-linux-gnu = None
cargo:rerun-if-env-changed=CFLAGS_x86_64_unknown_linux_gnu
CFLAGS_x86_64_unknown_linux_gnu = None
cargo:rerun-if-env-changed=HOST_CFLAGS
HOST_CFLAGS = None
cargo:rerun-if-env-changed=CFLAGS
CFLAGS = None
running: "gcc" "-O0" "-ffunction-sections" "-fdata-sections" "-fPIC" "-gdwarf-4" "-fno-omit-frame-pointer" "-m64" "-I" "/home/kento/forest/rust-ocaml-starter/_opam/lib/ocaml" "-I" "vendor/boxroot/" "-Wall" "-Wextra" "-o" "/home/kento/forest/rust-ocaml-starter/target/debug/build/ocaml-boxroot-sys-c1ea8bd5de447007/out/vendor/boxroot/boxroot.o" "-c" "vendor/boxroot/boxroot.c"
cargo:warning=In file included from /nix/store/wb2dlc8kpvrn960vq7j7c8822pi43n48-glibc-2.37-8-dev/include/assert.h:35,
cargo:warning= from vendor/boxroot/boxroot.c:5:
cargo:warning=/nix/store/wb2dlc8kpvrn960vq7j7c8822pi43n48-glibc-2.37-8-dev/include/features.h:413:4: warning: #warning _FORTIFY_SOURCE requires compiling with optimization (-O) [-Wcpp]
cargo:warning= 413 | # warning _FORTIFY_SOURCE requires compiling with optimization (-O)
cargo:warning= | ^~~~~~~
cargo:warning=vendor/boxroot/boxroot.c: In function ‘pool_remove’:
cargo:warning=vendor/boxroot/boxroot.c:360:31: warning: unused variable ‘cl’ [-Wunused-variable]
cargo:warning= 360 | FOREACH_GLOBAL_RING(global, cl, {
cargo:warning= | ^~
cargo:warning=vendor/boxroot/boxroot.c:164:13: note: in definition of macro ‘FOREACH_GLOBAL_RING’
cargo:warning= 164 | class cl = global_ring_classes[b__i - b__st]; \
cargo:warning= | ^~
cargo:warning=vendor/boxroot/boxroot.c: In function ‘free_all_chunks’:
cargo:warning=vendor/boxroot/boxroot.c:375:31: warning: unused variable ‘cl’ [-Wunused-variable]
cargo:warning= 375 | FOREACH_GLOBAL_RING(global, cl, { *global = NULL; });
cargo:warning= | ^~
cargo:warning=vendor/boxroot/boxroot.c:164:13: note: in definition of macro ‘FOREACH_GLOBAL_RING’
cargo:warning= 164 | class cl = global_ring_classes[b__i - b__st]; \
cargo:warning= | ^~
cargo:warning=vendor/boxroot/boxroot.c: In function ‘promotion_occupancy’:
cargo:warning=vendor/boxroot/boxroot.c:521:17: warning: comparison of integer expressions of different signedness: ‘int’ and ‘long unsigned int’ [-Wsign-compare]
cargo:warning= 521 | if (threshold <= LOW_COUNT_THRESHOLD) return LOW;
cargo:warning= | ^~
cargo:warning=vendor/boxroot/boxroot.c:522:17: warning: comparison of integer expressions of different signedness: ‘int’ and ‘long unsigned int’ [-Wsign-compare]
cargo:warning= 522 | if (threshold <= HIGH_COUNT_THRESHOLD) return HIGH;
cargo:warning= | ^~
cargo:warning=vendor/boxroot/boxroot.c: In function ‘pool_reclassify’:
cargo:warning=vendor/boxroot/boxroot.c:544:3: warning: enumeration value ‘NO_CHANGE’ not handled in switch [-Wswitch]
cargo:warning= 544 | switch (occ) {
cargo:warning= | ^~~~~~
cargo:warning=vendor/boxroot/boxroot.c: In function ‘scan_pool’:
cargo:warning=vendor/boxroot/boxroot.c:821:14: warning: passing argument 1 of ‘action’ makes pointer from integer without a cast [-Wint-conversion]
cargo:warning= 821 | action(v, (value *)current);
cargo:warning= | ^
cargo:warning= | |
cargo:warning= | value {aka long int}
cargo:warning=vendor/boxroot/boxroot.c:821:14: note: expected ‘void *’ but argument is of type ‘value’ {aka ‘long int’}
cargo:warning=vendor/boxroot/boxroot.c:821:17: warning: passing argument 2 of ‘action’ makes integer from pointer without a cast [-Wint-conversion]
cargo:warning= 821 | action(v, (value *)current);
cargo:warning= | ^~~~~~~~~~~~~~~~
cargo:warning= | |
cargo:warning= | value * {aka long int *}
cargo:warning=vendor/boxroot/boxroot.c:821:17: note: expected ‘value’ {aka ‘long int’} but argument is of type ‘value *’ {aka ‘long int *’}
cargo:warning=vendor/boxroot/boxroot.c:821:7: error: too few arguments to function ‘action’
cargo:warning= 821 | action(v, (value *)current);
cargo:warning= | ^~~~~~
cargo:warning=vendor/boxroot/boxroot.c: In function ‘boxroot_setup’:
cargo:warning=vendor/boxroot/boxroot.c:1043:31: warning: unused variable ‘cl’ [-Wunused-variable]
cargo:warning= 1043 | FOREACH_GLOBAL_RING(global, cl, { *global = NULL; });
cargo:warning= | ^~
cargo:warning=vendor/boxroot/boxroot.c:164:13: note: in definition of macro ‘FOREACH_GLOBAL_RING’
cargo:warning= 164 | class cl = global_ring_classes[b__i - b__st]; \
cargo:warning= | ^~
cargo:warning=vendor/boxroot/boxroot.c:1045:24: warning: assignment to ‘void (*)(void (*)(void *, value, volatile value *))’ {aka ‘void (*)(void (*)(void *, long int, volatile long int *))’} from incompatible pointer type ‘scan_roots_hook’ {aka ‘void (*)(void (*)(void *, long int, volatile long int *), scanning_action_flags, void *, caml_domain_state *)’} [-Wincompatible-pointer-types]
cargo:warning= 1045 | prev_scan_roots_hook = caml_scan_roots_hook;
cargo:warning= | ^
cargo:warning=vendor/boxroot/boxroot.c:1049:24: warning: assignment to ‘scan_roots_hook’ {aka ‘void (*)(void (*)(void *, long int, volatile long int *), scanning_action_flags, void *, caml_domain_state *)’} from incompatible pointer type ‘void (*)(void (*)(void *, value, volatile value *))’ {aka ‘void (*)(void (*)(void *, long int, volatile long int *))’} [-Wincompatible-pointer-types]
cargo:warning= 1049 | caml_scan_roots_hook = scanning_callback;
cargo:warning= | ^
cargo:warning=vendor/boxroot/boxroot.c: In function ‘boxroot_teardown’:
cargo:warning=vendor/boxroot/boxroot.c:1061:24: warning: assignment to ‘scan_roots_hook’ {aka ‘void (*)(void (*)(void *, long int, volatile long int *), scanning_action_flags, void *, caml_domain_state *)’} from incompatible pointer type ‘void (*)(void (*)(void *, value, volatile value *))’ {aka ‘void (*)(void (*)(void *, long int, volatile long int *))’} [-Wincompatible-pointer-types]
cargo:warning= 1061 | caml_scan_roots_hook = prev_scan_roots_hook;
cargo:warning= | ^
exit status: 1
--- stderr
error occurred: Command "gcc" "-O0" "-ffunction-sections" "-fdata-sections" "-fPIC" "-gdwarf-4" "-fno-omit-frame-pointer" "-m64" "-I" "/home/kento/forest/rust-ocaml-starter/_opam/lib/ocaml" "-I" "vendor/boxroot/" "-Wall" "-Wextra" "-o" "/home/kento/forest/rust-ocaml-starter/target/debug/build/ocaml-boxroot-sys-c1ea8bd5de447007/out/vendor/boxroot/boxroot.o" "-c" "vendor/boxroot/boxroot.c" with args "gcc" did not execute successfully (status code exit status: 1).
warning: vendor/boxroot/boxroot.c:821:17: note: expected ‘value’ {aka ‘long int’} but argument is of type ‘value *’ {aka ‘long int *’}
warning: vendor/boxroot/boxroot.c:821:7: error: too few arguments to function ‘action’
warning: 821 | action(v, (value *)current);
It looks like a version mismatch.
Take a look at:
(don't be confused by branch names, it works on ocaml 4)
I am on ocaml 5 anyway.
So I updated my Cargo.toml
:
[package]
name = "forester-rs"
version = "0.1.0"
edition = "2021"
[dependencies]
# ocaml = { version = "^1.0.0-beta" }
ocaml = {git = "https://github.com/crackcomm/ocaml-rs", branch = "ocaml5-fortran"}
[build-dependencies]
#ocaml-build = { version = "^1.0.0-beta", features = ["dune"] }
ocaml-build = { git = "https://github.com/crackcomm/ocaml-rs", branch = "ocaml5-fortran", features = ["dune"] }
and get
❮ cargo build
Compiling ocaml-sys v0.24.0 (https://github.com/crackcomm/ocaml-rs?branch=ocaml5-fortran#b7055ab9)
Compiling ocaml-interop v0.8.8 (https://github.com/crackcomm/ocaml-interop?branch=boxroot030#8be57fba)
Compiling ocaml-derive v1.0.0-beta.5 (https://github.com/crackcomm/ocaml-rs?branch=ocaml5-fortran#b7055ab9)
Compiling forester-rs v0.1.0 (/home/kento/forest/rust-ocaml-starter)
error: linking with `cc` failed: exit status: 1
|
= note: LC_ALL="C" PATH="/nix/store/bfryfzc08nm3xpivvdkz2sdakz0pv018-rust-default-1.73.0/lib/rustlib/x86_64-unknown-linux-gnu/bin:/home/kento/forest/rust-ocaml-starter/_opam/bin:/nix/store/liawqp5fjqna6gnrpp8rs3x1gfb5fxjj-pkg-config-wrapper-0.29.2/bin:/nix/store/2y0q33dmn7846bpqcnfch4a0q2q6dmya-patchelf-0.15.0/bin:/nix/store/nlgyw2fv0cm8rkz8qm1jyw78vyif1bl9-gcc-wrapper-12.2.0/bin:/nix/store/aafdki1nf49k5vxq6gx2yabiybk2bjmw-gcc-12.2.0/bin:/nix/store/v1nar35045dqwf8yy572yvbbcg2w2678-glibc-2.37-8-bin/bin:/nix/store/arbxkmcgv9h8pjgj95c6d7r86yb77rl5-coreutils-9.1/bin:/nix/store/f83wjm5wpcxxbzwmr56q9iclsn0simph-binutils-wrapper-2.40/bin:/nix/store/f4qnwzv6y0nq8lix33jr5ykkyybs6fxf-binutils-2.40/bin:/nix/store/244l0la85qkn67hivs2is4y18865jf2w-ocaml-5.0.0/bin:/nix/store/2mklvsfhnmhjv0r5wdgahydh6ayvh1a3-dune-n-a/bin:/nix/store/p2bvlmg09i85y0zw9axqw6ydz3b3xzl7-opam-2.1.4/bin:/nix/store/bfryfzc08nm3xpivvdkz2sdakz0pv018-rust-default-1.73.0/bin:/nix/store/arbxkmcgv9h8pjgj95c6d7r86yb77rl5-coreutils-9.1/bin:/nix/store/j5wraaxv16fcl10x11566a3807nr4nlr-findutils-4.9.0/bin:/nix/store/q951w69v8kbdrw6shdpibnl594yfr0by-diffutils-3.9/bin:/nix/store/93z4n7zy5hwpn06279jlmak75jmq1db1-gnused-4.9/bin:/nix/store/c01b2gmx1fjjkpnvj6bxy9q49g8qkpka-gnugrep-3.7/bin:/nix/store/4rwqxm67y0zkbxjg14zl9fdxf30cpgvy-gawk-5.2.1/bin:/nix/store/lcfhnr6wrj9ssd3dxs39sprvz6qrxlj5-gnutar-1.34/bin:/nix/store/2nprqmdmjmy5i2sii7j21fznmkwimqcr-gzip-1.12/bin:/nix/store/gz0kx5v2asvlbf7gzr4v24h7dpza70zf-bzip2-1.0.8-bin/bin:/nix/store/vg9f8pmd2g0x3gb53nxwkw3yxizl3jpk-gnumake-4.4.1/bin:/nix/store/zlf0f88vj30sc7567b80l52d19pbdmy2-bash-5.2-p15/bin:/nix/store/swf1dckghdx7nza1lxz6s462pafwd7wa-patch-2.7.6/bin:/nix/store/z5818pmhspx5772s4cp6ckhwhbin2f09-xz-5.4.2-bin/bin:/nix/store/0xpv4lac3ybc6hm9gg7ywkdazs4vsj8l-file-5.44/bin:/nix/store/2z3arz5ni43qdkbk95pmkl25kf77ww3i-glib-2.76.4-bin/bin:/home/kento/.elan/bin:/run/wrappers/bin:/home/kento/.nix-profile/bin:/nix/profile/bin:/home/kento/.local/state/nix/profile/bin:/etc/profiles/per-user/kento/bin:/nix/var/nix/profiles/default/bin:/run/current-system/sw/bin:/home/kento/bin:/home/kento/.cargo/bin:/home/kento/.zsh/plugins/zsh-nix-shell:/nix/store/dg902ynzngjhzma49wsh9cdzckwf4y89-unzip-6.0/bin:/nix/store/4qfqn3ix2npsrgj2napmsx7xnzr6h8g4-curl-8.0.1-bin/bin:/nix/store/2l39i1q9gknhl7jpjqjiv31jfc82hfx6-bubblewrap-0.8.0/bin:/nix/store/v4gblyhmx0d4rb2lamqllvydb5dgwx9a-getconf-glibc-2.37-8/bin" VSLANG="1033" "cc" "-m64" "/tmp/nix-shell.QzxwG0/rustc9uSsB3/symbols.o" "/home/kento/forest/rust-ocaml-starter/target/debug/build/ocaml-interop-27c22eef0b54ac72/build_script_build-27c22eef0b54ac72.build_script_build.44a44e538a6b0e65-cgu.0.rcgu.o" "/home/kento/forest/rust-ocaml-starter/target/debug/build/ocaml-interop-27c22eef0b54ac72/build_script_build-27c22eef0b54ac72.425axedglf6wkk6a.rcgu.o" "-Wl,--as-needed" "-L" "/home/kento/forest/rust-ocaml-starter/target/debug/deps" "-L" "/nix/store/bfryfzc08nm3xpivvdkz2sdakz0pv018-rust-default-1.73.0/lib/rustlib/x86_64-unknown-linux-gnu/lib" "-Wl,-Bstatic" "/nix/store/q0jddwvn5jydyiqhwrxf7q6mx8j3ykm7-rust-std-1.73.0-x86_64-unknown-linux-gnu/lib/rustlib/x86_64-unknown-linux-gnu/lib/libstd-6498d8891e016dca.rlib" "/nix/store/q0jddwvn5jydyiqhwrxf7q6mx8j3ykm7-rust-std-1.73.0-x86_64-unknown-linux-gnu/lib/rustlib/x86_64-unknown-linux-gnu/lib/libpanic_unwind-3debdee1a9058d84.rlib" "/nix/store/q0jddwvn5jydyiqhwrxf7q6mx8j3ykm7-rust-std-1.73.0-x86_64-unknown-linux-gnu/lib/rustlib/x86_64-unknown-linux-gnu/lib/libobject-8339c5bd5cbc92bf.rlib" "/nix/store/q0jddwvn5jydyiqhwrxf7q6mx8j3ykm7-rust-std-1.73.0-x86_64-unknown-linux-gnu/lib/rustlib/x86_64-unknown-linux-gnu/lib/libmemchr-160ebcebb54c11ba.rlib" "/nix/store/q0jddwvn5jydyiqhwrxf7q6mx8j3ykm7-rust-std-1.73.0-x86_64-unknown-linux-gnu/lib/rustlib/x86_64-unknown-linux-gnu/lib/libaddr2line-95c75789f1b65e37.rlib" "/nix/store/q0jddwvn5jydyiqhwrxf7q6mx8j3ykm7-rust-std-1.73.0-x86_64-unknown-linux-gnu/lib/rustlib/x86_64-unknown-linux-gnu/lib/libgimli-7e8094f2d6258832.rlib" "/nix/store/q0jddwvn5jydyiqhwrxf7q6mx8j3ykm7-rust-std-1.73.0-x86_64-unknown-linux-gnu/lib/rustlib/x86_64-unknown-linux-gnu/lib/librustc_demangle-bac9783ef1b45db0.rlib" "/nix/store/q0jddwvn5jydyiqhwrxf7q6mx8j3ykm7-rust-std-1.73.0-x86_64-unknown-linux-gnu/lib/rustlib/x86_64-unknown-linux-gnu/lib/libstd_detect-a1cd87df2f2d8e76.rlib" "/nix/store/q0jddwvn5jydyiqhwrxf7q6mx8j3ykm7-rust-std-1.73.0-x86_64-unknown-linux-gnu/lib/rustlib/x86_64-unknown-linux-gnu/lib/libhashbrown-7fd06d468d7dba16.rlib" "/nix/store/q0jddwvn5jydyiqhwrxf7q6mx8j3ykm7-rust-std-1.73.0-x86_64-unknown-linux-gnu/lib/rustlib/x86_64-unknown-linux-gnu/lib/librustc_std_workspace_alloc-5ac19487656e05bf.rlib" "/nix/store/q0jddwvn5jydyiqhwrxf7q6mx8j3ykm7-rust-std-1.73.0-x86_64-unknown-linux-gnu/lib/rustlib/x86_64-unknown-linux-gnu/lib/libminiz_oxide-c7c35d32cf825c11.rlib" "/nix/store/q0jddwvn5jydyiqhwrxf7q6mx8j3ykm7-rust-std-1.73.0-x86_64-unknown-linux-gnu/lib/rustlib/x86_64-unknown-linux-gnu/lib/libadler-c523f1571362e70b.rlib" "/nix/store/q0jddwvn5jydyiqhwrxf7q6mx8j3ykm7-rust-std-1.73.0-x86_64-unknown-linux-gnu/lib/rustlib/x86_64-unknown-linux-gnu/lib/libunwind-85f17c92b770a911.rlib" "/nix/store/q0jddwvn5jydyiqhwrxf7q6mx8j3ykm7-rust-std-1.73.0-x86_64-unknown-linux-gnu/lib/rustlib/x86_64-unknown-linux-gnu/lib/libcfg_if-598d3ba148dadcea.rlib" "/nix/store/q0jddwvn5jydyiqhwrxf7q6mx8j3ykm7-rust-std-1.73.0-x86_64-unknown-linux-gnu/lib/rustlib/x86_64-unknown-linux-gnu/lib/liblibc-a58ec2dab545caa4.rlib" "/nix/store/q0jddwvn5jydyiqhwrxf7q6mx8j3ykm7-rust-std-1.73.0-x86_64-unknown-linux-gnu/lib/rustlib/x86_64-unknown-linux-gnu/lib/liballoc-f9dda8cca149f0fc.rlib" "/nix/store/q0jddwvn5jydyiqhwrxf7q6mx8j3ykm7-rust-std-1.73.0-x86_64-unknown-linux-gnu/lib/rustlib/x86_64-unknown-linux-gnu/lib/librustc_std_workspace_core-7ba4c315dd7a3503.rlib" "/nix/store/q0jddwvn5jydyiqhwrxf7q6mx8j3ykm7-rust-std-1.73.0-x86_64-unknown-linux-gnu/lib/rustlib/x86_64-unknown-linux-gnu/lib/libcore-5ac2993e19124966.rlib" "/nix/store/q0jddwvn5jydyiqhwrxf7q6mx8j3ykm7-rust-std-1.73.0-x86_64-unknown-linux-gnu/lib/rustlib/x86_64-unknown-linux-gnu/lib/libcompiler_builtins-df2fb7f50dec519a.rlib" "-Wl,-Bdynamic" "-lgcc_s" "-lutil" "-lrt" "-lpthread" "-lm" "-ldl" "-lc" "-Wl,--eh-frame-hdr" "-Wl,-z,noexecstack" "-L" "/nix/store/bfryfzc08nm3xpivvdkz2sdakz0pv018-rust-default-1.73.0/lib/rustlib/x86_64-unknown-linux-gnu/lib" "-o" "/home/kento/forest/rust-ocaml-starter/target/debug/build/ocaml-interop-27c22eef0b54ac72/build_script_build-27c22eef0b54ac72" "-Wl,--gc-sections" "-pie" "-Wl,-z,relro,-z,now" "-nodefaultlibs"
= note: /nix/store/f4qnwzv6y0nq8lix33jr5ykkyybs6fxf-binutils-2.40/bin/ld: /nix/store/q0jddwvn5jydyiqhwrxf7q6mx8j3ykm7-rust-std-1.73.0-x86_64-unknown-linux-gnu/lib/rustlib/x86_64-unknown-linux-gnu/lib/libstd-6498d8891e016dca.rlib(std-6498d8891e016dca.std.3759e478f3a6c4f2-cgu.0.rcgu.o): in function `std::sys::unix::os::home_dir::fallback':
/rustc/cc66ad468955717ab92600c770da8c1601a4ff33/library/std/src/sys/unix/os.rs:683: warning: Using 'getpwuid_r' in statically linked applications requires at runtime the shared libraries from the glibc version used for linking
/nix/store/f4qnwzv6y0nq8lix33jr5ykkyybs6fxf-binutils-2.40/bin/ld: /nix/store/q0jddwvn5jydyiqhwrxf7q6mx8j3ykm7-rust-std-1.73.0-x86_64-unknown-linux-gnu/lib/rustlib/x86_64-unknown-linux-gnu/lib/libstd-6498d8891e016dca.rlib(std-6498d8891e016dca.std.3759e478f3a6c4f2-cgu.0.rcgu.o): in function `<std::sys_common::net::LookupHost as core::convert::TryFrom<(&str,u16)>>::try_from::{{closure}}':
/rustc/cc66ad468955717ab92600c770da8c1601a4ff33/library/std/src/sys_common/net.rs:206: warning: Using 'getaddrinfo' in statically linked applications requires at runtime the shared libraries from the glibc version used for linking
/nix/store/f4qnwzv6y0nq8lix33jr5ykkyybs6fxf-binutils-2.40/bin/ld: /nix/store/q0jddwvn5jydyiqhwrxf7q6mx8j3ykm7-rust-std-1.73.0-x86_64-unknown-linux-gnu/lib/rustlib/x86_64-unknown-linux-gnu/lib/libstd-6498d8891e016dca.rlib(std-6498d8891e016dca.std.3759e478f3a6c4f2-cgu.0.rcgu.o): undefined reference to symbol '__tls_get_addr@@GLIBC_2.3'
/nix/store/f4qnwzv6y0nq8lix33jr5ykkyybs6fxf-binutils-2.40/bin/ld: /nix/store/1n2l5law9g3b77hcfyp50vrhhssbrj5g-glibc-2.37-8/lib/ld-linux-x86-64.so.2: error adding symbols: DSO missing from command line
collect2: error: ld returned 1 exit status
= note: some `extern` functions couldn't be found; some native libraries may need to be installed or have their path specified
= note: use the `-l` flag to specify native libraries to link
= note: use the `cargo:rustc-link-lib` directive to specify the native libraries to link with Cargo (see https://doc.rust-lang.org/cargo/reference/build-scripts.html#cargorustc-link-libkindname)
error: could not compile `ocaml-interop` (build script) due to previous error
warning: build failed, waiting for other jobs to finish...
error: linking with `cc` failed: exit status: 1
|
= note: LC_ALL="C" PATH="/nix/store/bfryfzc08nm3xpivvdkz2sdakz0pv018-rust-default-1.73.0/lib/rustlib/x86_64-unknown-linux-gnu/bin:/home/kento/forest/rust-ocaml-starter/_opam/bin:/nix/store/liawqp5fjqna6gnrpp8rs3x1gfb5fxjj-pkg-config-wrapper-0.29.2/bin:/nix/store/2y0q33dmn7846bpqcnfch4a0q2q6dmya-patchelf-0.15.0/bin:/nix/store/nlgyw2fv0cm8rkz8qm1jyw78vyif1bl9-gcc-wrapper-12.2.0/bin:/nix/store/aafdki1nf49k5vxq6gx2yabiybk2bjmw-gcc-12.2.0/bin:/nix/store/v1nar35045dqwf8yy572yvbbcg2w2678-glibc-2.37-8-bin/bin:/nix/store/arbxkmcgv9h8pjgj95c6d7r86yb77rl5-coreutils-9.1/bin:/nix/store/f83wjm5wpcxxbzwmr56q9iclsn0simph-binutils-wrapper-2.40/bin:/nix/store/f4qnwzv6y0nq8lix33jr5ykkyybs6fxf-binutils-2.40/bin:/nix/store/244l0la85qkn67hivs2is4y18865jf2w-ocaml-5.0.0/bin:/nix/store/2mklvsfhnmhjv0r5wdgahydh6ayvh1a3-dune-n-a/bin:/nix/store/p2bvlmg09i85y0zw9axqw6ydz3b3xzl7-opam-2.1.4/bin:/nix/store/bfryfzc08nm3xpivvdkz2sdakz0pv018-rust-default-1.73.0/bin:/nix/store/arbxkmcgv9h8pjgj95c6d7r86yb77rl5-coreutils-9.1/bin:/nix/store/j5wraaxv16fcl10x11566a3807nr4nlr-findutils-4.9.0/bin:/nix/store/q951w69v8kbdrw6shdpibnl594yfr0by-diffutils-3.9/bin:/nix/store/93z4n7zy5hwpn06279jlmak75jmq1db1-gnused-4.9/bin:/nix/store/c01b2gmx1fjjkpnvj6bxy9q49g8qkpka-gnugrep-3.7/bin:/nix/store/4rwqxm67y0zkbxjg14zl9fdxf30cpgvy-gawk-5.2.1/bin:/nix/store/lcfhnr6wrj9ssd3dxs39sprvz6qrxlj5-gnutar-1.34/bin:/nix/store/2nprqmdmjmy5i2sii7j21fznmkwimqcr-gzip-1.12/bin:/nix/store/gz0kx5v2asvlbf7gzr4v24h7dpza70zf-bzip2-1.0.8-bin/bin:/nix/store/vg9f8pmd2g0x3gb53nxwkw3yxizl3jpk-gnumake-4.4.1/bin:/nix/store/zlf0f88vj30sc7567b80l52d19pbdmy2-bash-5.2-p15/bin:/nix/store/swf1dckghdx7nza1lxz6s462pafwd7wa-patch-2.7.6/bin:/nix/store/z5818pmhspx5772s4cp6ckhwhbin2f09-xz-5.4.2-bin/bin:/nix/store/0xpv4lac3ybc6hm9gg7ywkdazs4vsj8l-file-5.44/bin:/nix/store/2z3arz5ni43qdkbk95pmkl25kf77ww3i-glib-2.76.4-bin/bin:/home/kento/.elan/bin:/run/wrappers/bin:/home/kento/.nix-profile/bin:/nix/profile/bin:/home/kento/.local/state/nix/profile/bin:/etc/profiles/per-user/kento/bin:/nix/var/nix/profiles/default/bin:/run/current-system/sw/bin:/home/kento/bin:/home/kento/.cargo/bin:/home/kento/.zsh/plugins/zsh-nix-shell:/nix/store/dg902ynzngjhzma49wsh9cdzckwf4y89-unzip-6.0/bin:/nix/store/4qfqn3ix2npsrgj2napmsx7xnzr6h8g4-curl-8.0.1-bin/bin:/nix/store/2l39i1q9gknhl7jpjqjiv31jfc82hfx6-bubblewrap-0.8.0/bin:/nix/store/v4gblyhmx0d4rb2lamqllvydb5dgwx9a-getconf-glibc-2.37-8/bin" VSLANG="1033" "cc" "-m64" "/tmp/nix-shell.QzxwG0/rustcxS6bAI/symbols.o" "/home/kento/forest/rust-ocaml-starter/target/debug/build/forester-rs-2e24703cb7c48077/build_script_build-2e24703cb7c48077.1164bnxe736ggswz.rcgu.o" "/home/kento/forest/rust-ocaml-starter/target/debug/build/forester-rs-2e24703cb7c48077/build_script_build-2e24703cb7c48077.11nl4b6rmptd53a6.rcgu.o" "/home/kento/forest/rust-ocaml-starter/target/debug/build/forester-rs-2e24703cb7c48077/build_script_build-2e24703cb7c48077.3ohxoswomcfc15xy.rcgu.o" "/home/kento/forest/rust-ocaml-starter/target/debug/build/forester-rs-2e24703cb7c48077/build_script_build-2e24703cb7c48077.3ts0h2gbpcm6crjk.rcgu.o" "/home/kento/forest/rust-ocaml-starter/target/debug/build/forester-rs-2e24703cb7c48077/build_script_build-2e24703cb7c48077.40wxqt6ji4r5fg0g.rcgu.o" "/home/kento/forest/rust-ocaml-starter/target/debug/build/forester-rs-2e24703cb7c48077/build_script_build-2e24703cb7c48077.4eggq8lun749fla5.rcgu.o" "/home/kento/forest/rust-ocaml-starter/target/debug/build/forester-rs-2e24703cb7c48077/build_script_build-2e24703cb7c48077.fja45u5b2glzrzp.rcgu.o" "/home/kento/forest/rust-ocaml-starter/target/debug/build/forester-rs-2e24703cb7c48077/build_script_build-2e24703cb7c48077.i2kjlex64yh5kjv.rcgu.o" "/home/kento/forest/rust-ocaml-starter/target/debug/build/forester-rs-2e24703cb7c48077/build_script_build-2e24703cb7c48077.410msgmicifjqsgb.rcgu.o" "-Wl,--as-needed" "-L" "/home/kento/forest/rust-ocaml-starter/target/debug/deps" "-L" "/nix/store/bfryfzc08nm3xpivvdkz2sdakz0pv018-rust-default-1.73.0/lib/rustlib/x86_64-unknown-linux-gnu/lib" "-Wl,-Bstatic" "/home/kento/forest/rust-ocaml-starter/target/debug/deps/libocaml_build-1115dd5963299f5b.rlib" "/home/kento/forest/rust-ocaml-starter/target/debug/deps/libcc-7539959e99295522.rlib" "/home/kento/forest/rust-ocaml-starter/target/debug/deps/liblibc-04813685b4d627ff.rlib" "/home/kento/forest/rust-ocaml-starter/target/debug/deps/libsyn-0dc16532ac0a4ac2.rlib" "/home/kento/forest/rust-ocaml-starter/target/debug/deps/libquote-87ab854f369dbc86.rlib" "/home/kento/forest/rust-ocaml-starter/target/debug/deps/libproc_macro2-052f6956eedda3b5.rlib" "/home/kento/forest/rust-ocaml-starter/target/debug/deps/libunicode_ident-beabfcb2cd56cf90.rlib" "/nix/store/q0jddwvn5jydyiqhwrxf7q6mx8j3ykm7-rust-std-1.73.0-x86_64-unknown-linux-gnu/lib/rustlib/x86_64-unknown-linux-gnu/lib/libproc_macro-866e8556e7a7ee9f.rlib" "/nix/store/q0jddwvn5jydyiqhwrxf7q6mx8j3ykm7-rust-std-1.73.0-x86_64-unknown-linux-gnu/lib/rustlib/x86_64-unknown-linux-gnu/lib/libstd-6498d8891e016dca.rlib" "/nix/store/q0jddwvn5jydyiqhwrxf7q6mx8j3ykm7-rust-std-1.73.0-x86_64-unknown-linux-gnu/lib/rustlib/x86_64-unknown-linux-gnu/lib/libpanic_unwind-3debdee1a9058d84.rlib" "/nix/store/q0jddwvn5jydyiqhwrxf7q6mx8j3ykm7-rust-std-1.73.0-x86_64-unknown-linux-gnu/lib/rustlib/x86_64-unknown-linux-gnu/lib/libobject-8339c5bd5cbc92bf.rlib" "/nix/store/q0jddwvn5jydyiqhwrxf7q6mx8j3ykm7-rust-std-1.73.0-x86_64-unknown-linux-gnu/lib/rustlib/x86_64-unknown-linux-gnu/lib/libmemchr-160ebcebb54c11ba.rlib" "/nix/store/q0jddwvn5jydyiqhwrxf7q6mx8j3ykm7-rust-std-1.73.0-x86_64-unknown-linux-gnu/lib/rustlib/x86_64-unknown-linux-gnu/lib/libaddr2line-95c75789f1b65e37.rlib" "/nix/store/q0jddwvn5jydyiqhwrxf7q6mx8j3ykm7-rust-std-1.73.0-x86_64-unknown-linux-gnu/lib/rustlib/x86_64-unknown-linux-gnu/lib/libgimli-7e8094f2d6258832.rlib" "/nix/store/q0jddwvn5jydyiqhwrxf7q6mx8j3ykm7-rust-std-1.73.0-x86_64-unknown-linux-gnu/lib/rustlib/x86_64-unknown-linux-gnu/lib/librustc_demangle-bac9783ef1b45db0.rlib" "/nix/store/q0jddwvn5jydyiqhwrxf7q6mx8j3ykm7-rust-std-1.73.0-x86_64-unknown-linux-gnu/lib/rustlib/x86_64-unknown-linux-gnu/lib/libstd_detect-a1cd87df2f2d8e76.rlib" "/nix/store/q0jddwvn5jydyiqhwrxf7q6mx8j3ykm7-rust-std-1.73.0-x86_64-unknown-linux-gnu/lib/rustlib/x86_64-unknown-linux-gnu/lib/libhashbrown-7fd06d468d7dba16.rlib" "/nix/store/q0jddwvn5jydyiqhwrxf7q6mx8j3ykm7-rust-std-1.73.0-x86_64-unknown-linux-gnu/lib/rustlib/x86_64-unknown-linux-gnu/lib/librustc_std_workspace_alloc-5ac19487656e05bf.rlib" "/nix/store/q0jddwvn5jydyiqhwrxf7q6mx8j3ykm7-rust-std-1.73.0-x86_64-unknown-linux-gnu/lib/rustlib/x86_64-unknown-linux-gnu/lib/libminiz_oxide-c7c35d32cf825c11.rlib" "/nix/store/q0jddwvn5jydyiqhwrxf7q6mx8j3ykm7-rust-std-1.73.0-x86_64-unknown-linux-gnu/lib/rustlib/x86_64-unknown-linux-gnu/lib/libadler-c523f1571362e70b.rlib" "/nix/store/q0jddwvn5jydyiqhwrxf7q6mx8j3ykm7-rust-std-1.73.0-x86_64-unknown-linux-gnu/lib/rustlib/x86_64-unknown-linux-gnu/lib/libunwind-85f17c92b770a911.rlib" "/nix/store/q0jddwvn5jydyiqhwrxf7q6mx8j3ykm7-rust-std-1.73.0-x86_64-unknown-linux-gnu/lib/rustlib/x86_64-unknown-linux-gnu/lib/libcfg_if-598d3ba148dadcea.rlib" "/nix/store/q0jddwvn5jydyiqhwrxf7q6mx8j3ykm7-rust-std-1.73.0-x86_64-unknown-linux-gnu/lib/rustlib/x86_64-unknown-linux-gnu/lib/liblibc-a58ec2dab545caa4.rlib" "/nix/store/q0jddwvn5jydyiqhwrxf7q6mx8j3ykm7-rust-std-1.73.0-x86_64-unknown-linux-gnu/lib/rustlib/x86_64-unknown-linux-gnu/lib/liballoc-f9dda8cca149f0fc.rlib" "/nix/store/q0jddwvn5jydyiqhwrxf7q6mx8j3ykm7-rust-std-1.73.0-x86_64-unknown-linux-gnu/lib/rustlib/x86_64-unknown-linux-gnu/lib/librustc_std_workspace_core-7ba4c315dd7a3503.rlib" "/nix/store/q0jddwvn5jydyiqhwrxf7q6mx8j3ykm7-rust-std-1.73.0-x86_64-unknown-linux-gnu/lib/rustlib/x86_64-unknown-linux-gnu/lib/libcore-5ac2993e19124966.rlib" "/nix/store/q0jddwvn5jydyiqhwrxf7q6mx8j3ykm7-rust-std-1.73.0-x86_64-unknown-linux-gnu/lib/rustlib/x86_64-unknown-linux-gnu/lib/libcompiler_builtins-df2fb7f50dec519a.rlib" "-Wl,-Bdynamic" "-lc" "-lm" "-lrt" "-lpthread" "-lgcc_s" "-lutil" "-lrt" "-lpthread" "-lm" "-ldl" "-lc" "-Wl,--eh-frame-hdr" "-Wl,-z,noexecstack" "-L" "/nix/store/bfryfzc08nm3xpivvdkz2sdakz0pv018-rust-default-1.73.0/lib/rustlib/x86_64-unknown-linux-gnu/lib" "-o" "/home/kento/forest/rust-ocaml-starter/target/debug/build/forester-rs-2e24703cb7c48077/build_script_build-2e24703cb7c48077" "-Wl,--gc-sections" "-pie" "-Wl,-z,relro,-z,now" "-nodefaultlibs"
= note: /nix/store/f4qnwzv6y0nq8lix33jr5ykkyybs6fxf-binutils-2.40/bin/ld: /nix/store/q0jddwvn5jydyiqhwrxf7q6mx8j3ykm7-rust-std-1.73.0-x86_64-unknown-linux-gnu/lib/rustlib/x86_64-unknown-linux-gnu/lib/libstd-6498d8891e016dca.rlib(std-6498d8891e016dca.std.3759e478f3a6c4f2-cgu.0.rcgu.o): in function `std::sys::unix::os::home_dir::fallback':
/rustc/cc66ad468955717ab92600c770da8c1601a4ff33/library/std/src/sys/unix/os.rs:683: warning: Using 'getpwuid_r' in statically linked applications requires at runtime the shared libraries from the glibc version used for linking
/nix/store/f4qnwzv6y0nq8lix33jr5ykkyybs6fxf-binutils-2.40/bin/ld: /nix/store/q0jddwvn5jydyiqhwrxf7q6mx8j3ykm7-rust-std-1.73.0-x86_64-unknown-linux-gnu/lib/rustlib/x86_64-unknown-linux-gnu/lib/libstd-6498d8891e016dca.rlib(std-6498d8891e016dca.std.3759e478f3a6c4f2-cgu.0.rcgu.o): in function `<std::sys_common::net::LookupHost as core::convert::TryFrom<(&str,u16)>>::try_from::{{closure}}':
/rustc/cc66ad468955717ab92600c770da8c1601a4ff33/library/std/src/sys_common/net.rs:206: warning: Using 'getaddrinfo' in statically linked applications requires at runtime the shared libraries from the glibc version used for linking
/nix/store/f4qnwzv6y0nq8lix33jr5ykkyybs6fxf-binutils-2.40/bin/ld: /home/kento/forest/rust-ocaml-starter/target/debug/deps/libcc-7539959e99295522.rlib(cc-7539959e99295522.cc.de04314517eeac11-cgu.14.rcgu.o): undefined reference to symbol '__tls_get_addr@@GLIBC_2.3'
/nix/store/f4qnwzv6y0nq8lix33jr5ykkyybs6fxf-binutils-2.40/bin/ld: /nix/store/1n2l5law9g3b77hcfyp50vrhhssbrj5g-glibc-2.37-8/lib/ld-linux-x86-64.so.2: error adding symbols: DSO missing from command line
collect2: error: ld returned 1 exit status
= note: some `extern` functions couldn't be found; some native libraries may need to be installed or have their path specified
= note: use the `-l` flag to specify native libraries to link
= note: use the `cargo:rustc-link-lib` directive to specify the native libraries to link with Cargo (see https://doc.rust-lang.org/cargo/reference/build-scripts.html#cargorustc-link-libkindname)
error: could not compile `forester-rs` (build script) due to previous error
error: linking with `cc` failed: exit status: 1
|
= note: LC_ALL="C" PATH="/nix/store/bfryfzc08nm3xpivvdkz2sdakz0pv018-rust-default-1.73.0/lib/rustlib/x86_64-unknown-linux-gnu/bin:/home/kento/forest/rust-ocaml-starter/_opam/bin:/nix/store/liawqp5fjqna6gnrpp8rs3x1gfb5fxjj-pkg-config-wrapper-0.29.2/bin:/nix/store/2y0q33dmn7846bpqcnfch4a0q2q6dmya-patchelf-0.15.0/bin:/nix/store/nlgyw2fv0cm8rkz8qm1jyw78vyif1bl9-gcc-wrapper-12.2.0/bin:/nix/store/aafdki1nf49k5vxq6gx2yabiybk2bjmw-gcc-12.2.0/bin:/nix/store/v1nar35045dqwf8yy572yvbbcg2w2678-glibc-2.37-8-bin/bin:/nix/store/arbxkmcgv9h8pjgj95c6d7r86yb77rl5-coreutils-9.1/bin:/nix/store/f83wjm5wpcxxbzwmr56q9iclsn0simph-binutils-wrapper-2.40/bin:/nix/store/f4qnwzv6y0nq8lix33jr5ykkyybs6fxf-binutils-2.40/bin:/nix/store/244l0la85qkn67hivs2is4y18865jf2w-ocaml-5.0.0/bin:/nix/store/2mklvsfhnmhjv0r5wdgahydh6ayvh1a3-dune-n-a/bin:/nix/store/p2bvlmg09i85y0zw9axqw6ydz3b3xzl7-opam-2.1.4/bin:/nix/store/bfryfzc08nm3xpivvdkz2sdakz0pv018-rust-default-1.73.0/bin:/nix/store/arbxkmcgv9h8pjgj95c6d7r86yb77rl5-coreutils-9.1/bin:/nix/store/j5wraaxv16fcl10x11566a3807nr4nlr-findutils-4.9.0/bin:/nix/store/q951w69v8kbdrw6shdpibnl594yfr0by-diffutils-3.9/bin:/nix/store/93z4n7zy5hwpn06279jlmak75jmq1db1-gnused-4.9/bin:/nix/store/c01b2gmx1fjjkpnvj6bxy9q49g8qkpka-gnugrep-3.7/bin:/nix/store/4rwqxm67y0zkbxjg14zl9fdxf30cpgvy-gawk-5.2.1/bin:/nix/store/lcfhnr6wrj9ssd3dxs39sprvz6qrxlj5-gnutar-1.34/bin:/nix/store/2nprqmdmjmy5i2sii7j21fznmkwimqcr-gzip-1.12/bin:/nix/store/gz0kx5v2asvlbf7gzr4v24h7dpza70zf-bzip2-1.0.8-bin/bin:/nix/store/vg9f8pmd2g0x3gb53nxwkw3yxizl3jpk-gnumake-4.4.1/bin:/nix/store/zlf0f88vj30sc7567b80l52d19pbdmy2-bash-5.2-p15/bin:/nix/store/swf1dckghdx7nza1lxz6s462pafwd7wa-patch-2.7.6/bin:/nix/store/z5818pmhspx5772s4cp6ckhwhbin2f09-xz-5.4.2-bin/bin:/nix/store/0xpv4lac3ybc6hm9gg7ywkdazs4vsj8l-file-5.44/bin:/nix/store/2z3arz5ni43qdkbk95pmkl25kf77ww3i-glib-2.76.4-bin/bin:/home/kento/.elan/bin:/run/wrappers/bin:/home/kento/.nix-profile/bin:/nix/profile/bin:/home/kento/.local/state/nix/profile/bin:/etc/profiles/per-user/kento/bin:/nix/var/nix/profiles/default/bin:/run/current-system/sw/bin:/home/kento/bin:/home/kento/.cargo/bin:/home/kento/.zsh/plugins/zsh-nix-shell:/nix/store/dg902ynzngjhzma49wsh9cdzckwf4y89-unzip-6.0/bin:/nix/store/4qfqn3ix2npsrgj2napmsx7xnzr6h8g4-curl-8.0.1-bin/bin:/nix/store/2l39i1q9gknhl7jpjqjiv31jfc82hfx6-bubblewrap-0.8.0/bin:/nix/store/v4gblyhmx0d4rb2lamqllvydb5dgwx9a-getconf-glibc-2.37-8/bin" VSLANG="1033" "cc" "-m64" "/tmp/nix-shell.QzxwG0/rustcUvfAid/symbols.o" "/home/kento/forest/rust-ocaml-starter/target/debug/build/ocaml-sys-42247cf8131fefa5/build_script_build-42247cf8131fefa5.build_script_build.dc74fdc99d9f958e-cgu.0.rcgu.o" "/home/kento/forest/rust-ocaml-starter/target/debug/build/ocaml-sys-42247cf8131fefa5/build_script_build-42247cf8131fefa5.4zf2noz5bi23a0av.rcgu.o" "-Wl,--as-needed" "-L" "/home/kento/forest/rust-ocaml-starter/target/debug/deps" "-L" "/nix/store/bfryfzc08nm3xpivvdkz2sdakz0pv018-rust-default-1.73.0/lib/rustlib/x86_64-unknown-linux-gnu/lib" "-Wl,-Bstatic" "/home/kento/forest/rust-ocaml-starter/target/debug/deps/libcc-7539959e99295522.rlib" "/home/kento/forest/rust-ocaml-starter/target/debug/deps/liblibc-04813685b4d627ff.rlib" "/nix/store/q0jddwvn5jydyiqhwrxf7q6mx8j3ykm7-rust-std-1.73.0-x86_64-unknown-linux-gnu/lib/rustlib/x86_64-unknown-linux-gnu/lib/libstd-6498d8891e016dca.rlib" "/nix/store/q0jddwvn5jydyiqhwrxf7q6mx8j3ykm7-rust-std-1.73.0-x86_64-unknown-linux-gnu/lib/rustlib/x86_64-unknown-linux-gnu/lib/libpanic_unwind-3debdee1a9058d84.rlib" "/nix/store/q0jddwvn5jydyiqhwrxf7q6mx8j3ykm7-rust-std-1.73.0-x86_64-unknown-linux-gnu/lib/rustlib/x86_64-unknown-linux-gnu/lib/libobject-8339c5bd5cbc92bf.rlib" "/nix/store/q0jddwvn5jydyiqhwrxf7q6mx8j3ykm7-rust-std-1.73.0-x86_64-unknown-linux-gnu/lib/rustlib/x86_64-unknown-linux-gnu/lib/libmemchr-160ebcebb54c11ba.rlib" "/nix/store/q0jddwvn5jydyiqhwrxf7q6mx8j3ykm7-rust-std-1.73.0-x86_64-unknown-linux-gnu/lib/rustlib/x86_64-unknown-linux-gnu/lib/libaddr2line-95c75789f1b65e37.rlib" "/nix/store/q0jddwvn5jydyiqhwrxf7q6mx8j3ykm7-rust-std-1.73.0-x86_64-unknown-linux-gnu/lib/rustlib/x86_64-unknown-linux-gnu/lib/libgimli-7e8094f2d6258832.rlib" "/nix/store/q0jddwvn5jydyiqhwrxf7q6mx8j3ykm7-rust-std-1.73.0-x86_64-unknown-linux-gnu/lib/rustlib/x86_64-unknown-linux-gnu/lib/librustc_demangle-bac9783ef1b45db0.rlib" "/nix/store/q0jddwvn5jydyiqhwrxf7q6mx8j3ykm7-rust-std-1.73.0-x86_64-unknown-linux-gnu/lib/rustlib/x86_64-unknown-linux-gnu/lib/libstd_detect-a1cd87df2f2d8e76.rlib" "/nix/store/q0jddwvn5jydyiqhwrxf7q6mx8j3ykm7-rust-std-1.73.0-x86_64-unknown-linux-gnu/lib/rustlib/x86_64-unknown-linux-gnu/lib/libhashbrown-7fd06d468d7dba16.rlib" "/nix/store/q0jddwvn5jydyiqhwrxf7q6mx8j3ykm7-rust-std-1.73.0-x86_64-unknown-linux-gnu/lib/rustlib/x86_64-unknown-linux-gnu/lib/librustc_std_workspace_alloc-5ac19487656e05bf.rlib" "/nix/store/q0jddwvn5jydyiqhwrxf7q6mx8j3ykm7-rust-std-1.73.0-x86_64-unknown-linux-gnu/lib/rustlib/x86_64-unknown-linux-gnu/lib/libminiz_oxide-c7c35d32cf825c11.rlib" "/nix/store/q0jddwvn5jydyiqhwrxf7q6mx8j3ykm7-rust-std-1.73.0-x86_64-unknown-linux-gnu/lib/rustlib/x86_64-unknown-linux-gnu/lib/libadler-c523f1571362e70b.rlib" "/nix/store/q0jddwvn5jydyiqhwrxf7q6mx8j3ykm7-rust-std-1.73.0-x86_64-unknown-linux-gnu/lib/rustlib/x86_64-unknown-linux-gnu/lib/libunwind-85f17c92b770a911.rlib" "/nix/store/q0jddwvn5jydyiqhwrxf7q6mx8j3ykm7-rust-std-1.73.0-x86_64-unknown-linux-gnu/lib/rustlib/x86_64-unknown-linux-gnu/lib/libcfg_if-598d3ba148dadcea.rlib" "/nix/store/q0jddwvn5jydyiqhwrxf7q6mx8j3ykm7-rust-std-1.73.0-x86_64-unknown-linux-gnu/lib/rustlib/x86_64-unknown-linux-gnu/lib/liblibc-a58ec2dab545caa4.rlib" "/nix/store/q0jddwvn5jydyiqhwrxf7q6mx8j3ykm7-rust-std-1.73.0-x86_64-unknown-linux-gnu/lib/rustlib/x86_64-unknown-linux-gnu/lib/liballoc-f9dda8cca149f0fc.rlib" "/nix/store/q0jddwvn5jydyiqhwrxf7q6mx8j3ykm7-rust-std-1.73.0-x86_64-unknown-linux-gnu/lib/rustlib/x86_64-unknown-linux-gnu/lib/librustc_std_workspace_core-7ba4c315dd7a3503.rlib" "/nix/store/q0jddwvn5jydyiqhwrxf7q6mx8j3ykm7-rust-std-1.73.0-x86_64-unknown-linux-gnu/lib/rustlib/x86_64-unknown-linux-gnu/lib/libcore-5ac2993e19124966.rlib" "/nix/store/q0jddwvn5jydyiqhwrxf7q6mx8j3ykm7-rust-std-1.73.0-x86_64-unknown-linux-gnu/lib/rustlib/x86_64-unknown-linux-gnu/lib/libcompiler_builtins-df2fb7f50dec519a.rlib" "-Wl,-Bdynamic" "-lc" "-lm" "-lrt" "-lpthread" "-lgcc_s" "-lutil" "-lrt" "-lpthread" "-lm" "-ldl" "-lc" "-Wl,--eh-frame-hdr" "-Wl,-z,noexecstack" "-L" "/nix/store/bfryfzc08nm3xpivvdkz2sdakz0pv018-rust-default-1.73.0/lib/rustlib/x86_64-unknown-linux-gnu/lib" "-o" "/home/kento/forest/rust-ocaml-starter/target/debug/build/ocaml-sys-42247cf8131fefa5/build_script_build-42247cf8131fefa5" "-Wl,--gc-sections" "-pie" "-Wl,-z,relro,-z,now" "-nodefaultlibs"
= note: /nix/store/f4qnwzv6y0nq8lix33jr5ykkyybs6fxf-binutils-2.40/bin/ld: /nix/store/q0jddwvn5jydyiqhwrxf7q6mx8j3ykm7-rust-std-1.73.0-x86_64-unknown-linux-gnu/lib/rustlib/x86_64-unknown-linux-gnu/lib/libstd-6498d8891e016dca.rlib(std-6498d8891e016dca.std.3759e478f3a6c4f2-cgu.0.rcgu.o): in function `std::sys::unix::os::home_dir::fallback':
/rustc/cc66ad468955717ab92600c770da8c1601a4ff33/library/std/src/sys/unix/os.rs:683: warning: Using 'getpwuid_r' in statically linked applications requires at runtime the shared libraries from the glibc version used for linking
/nix/store/f4qnwzv6y0nq8lix33jr5ykkyybs6fxf-binutils-2.40/bin/ld: /nix/store/q0jddwvn5jydyiqhwrxf7q6mx8j3ykm7-rust-std-1.73.0-x86_64-unknown-linux-gnu/lib/rustlib/x86_64-unknown-linux-gnu/lib/libstd-6498d8891e016dca.rlib(std-6498d8891e016dca.std.3759e478f3a6c4f2-cgu.0.rcgu.o): in function `<std::sys_common::net::LookupHost as core::convert::TryFrom<(&str,u16)>>::try_from::{{closure}}':
/rustc/cc66ad468955717ab92600c770da8c1601a4ff33/library/std/src/sys_common/net.rs:206: warning: Using 'getaddrinfo' in statically linked applications requires at runtime the shared libraries from the glibc version used for linking
/nix/store/f4qnwzv6y0nq8lix33jr5ykkyybs6fxf-binutils-2.40/bin/ld: /home/kento/forest/rust-ocaml-starter/target/debug/deps/libcc-7539959e99295522.rlib(cc-7539959e99295522.cc.de04314517eeac11-cgu.14.rcgu.o): undefined reference to symbol '__tls_get_addr@@GLIBC_2.3'
/nix/store/f4qnwzv6y0nq8lix33jr5ykkyybs6fxf-binutils-2.40/bin/ld: /nix/store/1n2l5law9g3b77hcfyp50vrhhssbrj5g-glibc-2.37-8/lib/ld-linux-x86-64.so.2: error adding symbols: DSO missing from command line
collect2: error: ld returned 1 exit status
= note: some `extern` functions couldn't be found; some native libraries may need to be installed or have their path specified
= note: use the `-l` flag to specify native libraries to link
= note: use the `cargo:rustc-link-lib` directive to specify the native libraries to link with Cargo (see https://doc.rust-lang.org/cargo/reference/build-scripts.html#cargorustc-link-libkindname)
error: could not compile `ocaml-sys` (build script) due to previous error
error: linking with `cc` failed: exit status: 1
|
= note: LC_ALL="C" PATH="/nix/store/bfryfzc08nm3xpivvdkz2sdakz0pv018-rust-default-1.73.0/lib/rustlib/x86_64-unknown-linux-gnu/bin:/home/kento/forest/rust-ocaml-starter/_opam/bin:/nix/store/liawqp5fjqna6gnrpp8rs3x1gfb5fxjj-pkg-config-wrapper-0.29.2/bin:/nix/store/2y0q33dmn7846bpqcnfch4a0q2q6dmya-patchelf-0.15.0/bin:/nix/store/nlgyw2fv0cm8rkz8qm1jyw78vyif1bl9-gcc-wrapper-12.2.0/bin:/nix/store/aafdki1nf49k5vxq6gx2yabiybk2bjmw-gcc-12.2.0/bin:/nix/store/v1nar35045dqwf8yy572yvbbcg2w2678-glibc-2.37-8-bin/bin:/nix/store/arbxkmcgv9h8pjgj95c6d7r86yb77rl5-coreutils-9.1/bin:/nix/store/f83wjm5wpcxxbzwmr56q9iclsn0simph-binutils-wrapper-2.40/bin:/nix/store/f4qnwzv6y0nq8lix33jr5ykkyybs6fxf-binutils-2.40/bin:/nix/store/244l0la85qkn67hivs2is4y18865jf2w-ocaml-5.0.0/bin:/nix/store/2mklvsfhnmhjv0r5wdgahydh6ayvh1a3-dune-n-a/bin:/nix/store/p2bvlmg09i85y0zw9axqw6ydz3b3xzl7-opam-2.1.4/bin:/nix/store/bfryfzc08nm3xpivvdkz2sdakz0pv018-rust-default-1.73.0/bin:/nix/store/arbxkmcgv9h8pjgj95c6d7r86yb77rl5-coreutils-9.1/bin:/nix/store/j5wraaxv16fcl10x11566a3807nr4nlr-findutils-4.9.0/bin:/nix/store/q951w69v8kbdrw6shdpibnl594yfr0by-diffutils-3.9/bin:/nix/store/93z4n7zy5hwpn06279jlmak75jmq1db1-gnused-4.9/bin:/nix/store/c01b2gmx1fjjkpnvj6bxy9q49g8qkpka-gnugrep-3.7/bin:/nix/store/4rwqxm67y0zkbxjg14zl9fdxf30cpgvy-gawk-5.2.1/bin:/nix/store/lcfhnr6wrj9ssd3dxs39sprvz6qrxlj5-gnutar-1.34/bin:/nix/store/2nprqmdmjmy5i2sii7j21fznmkwimqcr-gzip-1.12/bin:/nix/store/gz0kx5v2asvlbf7gzr4v24h7dpza70zf-bzip2-1.0.8-bin/bin:/nix/store/vg9f8pmd2g0x3gb53nxwkw3yxizl3jpk-gnumake-4.4.1/bin:/nix/store/zlf0f88vj30sc7567b80l52d19pbdmy2-bash-5.2-p15/bin:/nix/store/swf1dckghdx7nza1lxz6s462pafwd7wa-patch-2.7.6/bin:/nix/store/z5818pmhspx5772s4cp6ckhwhbin2f09-xz-5.4.2-bin/bin:/nix/store/0xpv4lac3ybc6hm9gg7ywkdazs4vsj8l-file-5.44/bin:/nix/store/2z3arz5ni43qdkbk95pmkl25kf77ww3i-glib-2.76.4-bin/bin:/home/kento/.elan/bin:/run/wrappers/bin:/home/kento/.nix-profile/bin:/nix/profile/bin:/home/kento/.local/state/nix/profile/bin:/etc/profiles/per-user/kento/bin:/nix/var/nix/profiles/default/bin:/run/current-system/sw/bin:/home/kento/bin:/home/kento/.cargo/bin:/home/kento/.zsh/plugins/zsh-nix-shell:/nix/store/dg902ynzngjhzma49wsh9cdzckwf4y89-unzip-6.0/bin:/nix/store/4qfqn3ix2npsrgj2napmsx7xnzr6h8g4-curl-8.0.1-bin/bin:/nix/store/2l39i1q9gknhl7jpjqjiv31jfc82hfx6-bubblewrap-0.8.0/bin:/nix/store/v4gblyhmx0d4rb2lamqllvydb5dgwx9a-getconf-glibc-2.37-8/bin" VSLANG="1033" "cc" "-Wl,--version-script=/tmp/nix-shell.QzxwG0/rustce6LmY8/list" "-Wl,--no-undefined-version" "-m64" "/tmp/nix-shell.QzxwG0/rustce6LmY8/symbols.o" "/home/kento/forest/rust-ocaml-starter/target/debug/deps/ocaml_derive-dfa0dcc44bae09b4.ocaml_derive.3e74cb4898417997-cgu.00.rcgu.o" "/home/kento/forest/rust-ocaml-starter/target/debug/deps/ocaml_derive-dfa0dcc44bae09b4.ocaml_derive.3e74cb4898417997-cgu.01.rcgu.o" "/home/kento/forest/rust-ocaml-starter/target/debug/deps/ocaml_derive-dfa0dcc44bae09b4.ocaml_derive.3e74cb4898417997-cgu.02.rcgu.o" "/home/kento/forest/rust-ocaml-starter/target/debug/deps/ocaml_derive-dfa0dcc44bae09b4.ocaml_derive.3e74cb4898417997-cgu.03.rcgu.o" "/home/kento/forest/rust-ocaml-starter/target/debug/deps/ocaml_derive-dfa0dcc44bae09b4.ocaml_derive.3e74cb4898417997-cgu.04.rcgu.o" "/home/kento/forest/rust-ocaml-starter/target/debug/deps/ocaml_derive-dfa0dcc44bae09b4.ocaml_derive.3e74cb4898417997-cgu.05.rcgu.o" "/home/kento/forest/rust-ocaml-starter/target/debug/deps/ocaml_derive-dfa0dcc44bae09b4.ocaml_derive.3e74cb4898417997-cgu.06.rcgu.o" "/home/kento/forest/rust-ocaml-starter/target/debug/deps/ocaml_derive-dfa0dcc44bae09b4.ocaml_derive.3e74cb4898417997-cgu.07.rcgu.o" "/home/kento/forest/rust-ocaml-starter/target/debug/deps/ocaml_derive-dfa0dcc44bae09b4.ocaml_derive.3e74cb4898417997-cgu.08.rcgu.o" "/home/kento/forest/rust-ocaml-starter/target/debug/deps/ocaml_derive-dfa0dcc44bae09b4.ocaml_derive.3e74cb4898417997-cgu.09.rcgu.o" "/home/kento/forest/rust-ocaml-starter/target/debug/deps/ocaml_derive-dfa0dcc44bae09b4.7hg5c9doasbe1ds.rcgu.rmeta" "/home/kento/forest/rust-ocaml-starter/target/debug/deps/ocaml_derive-dfa0dcc44bae09b4.awqufe37dedmkj.rcgu.o" "-Wl,--as-needed" "-L" "/home/kento/forest/rust-ocaml-starter/target/debug/deps" "-L" "/nix/store/bfryfzc08nm3xpivvdkz2sdakz0pv018-rust-default-1.73.0/lib/rustlib/x86_64-unknown-linux-gnu/lib" "-Wl,-Bstatic" "/home/kento/forest/rust-ocaml-starter/target/debug/deps/libsyn-0dc16532ac0a4ac2.rlib" "/home/kento/forest/rust-ocaml-starter/target/debug/deps/libquote-87ab854f369dbc86.rlib" "/home/kento/forest/rust-ocaml-starter/target/debug/deps/libproc_macro2-052f6956eedda3b5.rlib" "/home/kento/forest/rust-ocaml-starter/target/debug/deps/libunicode_ident-beabfcb2cd56cf90.rlib" "/nix/store/q0jddwvn5jydyiqhwrxf7q6mx8j3ykm7-rust-std-1.73.0-x86_64-unknown-linux-gnu/lib/rustlib/x86_64-unknown-linux-gnu/lib/libproc_macro-866e8556e7a7ee9f.rlib" "/nix/store/q0jddwvn5jydyiqhwrxf7q6mx8j3ykm7-rust-std-1.73.0-x86_64-unknown-linux-gnu/lib/rustlib/x86_64-unknown-linux-gnu/lib/libstd-6498d8891e016dca.rlib" "/nix/store/q0jddwvn5jydyiqhwrxf7q6mx8j3ykm7-rust-std-1.73.0-x86_64-unknown-linux-gnu/lib/rustlib/x86_64-unknown-linux-gnu/lib/libpanic_unwind-3debdee1a9058d84.rlib" "/nix/store/q0jddwvn5jydyiqhwrxf7q6mx8j3ykm7-rust-std-1.73.0-x86_64-unknown-linux-gnu/lib/rustlib/x86_64-unknown-linux-gnu/lib/libobject-8339c5bd5cbc92bf.rlib" "/nix/store/q0jddwvn5jydyiqhwrxf7q6mx8j3ykm7-rust-std-1.73.0-x86_64-unknown-linux-gnu/lib/rustlib/x86_64-unknown-linux-gnu/lib/libmemchr-160ebcebb54c11ba.rlib" "/nix/store/q0jddwvn5jydyiqhwrxf7q6mx8j3ykm7-rust-std-1.73.0-x86_64-unknown-linux-gnu/lib/rustlib/x86_64-unknown-linux-gnu/lib/libaddr2line-95c75789f1b65e37.rlib" "/nix/store/q0jddwvn5jydyiqhwrxf7q6mx8j3ykm7-rust-std-1.73.0-x86_64-unknown-linux-gnu/lib/rustlib/x86_64-unknown-linux-gnu/lib/libgimli-7e8094f2d6258832.rlib" "/nix/store/q0jddwvn5jydyiqhwrxf7q6mx8j3ykm7-rust-std-1.73.0-x86_64-unknown-linux-gnu/lib/rustlib/x86_64-unknown-linux-gnu/lib/librustc_demangle-bac9783ef1b45db0.rlib" "/nix/store/q0jddwvn5jydyiqhwrxf7q6mx8j3ykm7-rust-std-1.73.0-x86_64-unknown-linux-gnu/lib/rustlib/x86_64-unknown-linux-gnu/lib/libstd_detect-a1cd87df2f2d8e76.rlib" "/nix/store/q0jddwvn5jydyiqhwrxf7q6mx8j3ykm7-rust-std-1.73.0-x86_64-unknown-linux-gnu/lib/rustlib/x86_64-unknown-linux-gnu/lib/libhashbrown-7fd06d468d7dba16.rlib" "/nix/store/q0jddwvn5jydyiqhwrxf7q6mx8j3ykm7-rust-std-1.73.0-x86_64-unknown-linux-gnu/lib/rustlib/x86_64-unknown-linux-gnu/lib/librustc_std_workspace_alloc-5ac19487656e05bf.rlib" "/nix/store/q0jddwvn5jydyiqhwrxf7q6mx8j3ykm7-rust-std-1.73.0-x86_64-unknown-linux-gnu/lib/rustlib/x86_64-unknown-linux-gnu/lib/libminiz_oxide-c7c35d32cf825c11.rlib" "/nix/store/q0jddwvn5jydyiqhwrxf7q6mx8j3ykm7-rust-std-1.73.0-x86_64-unknown-linux-gnu/lib/rustlib/x86_64-unknown-linux-gnu/lib/libadler-c523f1571362e70b.rlib" "/nix/store/q0jddwvn5jydyiqhwrxf7q6mx8j3ykm7-rust-std-1.73.0-x86_64-unknown-linux-gnu/lib/rustlib/x86_64-unknown-linux-gnu/lib/libunwind-85f17c92b770a911.rlib" "/nix/store/q0jddwvn5jydyiqhwrxf7q6mx8j3ykm7-rust-std-1.73.0-x86_64-unknown-linux-gnu/lib/rustlib/x86_64-unknown-linux-gnu/lib/libcfg_if-598d3ba148dadcea.rlib" "/nix/store/q0jddwvn5jydyiqhwrxf7q6mx8j3ykm7-rust-std-1.73.0-x86_64-unknown-linux-gnu/lib/rustlib/x86_64-unknown-linux-gnu/lib/liblibc-a58ec2dab545caa4.rlib" "/nix/store/q0jddwvn5jydyiqhwrxf7q6mx8j3ykm7-rust-std-1.73.0-x86_64-unknown-linux-gnu/lib/rustlib/x86_64-unknown-linux-gnu/lib/liballoc-f9dda8cca149f0fc.rlib" "/nix/store/q0jddwvn5jydyiqhwrxf7q6mx8j3ykm7-rust-std-1.73.0-x86_64-unknown-linux-gnu/lib/rustlib/x86_64-unknown-linux-gnu/lib/librustc_std_workspace_core-7ba4c315dd7a3503.rlib" "/nix/store/q0jddwvn5jydyiqhwrxf7q6mx8j3ykm7-rust-std-1.73.0-x86_64-unknown-linux-gnu/lib/rustlib/x86_64-unknown-linux-gnu/lib/libcore-5ac2993e19124966.rlib" "/nix/store/q0jddwvn5jydyiqhwrxf7q6mx8j3ykm7-rust-std-1.73.0-x86_64-unknown-linux-gnu/lib/rustlib/x86_64-unknown-linux-gnu/lib/libcompiler_builtins-df2fb7f50dec519a.rlib" "-Wl,-Bdynamic" "-lgcc_s" "-lutil" "-lrt" "-lpthread" "-lm" "-ldl" "-lc" "-Wl,--eh-frame-hdr" "-Wl,-z,noexecstack" "-L" "/nix/store/bfryfzc08nm3xpivvdkz2sdakz0pv018-rust-default-1.73.0/lib/rustlib/x86_64-unknown-linux-gnu/lib" "-o" "/home/kento/forest/rust-ocaml-starter/target/debug/deps/libocaml_derive-dfa0dcc44bae09b4.so" "-Wl,--gc-sections" "-shared" "-Wl,-z,relro,-z,now" "-nodefaultlibs"
= note: /nix/store/f4qnwzv6y0nq8lix33jr5ykkyybs6fxf-binutils-2.40/bin/ld: /nix/store/q0jddwvn5jydyiqhwrxf7q6mx8j3ykm7-rust-std-1.73.0-x86_64-unknown-linux-gnu/lib/rustlib/x86_64-unknown-linux-gnu/lib/libstd-6498d8891e016dca.rlib(std-6498d8891e016dca.std.3759e478f3a6c4f2-cgu.0.rcgu.o): in function `std::sys::unix::os::home_dir::fallback':
/rustc/cc66ad468955717ab92600c770da8c1601a4ff33/library/std/src/sys/unix/os.rs:683: warning: Using 'getpwuid_r' in statically linked applications requires at runtime the shared libraries from the glibc version used for linking
/nix/store/f4qnwzv6y0nq8lix33jr5ykkyybs6fxf-binutils-2.40/bin/ld: /nix/store/q0jddwvn5jydyiqhwrxf7q6mx8j3ykm7-rust-std-1.73.0-x86_64-unknown-linux-gnu/lib/rustlib/x86_64-unknown-linux-gnu/lib/libstd-6498d8891e016dca.rlib(std-6498d8891e016dca.std.3759e478f3a6c4f2-cgu.0.rcgu.o): in function `<std::sys_common::net::LookupHost as core::convert::TryFrom<(&str,u16)>>::try_from::{{closure}}':
/rustc/cc66ad468955717ab92600c770da8c1601a4ff33/library/std/src/sys_common/net.rs:206: warning: Using 'getaddrinfo' in statically linked applications requires at runtime the shared libraries from the glibc version used for linking
/nix/store/f4qnwzv6y0nq8lix33jr5ykkyybs6fxf-binutils-2.40/bin/ld: /nix/store/8j596qgz9vzaaqrijygmybjxk9yvb4ry-glibc-2.37-8-static/lib/libc.a(malloc.o): relocation R_X86_64_TPOFF32 against `tcache' can not be used when making a shared object; recompile with -fPIC
/nix/store/f4qnwzv6y0nq8lix33jr5ykkyybs6fxf-binutils-2.40/bin/ld: failed to set dynamic section sizes: bad value
collect2: error: ld returned 1 exit status
error: could not compile `ocaml-derive` (lib) due to previous error
/nix/store/f4qnwzv6y0nq8lix33jr5ykkyybs6fxf-binutils-2.40/bin/ld: /nix/store/q0jddwvn5jydyiqhwrxf7q6mx8j3ykm7-rust-std-1.73.0-x86_64-unknown-linux-gnu/lib/rustlib/x86_64-unknown-linux-gnu/lib/libstd-6498d8891e016dca.rlib(std-6498d8891e016dca.std.3759e478f3a6c4f2-cgu.0.rcgu.o): undefined reference to symbol '__tls_get_addr@@GLIBC_2.3'
/nix/store/f4qnwzv6y0nq8lix33jr5ykkyybs6fxf-binutils-2.40/bin/ld: /nix/store/1n2l5law9g3b77hcfyp50vrhhssbrj5g-glibc-2.37-8/lib/ld-linux-x86-64.so.2: error adding symbols: DSO missing from command line
Not sure what exactly is going on there but looks like an issue with glibc linking, make sure it's available for the build process.
btw. I also had to override ocaml-derive
:
[dependencies.ocaml-derive]
git = "https://github.com/crackcomm/ocaml-rs.git"
branch = "ocaml5-fortran"
[dependencies.ocaml]
git = "https://github.com/crackcomm/ocaml-rs.git"
branch = "ocaml5-fortran"
I don't have any experience with nixos so can't help you much there but I think you'll have to go deeper trying to resolve the linker issues.
Overriding the dependency didn't work, but thanks a lot anyway. How should I share my solution if I happen to resolve this? This issue seems unrelated.
I'm not sure, linker issues are common but the solution might be nixos specific.
I have
ocaml-rs
vendored along with dependencies inocaml-lwt-interop
, nothing special there, and it builds just fine when I build it locally. It fails in Github CI though, see job log, exact error is cited below:After looking in the
ocaml-sys-0.22.3/build.rs:143:11
, it seems that it failed to parse OCaml version. Probably it makes sense to print proper error message in this case, I indeed don't have OCaml in my workflow as I got default Rust one and got confused with this error.