CUDNN with GLIBC 2.42 (original) (raw)

I’m trying to build JAX with local Clang and local CUDA but I got this error:

ERROR: /home/medaminezghal/Desktop/jaxlib/src/jax-jax-v0.8.0/jaxlib/cuda/BUILD:75:13: Compiling jaxlib/gpu/make_batch_pointers.cu.cc failed: (Exit 2): crosstool_wrapper_driver_is_not_gcc failed: error executing CppCompile command (from target //jaxlib/cuda:cuda_make_batch_pointers) 
  (cd /home/medaminezghal/Desktop/jaxlib/src/bazel-output/8093a66f0c1ed2fd4d36dbfbcc6ee875/execroot/__main__ && \
  exec env - \
    CLANG_COMPILER_PATH=/usr/bin/clang \
    CLANG_CUDA_COMPILER_PATH=/usr/bin/clang \
    GRPC_BAZEL_RUNTIME=1 \
    PATH=/usr/local/sbin:/usr/local/bin:/usr/bin:/opt/cuda/bin:/opt/cuda/nsight_compute:/opt/cuda/nsight_systems/bin:/usr/bin/site_perl:/usr/bin/vendor_perl:/usr/bin/core_perl \
    PROTOCOL_BUFFERS_PYTHON_IMPLEMENTATION=upb \
    PWD=/proc/self/cwd \
    TF_NVCC_CLANG=1 \
  external/local_config_cuda/crosstool/clang/bin/crosstool_wrapper_driver_is_not_gcc -MD -MF bazel-out/k8-opt/bin/jaxlib/cuda/_objs/cuda_make_batch_pointers/make_batch_pointers.cu.pic.d '-frandom-seed=bazel-out/k8-opt/bin/jaxlib/cuda/_objs/cuda_make_batch_pointers/make_batch_pointers.cu.pic.o' '-DEIGEN_MAX_ALIGN_BYTES=64' -DEIGEN_ALLOW_UNALIGNED_SCALARS '-DEIGEN_USE_AVX512_GEMM_KERNELS=0' '-DGOOGLE_PROTOBUF_USING_BAZEL=1' '-DJAX_GPU_CUDA=1' '-DCLANG_CUDA=1' -iquote . -iquote bazel-out/k8-opt/bin -iquote external/local_config_cuda -iquote bazel-out/k8-opt/bin/external/local_config_cuda -iquote external/cuda_cudart -iquote bazel-out/k8-opt/bin/external/cuda_cudart -iquote external/cuda_cublas -iquote bazel-out/k8-opt/bin/external/cuda_cublas -iquote external/cuda_cccl -iquote bazel-out/k8-opt/bin/external/cuda_cccl -iquote external/cuda_nvtx -iquote bazel-out/k8-opt/bin/external/cuda_nvtx -iquote external/cuda_nvcc -iquote bazel-out/k8-opt/bin/external/cuda_nvcc -iquote external/cuda_cusolver -iquote bazel-out/k8-opt/bin/external/cuda_cusolver -iquote external/cuda_cufft -iquote bazel-out/k8-opt/bin/external/cuda_cufft -iquote external/cuda_cusparse -iquote bazel-out/k8-opt/bin/external/cuda_cusparse -iquote external/cuda_curand -iquote bazel-out/k8-opt/bin/external/cuda_curand -iquote external/cuda_cupti -iquote bazel-out/k8-opt/bin/external/cuda_cupti -iquote external/cuda_nvml -iquote bazel-out/k8-opt/bin/external/cuda_nvml -iquote external/cuda_nvjitlink -iquote bazel-out/k8-opt/bin/external/cuda_nvjitlink -iquote external/cuda_crt -iquote bazel-out/k8-opt/bin/external/cuda_crt -iquote external/cuda_cudnn -iquote bazel-out/k8-opt/bin/external/cuda_cudnn -iquote external/xla -iquote bazel-out/k8-opt/bin/external/xla -iquote external/tsl -iquote bazel-out/k8-opt/bin/external/tsl -iquote external/com_google_absl -iquote bazel-out/k8-opt/bin/external/com_google_absl -iquote external/local_config_tensorrt -iquote bazel-out/k8-opt/bin/external/local_config_tensorrt -iquote external/eigen_archive -iquote bazel-out/k8-opt/bin/external/eigen_archive -iquote external/ml_dtypes_py -iquote bazel-out/k8-opt/bin/external/ml_dtypes_py -iquote external/com_google_protobuf -iquote bazel-out/k8-opt/bin/external/com_google_protobuf -iquote external/zlib -iquote bazel-out/k8-opt/bin/external/zlib -iquote external/nvshmem -iquote bazel-out/k8-opt/bin/external/nvshmem -iquote external/local_config_nccl -iquote bazel-out/k8-opt/bin/external/local_config_nccl -Ibazel-out/k8-opt/bin/external/local_config_cuda/cuda/_virtual_includes/cuda_headers -Ibazel-out/k8-opt/bin/external/cuda_cudart/_virtual_includes/headers -Ibazel-out/k8-opt/bin/external/cuda_cublas/_virtual_includes/headers -Ibazel-out/k8-opt/bin/external/cuda_cccl/_virtual_includes/headers -Ibazel-out/k8-opt/bin/external/cuda_nvtx/_virtual_includes/headers -Ibazel-out/k8-opt/bin/external/cuda_nvcc/_virtual_includes/headers -Ibazel-out/k8-opt/bin/external/cuda_cusolver/_virtual_includes/headers -Ibazel-out/k8-opt/bin/external/cuda_cufft/_virtual_includes/headers -Ibazel-out/k8-opt/bin/external/cuda_cusparse/_virtual_includes/headers -Ibazel-out/k8-opt/bin/external/cuda_curand/_virtual_includes/headers -Ibazel-out/k8-opt/bin/external/cuda_cupti/_virtual_includes/headers -Ibazel-out/k8-opt/bin/external/cuda_nvml/_virtual_includes/headers -Ibazel-out/k8-opt/bin/external/cuda_nvjitlink/_virtual_includes/headers -Ibazel-out/k8-opt/bin/external/cuda_crt/_virtual_includes/headers -Ibazel-out/k8-opt/bin/external/cuda_cudnn/_virtual_includes/headers -Ibazel-out/k8-opt/bin/external/local_config_tensorrt/_virtual_includes/tensorrt_headers -Ibazel-out/k8-opt/bin/external/com_google_protobuf/src/google/protobuf/_virtual_includes/protobuf -Ibazel-out/k8-opt/bin/external/com_google_protobuf/src/google/protobuf/_virtual_includes/internal_visibility -Ibazel-out/k8-opt/bin/external/com_google_protobuf/src/google/protobuf/_virtual_includes/micro_string -Ibazel-out/k8-opt/bin/external/com_google_protobuf/src/google/protobuf/_virtual_includes/arena -Ibazel-out/k8-opt/bin/external/com_google_protobuf/src/google/protobuf/_virtual_includes/arena_align -Ibazel-out/k8-opt/bin/external/com_google_protobuf/src/google/protobuf/_virtual_includes/port -Ibazel-out/k8-opt/bin/external/com_google_protobuf/src/google/protobuf/stubs/_virtual_includes/lite -Ibazel-out/k8-opt/bin/external/com_google_protobuf/src/google/protobuf/_virtual_includes/arena_allocation_policy -Ibazel-out/k8-opt/bin/external/com_google_protobuf/src/google/protobuf/_virtual_includes/arena_cleanup -Ibazel-out/k8-opt/bin/external/com_google_protobuf/src/google/protobuf/_virtual_includes/string_block -Ibazel-out/k8-opt/bin/external/com_google_protobuf/src/google/protobuf/_virtual_includes/protobuf_lite -Ibazel-out/k8-opt/bin/external/com_google_protobuf/src/google/protobuf/_virtual_includes/endian -Ibazel-out/k8-opt/bin/external/com_google_protobuf/src/google/protobuf/_virtual_includes/varint_shuffle -Ibazel-out/k8-opt/bin/external/com_google_protobuf/src/google/protobuf/io/_virtual_includes/io -Ibazel-out/k8-opt/bin/external/com_google_protobuf/src/google/protobuf/io/_virtual_includes/io_win32 -Ibazel-out/k8-opt/bin/external/com_google_protobuf/third_party/utf8_range/_virtual_includes/utf8_validity -Ibazel-out/k8-opt/bin/external/com_google_protobuf/third_party/utf8_range/_virtual_includes/utf8_range -Ibazel-out/k8-opt/bin/external/com_google_protobuf/src/google/protobuf/io/_virtual_includes/gzip_stream -Ibazel-out/k8-opt/bin/external/com_google_protobuf/src/google/protobuf/stubs/_virtual_includes/stubs -Ibazel-out/k8-opt/bin/external/com_google_protobuf/src/google/protobuf/io/_virtual_includes/printer -Ibazel-out/k8-opt/bin/external/com_google_protobuf/src/google/protobuf/io/_virtual_includes/zero_copy_sink -Ibazel-out/k8-opt/bin/external/com_google_protobuf/src/google/protobuf/io/_virtual_includes/tokenizer -Ibazel-out/k8-opt/bin/external/com_google_protobuf/src/google/protobuf/_virtual_includes/any_proto -Ibazel-out/k8-opt/bin/external/com_google_protobuf/src/google/protobuf/_virtual_includes/api_proto -Ibazel-out/k8-opt/bin/external/com_google_protobuf/src/google/protobuf/_virtual_includes/source_context_proto -Ibazel-out/k8-opt/bin/external/com_google_protobuf/src/google/protobuf/_virtual_includes/type_proto -Ibazel-out/k8-opt/bin/external/com_google_protobuf/src/google/protobuf/compiler/_virtual_includes/plugin_proto -Ibazel-out/k8-opt/bin/external/com_google_protobuf/src/google/protobuf/_virtual_includes/descriptor_proto -Ibazel-out/k8-opt/bin/external/com_google_protobuf/src/google/protobuf/_virtual_includes/duration_proto -Ibazel-out/k8-opt/bin/external/com_google_protobuf/src/google/protobuf/_virtual_includes/empty_proto -Ibazel-out/k8-opt/bin/external/com_google_protobuf/src/google/protobuf/_virtual_includes/field_mask_proto -Ibazel-out/k8-opt/bin/external/com_google_protobuf/src/google/protobuf/_virtual_includes/struct_proto -Ibazel-out/k8-opt/bin/external/com_google_protobuf/src/google/protobuf/_virtual_includes/timestamp_proto -Ibazel-out/k8-opt/bin/external/com_google_protobuf/src/google/protobuf/_virtual_includes/wrappers_proto -Ibazel-out/k8-opt/bin/external/nvshmem/_virtual_includes/nvshmem_config -Ibazel-out/k8-opt/bin/external/local_config_nccl/_virtual_includes/hermetic_nccl_config -isystem external/local_config_cuda/cuda -isystem bazel-out/k8-opt/bin/external/local_config_cuda/cuda -isystem external/cuda_cudart/include -isystem bazel-out/k8-opt/bin/external/cuda_cudart/include -isystem external/cuda_cublas/include -isystem bazel-out/k8-opt/bin/external/cuda_cublas/include -isystem external/cuda_cccl/include/cccl -isystem bazel-out/k8-opt/bin/external/cuda_cccl/include/cccl -isystem external/cuda_nvtx/include -isystem bazel-out/k8-opt/bin/external/cuda_nvtx/include -isystem external/cuda_nvcc/include -isystem bazel-out/k8-opt/bin/external/cuda_nvcc/include -isystem external/cuda_cusolver/include -isystem bazel-out/k8-opt/bin/external/cuda_cusolver/include -isystem external/cuda_cufft/include -isystem bazel-out/k8-opt/bin/external/cuda_cufft/include -isystem external/cuda_cusparse/include -isystem bazel-out/k8-opt/bin/external/cuda_cusparse/include -isystem external/cuda_curand/include -isystem bazel-out/k8-opt/bin/external/cuda_curand/include -isystem external/cuda_cupti/include -isystem bazel-out/k8-opt/bin/external/cuda_cupti/include -isystem external/cuda_nvml/include -isystem bazel-out/k8-opt/bin/external/cuda_nvml/include -isystem external/cuda_nvjitlink/include -isystem bazel-out/k8-opt/bin/external/cuda_nvjitlink/include -isystem external/cuda_crt/include -isystem bazel-out/k8-opt/bin/external/cuda_crt/include -isystem external/cuda_cudnn/include -isystem bazel-out/k8-opt/bin/external/cuda_cudnn/include -isystem external/eigen_archive -isystem bazel-out/k8-opt/bin/external/eigen_archive -isystem external/eigen_archive/mkl_include -isystem bazel-out/k8-opt/bin/external/eigen_archive/mkl_include -isystem external/zlib -isystem bazel-out/k8-opt/bin/external/zlib -fmerge-all-constants -Wno-builtin-macro-redefined '-D__DATE__="redacted"' '-D__TIMESTAMP__="redacted"' '-D__TIME__="redacted"' -fPIC -U_FORTIFY_SOURCE '-D_FORTIFY_SOURCE=1' -fstack-protector -Wall -fno-omit-frame-pointer -no-canonical-prefixes -DNDEBUG -g0 -O2 -ffunction-sections -fdata-sections '--cuda-path=external/cuda_nvcc' '-fvisibility=hidden' -Wno-sign-compare -Wno-unknown-warning-option -Wno-stringop-truncation -Wno-array-parameter -Wno-deprecated-register -Wno-register '-DMLIR_PYTHON_PACKAGE_PREFIX=jaxlib.mlir.' '-DNB_DOMAIN=jax' -DGRPC_BAZEL_BUILD -Wno-gnu-offsetof-extensions -Qunused-arguments '-Werror=mismatched-tags' '-Wno-error=c23-extensions' -mavx '-std=c++17' -x cuda '-DGOOGLE_CUDA=1' '--no-cuda-include-ptx=all' '--cuda-feature=+ptx87' '--cuda-gpu-arch=sm_75' '--cuda-gpu-arch=sm_80' '--cuda-gpu-arch=sm_86' '--cuda-gpu-arch=sm_87' '--cuda-gpu-arch=sm_88' '--cuda-gpu-arch=sm_89' '--cuda-gpu-arch=sm_90' '--cuda-gpu-arch=sm_90a' '--cuda-gpu-arch=sm_100' '--cuda-gpu-arch=sm_100a' '--cuda-gpu-arch=sm_103' '--cuda-gpu-arch=sm_103a' '--cuda-gpu-arch=sm_110' '--cuda-gpu-arch=sm_110a' '--cuda-gpu-arch=sm_120' '--cuda-gpu-arch=sm_120a' '--cuda-gpu-arch=sm_121' '--cuda-gpu-arch=sm_121a' '--cuda-include-ptx=sm_121' '--cuda-gpu-arch=sm_121' '-Xcuda-fatbinary=--compress-all' '-nvcc_options=expt-relaxed-constexpr' -c jaxlib/gpu/make_batch_pointers.cu.cc -o bazel-out/k8-opt/bin/jaxlib/cuda/_objs/cuda_make_batch_pointers/make_batch_pointers.cu.pic.o)
# Configuration: 6d80ba670028b0e0c8d6cc6e06f65ef48b4cb5c2aa3d66f9b796fbdad5d1a408
# Execution platform: @@local_execution_config_platform//:platform
/usr/include/bits/stdlib.h(37): error: linkage specification is incompatible with previous "realpath" (declared at line 940 of /usr/include/stdlib.h)
   realpath (const char *__restrict __name, char * __restrict const __attribute__ ((__pass_object_size__ (1 > 1))) __resolved) noexcept (true)
   ^

/usr/include/bits/stdlib.h(72): error: linkage specification is incompatible with previous "ptsname_r" (declared at line 1140 of /usr/include/stdlib.h)
   ptsname_r (int __fd, char * const __attribute__ ((__pass_object_size__ (1 > 1))) __buf, size_t __buflen) noexcept (true)
   ^

/usr/include/bits/stdlib.h(91): error: linkage specification is incompatible with previous "wctomb" (declared at line 1075 of /usr/include/stdlib.h)
   wctomb (char * const __attribute__ ((__pass_object_size__ (1 > 1))) __s, wchar_t __wchar) noexcept (true)
   ^

/usr/include/bits/stdlib.h(129): error: linkage specification is incompatible with previous "mbstowcs" (declared at line 1079 of /usr/include/stdlib.h)
   mbstowcs (wchar_t * __restrict const __attribute__ ((__pass_object_size__ (1 > 1))) __dst, const char *__restrict __src, size_t __len) noexcept (true)
   ^

/usr/include/bits/stdlib.h(159): error: linkage specification is incompatible with previous "wcstombs" (declared at line 1083 of /usr/include/stdlib.h)
   wcstombs (char * __restrict const __attribute__ ((__pass_object_size__ (1 > 1))) __dst, const wchar_t *__restrict __src, size_t __len) noexcept (true)
   ^

/usr/include/bits/string_fortified.h(77): error: linkage specification is incompatible with previous "strcpy" (declared at line 141 of /usr/include/string.h)
   strcpy (char * __restrict const __attribute__ ((__pass_object_size__ (1 > 1))) __dest, const char *__restrict __src) noexcept (true)
   ^

/usr/include/bits/string_fortified.h(86): error: linkage specification is incompatible with previous "stpcpy" (declared at line 491 of /usr/include/string.h)
   stpcpy (char * __restrict const __attribute__ ((__pass_object_size__ (1 > 1))) __dest, const char *__restrict __src) noexcept (true)
   ^

/usr/include/bits/string_fortified.h(96): error: linkage specification is incompatible with previous "strncpy" (declared at line 144 of /usr/include/string.h)
   strncpy (char * __restrict const __attribute__ ((__pass_object_size__ (1 > 1))) __dest, const char *__restrict __src, size_t __len) noexcept (true)
   ^

/usr/include/bits/string_fortified.h(107): error: linkage specification is incompatible with previous "stpncpy" (declared at line 499 of /usr/include/string.h)
   stpncpy (char * const __attribute__ ((__pass_object_size__ (1 > 1))) __dest, const char *__src, size_t __n) noexcept (true)
   ^

/usr/include/bits/string_fortified.h(136): error: linkage specification is incompatible with previous "strcat" (declared at line 149 of /usr/include/string.h)
   strcat (char * __restrict const __attribute__ ((__pass_object_size__ (1 > 1))) __dest, const char *__restrict __src) noexcept (true)
   ^

/usr/include/bits/string_fortified.h(145): error: linkage specification is incompatible with previous "strncat" (declared at line 152 of /usr/include/string.h)
   strncat (char * __restrict const __attribute__ ((__pass_object_size__ (1 > 1))) __dest, const char *__restrict __src, size_t __len) noexcept (true)
   ^

/usr/include/bits/string_fortified.h(161): error: linkage specification is incompatible with previous "strlcpy" (declared at line 506 of /usr/include/string.h)
   strlcpy (char * __restrict const __attribute__ ((__pass_object_size__ (1 > 1))) __dest, const char *__restrict __src, size_t __n) noexcept (true)
   ^

/usr/include/bits/string_fortified.h(179): error: linkage specification is incompatible with previous "strlcat" (declared at line 512 of /usr/include/string.h)
   strlcat (char * __restrict const __attribute__ ((__pass_object_size__ (1 > 1))) __dest, const char *__restrict __src, size_t __n) noexcept (true)
   ^

/usr/include/bits/wchar2.h(24): error: linkage specification is incompatible with previous "wmemcpy" (declared at line 287 of /usr/include/wchar.h)
   wmemcpy (wchar_t * __restrict const __attribute__ ((__pass_object_size__ (1 > 1))) __s1, const wchar_t *__restrict __s2, size_t __n) noexcept (true)
   ^

/usr/include/bits/wchar2.h(36): error: linkage specification is incompatible with previous "wmemmove" (declared at line 292 of /usr/include/wchar.h)
   wmemmove (wchar_t * const __attribute__ ((__pass_object_size__ (1 > 1))) __s1, const wchar_t *__s2, size_t __n) noexcept (true)
   ^

/usr/include/bits/wchar2.h(49): error: linkage specification is incompatible with previous "wmempcpy" (declared at line 301 of /usr/include/wchar.h)
   wmempcpy (wchar_t * __restrict const __attribute__ ((__pass_object_size__ (1 > 1))) __s1, const wchar_t *__restrict __s2, size_t __n) noexcept (true)
   ^

/usr/include/bits/wchar2.h(62): error: linkage specification is incompatible with previous "wmemset" (declared at line 296 of /usr/include/wchar.h)
   wmemset (wchar_t * const __attribute__ ((__pass_object_size__ (1 > 1))) __s, wchar_t __c, size_t __n) noexcept (true)
   ^

/usr/include/bits/wchar2.h(74): error: linkage specification is incompatible with previous "wcscpy" (declared at line 98 of /usr/include/wchar.h)
   wcscpy (wchar_t * __restrict const __attribute__ ((__pass_object_size__ (1 > 1))) __dest, const wchar_t *__restrict __src) noexcept (true)
   ^

/usr/include/bits/wchar2.h(84): error: linkage specification is incompatible with previous "wcpcpy" (declared at line 689 of /usr/include/wchar.h)
   wcpcpy (wchar_t * __restrict const __attribute__ ((__pass_object_size__ (1 > 1))) __dest, const wchar_t *__restrict __src) noexcept (true)
   ^

/usr/include/bits/wchar2.h(94): error: linkage specification is incompatible with previous "wcsncpy" (declared at line 103 of /usr/include/wchar.h)
   wcsncpy (wchar_t * __restrict const __attribute__ ((__pass_object_size__ (1 > 1))) __dest, const wchar_t *__restrict __src, size_t __n) noexcept (true)
   ^

/usr/include/bits/wchar2.h(106): error: linkage specification is incompatible with previous "wcpncpy" (declared at line 694 of /usr/include/wchar.h)
   wcpncpy (wchar_t * __restrict const __attribute__ ((__pass_object_size__ (1 > 1))) __dest, const wchar_t *__restrict __src, size_t __n) noexcept (true)
   ^

/usr/include/bits/wchar2.h(118): error: linkage specification is incompatible with previous "wcscat" (declared at line 121 of /usr/include/wchar.h)
   wcscat (wchar_t * __restrict const __attribute__ ((__pass_object_size__ (1 > 1))) __dest, const wchar_t *__restrict __src) noexcept (true)
   ^

/usr/include/bits/wchar2.h(128): error: linkage specification is incompatible with previous "wcsncat" (declared at line 125 of /usr/include/wchar.h)
   wcsncat (wchar_t * __restrict const __attribute__ ((__pass_object_size__ (1 > 1))) __dest, const wchar_t *__restrict __src, size_t __n) noexcept (true)
   ^

/usr/include/bits/wchar2.h(139): error: linkage specification is incompatible with previous "wcslcpy" (declared at line 109 of /usr/include/wchar.h)
   wcslcpy (wchar_t * __restrict const __attribute__ ((__pass_object_size__ (1 > 1))) __dest, const wchar_t *__restrict __src, size_t __n) noexcept (true)
   ^

/usr/include/bits/wchar2.h(155): error: linkage specification is incompatible with previous "wcslcat" (declared at line 115 of /usr/include/wchar.h)
   wcslcat (wchar_t * __restrict const __attribute__ ((__pass_object_size__ (1 > 1))) __dest, const wchar_t *__restrict __src, size_t __n) noexcept (true)
   ^

/usr/include/bits/wchar2.h(254): error: linkage specification is incompatible with previous "fgetws" (declared at line 964 of /usr/include/wchar.h)
  fgetws (wchar_t * __restrict const __attribute__ ((__pass_object_size__ (1 > 1))) __s, int __n,
  ^

/usr/include/bits/wchar2.h(272): error: linkage specification is incompatible with previous "fgetws_unlocked" (declared at line 1026 of /usr/include/wchar.h)
  fgetws_unlocked (wchar_t * __restrict const __attribute__ ((__pass_object_size__ (1 > 1))) __s,
  ^

/usr/include/bits/wchar2.h(291): error: linkage specification is incompatible with previous "wcrtomb" (declared at line 326 of /usr/include/wchar.h)
   wcrtomb (char * __restrict const __attribute__ ((__pass_object_size__ (1 > 1))) __s, wchar_t __wchar, mbstate_t *__restrict __ps) noexcept (true)
   ^

/usr/include/bits/wchar2.h(308): error: linkage specification is incompatible with previous "mbsrtowcs" (declared at line 362 of /usr/include/wchar.h)
   mbsrtowcs (wchar_t * __restrict const __attribute__ ((__pass_object_size__ (1 > 1))) __dst, const char **__restrict __src, size_t __len, mbstate_t *__restrict __ps) noexcept (true)
   ^

/usr/include/bits/wchar2.h(321): error: linkage specification is incompatible with previous "wcsrtombs" (declared at line 368 of /usr/include/wchar.h)
   wcsrtombs (char * __restrict const __attribute__ ((__pass_object_size__ (1 > 1))) __dst, const wchar_t **__restrict __src, size_t __len, mbstate_t *__restrict __ps) noexcept (true)
   ^

/usr/include/bits/wchar2.h(336): error: linkage specification is incompatible with previous "mbsnrtowcs" (declared at line 376 of /usr/include/wchar.h)
   mbsnrtowcs (wchar_t * __restrict const __attribute__ ((__pass_object_size__ (1 > 1))) __dst, const char **__restrict __src, size_t __nmc, size_t __len, mbstate_t *__restrict __ps) noexcept (true)
   ^

/usr/include/bits/wchar2.h(349): error: linkage specification is incompatible with previous "wcsnrtombs" (declared at line 382 of /usr/include/wchar.h)
   wcsnrtombs (char * __restrict const __attribute__ ((__pass_object_size__ (1 > 1))) __dst, const wchar_t **__restrict __src, size_t __nwc, size_t __len, mbstate_t *__restrict __ps) noexcept (true)
   ^

/usr/include/bits/stdio2.h(55): error: linkage specification is incompatible with previous "vsprintf" (declared at line 383 of /usr/include/stdio.h)
   vsprintf (char * __restrict const __attribute__ ((__pass_object_size__ (1 > 1))) __s, const char *__restrict __fmt, __gnuc_va_list __ap) noexcept (true)
   ^

/usr/include/bits/stdio2.h(93): error: linkage specification is incompatible with previous "vsnprintf" (declared at line 392 of /usr/include/stdio.h)
   vsnprintf (char * __restrict const __attribute__ ((__pass_object_size__ (1 > 1))) __s, size_t __n, const char *__restrict __fmt, __gnuc_va_list __ap) noexcept (true)
   ^

/usr/include/bits/stdio2.h(305): error: linkage specification is incompatible with previous "fgets" (declared at line 654 of /usr/include/stdio.h)
  fgets (char * __restrict const __attribute__ ((__pass_object_size__ (1 > 1))) __s, int __n,
  ^

/usr/include/bits/stdio2.h(322): error: linkage specification is incompatible with previous "fread" (declared at line 728 of /usr/include/stdio.h)
  fread (void * __restrict const __attribute__ ((__pass_object_size__ (1 > 1))) __ptr,
  ^

/usr/include/bits/stdio2.h(342): error: linkage specification is incompatible with previous "fgets_unlocked" (declared at line 677 of /usr/include/stdio.h)
  fgets_unlocked (char * __restrict const __attribute__ ((__pass_object_size__ (1 > 1))) __s,
  ^

/usr/include/bits/stdio2.h(362): error: linkage specification is incompatible with previous "fread_unlocked" (declared at line 756 of /usr/include/stdio.h)
  fread_unlocked (void * __restrict const __attribute__ ((__pass_object_size__ (0))) __ptr,
  ^

/usr/include/bits/unistd.h(26): error: linkage specification is incompatible with previous "read" (declared at line 371 of /usr/include/unistd.h)
  read (int __fd, void * const __attribute__ ((__pass_object_size__ (0))) __buf, size_t __nbytes)
  ^

/usr/include/bits/unistd.h(40): error: linkage specification is incompatible with previous "pread" (declared at line 389 of /usr/include/unistd.h)
  pread (int __fd, void * const __attribute__ ((__pass_object_size__ (0))) __buf,
  ^

/usr/include/bits/unistd.h(66): error: linkage specification is incompatible with previous "pread64" (declared at line 422 of /usr/include/unistd.h)
  pread64 (int __fd, void * const __attribute__ ((__pass_object_size__ (0))) __buf,
  ^

/usr/include/bits/unistd.h(81): error: linkage specification is incompatible with previous "readlink" (declared at line 838 of /usr/include/unistd.h)
   readlink (const char *__restrict __path, char * __restrict const __attribute__ ((__pass_object_size__ (0))) __buf, size_t __len) noexcept (true)
   ^

/usr/include/bits/unistd.h(97): error: linkage specification is incompatible with previous "readlinkat" (declared at line 851 of /usr/include/unistd.h)
   readlinkat (int __fd, const char *__restrict __path, char * __restrict const __attribute__ ((__pass_object_size__ (0))) __buf, size_t __len) noexcept (true)
   ^

/usr/include/bits/unistd.h(111): error: linkage specification is incompatible with previous "getcwd" (declared at line 531 of /usr/include/unistd.h)
   getcwd (char * const __attribute__ ((__pass_object_size__ (1 > 1))) __buf, size_t __size) noexcept (true)
   ^

/usr/include/bits/unistd.h(124): error: linkage specification is incompatible with previous "getwd" (declared at line 545 of /usr/include/unistd.h)
   getwd (char * const __attribute__ ((__pass_object_size__ (1 > 1))) __buf) noexcept (true)
   ^

/usr/include/bits/unistd.h(133): error: linkage specification is incompatible with previous "confstr" (declared at line 644 of /usr/include/unistd.h)
   confstr (int __name, char * const __attribute__ ((__pass_object_size__ (1 > 1))) __buf, size_t __len) noexcept (true)
   ^

/usr/include/bits/unistd.h(146): error: linkage specification is incompatible with previous "getgroups" (declared at line 711 of /usr/include/unistd.h)
   getgroups (int __size, __gid_t * const __attribute__ ((__pass_object_size__ (1 > 1))) __list) noexcept (true)
   ^

/usr/include/bits/unistd.h(160): error: linkage specification is incompatible with previous "ttyname_r" (declared at line 803 of /usr/include/unistd.h)
   ttyname_r (int __fd, char * const __attribute__ ((__pass_object_size__ (1 > 1))) __buf, size_t __buflen) noexcept (true)
   ^

/usr/include/bits/unistd.h(175): error: linkage specification is incompatible with previous "getlogin_r" (declared at line 889 of /usr/include/unistd.h)
  getlogin_r (char * const __attribute__ ((__pass_object_size__ (1 > 1))) __buf, size_t __buflen)
  ^

/usr/include/bits/unistd.h(189): error: linkage specification is incompatible with previous "gethostname" (declared at line 911 of /usr/include/unistd.h)
   gethostname (char * const __attribute__ ((__pass_object_size__ (1 > 1))) __buf, size_t __buflen) noexcept (true)
   ^

/usr/include/bits/unistd.h(204): error: linkage specification is incompatible with previous "getdomainname" (declared at line 930 of /usr/include/unistd.h)
   getdomainname (char * const __attribute__ ((__pass_object_size__ (1 > 1))) __buf, size_t __buflen) noexcept (true)
   ^

51 errors detected in the compilation of "jaxlib/gpu/make_batch_pointers.cu.cc".
Target //jaxlib/tools:jax_cuda13_plugin_wheel failed to build

According to this comment, CUDNN is not compatible with GLIBC version >= 2.40.

I’m using Arch Linux that provide CUDA 13.0.2 with a patch to make compatible with its GLIBC version 2.42, and CUDNN 9.14.0.