Skip to content

Deps: use our own NaCl runtime incl. IRT everywhere - #2024

Merged
slipher merged 3 commits into
DaemonEngine:masterfrom
slipher:naclrt-build
Dec 1, 2026
Merged

slipher merged 3 commits into
DaemonEngine:masterfrom
slipher:naclrt-build

Conversation

@slipher

@slipher slipher commented Oct 27, 2026

Copy link
Copy Markdown
Member

Build the Native Client loader in external_deps/build.sh for all *nix platforms. Incorporate our Saigo SDK to also build the IRT which was not built by us previously. For Windows platforms, download an NaCl release built by myself using MSVC (see DaemonEngine/native_client#78).

Some commits from #1986 are included to use the host-mode deps package infrastructure. Scons can now be installed by the script using a Python venv instead of expecting it to be installed on the host system.

The download URL for the Windows NaCl release is not set up yet. I tested it by dropping the zips into the download cache.

@illwieckz illwieckz closed this Oct 27, 2026
@illwieckz illwieckz reopened this Oct 27, 2026
@illwieckz

Copy link
Copy Markdown
Member

lol @ the misclick

@illwieckz

Copy link
Copy Markdown
Member

I wanted to say: Thanks a lot! 😄️

@slipher

slipher commented Nov 3, 2026 •

Copy link
Copy Markdown
Member Author

@slipher

slipher commented Nov 8, 2026

Copy link
Copy Markdown
Member Author

Ready to go.

@slipher

slipher commented Nov 8, 2026 •

Copy link
Copy Markdown
Member Author

Fixes Unvanquished/Unvanquished#3562. Also fixes Unvanquished/Unvanquished#3286 given that one runs the deps build script; I successfully ran some tests on a VM with 64k pages. Well, you also need to add the max page size to the engine build for that.

@illwieckz illwieckz left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM.

@slipher

slipher commented Nov 29, 2026

Copy link
Copy Markdown
Member Author

I'll rework this slightly to remove the "make vendoring multi-arch armhf libc(++) optional" part since that clashes with #2052. So for now I'll just merge the commits that precede that:

  • gitattributes: force LF for sneaky shell script
  • Deps build: minor naclruntime fixes
  • Deps build: add Scons as native package

@slipher
slipher marked this pull request as draft November 29, 2026 04:22
When spawning the NaCl loader on an arm64 Linux host machine, the engine
always set LD_LIBRARY_PATH=lib-armhf (relative to libpath). But this
should only be done if the engine is arm64. It does not make sense to
set this with an armhf engine on arm64 host, for two reasons:
- CMake does not create lib-armhf for a native armhf engine.
- If the armhf engine is already running, there is presumably a working
  libc anyway.
On Linux and Mac, build the Native Client loader and IRT from source for
for the external_deps package on all supported platforms. (Previously,
only the loader was build and only for Linux amd64.) On Windows,
download a NaCl build built by us rather than Google.

The Saigo SDK is required to build the IRT. It must me installed in the
current directory ($WORK_DIR).

Regarding vendored armhf libs for the arm64 target, they must now be
installed on the build machine rather than copied from the PNaCl SDK
(those are too old).
@slipher
slipher marked this pull request as ready for review December 1, 2026 07:48
@slipher
slipher requested a review from illwieckz December 1, 2026 07:48
@slipher

slipher commented Dec 1, 2026

Copy link
Copy Markdown
Member Author

Ready again.

@illwieckz illwieckz left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM.

@slipher
slipher merged commit 438fe8c into DaemonEngine:master Dec 1, 2026
7 checks passed
@slipher
slipher deleted the naclrt-build branch December 1, 2026 22:05
@illwieckz

Copy link
Copy Markdown
Member

The future is now! 🚀️

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

Successfully merging this pull request may close these issues.

2 participants