Skip to content
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

Unable to complete install - Make issue #4

Closed
ajb3932 opened this issue Jan 11, 2022 · 8 comments
Closed

Unable to complete install - Make issue #4

ajb3932 opened this issue Jan 11, 2022 · 8 comments

Comments

@ajb3932
Copy link

ajb3932 commented Jan 11, 2022

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
Copy link
Contributor

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

  • I guess you used the 64-bit images with "Debian" bullseye of Raspberry Pi OS and DietPi?
  • Could you provide a full log or something (just upload it to your favorite pastebin, gist or cloud site)?
    # for example
    ./build.sh 2>&1 | tee build.log

@ajb3932
Copy link
Author

ajb3932 commented Jan 11, 2022

https://pastebin.com/Pmuei2iL

Hopefully this helps!?

Should I try the 32 bit instead?

@MAFLO321
Copy link
Contributor

MAFLO321 commented Jan 12, 2022

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

  • The build process aborted at the linker (ld) because it was killed externally.
  • Normally the linking process uses a lot of memory (RAM).This could lead to the Linux Out of Memory (OOM) killer terminating the process with SIGKILL (signal 9) because there is no more free memory available.
    This could lead to the Linux Out of Memory (OOM) killer terminating the process with SIGKILL (signal 9) because there is no more free memory available.
  • To check this you could use 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".
  • How to work around this problem? More RAM (4 or 8 GB) or increase swap. Raspberry Pi OS uses 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.

@ajb3932
Copy link
Author

ajb3932 commented Jan 12, 2022

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! 🥇

@MAFLO321
Copy link
Contributor

MAFLO321 commented Jan 12, 2022

I hope it now compiles, it was just randomly guessed 😄.
You are welcome 👍

@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 📆 . Already done, see #5.

@wofferl
Copy link
Owner

wofferl commented Jan 12, 2022

@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
Copy link
Contributor

MAFLO321 commented Feb 4, 2022

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

@ajb3932
Copy link
Author

ajb3932 commented Feb 4, 2022

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.

@ajb3932 ajb3932 closed this as completed Feb 4, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants