Package Details: python-jaxlib 0.9.0-3

Git Clone URL: https://aur.archlinux.org/python-jaxlib.git (read-only, click to copy)
Package Base: python-jaxlib
Description: XLA library for JAX
Upstream URL: https://github.com/jax-ml/jax
Keywords: deep-learning google jax machine-learning xla
Licenses: Apache-2.0
Groups: jax
Submitter: daskol
Maintainer: daskol
Last Packager: daskol
Votes: 8
Popularity: 0.001244
First Submitted: 2021-01-12 12:50 (UTC)
Last Updated: 2026-02-17 14:51 (UTC)

Latest Comments

1 2 3 4 5 6 .. 9 Next › Last »

mistersmee commented on 2026-02-22 14:27 (UTC)

@daskol, please drop the clang20 dependency, it fails to build with it, but builds fine on the normal latest clang.

Qurczak commented on 2026-02-19 08:34 (UTC)

@daskol, it is working now. Thanks.

daskol commented on 2026-02-17 14:52 (UTC)

@Qurczak @llde I have patched xla to use fresh BoringSSL (it has been outdated for about two years now).

Qurczak commented on 2026-02-17 11:48 (UTC)

@daskol I have similar bug to @llde.

gcc 15.2.1+r604+g0b99615a8aef-1
clang20 20.1.8-1
python-ml-dtypes 0.5.4-2
python-numpy 2.4.2-1
python-scipy 1.17.0-1

And some logs:

INFO: Found applicable config definition common:posix in file /home/qurczak/.cache/yay/python-jaxlib/src/jax-jax-v0.9.0/.bazelrc: --copt=-fvisibility=hidden --copt=-Wno-sign-compare --cxxopt=-std=c++17 --host_cxxopt=-std=c++17
DEBUG: /home/qurczak/.cache/yay/python-jaxlib/src/base/990dc51c8ba338fa00a39e7f55698175/external/xla/third_party/py/python_repo.bzl:84:14: !!!Using pywrap rules instead of directly creating .so objects!!!
DEBUG: /home/qurczak/.cache/yay/python-jaxlib/src/base/990dc51c8ba338fa00a39e7f55698175/external/xla/third_party/py/python_repo.bzl:89:10: 
=============================
Hermetic Python configuration:
Version: "3.14"
Kind: ""
Interpreter: "default" (provided by rules_python)
Requirements_lock label: "@python_version_repo//:requirements_lock_3_14.txt"
=====================================
INFO: Analyzed target //jaxlib/tools:jaxlib_wheel (458 packages loaded, 26818 targets configured).
ERROR: /home/qurczak/.cache/yay/python-jaxlib/src/base/990dc51c8ba338fa00a39e7f55698175/external/boringssl/BUILD:133:11: Compiling src/crypto/fipsmodule/bcm.c failed: (Exit 1): clang-20 failed: error executing CppCompile command (from target @@boringssl//:crypto) 
  (cd /home/qurczak/.cache/yay/python-jaxlib/src/base/990dc51c8ba338fa00a39e7f55698175/execroot/__main__ && \
  exec env - \
    CLANG_COMPILER_PATH=/usr/lib/llvm20/bin/clang-20 \
    GRPC_BAZEL_RUNTIME=1 \
    PATH=/usr/lib/ccache/bin:/usr/condabin:/usr/local/sbin:/usr/local/bin:/usr/bin:/opt/android-sdk/platform-tools:/opt/apache-spark/bin:/opt/apache-spark/sbin:/opt/cuda/bin:/opt/cxoffice/bin:/var/lib/flatpak/exports/bin:/usr/lib/jvm/default/bin:/usr/bin/site_perl:/usr/bin/vendor_perl:/usr/bin/core_perl:/opt/rocm/bin:/usr/lib/rustup/bin:/home/qurczak/.fzf/bin \
    PROTOCOL_BUFFERS_PYTHON_IMPLEMENTATION=upb \
    PWD=/proc/self/cwd \
  /usr/lib/llvm20/bin/clang-20 -U_FORTIFY_SOURCE -fstack-protector -Wall -Wthread-safety -Wself-assign -Wunused-but-set-parameter -Wno-free-nonheap-object -fcolor-diagnostics -fno-omit-frame-pointer -g0 -O2 '-D_FORTIFY_SOURCE=1' -DNDEBUG -ffunction-sections -fdata-sections -MD -MF bazel-out/k8-opt/bin/external/boringssl/_objs/crypto/bcm.pic.d '-frandom-seed=bazel-out/k8-opt/bin/external/boringssl/_objs/crypto/bcm.pic.o' -fPIC -iquote external/boringssl -iquote bazel-out/k8-opt/bin/external/boringssl -isystem external/boringssl/src/include -isystem bazel-out/k8-opt/bin/external/boringssl/src/include '-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 -mavx -Wno-gnu-offsetof-extensions -Qunused-arguments '-Werror=mismatched-tags' '-Wno-error=c23-extensions' -DBORINGSSL_IMPLEMENTATION -Wa,--noexecstack -Wall -Werror '-Wformat=2' -Wsign-compare -Wmissing-field-initializers -Wwrite-strings -Wshadow -fno-common '-D_XOPEN_SOURCE=700' '-std=c11' -Wmissing-prototypes -Wold-style-definition -Wstrict-prototypes -no-canonical-prefixes -Wno-builtin-macro-redefined '-D__DATE__="redacted"' '-D__TIMESTAMP__="redacted"' '-D__TIME__="redacted"' -c external/boringssl/src/crypto/fipsmodule/bcm.c -o bazel-out/k8-opt/bin/external/boringssl/_objs/crypto/bcm.pic.o)
# Configuration: 0261efa0ca76094f896a80e8aaefa007c9defa18914dbbbe0e92e0bd627f3065
# Execution platform: @@local_execution_config_platform//:platform
In file included from external/boringssl/src/crypto/fipsmodule/bcm.c:31:
external/boringssl/src/crypto/fipsmodule/../internal.h:857:10: error: returning 'const void *' from a function with result type 'void *' discards qualifiers [-Werror,-Wincompatible-pointer-types-discards-qualifiers]
  857 |   return memchr(s, c, n);
      |          ^~~~~~~~~~~~~~~
/usr/include/string.h:122:3: note: expanded from macro 'memchr'
  122 |   __glibc_const_generic (S, const void *, memchr (S, C, N))
      |   ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/usr/include/sys/cdefs.h:838:3: note: expanded from macro '__glibc_const_generic'
  838 |   _Generic (0 ? (PTR) : (void *) 1,                     \
      |   ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  839 |             const void *: (CTYPE) (CALL),               \
      |             ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  840 |             default: CALL)
      |             ~~~~~~~~~~~~~~
1 error generated.
Target //jaxlib/tools:jaxlib_wheel failed to build
INFO: Elapsed time: 27.009s, Critical Path: 14.48s
INFO: 269 processes: 14 internal, 255 local.
ERROR: Build did 

llde commented on 2026-02-17 10:53 (UTC) (edited on 2026-02-17 11:00 (UTC) by llde)

CFLAGS="-march=native -mtune=native -O2 -pipe -fstack-protector-strong -fno-plt -g -fexceptions -Wp,-D_FORTIFY_SOURCE=2 -fstack-clash-protection -fcf-protection" CXXFLAGS="$CFLAGS -Wp,-D_GLIBCXX_ASSERTIONS"

maybe one of these flags is triggering the warning? Or act in clang implying "warning as errors"

daskol commented on 2026-02-16 20:45 (UTC)

@llde I took a look at that file. Clang is right about the compilation error. GCC can solve the issue, but Clang is recommended compiler, and python-jaxlib-cuda can be hardly compiled with GCC (because of the nvcc harness). So I stick to clang to reduce maintenance costs.

Regarding to your issue, I can't reproduce it locally. Could you share some details? Failed compile commands? CFLAGS/CXXFLAGS in makepkg.conf? gcc/gcc-libs version?

llde commented on 2026-02-16 13:36 (UTC) (edited on 2026-02-16 18:54 (UTC) by llde)

COmpilation isn't working for me it's failing with: external/boringssl/src/crypto/fipsmodule/../internal.h:857:10: error: returning 'const void ' from a function with result type 'void ' discards qualifiers [-Werror,-Wincompatible-pointer-types-discards-qualifiers] It instead works if I don't use the clang override but keep the default compiler.gcc

llde commented on 2026-02-15 23:39 (UTC)

@daskol Adding tinyxxd as dependacy is breaking the install when other xxd provider like vim/gvim are installed. It should probably be "xxd"

carlosal1015 commented on 2026-02-09 15:21 (UTC)

No worries, since we are building in a clean chroot. No matter if is tinyxxd or vim https://github.com/arch4edu/cactus/actions/runs/21827911321/job/62988226467