Skip to content

Nix Build results in an executable that has (probable) dynamic linking issues #2

@elanora96

Description

@elanora96

From tester @Paculino:

System Info

*Note: tester does not have Nix installed

OS: Devuan 5 x96_64
Host: Aspire A515-54 V1.07
Kernel: 6.1.0-28-amd64
Shell: bash 5.2.15
CPU: Intel i7-8565U (8) @ 4.6 GHz
GPU: Intel WhiskeyLake-U GT2 [UHD Graphic 620]
Memory: 8741 MiB / 19846 MiB

Error:

bash: /home/paculino/Downloads/qremote: cannot execute: required file not found

I believe this to be a dynamic linking issue. Built by cargo impurely the resulting executable works fine. Executables built by Nix are expecting /nix/store/ to exist, and therefore will not work on other systems.

Given that my vision for qrcp is that it "just works", I'm considering statically linking distributed executables to avoid dynamic linking issues. I do fear the final executable size but it seems worth a try?

Metadata

Metadata

Assignees

Labels

bugSomething isn't working

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions