Open Johnnynator opened 4 years ago
Managed to reproduce on a Musl machine, trying to diagnose. As a temporary work around, arduino from Flatpak works, as does arduino-cli.
The issue seems to be with the arduino-preprocessor
executable. I don't understand the build system, so I can't tell if it's being downloaded already built or being built locally. I suppose it's being downloaded, specially because if it was being locally it should statically link librt
and libdl
.
What seems to be the biggest bug, of course, is that xbps-src is recommending glibc in a musl system, due to the libc.so.6
symbol. No idea on this one either.
It's at least ctags
and arduino-preprocessor
. Building as linux-build
for musl makes it work, but then it's missing libraries like /usr/lib/arduino/lib/liblistSerialsj.so
wonder if this is fixable by de-vendoring liblistSerialsj.so and whatever else
actually the package already seems to be doing that for libastyle
I'm not sure how worth it solving this is, because people will still be using toolchains built for glibc, since arduino downloads them from a single server...
does it? I figured it would use the host toolchain since the package depends on avr-gcc
etc
well regardless it turns out https://github.com/arduino/arduino-preprocessor/ depends on llvm 4.0.0, which it downloads at build-time.
we probably don't need any of that.
Still reproducable on my x86_64-musl void machine:
# xbps-install -S arduino
[*] Updating repository `https://alpha.de.repo.voidlinux.org/current/musl/x86_64-musl-repodata' ...
MISSING: glibc>=2.29_1
Transaction aborted due to unresolved dependencies.
Issues become stale 90 days after last activity and are closed 14 days after that. If this issue is still relevant bump it or assign it.
Issues become stale 90 days after last activity and are closed 14 days after that. If this issue is still relevant bump it or assign it.
bump
System
Void 5.4.18_1 x86_64-musl GenuineIntel uptodate rrFFFFFFFFFFFFFFFF
arduino-1.8.9_2
Expected behavior
should link against musl and not glibc
Actual behavior
Steps to reproduce the behavior