Provided binaries are linked to glibc nix #20

Open
opened 2025-02-07 19:27:21 +00:00 by James · 2 comments
Owner

Thank you!
I will try out the !decode command.

I use the nix flake, which works great, even in https://github.com/noamraph/nixsa.
The released binaries don't seem to work for me (I am on Fedora Silverblue Atomic Desktop.)
Here is the strace output:

strace ./tricu                                                                                          
execve("./tricu", ["./tricu"], 0x7ffe21c54b00 /* 55 vars */) = 0
open("/proc/self/exe", O_RDONLY)        = 3
mmap(NULL, 3117, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0x7f63d1635000
mprotect(0x7f63d1635000, 3117, PROT_READ|PROT_EXEC) = 0
readlink("/proc/self/exe", "/var/home/v/Downloads/tricu", 4095) = 27
mmap(0x400000, 4700968, PROT_NONE, MAP_PRIVATE|MAP_FIXED|MAP_ANONYMOUS, -1, 0) = 0x400000
mmap(0x400000, 4404888, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED|MAP_ANONYMOUS, -1, 0) = 0x400000
mprotect(0x400000, 4404888, PROT_READ|PROT_EXEC) = 0
mmap(0x835000, 276600, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED|MAP_ANONYMOUS, -1, 0x434000) = 0x835000
mprotect(0x835000, 276600, PROT_READ|PROT_WRITE) = 0
mmap(0x879000, 11048, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED|MAP_ANONYMOUS, -1, 0) = 0x879000
open("/nix/store/wn7v2vhyyyi6clcyn0s9ixvl7d4d87ic-glibc-2.40-36/lib/ld-linux-x86-64.so.2", O_RDONLY) = -1 ENOENT (No such file or directory)
exit(127)                               = ?
+++ exited with 127 +++

Thank you again for tricu!

Originally posted by @vincent in #18 (comment)

Thank you! I will try out the !decode command. I use the nix flake, which works great, even in https://github.com/noamraph/nixsa. The released binaries don't seem to work for me (I am on Fedora Silverblue Atomic Desktop.) Here is the strace output: ```shell strace ./tricu execve("./tricu", ["./tricu"], 0x7ffe21c54b00 /* 55 vars */) = 0 open("/proc/self/exe", O_RDONLY) = 3 mmap(NULL, 3117, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0x7f63d1635000 mprotect(0x7f63d1635000, 3117, PROT_READ|PROT_EXEC) = 0 readlink("/proc/self/exe", "/var/home/v/Downloads/tricu", 4095) = 27 mmap(0x400000, 4700968, PROT_NONE, MAP_PRIVATE|MAP_FIXED|MAP_ANONYMOUS, -1, 0) = 0x400000 mmap(0x400000, 4404888, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED|MAP_ANONYMOUS, -1, 0) = 0x400000 mprotect(0x400000, 4404888, PROT_READ|PROT_EXEC) = 0 mmap(0x835000, 276600, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED|MAP_ANONYMOUS, -1, 0x434000) = 0x835000 mprotect(0x835000, 276600, PROT_READ|PROT_WRITE) = 0 mmap(0x879000, 11048, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED|MAP_ANONYMOUS, -1, 0) = 0x879000 open("/nix/store/wn7v2vhyyyi6clcyn0s9ixvl7d4d87ic-glibc-2.40-36/lib/ld-linux-x86-64.so.2", O_RDONLY) = -1 ENOENT (No such file or directory) exit(127) = ? +++ exited with 127 +++ ``` Thank you again for tricu! _Originally posted by @vincent in https://git.eversole.co/James/tricu/issues/18#issuecomment-73_
James added the
bug
label 2025-02-07 19:27:30 +00:00
Author
Owner

I fiddled with this for much longer than I should've. I'm just going to stop providing releases, I'll look into this again when the project is more stable.

I fiddled with this for much longer than I should've. I'm just going to stop providing releases, I'll look into this again when the project is more stable.
James closed this issue 2025-02-08 16:24:46 +00:00

Hi,

I am not a Nix expert, but I thought this might be a solution for building binaries from Nix-flakes.

https://github.com/ralismark/nix-appimage

Thanks!

Hi, I am not a Nix expert, but I thought this might be a solution for building binaries from Nix-flakes. https://github.com/ralismark/nix-appimage Thanks!
James reopened this issue 2025-02-27 02:33:55 +00:00
Sign in to join this conversation.
No Milestone
No project
No Assignees
2 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: James/tricu#20
No description provided.