[solved] trouble compiling on Raspberry Pi 5 - pnacl-strip not found

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

[solved] 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: 833
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: 3
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.

User avatar
killing time
Programmer
Posts: 199
Joined: Wed Jul 04, 2012 7:55 am UTC

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

Post by killing time »

I removed the Debian package nonsense from the wiki. NaCl gamelogic is not built by default in the Unvanquished build so if it weren't for that dreadful wiki page, there would be no attempt to use an NaCl compiler at all.

User avatar
illwieckz
Project Head
Posts: 833
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 »

a real darling wrote: Sat Jul 04, 2026 6:30 pm UTC

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

Nice!

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:

Well, if you find it, all you can do is to inspire you from. The config files will not be compatible and for good reasons. Not only because we improved the bind system (we now have per-team binds) but Tremulous bound keys to meaningless action names. For example in my own Tremulous autogen.cfg file I see weird things like bind q "+button7" which may be the evolve menu or something like that… “button7” means nothing in Unvanquished, we have teambind 1 hw:q +activate instead, which is even a per-team bind and not a bind to an action the team code may associate with.

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

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

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

Post by a real darling »

Back in the days, I had an alien.cfg and a human.cfg, which got loaded via a binding, when I joined the respective teams, but this is a topic for another time. The most important thing is, that the game now runs in the first place. I shall hone my skills with bots or something, and, who knows, maybe one day, somebody will get bitten by a real darling again :wink:

Cheers!