Skip to content

Fixes first CLI runs failing on aarch64 without a manual LD_PRELOAD - #6458

Merged
myurasov-nv merged 4 commits into
isaac-sim:developfrom
myurasov-nv:my-aarch64-first-contact
Jul 13, 2026
Merged

myurasov-nv merged 4 commits into
isaac-sim:developfrom
myurasov-nv:my-aarch64-first-contact

Conversation

@myurasov-nv

Copy link
Copy Markdown
Member

Description

On Linux aarch64 (e.g. DGX Spark), the very first ./isaaclab.sh run fails: Isaac Sim refuses to start until the system libgomp is preloaded, and the CLI only prints a warning banner and exits 1. The CLI now preloads /lib/aarch64-linux-gnu/libgomp.so.1 automatically for its python subprocesses, mirroring what the install CI utilities already do. Also documents OMNI_KIT_ACCEPT_EULA=yes for non-interactive first launches and the aarch64 build path in the source installation guide.

Before After
warning banner asking to export LD_PRELOAD by hand; run exits 1 same command trains and exits 0 with no manual environment setup

Reproduction

  1. Fresh install per the pip installation guide on Linux aarch64; do not export LD_PRELOAD.

  2. Run:

    ./isaaclab.sh train --rl_library rsl_rl --task Isaac-Cartpole-Direct --num_envs 16 \
      presets=newton_mjwarp --max_iterations 5
  3. The run prints WARNING: For the application to run, some shared libraries must be loaded and exits 1.

Type of change

  • Bug fix (non-breaking change which fixes an issue)

Checklist

  • I have read and understood the contribution guidelines
  • I have run the pre-commit checks with ./isaaclab.sh --format
  • I have made corresponding changes to the documentation
  • My changes generate no new warnings
  • I have added tests that prove my fix is effective or that my feature works
  • I have added a changelog fragment under source/<pkg>/changelog.d/ for every touched package (do not edit CHANGELOG.rst or bump extension.toml — CI handles that)
  • I have added my name to the CONTRIBUTORS.md or my name already exists there

@github-actions github-actions Bot added documentation Improvements or additions to documentation isaac-lab Related to Isaac Lab team labels Jul 10, 2026
@myurasov-nv
myurasov-nv force-pushed the my-aarch64-first-contact branch from cf3b5aa to cb0074c Compare July 11, 2026 05:29
@myurasov-nv

myurasov-nv commented Jul 11, 2026 •

Copy link
Copy Markdown
Member Author

Update: the earlier failures were pre-existing (pillow prebundle issue, fixed upstream in #6437; cartpole tile sizes, fixed in #6463); this branch is rebased onto both fixes.

@myurasov-nv
myurasov-nv marked this pull request as ready for review July 11, 2026 05:30
@greptile-apps

greptile-apps Bot commented Jul 11, 2026

Copy link
Copy Markdown
Contributor

Greptile Summary

This PR makes first Isaac Lab CLI runs work more smoothly on Linux aarch64. The main changes are:

  • Automatic system libgomp preloading for CLI Python subprocesses on Linux aarch64.
  • Non-interactive EULA guidance for first Isaac Sim launches.
  • A source-install note for the aarch64 Isaac Sim build directory.
  • A changelog fragment for the aarch64 first-run fix.

Confidence Score: 5/5

The changed CLI flow looks safe to merge after a small documentation cleanup.

  • Current CLI callers keep the inherited environment and gain the intended aarch64 preload.
  • The new imports and type annotations fit the existing module and supported Python version.
  • The only issue found is an install-guide ambiguity around repeated architecture-specific paths.

docs/source/setup/installation/source_installation.rst

Important Files Changed

Filename Overview
source/isaaclab/isaaclab/cli/utils.py Adds a Linux aarch64 helper that injects the system libgomp preload into CLI Python subprocess environments.
docs/source/setup/installation/pip_installation.rst Documents OMNI_KIT_ACCEPT_EULA=yes for non-interactive first launches.
docs/source/setup/installation/source_installation.rst Adds an aarch64 path note, but the wider source-install path examples may still be easy to follow incorrectly.
source/isaaclab/changelog.d/my-aarch64-first-contact.rst Adds a changelog entry for the CLI and documentation updates.

Reviews (1): Last reviewed commit: "Preload system libgomp automatically on ..." | Re-trigger Greptile

@@ -77,7 +77,7 @@ variables to your terminal for the remaining of the installation instructions:

.. code:: bash

# Isaac Sim root directory
# Isaac Sim root directory (on aarch64, replace x86_64 with aarch64)

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

P2 Architecture Path Remains Ambiguous

This note tells aarch64 users to change the build directory only on the ISAACSIM_PATH export, while the same source-install flow still contains later literal _build/linux-x86_64/release examples. A user can follow this updated line, then copy the later x86_64 symlink or verification path and end up with a broken source install on aarch64.

Suggested change
# Isaac Sim root directory (on aarch64, replace x86_64 with aarch64)
# Isaac Sim root directory (use linux-aarch64 instead of linux-x86_64 on aarch64)

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

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

Dear Greptile! Applied: the export comment now uses your suggested wording, and the source-build symlink example in src_symlink_isaacsim.rst gained the same aarch64 note (commit 491db45).

@myurasov-nv
myurasov-nv force-pushed the my-aarch64-first-contact branch from cb0074c to a213fe8 Compare July 11, 2026 23:53
@myurasov-nv

myurasov-nv commented Jul 12, 2026 •

Copy link
Copy Markdown
Member Author

The ARM CI failures are a runner network outage (PyPI unreachable during pip install), unrelated to this change.

Comment thread source/isaaclab/isaaclab/cli/utils.py Outdated
Comment on lines +538 to +551
here makes first runs through the CLI work out of the box. Returns the env unchanged
on other platforms or when a libgomp is already preloaded.
"""
if platform.system() != "Linux" or platform.machine().lower() not in ("aarch64", "arm64"):
return env
libgomp = "/lib/aarch64-linux-gnu/libgomp.so.1"
if not os.path.exists(libgomp):
return env
merged = dict(os.environ if env is None else env)
preload = merged.get("LD_PRELOAD", "")
if "libgomp" in preload:
return env
merged["LD_PRELOAD"] = f"{libgomp}:{preload}" if preload else libgomp
return merged

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

There's an in-repo precedent worth aligning with: the conda activation hook this repo generates (cli/commands/envs.py, torch_gomp.sh) solves the same problem class and does two things differently — it resolves the library programmatically instead of hardcoding a distro path, and it checks idempotence by exact LD_PRELOAD entry rather than substring.

For the system libgomp here it gets even simpler: LD_PRELOAD accepts a bare soname, and ld.so resolves it through the ldconfig cache on any distro. That deletes both the Debian-multiarch path and the os.path.exists check — and removes the silent no-op on RHEL/SLES-layout arm systems, where this helper currently falls back to the broken first-run banner without a hint. The substring check also over-matches (a user preloading a different gomp build would be skipped); comparing path basenames per entry keeps the idempotence exact, including for users who already exported the full path per the docs.

Suggested change
here makes first runs through the CLI work out of the box. Returns the env unchanged
on other platforms or when a libgomp is already preloaded.
"""
if platform.system() != "Linux" or platform.machine().lower() not in ("aarch64", "arm64"):
return env
libgomp = "/lib/aarch64-linux-gnu/libgomp.so.1"
if not os.path.exists(libgomp):
return env
merged = dict(os.environ if env is None else env)
preload = merged.get("LD_PRELOAD", "")
if "libgomp" in preload:
return env
merged["LD_PRELOAD"] = f"{libgomp}:{preload}" if preload else libgomp
return merged
here makes first runs through the CLI work out of the box. The bare soname is used so
``ld.so`` resolves the library through the ldconfig cache on any distro. Returns the
env unchanged on other platforms or when a libgomp is already preloaded.
"""
if platform.system() != "Linux" or platform.machine().lower() not in ("aarch64", "arm64"):
return env
libgomp = "libgomp.so.1"
merged = dict(os.environ if env is None else env)
preload = merged.get("LD_PRELOAD", "")
if any(os.path.basename(entry) == libgomp for entry in preload.split(":") if entry):
return env
merged["LD_PRELOAD"] = f"{libgomp}:{preload}" if preload else libgomp
return merged

Longer-term it may be worth this and the conda hook sharing one implementation (or cross-referencing comments) so the two preload WARs don't drift.

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

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

Applied in the latest commit: uses the bare soname libgomp.so.1 so ld.so resolves it through the ldconfig cache (dropping the hardcoded Debian-multiarch path and the os.path.exists no-op that silently skipped RHEL/SLES-layout arm systems), and the idempotence check now compares per-entry basenames instead of a substring match. Verified on an aarch64 host that LD_PRELOAD=libgomp.so.1 resolves. Agree the conda hook and this WAR should share one implementation eventually; left that as a follow-up rather than widening this PR.

@myurasov-nv
myurasov-nv merged commit f6f966d into isaac-sim:develop Jul 13, 2026
38 checks passed
matthewtrepte pushed a commit to matthewtrepte/IsaacLab that referenced this pull request Aug 4, 2026
…saac-sim#6458)

# Description

On Linux aarch64 (e.g. DGX Spark), the very first `./isaaclab.sh` run
fails: Isaac Sim refuses to start until the system libgomp is preloaded,
and the CLI only prints a warning banner and exits 1. The CLI now
preloads `/lib/aarch64-linux-gnu/libgomp.so.1` automatically for its
python subprocesses, mirroring what the install CI utilities already do.
Also documents `OMNI_KIT_ACCEPT_EULA=yes` for non-interactive first
launches and the aarch64 build path in the source installation guide.

| Before | After |
| ------ | ----- |
| warning banner asking to export `LD_PRELOAD` by hand; run exits 1 |
same command trains and exits 0 with no manual environment setup |

## Reproduction

1. Fresh install per the pip installation guide on Linux aarch64; do not
export `LD_PRELOAD`.
2. Run:

   ```bash
./isaaclab.sh train --rl_library rsl_rl --task Isaac-Cartpole-Direct
--num_envs 16 \
     presets=newton_mjwarp --max_iterations 5
   ```

3. The run prints `WARNING: For the application to run, some shared
libraries must be loaded` and exits 1.

## Type of change

- Bug fix (non-breaking change which fixes an issue)

## Checklist

- [x] I have read and understood the [contribution
guidelines](https://isaac-sim.github.io/IsaacLab/main/source/refs/contributing.html)
- [x] I have run the [`pre-commit` checks](https://pre-commit.com/) with
`./isaaclab.sh --format`
- [x] I have made corresponding changes to the documentation
- [x] My changes generate no new warnings
- [ ] I have added tests that prove my fix is effective or that my
feature works
- [x] I have added a changelog fragment under
`source/<pkg>/changelog.d/` for every touched package (do **not** edit
`CHANGELOG.rst` or bump `extension.toml` — CI handles that)
- [x] I have added my name to the `CONTRIBUTORS.md` or my name already
exists there

---------

Co-authored-by: Mikhail Yuraaov <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

documentation Improvements or additions to documentation isaac-lab Related to Isaac Lab team

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants