pixi icon indicating copy to clipboard operation
pixi copied to clipboard

pixi-build-ros silently fails on Jetson Orin

Open elephantum opened this issue 11 months ago • 4 comments

Checks

  • [x] I have checked that this issue has not already been reported.

  • [x] I have confirmed this bug exists on the latest version of pixi, using pixi --version.

Reproducible example

Commands I ran and their output:

elephantum@ubuntu:~/ainventory-demo$ pixi install -vvv
TRACE pixi_manifest::discovery: Found manifest in directory: "/home/elephantum/ainventory-demo", continuing further.
DEBUG pixi_config: Loading config from /etc/pixi/config.toml
DEBUG pixi_config: Loading config from /home/elephantum/.config/pixi/config.toml
DEBUG pixi_config: Loading config from /home/elephantum/.pixi/config.toml
DEBUG pixi_config: Loading config from /home/elephantum/ainventory-demo/.pixi/config.toml
DEBUG pixi_config: Failed to load local config: /home/elephantum/ainventory-demo/.pixi/config.toml (error: no file was found at /home/elephantum/ainventory-demo/.pixi/config.toml)
DEBUG pixi_core::environment: verifying prefix location is unchanged, with prefix file: /home/elephantum/ainventory-demo/.pixi/envs/conda-meta/pixi_env_prefix
TRACE pixi_command_dispatcher::command_dispatcher_processor: Dispatch background task has started
TRACE pixi_manifest::discovery: Found manifest in directory: "/home/elephantum/ainventory-demo/demostand_launch/pixi.toml", continuing further.
TRACE pixi_manifest::discovery: Found manifest in directory: "/home/elephantum/ainventory-demo", continuing further.
DEBUG pixi_command_dispatcher::instantiate_tool_env: Installing tool env for: pixi-build-ros
DEBUG solve{name="pixi-build-ros" platform=linux-aarch64}: pixi_utils::reqwest: instantiating reqwest Client took 153.823µs
DEBUG solve{name="pixi-build-ros" platform=linux-aarch64}: pixi_command_dispatcher::solve_pixi: fetched 4813 records in 429.207313ms
 INFO backend-metadata{manifest_source=demostand_launch platform=linux-64}: pixi_command_dispatcher::command_dispatcher::instantiate_backend: Instantiated backend [email protected], negotiated API version 2
 INFO pixi_core::lock_file::outdated: the dependencies of environment 'default' for platform linux-64 are out of date because could not initialize the build-backend
 INFO pixi_core::lock_file::outdated: the dependencies of environment 'default' for platform linux-aarch64 are out of date because no package named exists 'ros-jazzy-demostand-launch' (required by '<environment>')
TRACE solve{name="default" platform=linux-aarch64}: pixi_command_dispatcher::solve_pixi::source_metadata_collector: Collecting source metadata for PackageName {
    normalized: None,
    source: "ros-jazzy-demostand-launch",
}
TRACE solve{name="default" platform=linux-64}: pixi_command_dispatcher::solve_pixi::source_metadata_collector: Collecting source metadata for PackageName {
    normalized: None,
    source: "ros-jazzy-demostand-launch",
}
 INFO backend-metadata{manifest_source=demostand_launch platform=linux-aarch64}: pixi_command_dispatcher::command_dispatcher::instantiate_backend: Instantiated backend [email protected], negotiated API version 2
 INFO backend-metadata{manifest_source=demostand_launch platform=linux-64}: pixi_command_dispatcher::command_dispatcher::instantiate_backend: Instantiated backend [email protected], negotiated API version 2
TRACE pixi_command_dispatcher::command_dispatcher_processor: Dispatch background task has finished
Error:   × failed to solve requirements of environment 'default' for platform 'linux-aarch64'
  ├─▶   × failed to extract metadata for package 'ros-jazzy-demostand-launch'
  │   
  ├─▶   × could not initialize the build-backend
  │   
  ├─▶   × failed to communicate with the build backend (pixi-build-ros)
  │     help: Ensure that the build backend implements the JSON-RPC protocol correctly.
  │   
  ╰─▶ The background task closed EOF; restart required

pixi.toml/pyproject.toml file that reproduces my issue (freshly created ROS 2 package according to documentation):

[package.build.backend]
channels = [
  "https://prefix.dev/pixi-build-backends",
  "https://prefix.dev/conda-forge",
]
name = "pixi-build-ros"
version = "*"

[package.build.config]
distro = "jazzy"

pixi info output:

System
------------
       Pixi version: 0.62.1
        TLS backend: rustls
           Platform: linux-aarch64
   Virtual packages: __unix=0=0
                   : __linux=5.15.148=0
                   : __glibc=2.35=0
                   : __cuda=12.6=0
                   : __archspec=1=cortex_a72
          Cache dir: /home/elephantum/.cache/rattler/cache
       Auth storage: /home/elephantum/.rattler/credentials.json
   Config locations: No config files found

Global
------------
            Bin dir: /home/elephantum/.pixi/bin
    Environment dir: /home/elephantum/.pixi/envs
       Manifest dir: /home/elephantum/.pixi/manifests/pixi-global.toml

Workspace
------------
               Name: jetson-demo
            Version: 0.1.0
      Manifest file: /home/elephantum/ainventory-demo/pixi.toml
       Last updated: 20-12-2025 23:05:50

Environments
------------
        Environment: default
           Features: default
           Channels: conda-forge, robostack-jazzy
   Dependency count: 2
       Dependencies: ros-jazzy-ros-base, ros-jazzy-demostand-launch
   Target platforms: linux-aarch64, linux-64
    Prefix location: /home/elephantum/ainventory-demo/.pixi/envs/default

Issue description

When running pixi on Jetson Orin, Jetpack 6.2.1, pixi-build-ros silently fails

When recompiled from source on Jetson, pixi-build-ros starts working

Expected behavior

pixi-build-ros installed from official builds works on Jetson Orin

elephantum avatar Dec 21 '25 19:12 elephantum

If necessary, I can provide remote access to Jetson Orin system

elephantum avatar Dec 21 '25 19:12 elephantum

I don't know any concrete steps for this - are you up for testing it @ruben-arts?

nichtmacho avatar Jan 02 '26 10:01 nichtmacho

I just wanted to stress that rebuild on Jetson fixed this issue. So how closely it is related to rayon pool, I don't know. My guess was that some shared lib was wrong version, like this issue with glibc some time ago

elephantum avatar Jan 02 '26 15:01 elephantum

It is only pixi-build-ros that fails on jetson or also other build backends? Or the other build backends work?

traversaro avatar Jan 13 '26 11:01 traversaro