Skip to content

llvm22#59471

Merged
Duncaen merged 5 commits into
void-linux:masterfrom
Duncaen:llvm22
Mar 24, 2026
Merged

llvm22#59471
Duncaen merged 5 commits into
void-linux:masterfrom
Duncaen:llvm22

Conversation

@Duncaen
Copy link
Copy Markdown
Member

@Duncaen Duncaen commented Mar 19, 2026

[ci skip]

  • x86_64-glibc
  • x86_64-musl
  • i686
  • aarch64-musl
  • aarch64
  • armv7l-musl
  • armv7l
  • armv6l-musl
  • armv6l

@Duncaen Duncaen force-pushed the llvm22 branch 2 times, most recently from a161783 to d6a7206 Compare March 21, 2026 23:12
@Duncaen Duncaen merged commit 211b1f5 into void-linux:master Mar 24, 2026
2 checks passed
@JkktBkkt
Copy link
Copy Markdown
Contributor

JkktBkkt commented Mar 24, 2026

Hitting this in local build of what's currently in master:

Details
[11171/11189] Performing configure step for 'runtimes-amdgcn-amd-amdhsa'
Not searching for unused variables given on the command line.
loading initial cache file /builddir/llvm22-22.1.1/llvm/build/projects/runtimes-amdgcn-amd-amdhsa/tmp/runtimes-amdgcn-amd-amdhsa-cache-Release.cmake
-- Performing bootstrapping runtimes build.
-- The C compiler identification is Clang 22.1.1
-- The CXX compiler identification is Clang 22.1.1
-- The ASM compiler identification is Clang with GNU-like command-line
-- Found assembler: /builddir/llvm22-22.1.1/llvm/build/bin/clang
-- Detecting C compiler ABI info
-- Detecting C compiler ABI info - done
-- Check for working C compiler: /builddir/llvm22-22.1.1/llvm/build/bin/clang - skipped
-- Detecting C compile features
-- Detecting C compile features - done
-- Detecting CXX compiler ABI info
-- Detecting CXX compiler ABI info - done
-- Check for working CXX compiler: /builddir/llvm22-22.1.1/llvm/build/bin/clang++ - skipped
-- Detecting CXX compile features
-- Detecting CXX compile features - done
-- Performing Test HAVE_FFI_CALL
-- Performing Test HAVE_FFI_CALL - Failed
-- Could NOT find FFI (missing: HAVE_FFI_CALL) 
-- Looking for histedit.h
-- Looking for histedit.h - not found
-- Could NOT find LibEdit (missing: LibEdit_INCLUDE_DIRS LibEdit_LIBRARIES) 
-- Found ZLIB: /usr/lib/libz.so (found version "1.3.2")
-- Found zstd: /usr/lib/libzstd.so
-- Found LibXml2: /usr/lib64/libxml2.so (found version "2.13.9")
-- Could NOT find FFI (missing: HAVE_FFI_CALL) 
-- Could NOT find LibEdit (missing: LibEdit_INCLUDE_DIRS LibEdit_LIBRARIES) 
-- Performing Test CXX_SUPPORTS_UNWINDLIB_EQ_NONE_FLAG
-- Performing Test CXX_SUPPORTS_UNWINDLIB_EQ_NONE_FLAG - Success
-- Performing Test C_SUPPORTS_START_NO_UNUSED_ARGUMENTS
-- Performing Test C_SUPPORTS_START_NO_UNUSED_ARGUMENTS - Success
-- Performing Test CXX_SUPPORTS_NOSTDLIBXX_FLAG
-- Performing Test CXX_SUPPORTS_NOSTDLIBXX_FLAG - Success
-- Performing Test CXX_SUPPORTS_NOSTDINCXX_FLAG
-- Performing Test CXX_SUPPORTS_NOSTDINCXX_FLAG - Success
-- Linker detection: LLD
-- Performing Test LLVM_USES_LIBSTDCXX
-- Performing Test LLVM_USES_LIBSTDCXX - Failed
-- Performing Test LLVM_DEFAULT_TO_GLIBCXX_USE_CXX11_ABI
-- Performing Test LLVM_DEFAULT_TO_GLIBCXX_USE_CXX11_ABI - Failed
-- Performing Test CXX_SUPPORTS_CUSTOM_LINKER
-- Performing Test CXX_SUPPORTS_CUSTOM_LINKER - Success
-- Performing Test C_SUPPORTS_FPIC
-- Performing Test C_SUPPORTS_FPIC - Failed
-- Performing Test CXX_SUPPORTS_FPIC
-- Performing Test CXX_SUPPORTS_FPIC - Failed
CMake Warning at /builddir/llvm22-22.1.1/llvm/cmake/modules/HandleLLVMOptions.cmake:381 (message):
  -fPIC is not supported.
Call Stack (most recent call first):
  /builddir/llvm22-22.1.1/llvm/cmake/modules/HandleLLVMOptions.cmake:441 (add_flag_or_print_warning)
  CMakeLists.txt:200 (include)


-- Performing Test C_SUPPORTS_FNO_SEMANTIC_INTERPOSITION
-- Performing Test C_SUPPORTS_FNO_SEMANTIC_INTERPOSITION - Failed
-- Performing Test CXX_SUPPORTS_FNO_SEMANTIC_INTERPOSITION
-- Performing Test CXX_SUPPORTS_FNO_SEMANTIC_INTERPOSITION - Failed
-- Performing Test SUPPORTS_FVISIBILITY_INLINES_HIDDEN_FLAG
-- Performing Test SUPPORTS_FVISIBILITY_INLINES_HIDDEN_FLAG - Success
-- Performing Test CXX_SUPPORTS_SUGGEST_OVERRIDE_FLAG
-- Performing Test CXX_SUPPORTS_SUGGEST_OVERRIDE_FLAG - Success
-- Performing Test CXX_WSUGGEST_OVERRIDE_ALLOWS_ONLY_FINAL
-- Performing Test CXX_WSUGGEST_OVERRIDE_ALLOWS_ONLY_FINAL - Success
-- Performing Test C_WCOMMENT_ALLOWS_LINE_WRAP
-- Performing Test C_WCOMMENT_ALLOWS_LINE_WRAP - Failed
-- Performing Test C_SUPPORTS_MISLEADING_INDENTATION_FLAG
-- Performing Test C_SUPPORTS_MISLEADING_INDENTATION_FLAG - Failed
-- Performing Test CXX_SUPPORTS_MISLEADING_INDENTATION_FLAG
-- Performing Test CXX_SUPPORTS_MISLEADING_INDENTATION_FLAG - Failed
-- Performing Test C_SUPPORTS_CTAD_MAYBE_UNSPPORTED_FLAG
-- Performing Test C_SUPPORTS_CTAD_MAYBE_UNSPPORTED_FLAG - Failed
-- Performing Test CXX_SUPPORTS_CTAD_MAYBE_UNSPPORTED_FLAG
-- Performing Test CXX_SUPPORTS_CTAD_MAYBE_UNSPPORTED_FLAG - Failed
-- Performing Test LINKER_SUPPORTS_COLOR_DIAGNOSTICS
-- Performing Test LINKER_SUPPORTS_COLOR_DIAGNOSTICS - Success
-- Looking for os_signpost_interval_begin
-- Looking for os_signpost_interval_begin - not found
-- Looking for flock
-- Looking for flock - not found
-- Found Python3: /usr/bin/python3.14 (found version "3.14.3") found components: Interpreter
-- LLVM host triple: x86_64-unknown-linux-gnu
-- LLVM default target triple: amdgcn-amd-amdhsa
Using local flang build at /builddir/llvm22-22.1.1/llvm/build/./bin/flang
-- Performing Test OPENMP_HAVE_ONEAPI_COMPILER
-- Performing Test OPENMP_HAVE_ONEAPI_COMPILER - Failed
-- Performing Test OPENMP_HAVE_WALL_FLAG
-- Performing Test OPENMP_HAVE_WALL_FLAG - Success
-- Performing Test OPENMP_HAVE_WERROR_FLAG
-- Performing Test OPENMP_HAVE_WERROR_FLAG - Failed
-- Performing Test OPENMP_HAVE_COLOR_DIAGNOSTICS
-- Performing Test OPENMP_HAVE_COLOR_DIAGNOSTICS - Success
-- Performing Test OPENMP_HAVE_WCAST_QUAL_FLAG
-- Performing Test OPENMP_HAVE_WCAST_QUAL_FLAG - Success
-- Performing Test OPENMP_HAVE_WFORMAT_PEDANTIC_FLAG
-- Performing Test OPENMP_HAVE_WFORMAT_PEDANTIC_FLAG - Success
-- Performing Test OPENMP_HAVE_WIMPLICIT_FALLTHROUGH_FLAG
-- Performing Test OPENMP_HAVE_WIMPLICIT_FALLTHROUGH_FLAG - Success
-- Performing Test OPENMP_HAVE_WSIGN_COMPARE_FLAG
-- Performing Test OPENMP_HAVE_WSIGN_COMPARE_FLAG - Success
-- Performing Test OPENMP_HAVE_WEXTRA_FLAG
-- Performing Test OPENMP_HAVE_WEXTRA_FLAG - Success
-- Performing Test OPENMP_HAVE_WPEDANTIC_FLAG
-- Performing Test OPENMP_HAVE_WPEDANTIC_FLAG - Success
-- Performing Test OPENMP_HAVE_WMAYBE_UNINITIALIZED_FLAG
-- Performing Test OPENMP_HAVE_WMAYBE_UNINITIALIZED_FLAG - Failed
-- Performing Test OPENMP_HAVE_NO_SEMANTIC_INTERPOSITION
-- Performing Test OPENMP_HAVE_NO_SEMANTIC_INTERPOSITION - Success
-- Performing Test OPENMP_HAVE_FUNCTION_SECTIONS
-- Performing Test OPENMP_HAVE_FUNCTION_SECTIONS - Failed
-- Performing Test OPENMP_HAVE_DATA_SECTIONS
-- Performing Test OPENMP_HAVE_DATA_SECTIONS - Success
-- check-runtimes does nothing.
-- Configuring done (2.8s)
-- Generating done (0.0s)
-- Build files have been written to: /builddir/llvm22-22.1.1/llvm/build/runtimes/runtimes-amdgcn-amd-amdhsa-bins
[11172/11189] No patch step for 'runtimes-nvptx64-nvidia-cuda'
[11173/11189] Performing configure step for 'runtimes-nvptx64-nvidia-cuda'
Not searching for unused variables given on the command line.
loading initial cache file /builddir/llvm22-22.1.1/llvm/build/projects/runtimes-nvptx64-nvidia-cuda/tmp/runtimes-nvptx64-nvidia-cuda-cache-Release.cmake
-- Performing bootstrapping runtimes build.
-- The C compiler identification is Clang 22.1.1
-- The CXX compiler identification is Clang 22.1.1
-- The ASM compiler identification is Clang with GNU-like command-line
-- Found assembler: /builddir/llvm22-22.1.1/llvm/build/bin/clang
-- Detecting C compiler ABI info
-- Detecting C compiler ABI info - failed
-- Detecting C compile features
-- Detecting C compile features - done
-- Detecting CXX compiler ABI info
-- Detecting CXX compiler ABI info - failed
-- Detecting CXX compile features
-- Detecting CXX compile features - done
-- Performing Test HAVE_FFI_CALL
-- Performing Test HAVE_FFI_CALL - Failed
-- Could NOT find FFI (missing: HAVE_FFI_CALL) 
-- Looking for histedit.h
-- Looking for histedit.h - not found
-- Could NOT find LibEdit (missing: LibEdit_INCLUDE_DIRS LibEdit_LIBRARIES) 
-- Found ZLIB: /usr/lib/libz.so (found version "1.3.2")
-- Found zstd: /usr/lib/libzstd.so
-- Found LibXml2: /usr/lib64/libxml2.so (found version "2.13.9")
-- Could NOT find FFI (missing: HAVE_FFI_CALL) 
-- Could NOT find LibEdit (missing: LibEdit_INCLUDE_DIRS LibEdit_LIBRARIES) 
-- Performing Test CXX_SUPPORTS_UNWINDLIB_EQ_NONE_FLAG
-- Performing Test CXX_SUPPORTS_UNWINDLIB_EQ_NONE_FLAG - Failed
-- Performing Test CXX_SUPPORTS_NOSTDLIBXX_FLAG
-- Performing Test CXX_SUPPORTS_NOSTDLIBXX_FLAG - Failed
-- Performing Test CXX_SUPPORTS_NOSTDINCXX_FLAG
-- Performing Test CXX_SUPPORTS_NOSTDINCXX_FLAG - Failed
CMake Warning (dev) at /usr/libexec/xbps-src/share/cmake-4.1/Modules/GNUInstallDirs.cmake:433 (message):
  Unable to determine default CMAKE_INSTALL_LIBDIR directory because no
  target architecture is known.  Please enable at least one language before
  including GNUInstallDirs.
Call Stack (most recent call first):
  /usr/libexec/xbps-src/share/cmake-4.1/Modules/GNUInstallDirs.cmake:276 (_GNUInstallDirs_LIBDIR_get_default)
  /usr/libexec/xbps-src/share/cmake-4.1/Modules/GNUInstallDirs.cmake:276 (cmake_language)
  /usr/libexec/xbps-src/share/cmake-4.1/Modules/GNUInstallDirs.cmake:525 (_GNUInstallDirs_cache_path)
  /builddir/llvm22-22.1.1/llvm/cmake/modules/AddLLVM.cmake:1 (include)
  CMakeLists.txt:199 (include)
This warning is for project developers.  Use -Wno-dev to suppress it.

-- Linker detection: LLD
-- Performing Test LLVM_USES_LIBSTDCXX
-- Performing Test LLVM_USES_LIBSTDCXX - Failed
-- Performing Test LLVM_DEFAULT_TO_GLIBCXX_USE_CXX11_ABI
-- Performing Test LLVM_DEFAULT_TO_GLIBCXX_USE_CXX11_ABI - Failed
-- Performing Test CXX_SUPPORTS_CUSTOM_LINKER
-- Performing Test CXX_SUPPORTS_CUSTOM_LINKER - Failed
CMake Error at /builddir/llvm22-22.1.1/llvm/cmake/modules/HandleLLVMOptions.cmake:426 (message):
  Host compiler does not support '-fuse-ld=lld'.  Please make sure that 'lld'
  is installed and that your host compiler can compile a simple program when
  given the option '-fuse-ld=lld'.
