Skip to content

macos cross compile eigen unary build failure #36849

@wsmoses

Description

@wsmoses

2026-01-27T03:10:22.7904990Z �[0m�[1m[03:10:22] �[22m�[31m[1,269 / 10,580] Compiling xla/codegen/intrinsic/cpp/eigen_unary.cc; 3s processwrapper-sandbox ... (128 actions, 127 running)�[39m
2026-01-27T03:10:23.8645166Z �[0m�[1m[03:10:23] �[22m�[31m[1,327 / 10,580] Compiling xla/codegen/intrinsic/cpp/eigen_unary.cc; 4s processwrapper-sandbox ... (128 actions, 126 running)�[39m
2026-01-27T03:10:24.6349760Z �[0m�[1m[03:10:24] �[22m�[31mERROR: /workspace/bazel_root/097636303b1142f44508c1d8e3494e4b/external/xla/xla/codegen/intrinsic/cpp/BUILD:89:13: Compiling xla/codegen/intrinsic/cpp/eigen_unary.cc failed: (Exit 1): clang failed: error executing CppCompile command (from target @@xla//xla/codegen/intrinsic/cpp:eigen_unary_ll_lib) �[39m
2026-01-27T03:10:24.6351415Z �[0m�[1m[03:10:24] �[22m�[31m  (cd /workspace/bazel_root/097636303b1142f44508c1d8e3494e4b/sandbox/processwrapper-sandbox/58/execroot/__main__ && \�[39m
2026-01-27T03:10:24.6352155Z �[0m�[1m[03:10:24] �[22m�[31m  exec env - \�[39m
2026-01-27T03:10:24.6352916Z �[0m�[1m[03:10:24] �[22m�[31m    CCACHE_DIR=/root/.ccache \�[39m
2026-01-27T03:10:24.6353320Z �[0m�[1m[03:10:24] �[22m�[31m    CCACHE_NOHASHDIR=yes \�[39m
2026-01-27T03:10:24.6353702Z �[0m�[1m[03:10:24] �[22m�[31m    GRPC_BAZEL_RUNTIME=1 \�[39m
2026-01-27T03:10:24.6355562Z �[0m�[1m[03:10:24] �[22m�[31m    LD_LIBRARY_PATH=/usr/lib/csl-musl-x86_64:/usr/local/lib64:/usr/local/lib:/usr/lib64:/usr/lib:/lib64:/lib:/workspace/x86_64-linux-musl-cxx11/destdir/lib:/workspace/x86_64-linux-musl-cxx11/destdir/lib64:/opt/x86_64-linux-musl/x86_64-linux-musl/lib64:/opt/x86_64-linux-musl/x86_64-linux-musl/lib:/opt/x86_64-apple-darwin14/x86_64-apple-darwin14/lib:/opt/x86_64-apple-darwin14/lib:/workspace/destdir/lib64:/workspace/destdir/lib \�[39m
2026-01-27T03:10:24.6357172Z �[0m�[1m[03:10:24] �[22m�[31m    MACOSX_DEPLOYMENT_TARGET=12.3 \�[39m
2026-01-27T03:10:24.6358889Z �[0m�[1m[03:10:24] �[22m�[31m    PATH=/workspace/srcdir/Reactant.jl/deps/ReactantExtra/.local/bin:/opt/bin/x86_64-apple-darwin14-libgfortran5-cxx11-gpu_version+none-gpu+none-mode+opt:/opt/x86_64-apple-darwin14/bin:/opt/bin/x86_64-linux-musl-cxx11:/opt/x86_64-linux-musl/bin:/usr/local/bin:/usr/local/sbin:/usr/bin:/usr/sbin:/bin:/sbin:/workspace/x86_64-linux-musl-cxx11/destdir/bin:/workspace/destdir/bin \�[39m
2026-01-27T03:10:24.6360421Z �[0m�[1m[03:10:24] �[22m�[31m    PROTOCOL_BUFFERS_PYTHON_IMPLEMENTATION=upb \�[39m
2026-01-27T03:10:24.6361712Z �[0m�[1m[03:10:24] �[22m�[31m    *** \�[39m
2026-01-27T03:10:24.6362292Z �[0m�[1m[03:10:24] �[22m�[31m    TEMP=/workspace/srcdir/Reactant.jl/deps/ReactantExtra/.tmp \�[39m
2026-01-27T03:10:24.6362870Z �[0m�[1m[03:10:24] �[22m�[31m    TMP=/workspace/srcdir/Reactant.jl/deps/ReactantExtra/.tmp \�[39m
2026-01-27T03:10:24.6363471Z �[0m�[1m[03:10:24] �[22m�[31m    TMPDIR=/workspace/srcdir/Reactant.jl/deps/ReactantExtra/.tmp \�[39m
2026-01-27T03:10:24.6363955Z �[0m�[1m[03:10:24] �[22m�[31m    USE_CCACHE=true \�[39m
2026-01-27T03:10:24.6372802Z �[0m�[1m[03:10:24] �[22m�[31m  /opt/bin/x86_64-apple-darwin14-libgfortran5-cxx11-gpu_version+none-gpu+none-mode+opt/clang -U_FORTIFY_SOURCE '-stdlib=libc++' -g0 -O2 '-D_FORTIFY_SOURCE=1' -DNDEBUG -ffunction-sections -fdata-sections -MD -MF bazel-out/darwin-opt/bin/external/xla/xla/codegen/intrinsic/cpp/_objs/eigen_unary_ll_lib/eigen_unary.pic.d '-frandom-seed=bazel-out/darwin-opt/bin/external/xla/xla/codegen/intrinsic/cpp/_objs/eigen_unary_ll_lib/eigen_unary.pic.o' -fPIC '-DEIGEN_MAX_ALIGN_BYTES=64' -DEIGEN_ALLOW_UNALIGNED_SCALARS '-DEIGEN_USE_AVX512_GEMM_KERNELS=0' -iquote external/xla -iquote bazel-out/darwin-opt/bin/external/xla -iquote external/tsl -iquote bazel-out/darwin-opt/bin/external/tsl -iquote external/eigen_archive -iquote bazel-out/darwin-opt/bin/external/eigen_archive -isystem external/eigen_archive -isystem bazel-out/darwin-opt/bin/external/eigen_archive -isystem external/eigen_archive/mkl_include -isystem bazel-out/darwin-opt/bin/external/eigen_archive/mkl_include '-DMLIR_CAPI_BUILDING_LIBRARY=1' '-DMLIR_CAPI_ENABLE_WINDOWS_DLL_DECLSPEC=1' -DGRPC_BAZEL_BUILD '-std=c++17' -w '-std=c++17' '-DTCP_USER_TIMEOUT=0' -emit-llvm -O3 -DNDEBUG '-mprefer-vector-width=512' -DEIGEN_VECTORIZE_GENERIC -flax-vector-conversions -fno-builtin -Wno-psabi '-std=c++17' '-fno-experimental-sanitize-metadata=all' '--sysroot=/opt/x86_64-apple-darwin14/x86_64-apple-darwin14/sys-root/' -no-canonical-prefixes -Wno-builtin-macro-redefined '-D__DATE__="redacted"' '-D__TIMESTAMP__="redacted"' '-D__TIME__="redacted"' -Wno-unused-command-line-argument -Wno-gnu-offsetof-extensions -c external/xla/xla/codegen/intrinsic/cpp/eigen_unary.cc -o bazel-out/darwin-opt/bin/external/xla/xla/codegen/intrinsic/cpp/_objs/eigen_unary_ll_lib/eigen_unary.pic.o)�[39m
2026-01-27T03:10:24.6379582Z �[0m�[1m[03:10:24] �[22m�[31m# Configuration: e2baa8786b5b3fec5efc18ced402c3c0e19fe554111f6b0e8e936ed3a63155ca�[39m
2026-01-27T03:10:24.6380289Z �[0m�[1m[03:10:24] �[22m�[31m# Execution platform: @@local_execution_config_platform//:platform�[39m
2026-01-27T03:10:24.6380713Z �[0m�[1m[03:10:24] �[22m
2026-01-27T03:10:24.6381417Z �[0m�[1m[03:10:24] �[22m�[31mUse --sandbox_debug to see verbose messages from the sandbox and retain the sandbox build root for debugging�[39m
2026-01-27T03:10:24.6382351Z �[0m�[1m[03:10:24] �[22m�[31mIn file included from external/xla/xla/codegen/intrinsic/cpp/eigen_unary.cc:19:�[39m
2026-01-27T03:10:24.6383048Z �[0m�[1m[03:10:24] �[22m�[31mIn file included from external/xla/xla/codegen/intrinsic/cpp/eigen_unary.h:18:�[39m
2026-01-27T03:10:24.6383757Z �[0m�[1m[03:10:24] �[22m�[31mIn file included from external/xla/xla/codegen/intrinsic/cpp/vector_ops.h:26:�[39m
2026-01-27T03:10:24.6384378Z �[0m�[1m[03:10:24] �[22m�[31mIn file included from external/eigen_archive/Eigen/Core:209:�[39m
2026-01-27T03:10:24.6385838Z �[0m�[1m[03:10:24] �[22m�[31mexternal/eigen_archive/Eigen/src/Core/arch/clang/PacketMath.h:367:32: error: cannot initialize return object of type 'Packet8l' (aka 'VectorType<int64_t, 8>') with an rvalue of type 'long __attribute__((ext_vector_type(8)))' (vector of 8 'long' values)�[39m
2026-01-27T03:10:24.6386973Z �[0m�[1m[03:10:24] �[22m�[31m  367 | EIGEN_CLANG_PACKET_BITWISE_INT(Packet8l)�[39m
2026-01-27T03:10:24.6387415Z �[0m�[1m[03:10:24] �[22m�[31m      | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~�[39m
2026-01-27T03:10:24.6388177Z �[0m�[1m[03:10:24] �[22m�[31mexternal/eigen_archive/Eigen/src/Core/arch/clang/PacketMath.h:334:12: note: expanded from macro 'EIGEN_CLANG_PACKET_BITWISE_INT'�[39m
2026-01-27T03:10:24.6389077Z �[0m�[1m[03:10:24] �[22m�[31m  334 |     return PACKET_TYPE(0) == PACKET_TYPE(0);                                                         \�[39m
2026-01-27T03:10:24.6389633Z �[0m�[1m[03:10:24] �[22m�[31m      |            ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~�[39m
2026-01-27T03:10:24.6390819Z �[0m�[1m[03:10:24] �[22m�[31mexternal/eigen_archive/Eigen/src/Core/arch/clang/PacketMath.h:394:44: error: reference to type 'const Packet8l' (aka 'const VectorType<int64_t, 8>') could not bind to an rvalue of type 'long __attribute__((ext_vector_type(8)))' (vector of 8 'long' values)�[39m
2026-01-27T03:10:24.6397732Z �[0m�[1m[03:10:24] �[22m�[31m  394 | EIGEN_CLANG_PACKET_BITWISE_FLOAT(Packet8d, detail::pcast_double_to_long, detail::pcast_long_to_double)�[39m
2026-01-27T03:10:24.6398542Z �[0m�[1m[03:10:24] �[22m�[31m      | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~�[39m
2026-01-27T03:10:24.6399409Z �[0m�[1m[03:10:24] �[22m�[31mexternal/eigen_archive/Eigen/src/Core/arch/clang/PacketMath.h:374:26: note: expanded from macro 'EIGEN_CLANG_PACKET_BITWISE_FLOAT'�[39m
2026-01-27T03:10:24.6400303Z �[0m�[1m[03:10:24] �[22m�[31m  374 |     return CAST_FROM_INT(CAST_TO_INT(a) == CAST_TO_INT(a));                                          \�[39m
2026-01-27T03:10:24.6400912Z �[0m�[1m[03:10:24] �[22m�[31m      |                          ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~�[39m
2026-01-27T03:10:24.6401634Z �[0m�[1m[03:10:24] �[22m�[31mexternal/eigen_archive/Eigen/src/Core/arch/clang/PacketMath.h:326:67: note: passing argument to parameter 'a' here�[39m
2026-01-27T03:10:24.6402703Z �[0m�[1m[03:10:24] �[22m�[31m  326 | EIGEN_STRONG_INLINE Packet8d pcast_long_to_double(const Packet8l& a) { return reinterpret_cast<Packet8d>(a); }�[39m
2026-01-27T03:10:24.6403419Z �[0m�[1m[03:10:24] �[22m�[31m      |                                                                   ^�[39m
2026-01-27T03:10:24.6403828Z �[0m�[1m[03:10:24] �[22m�[31m2 errors generated.�[39m

cc @seantalts

Metadata

Metadata

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions