Skip to content

Conversation

@ZuseZ4
Copy link
Member

@ZuseZ4 ZuseZ4 commented Nov 7, 2025

The recommended way to build the offload project changed.
While already at it, testing how much overhead we get from building (or shipping) the two runtimes.

r? @Kobzol

@rustbot
Copy link
Collaborator

rustbot commented Nov 7, 2025

This PR changes how LLVM is built. Consider updating src/bootstrap/download-ci-llvm-stamp.

@rustbot rustbot added A-CI Area: Our Github Actions CI A-testsuite Area: The testsuite used to check the correctness of rustc S-waiting-on-review Status: Awaiting review from the assignee but also interested parties. T-bootstrap Relevant to the bootstrap subteam: Rust's build system (x.py and src/bootstrap) T-infra Relevant to the infrastructure team, which will review and decide on the PR/issue. labels Nov 7, 2025
@ZuseZ4
Copy link
Member Author

ZuseZ4 commented Nov 7, 2025

@bors2 try @rust-timer queue

(@Kobzol feel free to change if you want to see something else).

@rust-timer
Copy link
Collaborator

Awaiting bors try build completion.

@rustbot label: +S-waiting-on-perf

@rust-bors

This comment has been minimized.

rust-bors bot added a commit that referenced this pull request Nov 7, 2025
@rustbot rustbot added the S-waiting-on-perf Status: Waiting on a perf run to be completed. label Nov 7, 2025
@rust-log-analyzer

This comment has been minimized.

@rust-bors
Copy link

rust-bors bot commented Nov 7, 2025

💔 Test for 7069335 failed: CI. Failed jobs:

@rust-log-analyzer

This comment has been minimized.

@ZuseZ4
Copy link
Member Author

ZuseZ4 commented Nov 7, 2025

@bors2 try @rust-timer queue

@rust-timer
Copy link
Collaborator

Awaiting bors try build completion.

@rustbot label: +S-waiting-on-perf

rust-bors bot added a commit that referenced this pull request Nov 7, 2025
@rust-bors

This comment has been minimized.

@rust-log-analyzer

This comment has been minimized.

@rust-bors
Copy link

rust-bors bot commented Nov 7, 2025

💔 Test for 31000c9 failed: CI. Failed jobs:

@ZuseZ4
Copy link
Member Author

ZuseZ4 commented Nov 8, 2025

@bors2 try @rust-timer queue

@rust-timer
Copy link
Collaborator

Awaiting bors try build completion.

@rustbot label: +S-waiting-on-perf

@rust-bors

This comment has been minimized.

rust-bors bot added a commit that referenced this pull request Nov 8, 2025
@rust-log-analyzer

This comment has been minimized.

@rust-bors
Copy link

rust-bors bot commented Nov 8, 2025

💔 Test for de7bdfa failed: CI. Failed jobs:

@ZuseZ4
Copy link
Member Author

ZuseZ4 commented Nov 14, 2025

@bors2 try @rust-timer queue

@rust-timer
Copy link
Collaborator

Awaiting bors try build completion.

@rustbot label: +S-waiting-on-perf

@rust-bors

This comment has been minimized.

@rust-timer
Copy link
Collaborator

This pull request is already queued and waiting for a try build to finish.

rust-bors bot added a commit that referenced this pull request Dec 11, 2025
@rust-bors

This comment has been minimized.

@rust-log-analyzer

This comment has been minimized.

@rust-bors
Copy link

rust-bors bot commented Dec 11, 2025

💔 Test for 791fabf failed: CI. Failed jobs:

@rust-log-analyzer

This comment has been minimized.

@ZuseZ4
Copy link
Member Author

ZuseZ4 commented Dec 11, 2025

Almost, openmp builds and offload only fails at the end, likely because defaulting to include dirs from the external (older) clang, while building the newer in-tree LLVM.

@ZuseZ4
Copy link
Member Author

ZuseZ4 commented Dec 11, 2025

@bors2 try @rust-timer queue

@rust-timer
Copy link
Collaborator

This pull request is already queued and waiting for a try build to finish.

@rust-bors

This comment has been minimized.

rust-bors bot added a commit that referenced this pull request Dec 11, 2025
@rust-log-analyzer

This comment has been minimized.

@rust-log-analyzer

This comment has been minimized.

@rust-bors
Copy link

rust-bors bot commented Dec 11, 2025

💔 Test for d540736 failed: CI. Failed jobs:

@ZuseZ4
Copy link
Member Author

ZuseZ4 commented Dec 11, 2025

@Kobzol I got it to work:

[TIMING:end] llvm::OmpOffload { target: x86_64-unknown-linux-gnu } -- 40.429

I think that's a very reasonable tradeoff for having GPU support in nightly?

Just PGO fails, presumably because I added a new step (?)
How do I fix that?

Error: Optimized build pipeline has failed
Caused by:
    0: Cannot merge LLVM profiles
    1: No such file or directory (os error 2)

So apparently rerunning doesn't fix the profile mismatch.
Also, I was told that someone previously had tried to get pgo to work with omp/offload, but that it never fully worked. So the best thing would likely be to just fully exclude it from PGO, how can we do that?

@ZuseZ4
Copy link
Member Author

ZuseZ4 commented Dec 11, 2025

In the absence of better ideas, I'll do the same thing over and expect a different result.
@bors2 try @rust-timer queue

@rust-timer
Copy link
Collaborator

This pull request is already queued and waiting for a try build to finish.

rust-bors bot added a commit that referenced this pull request Dec 11, 2025
@rust-bors

This comment has been minimized.

@rust-log-analyzer

This comment has been minimized.

@rust-bors
Copy link

rust-bors bot commented Dec 11, 2025

💔 Test for a6e0c0e failed: CI. Failed jobs:

@ZuseZ4
Copy link
Member Author

ZuseZ4 commented Dec 11, 2025

@bors2 try @rust-timer queue

@rust-timer
Copy link
Collaborator

This pull request is already queued and waiting for a try build to finish.

@rust-bors

This comment has been minimized.

rust-bors bot added a commit that referenced this pull request Dec 11, 2025
@rust-log-analyzer
Copy link
Collaborator

The job tidy failed! Check out the build log: (web) (plain enhanced) (plain)

Click to see the possible cause of the failure (guessed by this bot)
fmt: checked 6589 files
tidy check
tidy [rustdoc_json (src)]: `rustdoc-json-types` modified, checking format version
tidy: Skipping binary file check, read-only filesystem
tidy [alphabetical (src)]: /checkout/src/bootstrap/src/core/config/config.rs:1374: line not in alphabetical order (tip: use --bless to sort this list)
tidy [alphabetical (src)]: FAIL
removing old virtual environment
creating virtual environment at '/checkout/obj/build/venv' using 'python3.10' and 'venv'
creating virtual environment at '/checkout/obj/build/venv' using 'python3.10' and 'virtualenv'
Requirement already satisfied: pip in ./build/venv/lib/python3.10/site-packages (25.3)
linting python files
---
1 file would be reformatted, 27 files already formatted
--- /checkout/src/bootstrap/configure.py
+++ /checkout/src/bootstrap/configure.py
@@ -120,7 +120,11 @@
 o("llvm-assertions", "llvm.assertions", "build LLVM with assertions")
 o("llvm-enzyme", "llvm.enzyme", "build LLVM with enzyme")
 o("llvm-offload", "llvm.offload", "build LLVM with gpu offload support")
