raylib 6.0 + linux arm64 builds - #692
Open
Mantissagithub wants to merge 1 commit into
Open
Mantissagithub wants to merge 1 commit into
Mantissagithub wants to merge 1 commit into
Conversation
- pick raylib linux_amd64/linux_arm64 from uname -m, link -lX11 (6.0 static lib needs it) - web: 6.0 renamed the archive to libraylib.web.a - box2d: build from source on linux arm64, no release upstream (capnspacehook/box2d#3) - -fsigned-char: char is unsigned on aarch64, broke nmmo3 terrain gen - nccl lib search uses the host multiarch dir - DrawCircleGradient takes Vector2 (boss_fight, checkers, go), frameCount -> keyframeCount (tower_climb)
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
closes #320 (the "we implement raylib 6.0" + box2d arm build items)
adds linux arm64 builds (gh200 / gb200 / dgx spark / arm cloud boxes) by moving to raylib 6.0, which ships a
linux_arm64release.changes
build.sh
raylib-6.0_linux_amd64/linux_arm64fromuname -m-lX11on linux, the 6.0 static lib calls X11 directly (undefined reference to XConvertSelectionwithout it)libraylib.web.adf25d747with the same flags as the fork's release.yml, including-DB2_MAX_WORLDS=65534-fsigned-charfor clang and nvcc host code. char is unsigned on aarch64 linux and nmmo3 relies on-1sentinels (see below). no-op on x86 and apple silicon/usr/lib/$(uname -m)-linux-gnuinstead of hardcoded x86_64raylib 6.0 api changes
DrawCircleGradienttakes aVector2center: boss_fight, checkers, goModelAnimation.frameCount->keyframeCount: tower_climb. 6.0 still samples gltf at 60fps and integer frames don't blend, so poses are unchangedthe nmmo3 char bug
flood_fill/cellular_automatastore-1incharbuffers and checkoutput[adr] == -1. with unsigned char those checks never match, biomes stay 255, andALL_STONE[season]etc read out of bounds (asan:index 255 out of bounds for type 'char[4]'). terrain for a fixed seed (512x512, rng=42):9d37398005190c20adbdce1f0f3e2b27-fsigned-char9d37398005190c20also checked with
-ffp-contract=offon both, same hash, so fma contraction on arm doesn't change the maps. building every env with-funsigned-charon x86 and diffing warnings only flagged nmmo3.tested
--cpubuilds 76/78 envs, same as raylib 5.5 before the change (matsci needs lammps, robot_arm is cuda only). native trainer builds for breakout, boss_fight, checkers, go, tower_climb, impulse_wars, nmmo3. breakout trains fine (~5.8M sps).--webbuilds breakout (emsdk 4.0.10)ubuntu-24.04-arm/ubuntu-24.04):--cpubuilds for every folder in ocean/, 82/85 on both archs with identical failures (matsci, robot_arm, osrs which is the shared dir for osrs_*). native trainer compiles and links on arm64 with nvcc 13 (NVCC_ARCH=sm_90, nvml stubs, no gpu on the runner) for breakout, nmmo3, impulse_wars, tower_climb. run: https://github.com/Mantissagithub/PufferLib/actions/runs/34910215978not tested
./build.sh breakout && ./puffer trainthat closes the gap