Skip to content

Fix premake build on systems without the 'arch' command - #806

Open
ywiyogo wants to merge 1 commit into
isaac-sim:mainfrom
ywiyogo:fix/premake-arch-fallback
Open

Fix premake build on systems without the 'arch' command#806
ywiyogo wants to merge 1 commit into
isaac-sim:mainfrom
ywiyogo:fix/premake-arch-fallback

Conversation

@ywiyogo

@ywiyogo ywiyogo commented Sep 2, 2026

Copy link
Copy Markdown

Summary

premake5-isaacsim.lua:340 shells out to the Unix arch command via io.popen. The arch utility was removed from recent GNU coreutils releases, so on systems with newer coreutils the command is not found, io.popen returns no output, and the Lua local arch ends up nil, causing the build to fail with:

  sh: line 1: arch: command not found                                                                                                                                                                                                                               
  ** Error: premake5-isaacsim.lua(348): attempt to concatenate a nil value (local 'arch')                                                                                                                                                                           

Fix

Fall back to uname -m when arch is unavailable:

  local arch = io.popen("arch 2>/dev/null || uname -m", "r"):read("*l")                                                                                                                                                                                             

Testing

Builds successfully on Arch Linux (coreutils 9.11) with ./build.sh --skip-compiler-version-check, where it previously failed.

The 'arch' utility was removed from recent GNU coreutils releases, so
'io.popen("arch")' returns no output and the 'arch' local ends up nil,
failing with 'attempt to concatenate a nil value' in
create_test_experience_runner() (premake5-isaacsim.lua:348).

Fall back to 'uname -m' when 'arch' is unavailable.

Signed-off-by: Yongkie Wiyogo <4080600+ywiyogo@users.noreply.github.com>
@ywiyogo
ywiyogo force-pushed the fix/premake-arch-fallback branch 2 times, most recently from 5b0a85a to 4cd8789 Compare September 3, 2026 03:18
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.

1 participant