Closed ajb3932 closed 2 years ago
Looks like an error in the cargo build process...
# for example
./build.sh 2>&1 | tee build.log
I am not 100% sure, but for me it indicates the following:
ld
) because it was killed externally.sudo journalctl -e
and then type ?
(reverse search) and then Killed
and press enter, with n
you can jump to the next result. You should find something like the pictures on this site under " Debug OOM Events".dphys-swap
for swap (short guide). I don't know how DietPi does it, swapfile or swappartition.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.
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:
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.
@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.
@Jarvis-1487 did it work for you? If yes, what was your configured swap size? And close the issue, please.
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.
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