Call Stack (most recent call first):
  CMakeLists.txt:200 (include)


-- Configuring incomplete, errors occurred!
FAILED: [code=1] runtimes/runtimes-nvptx64-nvidia-cuda-stamps/runtimes-nvptx64-nvidia-cuda-configure /builddir/llvm22-22.1.1/llvm/build/runtimes/runtimes-nvptx64-nvidia-cuda-stamps/runtimes-nvptx64-nvidia-cuda-configure 
cd /builddir/llvm22-22.1.1/llvm/build/runtimes/runtimes-nvptx64-nvidia-cuda-bins && /usr/libexec/xbps-src/bin/cmake --no-warn-unused-cli -DCMAKE_C_COMPILER=/builddir/llvm22-22.1.1/llvm/build/./bin/clang -DCMAKE_CXX_COMPILER=/builddir/llvm22-22.1.1/llvm/build/./bin/clang++ -DCMAKE_ASM_COMPILER=/builddir/llvm22-22.1.1/llvm/build/./bin/clang -DCMAKE_Fortran_COMPILER=/builddir/llvm22-22.1.1/llvm/build/./bin/flang -DCMAKE_LINKER=/builddir/llvm22-22.1.1/llvm/build/./bin/ld.lld -DCMAKE_AR=/builddir/llvm22-22.1.1/llvm/build/./bin/llvm-ar -DCMAKE_RANLIB=/builddir/llvm22-22.1.1/llvm/build/./bin/llvm-ranlib -DCMAKE_NM=/builddir/llvm22-22.1.1/llvm/build/./bin/llvm-nm -DCMAKE_OBJDUMP=/builddir/llvm22-22.1.1/llvm/build/./bin/llvm-objdump -DCMAKE_OBJCOPY=/builddir/llvm22-22.1.1/llvm/build/./bin/llvm-objcopy -DCMAKE_STRIP=/builddir/llvm22-22.1.1/llvm/build/./bin/llvm-strip -DCMAKE_READELF=/builddir/llvm22-22.1.1/llvm/build/./bin/llvm-readelf -DCMAKE_C_COMPILER_TARGET=nvptx64-nvidia-cuda -DCMAKE_CXX_COMPILER_TARGET=nvptx64-nvidia-cuda -DCMAKE_Fortran_COMPILER_TARGET=nvptx64-nvidia-cuda -DCMAKE_ASM_COMPILER_TARGET=nvptx64-nvidia-cuda -DCMAKE_INSTALL_PREFIX=/usr/lib/llvm/22 -DLLVM_BINARY_DIR=/builddir/llvm22-22.1.1/llvm/build -DLLVM_CONFIG_PATH=/builddir/llvm22-22.1.1/llvm/build/bin/llvm-config -DLLVM_ENABLE_WERROR=OFF -DLLVM_HOST_TRIPLE=x86_64-unknown-linux-gnu -DLLVM_HAVE_LINK_VERSION_SCRIPT=1 -DLLVM_USE_RELATIVE_PATHS_IN_DEBUG_INFO=OFF -DLLVM_USE_RELATIVE_PATHS_IN_FILES=OFF -DLLVM_LIT_ARGS=-sv -DLLVM_SOURCE_PREFIX= -DPACKAGE_VERSION=22.1.1 -DCMAKE_BUILD_TYPE=Release -DCMAKE_MAKE_PROGRAM=/usr/bin/ninja -DCMAKE_EXPORT_COMPILE_COMMANDS=1 -DCOMPILER_RT_BUILD_BUILTINS=OFF -DLLVM_INCLUDE_TESTS=ON -DLLVM_ENABLE_PROJECTS_USED=ON -DLLVM_ENABLE_PER_TARGET_RUNTIME_DIR=NO -DCMAKE_C_COMPILER_WORKS=ON -DCMAKE_CXX_COMPILER_WORKS=ON -DCMAKE_Fortran_COMPILER_WORKS=ON -DCMAKE_ASM_COMPILER_WORKS=ON -DCOMPILER_RT_DEFAULT_TARGET_ONLY=ON -DLLVM_RUNTIMES_TARGET=nvptx64-nvidia-cuda -DHAVE_LLVM_LIT=ON -DCLANG_RESOURCE_DIR= -DLLVM_DEFAULT_TARGET_TRIPLE=nvptx64-nvidia-cuda "-DLLVM_ENABLE_RUNTIMES=compiler-rt;openmp;offload;libclc;libunwind;libcxxabi;libcxx;flang-rt" -DLLVM_USE_LINKER=lld -DLLVM_ENABLE_RUNTIMES=openmp -GNinja -C/builddir/llvm22-22.1.1/llvm/build/projects/runtimes-nvptx64-nvidia-cuda/tmp/runtimes-nvptx64-nvidia-cuda-cache-Release.cmake -S /builddir/llvm22-22.1.1/llvm/runtimes/../../runtimes -B /builddir/llvm22-22.1.1/llvm/build/runtimes/runtimes-nvptx64-nvidia-cuda-bins && /usr/libexec/xbps-src/bin/cmake -E touch /builddir/llvm22-22.1.1/llvm/build/runtimes/runtimes-nvptx64-nvidia-cuda-stamps/runtimes-nvptx64-nvidia-cuda-configure
[11175/11189] Linking CXX executable bin/mlir-translate
ninja: build stopped: subcommand failed.

AFAIK the only possibly relevant changes from default I have are:

  • ccache
  • LTO (enabled via XBPS_PKG_OPTIONS),
  • bump of libxml2 (2.13.8 -> 2.13.9),
  • march and mtune flags in build profile (x86_64)

buildbot failed before reaching this due to ENOSPC

@Duncaen
Copy link
Copy Markdown
Member Author

Duncaen commented Mar 24, 2026

Not sure what the problem could be for your build, -o lto is fine, might be your other build flags?

@Duncaen
Copy link
Copy Markdown
Member Author

Duncaen commented Mar 24, 2026

And the x86_64-musl build went through https://build.voidlinux.org/#/builders/5/builds/5412, doing another build with -o lto just to make sure that works, I did that before but might have overwritten the binaries or never finished due to some other issue during the build maybe.

@JkktBkkt
Copy link
Copy Markdown
Contributor

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants