Linux 4.20.69-ish iSH 1.2.3 (298) i686 Linux
shell: bash 5.1.16
I am executing:
$ sudo /nix/store/acghbpn3aaj2q64mz3ljipsgf9d9qxlp-nix-2.11.1/bin/nix-store --load-db
to load data for the first time in to the Nix Database
/nix/store/acghbpn3aaj2q64mz3ljipsgf9d9qxlp-nix-2.11.1/bin/nix-store: error while loading shared libraries: libsodium.so.23: cannot stat shared object: No such file or directory
Nix on my phone? I had to check this out!
I got the same error, decided to see what happens.
~# ldd /nix/store/nd4d8pqaq9mdr50gfxrs3b52k7s3zwld-libsodium-1.0.18/lib/libsodium.so.23
libpthread.so.0 => /lib/ld-musl-i386.so.1 (0xf7f66000)
libc.so.6 => /lib/ld-musl-i386.so.1 (0xf7f66000)
ld-linux.so.2 => /nix/store/n7r6ynq8mcr9wphb0yb1frrxr2yp78bg-glibc-2.34-210/lib/ld-linux.so.2 (0xf7ebc000)
Error relocating /nix/store/n7r6ynq8mcr9wphb0yb1frrxr2yp78bg-glibc-2.34-210/lib/ld-linux.so.2: unsupported relocation type 42
Error relocating /nix/store/nd4d8pqaq9mdr50gfxrs3b52k7s3zwld-libsodium-1.0.18/lib/libsodium.so.23: __memcpy_chk: symbol not found
Error relocating /nix/store/nd4d8pqaq9mdr50gfxrs3b52k7s3zwld-libsodium-1.0.18/lib/libsodium.so.23: __explicit_bzero_chk: symbol not found
It looks like musl linker that is used by Alpine in this VM can’t handle glibc symbols or something.
I’d recommend trying Nix compiled with musl somehow.