node
node copied to clipboard
[WIP] [Guidance Wanted] Fix arm binaries compilation
Bug description
The build toolchain and ppa packages tells it supports armhf
which on debian seems to be arm6
and arm7
(...don't ask me why).
But when building for armhf
(32bit arm), it was compiling armv7l
binaries for armv6l
, causing myst executable to crash with "fatal error illegal instruction"
.
This same problem/bug happened on this other project: https://github.com/goreleaser/goreleaser/issues/2721 So my solution was lightly inspired on it.
Results
Got it working on my raspbery pizero W, with both
- directly running
./myst
binaries (dynamic and static compilation) - generating
.deb
package and installing it
It was crosscompiled from a linux x86_64 machine.
Note
Currently this PR is incomplete and can only generate the
-
armv6
binaries (seebuildBinaryFor()
andpackageStandalone()
changes) -
.deb
package (seePackageLinuxDebianArmv6l()
changes) - static build binaries (see
PackageLinuxArmv6l()
changes)
It didn't know what more needed to be refactored, since i don´t know how what happens after artifacts gets uploaded to S3 bucket.
So any assistance is welcome.
Also feel free to reach on discord, i'm on the mysterium-network channel! (user: #gaba3535
)