Closed nonetrix closed 5 months ago
I've also had an issue possibly related to glibc
on NixOS recently.
$ distrobox-create --name arch2 --additional-flags "--device nvidia.com/gpu=all --security-opt=label=disable -e NVIDIA_VISIBLE_DEVICES=all -e NVIDIA_DRIVER_CAPABILITIES=all" --image archlinux:latest
Creating 'arch2' using image archlinux:latest [ OK ]
Distrobox 'arch2' successfully created.
To enter, run:
distrobox enter arch2
$ distrobox-enter arch2
Error: could not start entrypoint.
+ stat /run/host/etc/shadow
stat: symbol lookup error: /nix/store/35pq4hr29c3sl79lgfwgsvd9nwzyp4am-glibc-2.39-5/lib/libc.so.6: undefined symbol: __tunable_is_initialized, version GLIBC_PRIVATE
+ '[' -n '' ']'
+ printf 'distrobox: Installing basic packages...\n'
distrobox: Installing basic packages...
++ basename fish
basename: symbol lookup error: /nix/store/35pq4hr29c3sl79lgfwgsvd9nwzyp4am-glibc-2.39-5/lib/libc.so.6: undefined symbol: __tunable_is_initialized, version GLIBC_PRIVATE
+ shell_pkg=
+ '[' 127 -ne 0 ']'
+ printf 'Error: An error occurred\n'
Error: An error occurred
I got it fixed by dropping everything related to nvidia from the distrobox create
command, as my nvidia card seems to be working anyways thanks to virtualisation.containers.cdi.dynamic.nvidia.enable NixOS option. But building a Rust package is still not possible:
error: linking with `cc` failed: exit status: 1
|
= note: LC_ALL="C" PATH="/home/me/.rustup/toolchains/stable-x86_64-unknown-linux-gnu/lib/rustlib/x86_64-unknown-linux-gnu/bin:/home/me/.cargo/bin:/run/wrappers/bin:/home/me/.local/bin:/home/me/.nix-profile/bin:/home/me/.local/state/nix/profile/bin:/home/me/.local/state/nix/profile/bin:/etc/profiles/per-user/me/bin:/nix/var/nix/profiles/default/bin:/run/current-system/sw/bin:/nix/store/bd0ii4p72zgiy1jfaww5h3xihxn2l56x-gcc-wrapper-13.2.0/bin:/nix/store/jsjfmx7r6cpyixxsg7bjl5cy3y8hw7k7-binutils-wrapper-2.41/bin:/nix/store/pc6yqwmnzy0xqdzm7j9kxhl0hrmk4p50-pciutils-3.11.1/bin:/nix/store/5zw6k903flzjrp3yiqrm5isvdfq30y3l-pkgconf-wrapper-2.1.1/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/bin/site_perl:/usr/bin/vendor_perl:/usr/bin/core_perl" VSLANG="1033" "cc" "-m64" "/tmp/rustcHlhWnV/symbols.o" "/tmp/treeman/target/debug/build/tim-79b82f9f703f928e/build_script_build-79b82f9f703f928e.24m7yg6y4t03xyi5.rcgu.o" "/tmp/treeman/target/debug/build/tim-79b82f9f703f928e/build_script_build-79b82f9f703f928e.26p2wt9ndrlkk2cq.rcgu.o" "/tmp/treeman/target/debug/build/tim-79b82f9f703f928e/build_script_build-79b82f9f703f928e.3sbghcx5hzug2wjr.rcgu.o" "/tmp/treeman/target/debug/build/tim-79b82f9f703f928e/build_script_build-79b82f9f703f928e.47mb2bqv2nmmywn7.rcgu.o" "/tmp/treeman/target/debug/build/tim-79b82f9f703f928e/build_script_build-79b82f9f703f928e.49qi3z69b1mesnp0.rcgu.o" "/tmp/treeman/target/debug/build/tim-79b82f9f703f928e/build_script_build-79b82f9f703f928e.5e73xe5ez4ba1eli.rcgu.o" "/tmp/treeman/target/debug/build/tim-79b82f9f703f928e/build_script_build-79b82f9f703f928e.3fqzg72l5lomdf2i.rcgu.o" "-Wl,--as-needed" "-L" "/tmp/treeman/target/debug/deps" "-L" "/tmp/treeman/target/debug/build/tree-sitter-f328a836678521c6/out" "-L" "/tmp/treeman/target/debug/build/curl-sys-1772e6ec3cbf425a/out/build" "-L" "/tmp/treeman/target/debug/build/libnghttp2-sys-db615a03ea787a81/out/i/lib" "-L" "/home/me/.rustup/toolchains/stable-x86_64-unknown-linux-gnu/lib/rustlib/x86_64-unknown-linux-gnu/lib" "-Wl,-Bstatic" "/tmp/treeman/target/debug/deps/libshared-6087cc8ceed232be.rlib" "/tmp/treeman/target/debug/deps/liblsp_types-c35d2fd8d128e07e.rlib" "/tmp/treeman/target/debug/deps/libbitflags-95901817437ee887.rlib" "/tmp/treeman/target/debug/deps/libisahc-12afe95780fa7466.rlib" "/tmp/treeman/target/debug/deps/libmime-63c3a22c1367bd96.rlib" "/tmp/treeman/target/debug/deps/libcastaway-296c133232b4e34c.rlib" "/tmp/treeman/target/debug/deps/libencoding_rs-7c4d9852fb2bab44.rlib" "/tmp/treeman/target/debug/deps/libtracing_futures-4a7da1c12987b41f.rlib" "/tmp/treeman/target/debug/deps/libtracing-02126eab4492c92d.rlib" "/tmp/treeman/target/debug/deps/libtracing_core-6a2bb6c7587e86fa.rlib" "/tmp/treeman/target/debug/deps/libpin_project-dd75262c8d74e6a1.rlib" "/tmp/treeman/target/debug/deps/libhttp-ccd7395bbd209ccf.rlib" "/tmp/treeman/target/debug/deps/libbytes-ceb051219b0bb2e3.rlib" "/tmp/treeman/target/debug/deps/libfnv-1e0f89410295e7ee.rlib" "/tmp/treeman/target/debug/deps/libsluice-0eb88a9d3f01c8db.rlib" "/tmp/treeman/target/debug/deps/libpolling-a9ee839b7d89fccf.rlib" "/tmp/treeman/target/debug/deps/libslab-d903803c5983889b.rlib" "/tmp/treeman/target/debug/deps/libfutures_lite-92f7503440f07b72.rlib" "/tmp/treeman/target/debug/deps/libfastrand-e76bfc963f15880c.rlib" "/tmp/treeman/target/debug/deps/libfutures_io-e09306559c50b5cd.rlib" "/tmp/treeman/target/debug/deps/libwaker_fn-04efb904e151c44d.rlib" "/tmp/treeman/target/debug/deps/libparking-dbe143e8541b795f.rlib" "/tmp/treeman/target/debug/deps/libpin_project_lite-6814510c287d86b3.rlib" "/tmp/treeman/target/debug/deps/libcurl-44d3a4cf04a6026e.rlib" "/tmp/treeman/target/debug/deps/libopenssl_probe-c6c2d4b7b350ab73.rlib" "/tmp/treeman/target/debug/deps/libsocket2-437a3c4d53731d23.rlib" "/tmp/treeman/target/debug/deps/libcurl_sys-cd9f5be026063590.rlib" "/tmp/treeman/target/debug/deps/libopenssl_sys-465d1ac8719e3f0a.rlib" "/tmp/treeman/target/debug/deps/liblibz_sys-ec7dee851449b83e.rlib" "/tmp/treeman/target/debug/deps/liblibnghttp2_sys-180d8036d4d14330.rlib" "/tmp/treeman/target/debug/deps/libasync_channel-6b5a2644a1faceb6.rlib" "/tmp/treeman/target/debug/deps/libfutures_core-44482a57f3cfc816.rlib" "/tmp/treeman/target/debug/deps/libevent_listener-e85b00f9f6a91552.rlib" "/tmp/treeman/target/debug/deps/libconcurrent_queue-fb437a80bcce82ec.rlib" "/tmp/treeman/target/debug/deps/libcrossbeam_utils-ad2fbaa74d2b1dd1.rlib" "/tmp/treeman/target/debug/deps/libserde_json-3041eedb32548a70.rlib" "/tmp/treeman/target/debug/deps/libryu-a999776070da1fc2.rlib" "/tmp/treeman/target/debug/deps/libitoa-fdbe94e95be91cb8.rlib" "/tmp/treeman/target/debug/deps/libgrammar-4d8e9e4307fdb5c6.rlib" "/tmp/treeman/target/debug/deps/libdunce-d983ba0af25c793e.rlib" "/tmp/treeman/target/debug/deps/libonce_cell-a2bf43a16298c395.rlib" "/tmp/treeman/target/debug/deps/libcc-02cdf571782c2a2b.rlib" "/tmp/treeman/target/debug/deps/libjobserver-356e75b8b64b6c0c.rlib" "/tmp/treeman/target/debug/deps/libthreadpool-12d26f52c7e1e7e9.rlib" "/tmp/treeman/target/debug/deps/libnum_cpus-dcd342bdf131cd3f.rlib" "/tmp/treeman/target/debug/deps/libwhich-5c64e557d807b429.rlib" "/tmp/treeman/target/debug/deps/libeither-d6eba6f4a78614c5.rlib" "/tmp/treeman/target/debug/deps/liblog-15e6f56c78050c1f.rlib" "/tmp/treeman/target/debug/deps/libdirectories-eb8d040446cc1706.rlib" "/tmp/treeman/target/debug/deps/libdirs_sys-7045cd2e984e37cd.rlib" "/tmp/treeman/target/debug/deps/liblibc-a43a59a5d8ec5411.rlib" "/tmp/treeman/target/debug/deps/liboption_ext-f930da6ba8a267b4.rlib" "/tmp/treeman/target/debug/deps/libetcetera-2fc3c2268190a68f.rlib" "/tmp/treeman/target/debug/deps/libhome-7553557a1b0f12c1.rlib" "/tmp/treeman/target/debug/deps/liblibloading-3fe5bc498692e92e.rlib" "/tmp/treeman/target/debug/deps/libtree_sitter-89c4cf7e3db9ac19.rlib" "/tmp/treeman/target/debug/deps/libregex-ee87b9ffc896fcfe.rlib" "/tmp/treeman/target/debug/deps/libregex_automata-10acb60e6afbf76d.rlib" "/tmp/treeman/target/debug/deps/libaho_corasick-93042598ab0ded68.rlib" "/tmp/treeman/target/debug/deps/libmemchr-246a68bdedd80b25.rlib" "/tmp/treeman/target/debug/deps/libregex_syntax-85d72156c4dd07c3.rlib" "/tmp/treeman/target/debug/deps/libtempfile-662cb4046052bb87.rlib" "/tmp/treeman/target/debug/deps/libfastrand-42c9061e7cf4af12.rlib" "/tmp/treeman/target/debug/deps/librustix-68d227f7069f15ba.rlib" "/tmp/treeman/target/debug/deps/libbitflags-3237b3468ac872fb.rlib" "/tmp/treeman/target/debug/deps/liblinux_raw_sys-90f1ebdedbac8b8f.rlib" "/tmp/treeman/target/debug/deps/libcfg_if-3705568b3b302f3c.rlib" "/tmp/treeman/target/debug/deps/libanyhow-1d7657fade43be4f.rlib" "/tmp/treeman/target/debug/deps/liburl-a2eb4b347c7d3e88.rlib" "/tmp/treeman/target/debug/deps/libidna-fb778f2339b4fb56.rlib" "/tmp/treeman/target/debug/deps/libunicode_normalization-061d8583de547e06.rlib" "/tmp/treeman/target/debug/deps/libtinyvec-abd340c833b1280d.rlib" "/tmp/treeman/target/debug/deps/libtinyvec_macros-4d1f585150a22e8a.rlib" "/tmp/treeman/target/debug/deps/libunicode_bidi-acae8c4c7af83b2d.rlib" "/tmp/treeman/target/debug/deps/libform_urlencoded-dd32b0e9e547eda4.rlib" "/tmp/treeman/target/debug/deps/libpercent_encoding-2d22a78c7ad4c2e3.rlib" "/tmp/treeman/target/debug/deps/libserde-810e5ab51b98daae.rlib" "/home/me/.rustup/toolchains/stable-x86_64-unknown-linux-gnu/lib/rustlib/x86_64-unknown-linux-gnu/lib/libstd-2d08990d644ac786.rlib" "/home/me/.rustup/toolchains/stable-x86_64-unknown-linux-gnu/lib/rustlib/x86_64-unknown-linux-gnu/lib/libpanic_unwind-6f2d4ec7ff80253d.rlib" "/home/me/.rustup/toolchains/stable-x86_64-unknown-linux-gnu/lib/rustlib/x86_64-unknown-linux-gnu/lib/libobject-c194d68892442324.rlib" "/home/me/.rustup/toolchains/stable-x86_64-unknown-linux-gnu/lib/rustlib/x86_64-unknown-linux-gnu/lib/libmemchr-9a71c52c5946f83b.rlib" "/home/me/.rustup/toolchains/stable-x86_64-unknown-linux-gnu/lib/rustlib/x86_64-unknown-linux-gnu/lib/libaddr2line-ae9aec4ce2dabc4f.rlib" "/home/me/.rustup/toolchains/stable-x86_64-unknown-linux-gnu/lib/rustlib/x86_64-unknown-linux-gnu/lib/libgimli-6a207457d27610cc.rlib" "/home/me/.rustup/toolchains/stable-x86_64-unknown-linux-gnu/lib/rustlib/x86_64-unknown-linux-gnu/lib/librustc_demangle-fb1d2514710eef16.rlib" "/home/me/.rustup/toolchains/stable-x86_64-unknown-linux-gnu/lib/rustlib/x86_64-unknown-linux-gnu/lib/libstd_detect-e36e7ed4b08caeac.rlib" "/home/me/.rustup/toolchains/stable-x86_64-unknown-linux-gnu/lib/rustlib/x86_64-unknown-linux-gnu/lib/libhashbrown-9e8dafdf0a1b7ecd.rlib" "/home/me/.rustup/toolchains/stable-x86_64-unknown-linux-gnu/lib/rustlib/x86_64-unknown-linux-gnu/lib/librustc_std_workspace_alloc-b218f37fe3c9ce2e.rlib" "/home/me/.rustup/toolchains/stable-x86_64-unknown-linux-gnu/lib/rustlib/x86_64-unknown-linux-gnu/lib/libminiz_oxide-20c30954fd9b5ef4.rlib" "/home/me/.rustup/toolchains/stable-x86_64-unknown-linux-gnu/lib/rustlib/x86_64-unknown-linux-gnu/lib/libadler-6d3dfaf536d51163.rlib" "/home/me/.rustup/toolchains/stable-x86_64-unknown-linux-gnu/lib/rustlib/x86_64-unknown-linux-gnu/lib/libunwind-cb4ce50789112af8.rlib" "/home/me/.rustup/toolchains/stable-x86_64-unknown-linux-gnu/lib/rustlib/x86_64-unknown-linux-gnu/lib/libcfg_if-9897980a3b548e05.rlib" "/home/me/.rustup/toolchains/stable-x86_64-unknown-linux-gnu/lib/rustlib/x86_64-unknown-linux-gnu/lib/liblibc-b7bd4d010c784af2.rlib" "/home/me/.rustup/toolchains/stable-x86_64-unknown-linux-gnu/lib/rustlib/x86_64-unknown-linux-gnu/lib/liballoc-6d4515df28ba3369.rlib" "/home/me/.rustup/toolchains/stable-x86_64-unknown-linux-gnu/lib/rustlib/x86_64-unknown-linux-gnu/lib/librustc_std_workspace_core-e28568c1a21499f7.rlib" "/home/me/.rustup/toolchains/stable-x86_64-unknown-linux-gnu/lib/rustlib/x86_64-unknown-linux-gnu/lib/libcore-eedf3675950a13c2.rlib" "/home/me/.rustup/toolchains/stable-x86_64-unknown-linux-gnu/lib/rustlib/x86_64-unknown-linux-gnu/lib/libcompiler_builtins-715e69127681e2e0.rlib" "-Wl,-Bdynamic" "-lssl" "-lcrypto" "-lz" "-ldl" "-lgcc_s" "-lutil" "-lrt" "-lpthread" "-lm" "-ldl" "-lc" "-Wl,--eh-frame-hdr" "-Wl,-z,noexecstack" "-L" "/home/me/.rustup/toolchains/stable-x86_64-unknown-linux-gnu/lib/rustlib/x86_64-unknown-linux-gnu/lib" "-o" "/tmp/treeman/target/debug/build/tim-79b82f9f703f928e/build_script_build-79b82f9f703f928e" "-Wl,--gc-sections" "-pie" "-Wl,-z,relro,-z,now" "-nodefaultlibs"
= note: /nix/store/hqvni28zpibl6jsqqimcvng6h6qm58xy-binutils-2.41/bin/ld: cannot find -lssl: No such file or directory
/nix/store/hqvni28zpibl6jsqqimcvng6h6qm58xy-binutils-2.41/bin/ld: cannot find -lcrypto: No such file or directory
/nix/store/hqvni28zpibl6jsqqimcvng6h6qm58xy-binutils-2.41/bin/ld: cannot find -lz: No such file or directory
collect2: error: ld returned 1 exit status
error: could not compile `tim` (build script) due to 1 previous error
warning: build failed, waiting for other jobs to finish...
Well I am using a AMD GPU in my case
Seems like a PATH issue
can you try senting just the podman logs name-of-container
before and after the brick, with a new container?
Right now the logs are so huge it's impossible to infere much thanks!
I haven't had issue in a while, it likes to come and go unfortunately I'll see if I can reproduce
Thanks @nonetrix in this case I'll close this and if you manage to reproduce we can reopen
Describe the bug A update to what I assume is either being caused by
binutils
orglibc
is making it such that my containers are bricking themselves after upgrading usingpacman -Syu
. I first noticed something fishy when I created a new container for running Rust projects namedprogramming
and it would not compile any package but just output the following when runningcargo run
on the default project:After trying to reinstall some packages my terminal will just freeze not even letting me press ^C only closing works and which after the container cannot be entered and will just output the following, I also tried upgrading my container
ai
and after upgrading I got the same result. I assumed it had to do withbinutils
,gcc
, orglibc
however, for some reason reproducing this seems somewhat random: https://gist.github.com/nonetrix/b84f8b5094393f01d3ad8da18a63ff7dTo Reproduce
Expected behavior The container compiles Rust programs without issue and upgrades not bricking it
Logs Run the commands with
--verbose
and post the log here as a file upload: https://gist.github.com/nonetrix/e5bf8883dd9a4da5d61c96f4c8b79470Attach also the output of
podman logs
ordocker logs
, possibly with--latest
flag: These commands don't seem to workDesktop (please complete the following information):
Additional context Add any other context about the problem here.
My system configs: https://github.com/nonetrix/nixdots Image used: docker.io/library/archlinux:latest
In general I have had lots of strange issues with Distrobox on Nix, seems to be due to how Nix handles the file system a lot differently and it seriously needs to be worked on in my opinion in general because this isn't the only issue I have had before