-
Notifications
You must be signed in to change notification settings - Fork 37
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
Raspbian 64-bit compilation failed #75
Comments
Hi, if you look at final rustc problem it was caused because something (system?) has killed rustc. Together with very long compilation time it may show for lack of memory. How much memory is on your system. Compiler are used to be rather demanding on memory. I have never tried RP platform, so cannot help much, also do not have experiences with cross-compile for arm64 You can also try couple of things:
Though these two tips will not probably help to finally resolve the issue they can at least help to identify problem. Ultimate solution might be cross-compile, but I suspect it could be complex due to dependencies on native libraries like libssl and libav |
I looked at trying to resurrect https://github.com/greencashew/audioserve for arm builds, but that uses qemu-user to run cargo, and that now seems to die due to lack of memory both on github actions and trying to build locally on my machine outside of docker. I have managed to get rust to crossbuild, first stab at a docker builder image is here: https://github.com/srd424/audioserve-builder - I need to figure out how to integrate it into the normal audioserve build scripts, and it doesn't build the client yet, but you can at least get a binary out of it, and it proves it's possible! |
There are now some aarch64 binaries, but they're debug at the moment (the client is now built though): https://github.com/srd424/audioserve-builder/releases/ (they're not yet statically linked, so they'll need dropping probably into a recent Debian/Ubuntu system/rootfs/container, and libavformat58 at least will need installing.) There's also a github hosted version of the builder image that can be pulled:
|
First stab at an aarch64 docker image, includes client and SSL key - not as yet extensively tested, but the basics seem to work when run under qemu:
|
But... what would a docker-compose look like for the latest version of audioserve for Raspberry Pi with arm64? |
Not sure as I don't use docker/podman compose, but should be reasonably trivial? Latest version should be https://github.com/srd424/audioserve-docker/pkgs/container/audioserve-docker/41247387?tag=v0.22.0 but I haven't tested it yet, and I don't think it builds the new web client yet either.. |
docker-compose would be same I think. It just runs the container.
But of course you'll need docker and docker-compose for this platform
…On Mon, Sep 12, 2022, 18:51 uGeek ***@***.***> wrote:
But... what would a docker-compose look like for the latest version of
audioserve for Raspberry Pi with arm64?
—
Reply to this email directly, view it on GitHub
<#75 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AAQVUBNLNIR2NVJDUDI7PQLV55NPTANCNFSM5OLMXPPQ>
.
You are receiving this because you commented.Message ID:
***@***.***>
|
The following lightly modified from the upstream example should do it - I've dropped PUID/PGID stuff because I'm not sure that does anything (or ever did):
|
Yes, As you comment, the interface still hasn't changed. The client remains the same, but when I look at the version it is up to date |
Thanks a lot. I have tested on my vps with arm64 architecture and it works perfectly. But on my Raspberry Pi with arm64 architecture it doesn't work |
Can you open an issue on https://github.com/srd424/audioserve-docker so we don't spam @izderadicka unnecessarily? |
The compilation on 64-bit Rapbian took unreasonably long time and failed at the end. I didn't found any cross-compile build scripts for arm/arm64 in the repo, is it supposed to be built on Raspberry Pi? On my Raspberry Pi 3 it took more than 5 hours and didn't even succeed
The text was updated successfully, but these errors were encountered: