Skip to content

Flag 'coordination_agent_recoverable' was defined more than once but with differing types. #320

@timpalpant

Description

@timpalpant

Solution to issue cannot be found in the documentation.

  • I checked the documentation.

Issue

When the CUDA build is installed via conda, it fails with the error:

ERROR: Flag 'coordination_agent_recoverable' was defined more than once but with differing types. Defined in files 'external/xla/xla/tsl/distributed_runtime/coordination/coordination_service_agent.cc' and 'external/xla/xla/tsl/distributed_runtime/coordination/coordination_service_agent.cc'.

This error does not occur with the cpu build variant.

To repro: On Ubuntu 22.04:

  1. Installed JAX as described here:
conda create -n test-jax --override-channels -c conda-forge jax 'jaxlib=*=*cuda*'
  1. Try using it:
python -c 'import jax.numpy; jax.numpy.array([1,2,3])'

ERROR: Flag 'coordination_agent_recoverable' was defined more than once but with differing types. Defined in files 'external/xla/xla/tsl/distributed_runtime/coordination/coordination_service_agent.cc' and 'external/xla/xla/tsl/distributed_runtime/coordination/coordination_service_agent.cc'.

Installed packages

# packages in environment at /home/tim/conda/envs/test-jax:
#
# Name                    Version                   Build  Channel
_libgcc_mutex             0.1                 conda_forge    conda-forge
_openmp_mutex             4.5                       2_gnu    conda-forge
bzip2                     1.0.8                h4bc722e_7    conda-forge
c-ares                    1.34.5               hb9d3cd8_0    conda-forge
ca-certificates           2025.8.3             hbd8a1cb_0    conda-forge
cuda-cccl_linux-64        12.9.27              ha770c72_0    conda-forge
cuda-crt-dev_linux-64     12.9.86              ha770c72_2    conda-forge
cuda-crt-tools            12.9.86              ha770c72_2    conda-forge
cuda-cudart               12.9.79              h5888daf_0    conda-forge
cuda-cudart-dev_linux-64  12.9.79              h3f2d84a_0    conda-forge
cuda-cudart-static_linux-64 12.9.79              h3f2d84a_0    conda-forge
cuda-cudart_linux-64      12.9.79              h3f2d84a_0    conda-forge
cuda-cupti                12.9.79              h9ab20c4_0    conda-forge
cuda-cupti-dev            12.9.79              h9ab20c4_0    conda-forge
cuda-nvcc-tools           12.9.86              he02047a_2    conda-forge
cuda-nvrtc                12.9.86              h5888daf_0    conda-forge
cuda-nvtx                 12.9.79              h5888daf_0    conda-forge
cuda-nvvm-tools           12.9.86              h4bc722e_2    conda-forge
cuda-version              12.9                 h4f385c5_3    conda-forge
cudnn                     9.11.0.98            hbcb9cd8_0    conda-forge
importlib-metadata        8.7.0              pyhe01879c_1    conda-forge
jax                       0.7.0              pyhd8ed1ab_0    conda-forge
jax-cuda12-pjrt           0.7.0                    pypi_0    pypi
jax-cuda12-plugin         0.7.0                    pypi_0    pypi
jaxlib                    0.7.0           cuda129py313h2550629_200    conda-forge
ld_impl_linux-64          2.44                 h1423503_1    conda-forge
libabseil                 20250127.1      cxx17_hbbce691_0    conda-forge
libblas                   3.9.0           34_h59b9bed_openblas    conda-forge
libcblas                  3.9.0           34_he106b2a_openblas    conda-forge
libcublas                 12.9.1.4             h9ab20c4_0    conda-forge
libcublas-dev             12.9.1.4             h9ab20c4_0    conda-forge
libcudnn                  9.11.0.98            hf7e9902_0    conda-forge
libcudnn-dev              9.11.0.98            h58dd1b1_0    conda-forge
libcufft                  11.4.1.4             h5888daf_0    conda-forge
libcufft-dev              11.4.1.4             h5888daf_0    conda-forge
libcurand                 10.3.10.19           h9ab20c4_0    conda-forge
libcurand-dev             10.3.10.19           h9ab20c4_0    conda-forge
libcusolver               11.7.5.82            h9ab20c4_1    conda-forge
libcusolver-dev           11.7.5.82            h9ab20c4_1    conda-forge
libcusparse               12.5.10.65           h5888daf_1    conda-forge
libcusparse-dev           12.5.10.65           h5888daf_1    conda-forge
libexpat                  2.7.1                hecca717_0    conda-forge
libffi                    3.4.6                h2dba641_1    conda-forge
libgcc                    15.1.0               h767d61c_4    conda-forge
libgcc-ng                 15.1.0               h69a702a_4    conda-forge
libgfortran               15.1.0               h69a702a_4    conda-forge
libgfortran5              15.1.0               hcea5267_4    conda-forge
libgomp                   15.1.0               h767d61c_4    conda-forge
libgrpc                   1.71.0               h8e591d7_1    conda-forge
liblapack                 3.9.0           34_h7ac8fdf_openblas    conda-forge
liblzma                   5.8.1                hb9d3cd8_2    conda-forge
libmpdec                  4.0.0                hb9d3cd8_0    conda-forge
libnvjitlink              12.9.86              h5888daf_1    conda-forge
libopenblas               0.3.30          pthreads_h94d23a6_2    conda-forge
libprotobuf               5.29.3               h7460b1f_2    conda-forge
libre2-11                 2025.06.26           hba17884_0    conda-forge
libsqlite                 3.50.4               h0c1763c_0    conda-forge
libstdcxx                 15.1.0               h8f9b012_4    conda-forge
libuuid                   2.38.1               h0b41bf4_0    conda-forge
libzlib                   1.3.1                hb9d3cd8_2    conda-forge
ml_dtypes                 0.5.1           py313ha87cce1_0    conda-forge
nccl                      2.27.7.1             h49b9d9a_0    conda-forge
ncurses                   6.5                  h2d0b736_3    conda-forge
numpy                     2.3.2           py313hf6604e3_0    conda-forge
openssl                   3.5.2                h26f9b46_0    conda-forge
opt_einsum                3.4.0              pyhd8ed1ab_1    conda-forge
pip                       25.2               pyh145f28c_0    conda-forge
python                    3.13.5          hec9711d_102_cp313    conda-forge
python_abi                3.13                    8_cp313    conda-forge
re2                       2025.06.26           h9925aae_0    conda-forge
readline                  8.2                  h8c095d6_2    conda-forge
scipy                     1.16.1          py313h3a520b0_0    conda-forge
tk                        8.6.13          noxft_hd72426e_102    conda-forge
tzdata                    2025b                h78e105d_0    conda-forge
zipp                      3.23.0             pyhd8ed1ab_0    conda-forge

Environment info

active environment : test-jax
    active env location : /home/tim/conda/envs/test-jax
            shell level : 2
       user config file : /home/tim/.condarc
 populated config files : /home/bizon/anaconda3/.condarc
                          /home/tim/.condarc
          conda version : 24.7.1
    conda-build version : 24.11.2
         python version : 3.10.12.final.0
                 solver : libmamba (default)
       virtual packages : __archspec=1=zen3
                          __conda=24.7.1=0
                          __cuda=12.7=0
                          __glibc=2.35=0
                          __linux=6.5.0=0
                          __unix=0=0
       base environment : /home/bizon/anaconda3  (writable)
      conda av data dir : /home/bizon/anaconda3/etc/conda
  conda av metadata url : None
           channel URLs : https://conda.anaconda.org/conda-forge/linux-64
                          https://conda.anaconda.org/conda-forge/noarch
                          https://repo.anaconda.com/pkgs/main/linux-64
                          https://repo.anaconda.com/pkgs/main/noarch
                          https://repo.anaconda.com/pkgs/r/linux-64
                          https://repo.anaconda.com/pkgs/r/noarch
          package cache : /home/tim/conda/pkgs
                          /home/bizon/anaconda3/pkgs
       envs directories : /home/tim/conda/envs
                          /home/bizon/anaconda3/envs
                          /home/tim/.conda/envs
               platform : linux-64
             user-agent : conda/24.7.1 requests/2.32.3 CPython/3.10.12 Linux/6.5.0-41-generic ubuntu/22.04.5 glibc/2.35 solver/libmamba conda-libmamba-solver/24.9.0 libmambapy/1.5.8
                UID:GID : 1008:1001
             netrc file : None
           offline mode : False

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions