-
-
Notifications
You must be signed in to change notification settings - Fork 48
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Doesn't work on non-FHS systems #87
Comments
Mmmh the toolchain is being built as statically as possible (for glibc), we could try compiling against |
To fix my problem, we need to link the toolchain with |
Hi there! Do you think it would be possible instead to build musl variants and have arduino-cli auto detect the platform? Void Linux ships arduino-cli in its musl variant, but has to resort to Where can I find the build configuration, if I were to try and help with it? |
@ericonr https://github.com/balsoft/nur-packages/blob/master/pkgs/arduino-cli/default.nix is the package description. |
Someone with write permission in the |
I saw this in my email, a growing sense of terror and dread,. as I saw owrds I firast assumed weretypos having never seen them before were repeated by multiple peop[le. It was such a relief to find that it's not my problem yet. Whatever this problem is, may the technology gods have mercy on their soul. |
Bug Report
Current behavior
The build fails because the toolchain (downloaded to
~/.arduino15/packages
) has/lib/ld-linux-x86-64.so.2
set as interpreter. While it might work on FHS systems, it doesn't work on mine. I can solve this by patching the executables (for i in $(find /home/balsoft/.arduino15 -t file); do patchelf --set-interpreter /nix/store/xlxiw4rnxx2dksa91fizjzf7jb5nqghc-glibc-2.27/lib/ld-linux-x86-64.so.2 $i; done
) but it is a flimsy solution and won't work long-term (it'll break after the next glibc update and garbage collection).Expected behavior
It works out of the box, independent of the location of
ld-linux-x86-64.so.2
. This can be achieved by building the toolchain statically.Environment
arduino-cli version
):0.0.0-git Commit:
(in reality it's built from master branch) The expression is here: https://github.com/balsoft/nur-packages/tree/master/pkgs/arduino-cliAdditional context
I'm not sure this should be reported here. If it isn't, please close the issue and redirect me to the correct place.
The text was updated successfully, but these errors were encountered: