trouble compiling on Raspberry Pi 5 - pnacl-strip not found

Get support for Unvanquished.
User avatar
a real darling
Posts: 2
Joined: Sat Jul 04, 2026 8:17 am UTC

trouble compiling on Raspberry Pi 5 - pnacl-strip not found

Post by a real darling »

Has it really been almost twenty years, that somebody last got “gunned down by a real darling” or “bitten by a real darling” in Tremulous back then, and I think it is time to do it again, but when I follow https://wiki.unvanquished.net/wiki/Comp ... urce#Linux and try “fakeroot dpkg-buildpackage -b -uc”, the process fails:

Code: Select all

[...]
make[1]: Entering directory '/home/myusername/Unvanquished'
dh_install
make[1]: Leaving directory '/home/myusername/Unvanquished'
   dh_installdocs
   dh_installchangelogs
   dh_systemd_enable
   dh_installinit
   dh_systemd_start
   dh_installmenu
   dh_icons
   dh_link
   dh_strip_nondeterminism
   dh_compress
   dh_fixperms
   dh_missing
   debian/rules override_dh_strip
make[1]: Entering directory '/home/myusername/Unvanquished'
dh_strip -Xnacl_ -X.nexe --dbg-package=unvanquished-dbg
PNACLPYTHON=python2.7 daemon/external_deps/linuxaarch64-5/pnacl/bin/pnacl-strip \
	obj-aarch64-linux-gnu/irt_core-aarch64.nexe \
	obj-aarch64-linux-gnu/nacl/cgame-aarch64.nexe \
	obj-aarch64-linux-gnu/nacl/sgame-aarch64.nexe
/bin/sh: 1: daemon/external_deps/linuxaarch64-5/pnacl/bin/pnacl-strip: not found
make[1]: *** [debian/rules:74: override_dh_strip] Error 127
make[1]: Leaving directory '/home/myusername/Unvanquished'
make: *** [debian/rules:21: binary] Error 2
dpkg-buildpackage: error: debian/rules binary subprocess returned exit status 2

Any ideas? System is Raspberry Pi 5 running Raspbian Trixie.

User avatar
illwieckz
Project Head
Posts: 832
Joined: Sat Aug 11, 2012 7:22 pm UTC
Location: France

Re: trouble compiling on Raspberry Pi 5 - pnacl-strip not found

Post by illwieckz »

Hi!

First thing, the Debian script may not be up-to-date (looking at the log, it is a lot!), but that's not the biggest problem. The current (P)NaCl compiler we use to build the game code is not available for arm. We're in the process of replacing it with one that works on arm, but that's not released yet.

But actually, you even don't need a NaCl compiler as only the native binary of the engine is required to run the game.

If you absolutely want to build the engine yourself, just build the Dæmon engine:

Then put next to the daemon binary the pkg/ folder from this archive:

If you don't have a requirement for rebuilding the engine, just use the prebuilt engine from the same archive. There is linux-armhf.zip (32-bit) and linux-arm64.zip (64-bit) in it. The pkg/ folder should be next to the daemon binary (follow the instructions in the readme file in the zip).

Make sure your kernel runs 4k page size, this command should return 4 kB:

Code: Select all

grep "^KernelPageSize" /proc/self/smaps | head -1
KernelPageSize:       4 kB

If that displays 16 Kb instead, edit /boot/firmware/config.txt and add the line kernel=kernel8.img at the end of the file after the [all] line, and reboot. We're also in the process to remove this 4k requirement, but the current release still have this requirement.

Once the game runs, don't forget to go to the graphics option and to apply the low preset to better match the performance of the rpi5 graphics! 🙂️

And welcome to the game! :bsuit:

This comment is licensed under cc ​​by 4 and antecedent. The Crunch tool is awesome!

User avatar
a real darling
Posts: 2
Joined: Sat Jul 04, 2026 8:17 am UTC

Re: trouble compiling on Raspberry Pi 5 - pnacl-strip not found

Post by a real darling »

Thank you, it worked. I compiled everything and moved the directory “pkg” into the directory “build”, the game runs now.

The problem I have now is, that I will have to remember how I had configured Tremulous back in the days, I will check if I have the configuration somewhere on old backups or something. Thank you :smile:

PS: If possible, you can mark this thread as solved.