wofferl / proxmox-backup-arm64

Script for building Proxmox Backup Server 3.x (Bookworm) for Armbian64
151 stars 12 forks source link

Unable to complete install - Make issue #4

Closed ajb3932 closed 2 years ago

ajb3932 commented 2 years ago

warning: build failed, waiting for other jobs to finish... error: build failed make[2]: *** [Makefile:172: .do-cargo-build] Error 101 make[2]: Leaving directory '/home/pi/proxmox-backup-arm64/sources/proxmox-backup' dh_auto_build: error: make -j4 "INSTALL=install --strip-program=true" PROXY_USER=backup LIBDIR=/usr/lib/aarch64-linux-gnu returned exit code 2 make[1]: *** [debian/rules:28: override_dh_auto_build] Error 2 make[1]: Leaving directory '/home/pi/proxmox-backup-arm64/sources/proxmox-backup' make: *** [debian/rules:21: build] Error 2 dpkg-buildpackage: error: debian/rules build subprocess returned exit status 2

Might be a simple fix but I have tried this on DietPi and Raspi OS and the build fails at the same point every time. Thanks for your effort in compiling this! Would love to get it working, do you have any advice on what's wrong? TIA

MAFLO321 commented 2 years ago

Looks like an error in the cargo build process...

ajb3932 commented 2 years ago

https://pastebin.com/Pmuei2iL

Hopefully this helps!?

Should I try the 32 bit instead?

MAFLO321 commented 2 years ago

I am not 100% sure, but for me it indicates the following:

Which Rasberry Pi do you have with how much RAM an SWAP configuration? For me it builds on my Odroid n2 with 4GiB RAM + 4 GiB (zswap -> compressed ram).

Should I try the 32 bit instead?

No, this repo only builds under arm64. It won't work with 32-bit because Proxmox Backup Server has some architecture dependent sections in the code.

ajb3932 commented 2 years ago

It did seem to hang. I have a Pi 4 4GB so I will give it a go by increasing the swap size.

Really appreciate your help guys, I wish I was this smart to be able to compile it myself for Arm64! :1st_place_medal:

MAFLO321 commented 2 years ago

I hope it now compiles, it was just randomly guessed :smile:. You are welcome :+1:

@Jarvis-1487 you will run into a cosmetic bug when you run the server on the Pi. The system performance monitoring on the dashboard is not working with the Pi's kernel (because no ksm is available), just ignore that for the moment. I have a patch for that, but not upstreamed it yet. I will do so in the next days :calendar: . Already done, see #5.

wofferl commented 2 years ago

@MAFLO321 If you release binary packages, you should also ensure that everything works. So I don't think it's a good idea to release packages. If someone has problems compiling the packages, you can always offer to provide them with the packages somehow.

MAFLO321 commented 2 years ago

@Jarvis-1487 did it work for you? If yes, what was your configured swap size? And close the issue, please.

ajb3932 commented 2 years ago

Unfortunately not. I added an SSD to my 4GB Pi4 and gave it 8GB of swap but it still failed to build. I found an old intel laptop lying around so installed PBS on that instead. Its a shame though, would have been nice to get it running on my Pi. I noticed the first official release of the RPi 64bit image got released on Wednesday so may give it another go! Sorry to leave this hanging, I will close the issue.