-o("llvm-offload-clang-dir", "llvm.offload-clang-dir", "pass the absolute directory of ClangConfig.cmake")
+o(
+    "llvm-offload-clang-dir",
+    "llvm.offload-clang-dir",
+    "pass the absolute directory of ClangConfig.cmake",
+)
 o("llvm-plugins", "llvm.plugins", "build LLVM with plugin interface")
 o("debug-assertions", "rust.debug-assertions", "build with debugging assertions")
 o(

rerun tidy with `--extra-checks=py:fmt --bless` to reformat Python code
tidy [extra_checks]: checks with external tool 'ruff' failed
tidy [extra_checks]: FAIL
tidy: The following checks failed: alphabetical (src), extra_checks
Bootstrap failed while executing `test src/tools/tidy tidyselftest --extra-checks=py,cpp,js,spellcheck`
Command `/checkout/obj/build/x86_64-unknown-linux-gnu/stage1-tools-bin/rust-tidy /checkout /checkout/obj/build/x86_64-unknown-linux-gnu/stage0/bin/cargo /checkout/obj/build 4 /node/bin/yarn --extra-checks=py,cpp,js,spellcheck` failed with exit code 1
Created at: src/bootstrap/src/core/build_steps/tool.rs:1612:23
Executed at: src/bootstrap/src/core/build_steps/test.rs:1320:29

Command has failed. Rerun with -v to see more details.
Build completed unsuccessfully in 0:01:20
  local time: Thu Dec 11 18:13:04 UTC 2025
  network time: Thu, 11 Dec 2025 18:13:04 GMT
##[error]Process completed with exit code 1.
##[group]Run echo "disk usage:"

@rust-bors
Copy link

rust-bors bot commented Dec 11, 2025

💔 Test for bec514a failed: CI. Failed jobs:

@rust-log-analyzer
Copy link
Collaborator

The job dist-x86_64-linux failed! Check out the build log: (web) (plain enhanced) (plain)

Click to see the possible cause of the failure (guessed by this bot)
sccache: Listening on address 127.0.0.1:4226
##[group]Configure the build
configure: processing command line
configure: 
configure: build.configure-args := ['--enable-full-tools', '--enable-sanitizers', '--enable-profiler', '--enable-compiler-docs', '--set', 'target.x86_64-unknown-linux-gnu.linker=clang', '--set', 'target.x86_64-unknown-linux-gnu.ar=/rustroot/bin/llvm-ar', '--set', 'target.x86_64-unknown-linux-gnu.ranlib=/rustroot/bin/llvm-ranlib', '--set', 'llvm.thin-lto=true', '--set', 'llvm.ninja=false', '--set', 'llvm.offload=true', '--set', 'llvm.offload-clang-dir=/rustroot/lib/cmake/clang', '--set', 'llvm.libzstd=true', '--set', 'rust.jemalloc', '--set', 'rust.bootstrap-override-lld=true', '--set', 'rust.lto=thin', '--set', 'rust.codegen-units=1', '--set', 'build.print-step-timings', '--enable-verbose-tests', '--set', 'build.metrics', '--enable-verbose-configure', '--enable-sccache', '--disable-manage-submodules', '--enable-locked-deps', '--enable-cargo-native-static', '--set', 'rust.codegen-units-std=1', '--set', 'dist.compression-profile=balanced', '--dist-compression-formats=xz', '--set', 'rust.lld=true', '--set', 'build.optimized-compiler-builtins', '--release-channel=nightly', '--enable-llvm-static-stdcpp', '--set', 'rust.remap-debuginfo', '--debuginfo-level-std=1', '--set', 'rust.codegen-backends=llvm,cranelift']
configure: rust.codegen-backends := ['llvm']
configure: rust.lld             := True
configure: rust.llvm-tools      := True
configure: rust.llvm-bitcode-linker := True
configure: build.extended       := True
---

# Arguments passed to the `./configure` script, used during distcheck. You
# probably won't fill this in but rather it's filled in by the `./configure`
# script. Useful for debugging.
configure-args = ['--enable-full-tools', '--enable-sanitizers', '--enable-profiler', '--enable-compiler-docs', '--set', 'target.x86_64-unknown-linux-gnu.linker=clang', '--set', 'target.x86_64-unknown-linux-gnu.ar=/rustroot/bin/llvm-ar', '--set', 'target.x86_64-unknown-linux-gnu.ranlib=/rustroot/bin/llvm-ranlib', '--set', 'llvm.thin-lto=true', '--set', 'llvm.ninja=false', '--set', 'llvm.offload=true', '--set', 'llvm.offload-clang-dir=/rustroot/lib/cmake/clang', '--set', 'llvm.libzstd=true', '--set', 'rust.jemalloc', '--set', 'rust.bootstrap-override-lld=true', '--set', 'rust.lto=thin', '--set', 'rust.codegen-units=1', '--set', 'build.print-step-timings', '--enable-verbose-tests', '--set', 'build.metrics', '--enable-verbose-configure', '--enable-sccache', '--disable-manage-submodules', '--enable-locked-deps', '--enable-cargo-native-static', '--set', 'rust.codegen-units-std=1', '--set', 'dist.compression-profile=balanced', '--dist-compression-formats=xz', '--set', 'rust.lld=true', '--set', 'build.optimized-compiler-builtins', '--release-channel=nightly', '--enable-llvm-static-stdcpp', '--set', 'rust.remap-debuginfo', '--debuginfo-level-std=1', '--set', 'rust.codegen-backends=llvm,cranelift']

# Print out how long each bootstrap step took (mostly intended for CI and
# tracking over time)
print-step-timings = true

---
    Finished `dev` profile [unoptimized + debuginfo] target(s) in 32.37s
##[endgroup]
[2025-12-11T18:19:50.940Z INFO  opt_dist::timer] Section `Stage 1 (Rustc PGO)` starts
[2025-12-11T18:19:50.940Z INFO  opt_dist::timer] Section `Stage 1 (Rustc PGO) > Build PGO instrumented rustc and LLVM` starts
[2025-12-11T18:19:50.940Z INFO  opt_dist::exec] Executing `RUST_BACKTRACE=full python3 /checkout/x.py build --target x86_64-unknown-linux-gnu --host x86_64-unknown-linux-gnu --stage 2 library/std --set rust.llvm-bitcode-linker=false --set build.extended=false --set rust.codegen-backends=['llvm'] --set rust.deny-warnings=false --rust-profile-generate /tmp/tmp-multistage/opt-artifacts/rustc-pgo --set llvm.thin-lto=false --set llvm.link-shared=true [at /checkout/obj]`
##[group]Building bootstrap
    Finished `dev` profile [unoptimized] target(s) in 0.06s
##[endgroup]
[TIMING:start] compile::Assemble { target_compiler: Compiler { stage: 2, host: x86_64-unknown-linux-gnu, forced_compiler: false } }
[TIMING:start] builder::Libdir { compiler: Compiler { stage: 2, host: x86_64-unknown-linux-gnu, forced_compiler: false }, target: x86_64-unknown-linux-gnu }
---
CMAKE_x86_64-unknown-linux-gnu = None
CMAKE_x86_64_unknown_linux_gnu = None
HOST_CMAKE = None
CMAKE = None
running: cd "/checkout/obj/build/x86_64-unknown-linux-gnu/llvm/build" && CMAKE_PREFIX_PATH="" DESTDIR="" LC_ALL="C" LLVM_CONFIG_REAL="/checkout/obj/build/x86_64-unknown-linux-gnu/llvm/bin/llvm-config" "cmake" "/checkout/src/llvm-project/runtimes/" "-DCMAKE_INSTALL_MESSAGE=LAZY" "-DCMAKE_C_COMPILER_LAUNCHER=sccache" "-DCMAKE_CXX_COMPILER_LAUNCHER=sccache" "-DCMAKE_C_COMPILER=clang" "-DCMAKE_CXX_COMPILER=clang++" "-DCMAKE_ASM_COMPILER=clang" "-DCMAKE_C_FLAGS=-ffunction-sections -fdata-sections -fPIC -m64 --target=x86_64-unknown-linux-gnu -fdebug-prefix-map=/checkout=/rustc/llvm -I /checkout/obj/build/x86_64-unknown-linux-gnu/llvm/include" "-DCMAKE_CXX_FLAGS=-ffunction-sections -fdata-sections -fPIC -m64 --target=x86_64-unknown-linux-gnu -fdebug-prefix-map=/checkout=/rustc/llvm -I /checkout/obj/build/x86_64-unknown-linux-gnu/llvm/include" "-DCMAKE_AR=/rustroot/bin/llvm-ar" "-DCMAKE_RANLIB=/rustroot/bin/llvm-ranlib" "-DCMAKE_SHARED_LINKER_FLAGS= -Wl,-Bsymbolic -static-libstdc++" "-DCMAKE_MODULE_LINKER_FLAGS= -Wl,-Bsymbolic -static-libstdc++" "-DCMAKE_EXE_LINKER_FLAGS= -Wl,-Bsymbolic -static-libstdc++" "-DLLVM_ENABLE_ASSERTIONS=ON" "-DLLVM_ENABLE_RUNTIMES=openmp;offload" "-DLLVM_INCLUDE_TESTS=OFF" "-DOFFLOAD_INCLUDE_TESTS=OFF" "-DOPENMP_STANDALONE_BUILD=ON" "-DLLVM_ROOT=/checkout/obj/build/x86_64-unknown-linux-gnu/llvm/build" "-DLLVM_DIR=/checkout/obj/build/x86_64-unknown-linux-gnu/llvm/lib/cmake/llvm" "-DClang_DIR=/rustroot/lib/cmake/clang" "-DCMAKE_INSTALL_PREFIX=/checkout/obj/build/x86_64-unknown-linux-gnu/llvm" "-DCMAKE_ASM_FLAGS= -ffunction-sections -fdata-sections -fPIC -m64 --target=x86_64-unknown-linux-gnu" "-DCMAKE_BUILD_TYPE=Release"
-- Performing standalone runtimes build.
-- The C compiler identification is Clang 21.1.0
-- The CXX compiler identification is Clang 21.1.0
-- The ASM compiler identification is Clang
-- Found assembler: /rustroot/bin/clang
---
-- Performing Test OPENMP_HAVE_FUNCTION_SECTIONS - Failed
-- Performing Test OPENMP_HAVE_DATA_SECTIONS
-- Performing Test OPENMP_HAVE_DATA_SECTIONS - Success
-- Cannot find llvm-lit.
-- Please put llvm-lit in your PATH, set OPENMP_LLVM_LIT_EXECUTABLE to its full path, or point OPENMP_LLVM_TOOLS_DIR to its directory.
CMake Warning at /checkout/src/llvm-project/openmp/cmake/OpenMPTesting.cmake:24 (message):
  The check targets will not be available!
Call Stack (most recent call first):
  /checkout/src/llvm-project/openmp/cmake/OpenMPTesting.cmake:53 (find_standalone_test_dependencies)
  /checkout/src/llvm-project/openmp/CMakeLists.txt:96 (include)


-- Performing Test LIBOMP_HAVE_FNO_EXCEPTIONS_FLAG
-- Performing Test LIBOMP_HAVE_FNO_EXCEPTIONS_FLAG - Success
-- Performing Test LIBOMP_HAVE_FNO_RTTI_FLAG
-- Performing Test LIBOMP_HAVE_FNO_RTTI_FLAG - Success
-- Performing Test LIBOMP_HAVE_WCLASS_MEMACCESS_FLAG
-- Performing Test LIBOMP_HAVE_WCLASS_MEMACCESS_FLAG - Failed
-- Performing Test LIBOMP_HAVE_WCOVERED_SWITCH_DEFAULT_FLAG
-- Performing Test LIBOMP_HAVE_WCOVERED_SWITCH_DEFAULT_FLAG - Success
-- Performing Test LIBOMP_HAVE_WFRAME_ADDRESS_FLAG
-- Performing Test LIBOMP_HAVE_WFRAME_ADDRESS_FLAG - Success
-- Performing Test LIBOMP_HAVE_WSTRICT_ALIASING_FLAG
-- Performing Test LIBOMP_HAVE_WSTRICT_ALIASING_FLAG - Success
-- Performing Test LIBOMP_HAVE_WSTRINGOP_OVERFLOW_FLAG
-- Performing Test LIBOMP_HAVE_WSTRINGOP_OVERFLOW_FLAG - Failed
-- Performing Test LIBOMP_HAVE_WSTRINGOP_TRUNCATION_FLAG
-- Performing Test LIBOMP_HAVE_WSTRINGOP_TRUNCATION_FLAG - Failed
-- Performing Test LIBOMP_HAVE_WSWITCH_FLAG
-- Performing Test LIBOMP_HAVE_WSWITCH_FLAG - Success
-- Performing Test LIBOMP_HAVE_WUNINITIALIZED_FLAG
-- Performing Test LIBOMP_HAVE_WUNINITIALIZED_FLAG - Success
-- Performing Test LIBOMP_HAVE_WRETURN_TYPE_C_LINKAGE_FLAG
-- Performing Test LIBOMP_HAVE_WRETURN_TYPE_C_LINKAGE_FLAG - Success
-- Performing Test LIBOMP_HAVE_WCAST_QUAL_FLAG
-- Performing Test LIBOMP_HAVE_WCAST_QUAL_FLAG - Success
-- Performing Test LIBOMP_HAVE_WINT_TO_VOID_POINTER_CAST_FLAG
-- Performing Test LIBOMP_HAVE_WINT_TO_VOID_POINTER_CAST_FLAG - Success
-- Performing Test LIBOMP_HAVE_MSSE2_FLAG
-- Performing Test LIBOMP_HAVE_MSSE2_FLAG - Success
-- Performing Test LIBOMP_HAVE_FTLS_MODEL_FLAG
-- Performing Test LIBOMP_HAVE_FTLS_MODEL_FLAG - Success
-- Performing Test LIBOMP_HAVE_MMIC_FLAG
-- Performing Test LIBOMP_HAVE_MMIC_FLAG - Failed
-- Performing Test LIBOMP_HAVE_M32_FLAG
-- Performing Test LIBOMP_HAVE_M32_FLAG - Failed
-- Looking for pthread_setname_np
-- Looking for pthread_setname_np - not found
-- Looking for pthread_set_name_np
-- Looking for pthread_set_name_np - not found
-- Looking for shm_open
-- Looking for shm_open - not found
-- Looking for shm_open
-- Looking for shm_open - found
-- Looking for xmmintrin.h
-- Looking for xmmintrin.h - found
-- Performing Test LIBOMP_HAVE__MM_MALLOC
-- Performing Test LIBOMP_HAVE__MM_MALLOC - Success
-- Looking for aligned_alloc
-- Looking for aligned_alloc - found
-- Looking for posix_memalign
-- Looking for posix_memalign - found
-- Looking for _aligned_malloc
-- Looking for _aligned_malloc - not found
-- Performing Test LIBOMP_HAVE_X_FLAG
-- Performing Test LIBOMP_HAVE_X_FLAG - Success
-- Performing Test LIBOMP_HAVE_AS_NEEDED_FLAG
-- Performing Test LIBOMP_HAVE_AS_NEEDED_FLAG - Success
-- Performing Test LIBOMP_HAVE_VERSION_SCRIPT_FLAG
-- Performing Test LIBOMP_HAVE_VERSION_SCRIPT_FLAG - Success
-- Performing Test LIBOMP_HAVE_STATIC_LIBGCC_FLAG
-- Performing Test LIBOMP_HAVE_STATIC_LIBGCC_FLAG - Success
-- Performing Test LIBOMP_HAVE_Z_NOEXECSTACK_FLAG
-- Performing Test LIBOMP_HAVE_Z_NOEXECSTACK_FLAG - Success
-- Looking for pthread.h
-- Looking for pthread.h - found
-- Performing Test CMAKE_HAVE_LIBC_PTHREAD
-- Performing Test CMAKE_HAVE_LIBC_PTHREAD - Failed
-- Looking for pthread_create in pthreads
-- Looking for pthread_create in pthreads - not found
-- Looking for pthread_create in pthread
-- Looking for pthread_create in pthread - found
-- Found Threads: TRUE  
-- Looking for immintrin.h
-- Looking for immintrin.h - found
-- Performing Test LIBOMP_HAVE_ATTRIBUTE_RTM
-- Performing Test LIBOMP_HAVE_ATTRIBUTE_RTM - Success
-- Performing Test LIBOMP_HAVE_ATTRIBUTE_WAITPKG
-- Performing Test LIBOMP_HAVE_ATTRIBUTE_WAITPKG - Success
-- Performing Test LIBOMP_HAVE_WAITPKG_INTRINSICS
-- Performing Test LIBOMP_HAVE_WAITPKG_INTRINSICS - Success
-- Performing Test LIBOMP_HAVE_RTM_INTRINSICS
-- Performing Test LIBOMP_HAVE_RTM_INTRINSICS - Success
-- Performing Test LIBOMP_HAVE_VERSION_SYMBOLS
-- Performing Test LIBOMP_HAVE_VERSION_SYMBOLS - Success
-- Performing Test LIBOMP_HAVE___BUILTIN_FRAME_ADDRESS
-- Performing Test LIBOMP_HAVE___BUILTIN_FRAME_ADDRESS - Success
-- Performing Test LIBOMP_HAVE_WEAK_ATTRIBUTE
-- Performing Test LIBOMP_HAVE_WEAK_ATTRIBUTE - Success
-- Performing Test LIBOMP_HAVE_PSAPI
-- Performing Test LIBOMP_HAVE_PSAPI - Failed
-- LIBOMP: Operating System     -- Linux
-- LIBOMP: Target Architecture  -- x86_64
-- LIBOMP: Build Type           -- Release
-- LIBOMP: Library Kind         -- SHARED
-- LIBOMP: Library Type         -- normal
-- LIBOMP: Fortran Modules      -- FALSE
-- LIBOMP: Build                -- 20140926
-- LIBOMP: Use Stats-gathering  -- FALSE
-- LIBOMP: Use Debugger-support -- FALSE
-- LIBOMP: Use ITT notify       -- TRUE
-- LIBOMP: Use OMPT-support     -- TRUE
-- LIBOMP: Use OMPT-optional  -- TRUE
-- LIBOMP: Use OMPD-support     -- TRUE
-- LIBOMP: Use Adaptive locks   -- TRUE
-- LIBOMP: Use quad precision   -- FALSE
-- LIBOMP: Use Hwloc library    -- FALSE
-- LIBOMP: Use OMPX-taskgraph   -- FALSE
-- Looking for sqrt in m
-- Looking for sqrt in m - found
-- Looking for __atomic_load_1
-- Looking for __atomic_load_1 - not found
-- Looking for __atomic_load_1 in atomic
-- Looking for __atomic_load_1 in atomic - found
-- check-libomp does nothing.
-- check-ompt does nothing.
-- Looking for __atomic_load_1
-- Looking for __atomic_load_1 - not found
-- Looking for __atomic_load_1 in atomic
-- Looking for __atomic_load_1 in atomic - found
-- check-libarcher does nothing.
-- check-ompt-multiplex does nothing.
-- Could NOT find Python3 (missing: Python3_INCLUDE_DIRS Python3_LIBRARIES Development Development.Module Development.Embed) (found version "3.6.8")
-- check-openmp does nothing.
-- Using LLVM include directories: /rustroot/include;/rustroot/include
Failed to 'dlopen' libcuda.so.1
-- Performing Test OFFLOAD_HAVE_WERROR_CTOR
-- Performing Test OFFLOAD_HAVE_WERROR_CTOR - Success
-- Building the offload library with support for the "amdgpu;cuda;host" plugins
-- OMPT target disabled
-- OpenMP tools dir in libomptarget: 
-- Performing Test LLVM_LINKER_SUPPORTS_B_SYMBOLIC_FUNCTIONS
-- Performing Test LLVM_LINKER_SUPPORTS_B_SYMBOLIC_FUNCTIONS - Success
-- Building AMDGPU plugin for dlopened libhsa
-- Not generating AMDGPU tests, no supported devices detected. Use 'LIBOMPTARGET_FORCE_AMDGPU_TESTS' to override.
-- Building CUDA plugin for dlopened libcuda
-- Not generating NVIDIA tests, no supported devices detected. Use 'LIBOMPTARGET_FORCE_NVIDIA_TESTS' to override.
-- Building x86_64 plugin for dlopened libffi
-- Not generating x86_64 tests. LibFFI not found.
-- Building the llvm-offload-device-info tool
-- Building the llvm-omp-kernel-replay tool
-- Building offloading runtime library libomptarget.
-- Configuring done
-- Generating done
-- Build files have been written to: /checkout/obj/build/x86_64-unknown-linux-gnu/llvm/build
running: cd "/checkout/obj/build/x86_64-unknown-linux-gnu/llvm/build" && DESTDIR="" LC_ALL="C" LLVM_CONFIG_REAL="/checkout/obj/build/x86_64-unknown-linux-gnu/llvm/bin/llvm-config" "cmake" "--build" "/checkout/obj/build/x86_64-unknown-linux-gnu/llvm/build" "--target" "install" "--config" "Release" "--" "-j" "36"
[  1%] Generating kmp_i18n_id.inc
[  2%] Generating kmp_i18n_default.inc
[  3%] Building CXX object offload/tools/offload-tblgen/CMakeFiles/offload-tblgen.dir/MiscGen.cpp.o
[  4%] Building CXX object offload/tools/offload-tblgen/CMakeFiles/offload-tblgen.dir/APIGen.cpp.o
[  6%] Building CXX object offload/tools/offload-tblgen/CMakeFiles/offload-tblgen.dir/DocGen.cpp.o
[  6%] Building CXX object offload/tools/offload-tblgen/CMakeFiles/offload-tblgen.dir/EntryPointGen.cpp.o
[  7%] Building CXX object offload/tools/offload-tblgen/CMakeFiles/offload-tblgen.dir/offload-tblgen.cpp.o
[  8%] Building CXX object openmp/tools/archer/CMakeFiles/archer_static.dir/ompt-tsan.cpp.o
[  9%] Building CXX object openmp/tools/archer/CMakeFiles/archer.dir/ompt-tsan.cpp.o
[ 10%] Building CXX object offload/tools/offload-tblgen/CMakeFiles/offload-tblgen.dir/PrintGen.cpp.o
[ 10%] Built target intrinsics_gen
[ 10%] Built target libomp-needed-headers
Scanning dependencies of target omp
[ 11%] Building CXX object openmp/runtime/src/CMakeFiles/omp.dir/kmp_alloc.cpp.o
[ 13%] Building CXX object openmp/runtime/src/CMakeFiles/omp.dir/kmp_error.cpp.o
[ 13%] Building CXX object openmp/runtime/src/CMakeFiles/omp.dir/kmp_environment.cpp.o
[ 15%] Building CXX object openmp/runtime/src/CMakeFiles/omp.dir/kmp_global.cpp.o
[ 15%] Building CXX object openmp/runtime/src/CMakeFiles/omp.dir/kmp_atomic.cpp.o
[ 17%] Building CXX object openmp/runtime/src/CMakeFiles/omp.dir/kmp_debug.cpp.o
[ 17%] Building CXX object openmp/runtime/src/CMakeFiles/omp.dir/kmp_csupport.cpp.o
[ 18%] Building CXX object openmp/runtime/src/CMakeFiles/omp.dir/kmp_itt.cpp.o
[ 19%] Building CXX object openmp/runtime/src/CMakeFiles/omp.dir/kmp_runtime.cpp.o
[ 20%] Building CXX object openmp/runtime/src/CMakeFiles/omp.dir/kmp_io.cpp.o
[ 21%] Building CXX object openmp/runtime/src/CMakeFiles/omp.dir/kmp_i18n.cpp.o
[ 22%] Building CXX object openmp/runtime/src/CMakeFiles/omp.dir/kmp_settings.cpp.o
[ 23%] Building CXX object openmp/runtime/src/CMakeFiles/omp.dir/kmp_str.cpp.o
[ 24%] Building CXX object openmp/runtime/src/CMakeFiles/omp.dir/kmp_tasking.cpp.o
[ 24%] Building CXX object openmp/runtime/src/CMakeFiles/omp.dir/kmp_threadprivate.cpp.o
[ 25%] Building CXX object openmp/runtime/src/CMakeFiles/omp.dir/kmp_barrier.cpp.o
[ 26%] Building CXX object openmp/runtime/src/CMakeFiles/omp.dir/kmp_wait_release.cpp.o
[ 27%] Building CXX object openmp/runtime/src/CMakeFiles/omp.dir/kmp_utility.cpp.o
[ 29%] Building CXX object openmp/runtime/src/CMakeFiles/omp.dir/kmp_affinity.cpp.o
[ 30%] Building CXX object openmp/runtime/src/CMakeFiles/omp.dir/kmp_dispatch.cpp.o
[ 31%] Building CXX object openmp/runtime/src/CMakeFiles/omp.dir/kmp_lock.cpp.o
[ 32%] Building CXX object openmp/runtime/src/CMakeFiles/omp.dir/kmp_sched.cpp.o
[ 33%] Building CXX object openmp/runtime/src/CMakeFiles/omp.dir/z_Linux_util.cpp.o
[ 34%] Building CXX object openmp/runtime/src/CMakeFiles/omp.dir/kmp_collapse.cpp.o
[ 35%] Linking CXX shared library libarcher.so
[ 36%] Building CXX object openmp/runtime/src/CMakeFiles/omp.dir/kmp_gsupport.cpp.o
[ 36%] Building CXX object openmp/runtime/src/CMakeFiles/omp.dir/thirdparty/ittnotify/ittnotify_static.cpp.o
[ 37%] Building CXX object openmp/runtime/src/CMakeFiles/omp.dir/kmp_taskdeps.cpp.o
[ 38%] Building CXX object openmp/runtime/src/CMakeFiles/omp.dir/kmp_cancel.cpp.o
[ 39%] Building CXX object openmp/runtime/src/CMakeFiles/omp.dir/kmp_ftn_cdecl.cpp.o
[ 40%] Linking CXX static library libarcher_static.a
[ 41%] Building CXX object openmp/runtime/src/CMakeFiles/omp.dir/kmp_ftn_extra.cpp.o
[ 43%] Building CXX object openmp/runtime/src/CMakeFiles/omp.dir/kmp_version.cpp.o
[ 44%] Building CXX object openmp/runtime/src/CMakeFiles/omp.dir/ompt-general.cpp.o
[ 44%] Built target archer_static
[ 45%] Building CXX object openmp/runtime/src/CMakeFiles/omp.dir/ompd-specific.cpp.o
[ 46%] Linking CXX executable /rustroot/bin/offload-tblgen
[ 47%] Building ASM object openmp/runtime/src/CMakeFiles/omp.dir/z_Linux_asm.S.o
[ 47%] Built target offload-tblgen
[ 47%] Building include/OffloadErrcodes.inc...
[ 48%] Building include/OffloadInfo.inc...
[ 48%] Building generated/OffloadPrint.hpp.gen...
[ 49%] Building generated/OffloadFuncs.inc.gen...
[ 50%] Building generated/OffloadAPI.h.gen...
[ 51%] Building generated/OffloadEntryPoints.inc.gen...
[ 52%] Building generated/OffloadImplFuncDecls.inc.gen...
[ 53%] Building generated/OffloadAPI.h.gen...
[ 54%] Building generated/OffloadEntryPoints.inc.gen...
[ 55%] Building generated/OffloadFuncs.inc.gen...
[ 56%] Building generated/OffloadPrint.hpp.gen...
[ 58%] Building generated/OffloadImplFuncDecls.inc.gen...
[ 58%] Built target archer
[ 58%] Built target PluginErrcodes
[ 59%] Generating OffloadEntryPoints.inc
[ 60%] Generating OffloadPrint.hpp
[ 61%] Generating OffloadFuncs.inc
[ 62%] Generating OffloadAPI.h
[ 63%] Generating OffloadImplFuncDecls.inc
[ 63%] Built target OffloadGenerate
[ 64%] Building CXX object offload/plugins-nextgen/common/CMakeFiles/PluginCommon.dir/src/GlobalHandler.cpp.o
[ 65%] Building CXX object offload/plugins-nextgen/common/CMakeFiles/PluginCommon.dir/src/PluginInterface.cpp.o
[ 66%] Building CXX object offload/plugins-nextgen/common/CMakeFiles/PluginCommon.dir/src/JIT.cpp.o
[ 68%] Building CXX object offload/plugins-nextgen/common/CMakeFiles/PluginCommon.dir/src/RPC.cpp.o
[ 68%] Building CXX object offload/plugins-nextgen/common/CMakeFiles/PluginCommon.dir/src/OffloadError.cpp.o
[ 69%] Building CXX object offload/plugins-nextgen/common/CMakeFiles/PluginCommon.dir/src/Utils/ELF.cpp.o
[ 69%] Built target OffloadAPI.OffloadFuncs.inc
[ 69%] Built target OffloadAPI.OffloadImplFuncDecls.inc
[ 69%] Built target OffloadAPI.OffloadPrint.hpp
[ 69%] Built target OffloadAPI.OffloadAPI.h
[ 69%] Built target OffloadAPI.OffloadEntryPoints.inc
[ 70%] Linking C shared library libomp.so
[ 70%] Built target OffloadAPI
clang: warning: argument unused during compilation: '-static-libstdc++' [-Wunused-command-line-argument]
[ 70%] Built target omp
[ 72%] Building CXX object openmp/libompd/src/CMakeFiles/ompd.dir/TargetValue.cpp.o
[ 72%] Building CXX object openmp/libompd/src/CMakeFiles/ompd.dir/omp-state.cpp.o
[ 73%] Building CXX object openmp/libompd/src/CMakeFiles/ompd.dir/omp-icv.cpp.o
[ 74%] Building CXX object openmp/libompd/src/CMakeFiles/ompd.dir/omp-debug.cpp.o
[ 75%] Linking CXX shared library libompd.so
[ 75%] Built target PluginCommon
[ 77%] Building CXX object offload/plugins-nextgen/cuda/CMakeFiles/omptarget.rtl.cuda.dir/src/rtl.cpp.o
[ 78%] Building CXX object offload/plugins-nextgen/amdgpu/CMakeFiles/omptarget.rtl.amdgpu.dir/dynamic_hsa/hsa.cpp.o
[ 78%] Building CXX object offload/plugins-nextgen/cuda/CMakeFiles/omptarget.rtl.cuda.dir/dynamic_cuda/cuda.cpp.o
[ 79%] Building CXX object offload/plugins-nextgen/amdgpu/CMakeFiles/omptarget.rtl.amdgpu.dir/src/rtl.cpp.o
[ 80%] Building CXX object offload/plugins-nextgen/host/CMakeFiles/omptarget.rtl.host.dir/src/rtl.cpp.o
[ 81%] Building CXX object offload/plugins-nextgen/host/CMakeFiles/omptarget.rtl.host.dir/dynamic_ffi/ffi.cpp.o
[ 81%] Built target ompd
[ 82%] Linking CXX static library /rustroot/lib/libomptarget.rtl.host.a
[ 82%] Built target omptarget.rtl.host
/checkout/src/llvm-project/offload/plugins-nextgen/amdgpu/src/rtl.cpp:2594:7: warning: default label in switch which covers all enumeration values [-Wcovered-switch-default]
 2594 |       default:
      |       ^
1 warning generated.
[ 83%] Linking CXX static library /rustroot/lib/libomptarget.rtl.amdgpu.a
[ 83%] Built target omptarget.rtl.amdgpu
[ 84%] Linking CXX static library /rustroot/lib/libomptarget.rtl.cuda.a
[ 84%] Built target omptarget.rtl.cuda
[ 84%] Building CXX object offload/liboffload/CMakeFiles/LLVMOffload.dir/src/OffloadLib.cpp.o
[ 86%] Building CXX object offload/liboffload/CMakeFiles/LLVMOffload.dir/src/OffloadImpl.cpp.o
[ 87%] Building CXX object offload/libomptarget/CMakeFiles/omptarget.dir/device.cpp.o
[ 89%] Building CXX object offload/libomptarget/CMakeFiles/omptarget.dir/omptarget.cpp.o
[ 89%] Building CXX object offload/libomptarget/CMakeFiles/omptarget.dir/interface.cpp.o
[ 90%] Building CXX object offload/libomptarget/CMakeFiles/omptarget.dir/OffloadRTL.cpp.o
[ 91%] Building CXX object offload/libomptarget/CMakeFiles/omptarget.dir/LegacyAPI.cpp.o
[ 92%] Building CXX object offload/libomptarget/CMakeFiles/omptarget.dir/PluginManager.cpp.o
[ 93%] Building CXX object offload/libomptarget/CMakeFiles/omptarget.dir/DeviceImage.cpp.o
[ 94%] Building CXX object offload/libomptarget/CMakeFiles/omptarget.dir/OpenMP/API.cpp.o
[ 95%] Building CXX object offload/libomptarget/CMakeFiles/omptarget.dir/OpenMP/Mapping.cpp.o
[ 95%] Building CXX object offload/libomptarget/CMakeFiles/omptarget.dir/OpenMP/InteropAPI.cpp.o
[ 96%] Building CXX object offload/libomptarget/CMakeFiles/omptarget.dir/KernelLanguage/API.cpp.o
[ 97%] Building CXX object offload/libomptarget/CMakeFiles/omptarget.dir/OpenMP/OMPT/Callback.cpp.o
[ 98%] Linking CXX shared library /rustroot/lib/libLLVMOffload.so
[100%] Linking CXX shared library /rustroot/lib/libomptarget.so
[100%] Built target LLVMOffload
[100%] Built target omptarget
Install the project...
-- Install configuration: "Release"
-- Installing: /checkout/obj/build/x86_64-unknown-linux-gnu/llvm/lib/libomp.so
-- Installing: /checkout/obj/build/x86_64-unknown-linux-gnu/llvm/include/omp.h
-- Installing: /checkout/obj/build/x86_64-unknown-linux-gnu/llvm/include/ompx.h
---
   0: <anyhow::Error as core::convert::From<std::io::error::Error>>::from
             at /rust/deps/anyhow-1.0.100/src/backtrace.rs:27:14
   1: <core::result::Result<(), anyhow::Error> as core::ops::try_trait::FromResidual<core::result::Result<core::convert::Infallible, std::io::error::Error>>>::from_residual
             at /rustc/3b4dd9bf1410f8da6329baa36ce5e37673cbbd1f/library/core/src/result.rs:2184:27
   2: <opt_dist::exec::CmdBuilder>::run
             at /rustc/bec514a1898965df247dd2258bd18bd1a3257720/src/tools/opt-dist/src/exec.rs:78:27
   3: opt_dist::training::merge_llvm_profiles
             at /rustc/bec514a1898965df247dd2258bd18bd1a3257720/src/tools/opt-dist/src/training.rs:83:10
   4: opt_dist::training::gather_rustc_profiles
             at /rustc/bec514a1898965df247dd2258bd18bd1a3257720/src/tools/opt-dist/src/training.rs:167:5
   5: opt_dist::execute_pipeline::{closure#1}::{closure#1}
             at /rustc/bec514a1898965df247dd2258bd18bd1a3257720/src/tools/opt-dist/src/main.rs:260:45
   6: <opt_dist::timer::TimerSection>::section::<opt_dist::execute_pipeline::{closure#1}::{closure#1}, opt_dist::training::RustcPGOProfile>
             at /rustc/bec514a1898965df247dd2258bd18bd1a3257720/src/tools/opt-dist/src/timer.rs:111:22
   7: opt_dist::execute_pipeline::{closure#1}
             at /rustc/bec514a1898965df247dd2258bd18bd1a3257720/src/tools/opt-dist/src/main.rs:260:14
   8: <opt_dist::timer::TimerSection>::section::<opt_dist::execute_pipeline::{closure#1}, opt_dist::training::RustcPGOProfile>
             at /rustc/bec514a1898965df247dd2258bd18bd1a3257720/src/tools/opt-dist/src/timer.rs:111:22
   9: opt_dist::execute_pipeline
             at /rustc/bec514a1898965df247dd2258bd18bd1a3257720/src/tools/opt-dist/src/main.rs:242:35
  10: opt_dist::main
             at /rustc/bec514a1898965df247dd2258bd18bd1a3257720/src/tools/opt-dist/src/main.rs:467:18
  11: <fn() -> core::result::Result<(), anyhow::Error> as core::ops::function::FnOnce<()>>::call_once
             at /rustc/3b4dd9bf1410f8da6329baa36ce5e37673cbbd1f/library/core/src/ops/function.rs:250:5
  12: std::sys::backtrace::__rust_begin_short_backtrace::<fn() -> core::result::Result<(), anyhow::Error>, core::result::Result<(), anyhow::Error>>
             at /rustc/3b4dd9bf1410f8da6329baa36ce5e37673cbbd1f/library/std/src/sys/backtrace.rs:158:18
  13: std::rt::lang_start::<core::result::Result<(), anyhow::Error>>::{closure#0}
             at /rustc/3b4dd9bf1410f8da6329baa36ce5e37673cbbd1f/library/std/src/rt.rs:206:18
  14: core::ops::function::impls::<impl core::ops::function::FnOnce<A> for &F>::call_once
             at /rustc/3b4dd9bf1410f8da6329baa36ce5e37673cbbd1f/library/core/src/ops/function.rs:287:21
  15: std::panicking::catch_unwind::do_call
             at /rustc/3b4dd9bf1410f8da6329baa36ce5e37673cbbd1f/library/std/src/panicking.rs:590:40
  16: std::panicking::catch_unwind
             at /rustc/3b4dd9bf1410f8da6329baa36ce5e37673cbbd1f/library/std/src/panicking.rs:553:19

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

Labels

A-CI Area: Our Github Actions CI A-testsuite Area: The testsuite used to check the correctness of rustc S-waiting-on-perf Status: Waiting on a perf run to be completed. S-waiting-on-review Status: Awaiting review from the assignee but also interested parties. T-bootstrap Relevant to the bootstrap subteam: Rust's build system (x.py and src/bootstrap) T-infra Relevant to the infrastructure team, which will review and decide on the PR/issue.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

6 participants