<samueldr>
the only bit with a full path to *anything* (excluding shebang)
orivej has joined #nixos-aarch64
nixer has joined #nixos-aarch64
nixer has left #nixos-aarch64 [#nixos-aarch64]
Ineff has joined #nixos-aarch64
<Ineff>
Hello I'm having trouble installing nix on an android device, during installation nix-store --init fail with an error about glibc having a ill formatted ELF header
<Ineff>
can anybody help?
Ineff has quit [Ping timeout: 260 seconds]
Ineff has joined #nixos-aarch64
<Ineff>
hello is anybody here?
<Dezgeg>
how are you tryig to install it?
<Ineff>
through the script provided from nixos.org/nix/install
<Dezgeg>
on aarch64 I suppose?
<Ineff>
yep
<Ineff>
the problem appears to be when the script call nix-store --init
<Ineff>
it seems it's unable to link the internal glib due to a ill formatted header
<Dezgeg>
strange, I have never heard of that
<Dezgeg>
what's the /nix/store path it complains about?
<Ineff>
give me a second
<Ineff>
here the error message
<Ineff>
Giorgio Mossa: /nix/store/y9mfv3sx75mbfibf1zna1kq9v98fk2nb-nix-1.11.16/bin/nix-store: error while loading shared libraries: /nix/store/kfk65xrfzndyyz6if5fxk4wrwz76h2lh-glibc-2.25-49/lib/libc.so: invalid ELF header
<Dezgeg>
what's the sha256sum? correct seems to be 4b3296123f40ca7481d6eb5072bc378dbf4037d821dd28ca5ab75ff0a826fa18
<Dezgeg>
of libc.so
<Ineff>
yes the hash correspond
<Dezgeg>
huh
<Dezgeg>
maybe strace reveals something
<Ineff>
let me try
<Ineff>
ah btw could the problem due to the fact that I'm running everything inside termux?
<Ineff_>
Actuallyeading the file it doesn't really look like a library...
Ineff has quit [Ping timeout: 260 seconds]
<Dezgeg>
I guess this termux thing sets LD_LIBRARY_PATH and/or LD_PRELOAD? maybe they are breaking stuff
<Ineff_>
Dezgeg maybe but I am reading the content of libc.so file
<Ineff_>
And it says
<Dezgeg>
oh right, on the second try it reads something else
<Ineff_>
Ok it seems to be a problem of the default store downloaded by the script
<Dezgeg>
so libc.so is a linker script but libc.so.6 is the library proper
<Ineff_>
Yep so that explains why it is not working
<Dezgeg>
well it doesn't explain who is looking for the libc.so
<Dezgeg>
I guess the termux stuff set by the LD_* variables
<Ineff_>
Maybe, but is it normal that linking script is over there?
<Dezgeg>
/usr/lib/libc.so seems to be a linker script on Arch Linux as well, so presumably it's some upstream glibc thing
<Ineff_>
Mh.... so how is the library linker unable to resolve it?
Ineff_ has quit [Ping timeout: 260 seconds]
<Dezgeg>
well presumably everything except this termux stuff is depending on the libc.so.6 and not libc.so
Ineff has joined #nixos-aarch64
<gchristensen>
how can I find the syscall table for aarch64?
<Ineff>
Degzeg sorry got a connecton problem
<Dezgeg>
oh, didn't notice
<Dezgeg>
well presumably everything except this termux stuff is depending on the libc.so.6 and not libc.so
<Dezgeg>
gchristensen: what are you going to do?
<gchristensen>
well I'm fumbling around in the dark really. ofborg's builder is deadlocking and I'm trying to figure out why. the thing I'm looking at now is the syscall its running
<gchristensen>
/ blocked on
<Dezgeg>
try /proc/<pid>/stack
<Dezgeg>
or wchan
<Ineff>
Dezgeg that seems rather strange because the system doesn't have a libc.so anywhere to be found
<Dezgeg>
well did you try unsetting LD_LIBRARY_PATH and/or LD_PRELOAD?
<gchristensen>
all the threads are blocked on futex_wait_queue_me :|
<gchristensen>
thanks, Dezgeg
<Dezgeg>
so they are trying to acquire an userspace lock
<Dezgeg>
doesn't gdb give stacktraces for that?
<gchristensen>
yeah, I've taken backtraces. they seem to be pointing to a bug in a lib I'm using... which is exciting ... anyway, I don't need to take over -aarch64 talk :)
<Ineff>
Dezgeg yup it is unable to find libraries to execute local bash
<gchristensen>
thanks for the pointers :)
<Dezgeg>
hmmh
<Dezgeg>
but does the nix-store --init become runnable?
<Ineff>
Actually it does
<Ineff>
Thanks a lot
<Ineff>
Ok then I guess I'll have to work a little bit to tweak the script to adapt it to termux
<Ineff>
Thank you so much dezgeg :D
Ineff has quit [Ping timeout: 260 seconds]
orivej has joined #nixos-aarch64
<gchristensen>
I'll be rebooting the builder soon
<LnL>
oh, let me make a pr first :)
<gchristensen>
:)
<gchristensen>
if you get it done in the next minute I can start the build process, otherwise I'll be back in a while :)