Skip to content

Conversation

@lntue
Copy link
Contributor

@lntue lntue commented Jun 3, 2025

Make LLVM libc to not be included in LLVM_ENABLE_PROJECTS=all. It can still be manually added to LLVM_ENABLE_PROJECTS list.

Copy link
Contributor

@jhuber6 jhuber6 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I don't think it's proper to add it to extra projects, those are supposed to be 'experimental' I believe. Either way, this list confuses me. I'm guessing it's just a list of all known subdirectories? If so then where's libcxx?

@lntue
Copy link
Contributor Author

lntue commented Jun 3, 2025

I don't think it's proper to add it to extra projects, those are supposed to be 'experimental' I believe. Either way, this list confuses me. I'm guessing it's just a list of all known subdirectories? If so then where's libcxx?

It looks like LLVM_EXTRA_PROJECTS is simply to allow you to add your project to LLVM_ENABLE_PROJECTS list without including the project(s) in the all project. libcxx is included in the LLVM_DEFAULT_RUNTIMES and LLVM_SUPPORTED_RUNTIMES defined below on lines 138-139.

@efriedma-quic
Copy link
Collaborator

A few lines later, we have "Using LLVM_ENABLE_PROJECTS=libc is deprecated now, and will become a fatal error in the LLVM 21 release." If we're going to make it a fatal error for 21, we should probably do that soon... if not, we should update the text with an updated timeline.

list(REMOVE_ITEM LLVM_ALL_PROJECTS openmp)
endif()

# The flang project is not yet part of "all" projects (see C++ requirements)
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This comments probably needs to be updated.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Done.

@lntue
Copy link
Contributor Author

lntue commented Jun 4, 2025

A few lines later, we have "Using LLVM_ENABLE_PROJECTS=libc is deprecated now, and will become a fatal error in the LLVM 21 release." If we're going to make it a fatal error for 21, we should probably do that soon... if not, we should update the text with an updated timeline.

Done.

@lntue lntue merged commit 52ad274 into llvm:main Jun 4, 2025
8 of 10 checks passed
@lntue lntue deleted the all branch June 4, 2025 19:44
@llvm-ci
Copy link
Collaborator

llvm-ci commented Jun 4, 2025

LLVM Buildbot has detected a new failure on builder sanitizer-aarch64-linux-bootstrap-ubsan running on sanitizer-buildbot10 while building llvm at step 2 "annotate".

Full details are available at: https://lab.llvm.org/buildbot/#/builders/85/builds/9530

Here is the relevant piece of the build log for the reference
Step 2 (annotate) failure: 'python ../sanitizer_buildbot/sanitizers/zorg/buildbot/builders/sanitizers/buildbot_selector.py' (failure)
...
llvm-lit: /home/b/sanitizer-aarch64-linux-bootstrap-ubsan/build/llvm-project/llvm/utils/lit/lit/llvm/config.py:520: note: using lld-link: /home/b/sanitizer-aarch64-linux-bootstrap-ubsan/build/llvm_build_ubsan/bin/lld-link
llvm-lit: /home/b/sanitizer-aarch64-linux-bootstrap-ubsan/build/llvm-project/llvm/utils/lit/lit/llvm/config.py:520: note: using ld64.lld: /home/b/sanitizer-aarch64-linux-bootstrap-ubsan/build/llvm_build_ubsan/bin/ld64.lld
llvm-lit: /home/b/sanitizer-aarch64-linux-bootstrap-ubsan/build/llvm-project/llvm/utils/lit/lit/llvm/config.py:520: note: using wasm-ld: /home/b/sanitizer-aarch64-linux-bootstrap-ubsan/build/llvm_build_ubsan/bin/wasm-ld
llvm-lit: /home/b/sanitizer-aarch64-linux-bootstrap-ubsan/build/llvm-project/llvm/utils/lit/lit/llvm/config.py:520: note: using ld.lld: /home/b/sanitizer-aarch64-linux-bootstrap-ubsan/build/llvm_build_ubsan/bin/ld.lld
llvm-lit: /home/b/sanitizer-aarch64-linux-bootstrap-ubsan/build/llvm-project/llvm/utils/lit/lit/llvm/config.py:520: note: using lld-link: /home/b/sanitizer-aarch64-linux-bootstrap-ubsan/build/llvm_build_ubsan/bin/lld-link
llvm-lit: /home/b/sanitizer-aarch64-linux-bootstrap-ubsan/build/llvm-project/llvm/utils/lit/lit/llvm/config.py:520: note: using ld64.lld: /home/b/sanitizer-aarch64-linux-bootstrap-ubsan/build/llvm_build_ubsan/bin/ld64.lld
llvm-lit: /home/b/sanitizer-aarch64-linux-bootstrap-ubsan/build/llvm-project/llvm/utils/lit/lit/llvm/config.py:520: note: using wasm-ld: /home/b/sanitizer-aarch64-linux-bootstrap-ubsan/build/llvm_build_ubsan/bin/wasm-ld
llvm-lit: /home/b/sanitizer-aarch64-linux-bootstrap-ubsan/build/llvm-project/llvm/utils/lit/lit/main.py:73: note: The test suite configuration requested an individual test timeout of 0 seconds but a timeout of 900 seconds was requested on the command line. Forcing timeout to be 900 seconds.
-- Testing: 87798 tests, 72 workers --
Testing:  0.. 10.. 20.. 30.. 40.. 50.. 60.. 70.. 80..
FAIL: LLVM :: tools/llvm-reduce/flaky-interestingness.ll (77839 of 87798)
******************** TEST 'LLVM :: tools/llvm-reduce/flaky-interestingness.ll' FAILED ********************
Exit Code: 1

Command Output (stderr):
--
rm -f /home/b/sanitizer-aarch64-linux-bootstrap-ubsan/build/llvm_build_ubsan/test/tools/llvm-reduce/Output/flaky-interestingness.ll.tmp # RUN: at line 2
+ rm -f /home/b/sanitizer-aarch64-linux-bootstrap-ubsan/build/llvm_build_ubsan/test/tools/llvm-reduce/Output/flaky-interestingness.ll.tmp
llvm-reduce -j=1 --delta-passes=instructions --test "/usr/bin/python3" --test-arg /home/b/sanitizer-aarch64-linux-bootstrap-ubsan/build/llvm-project/llvm/test/tools/llvm-reduce/Inputs/flaky-test.py --test-arg /home/b/sanitizer-aarch64-linux-bootstrap-ubsan/build/llvm_build_ubsan/test/tools/llvm-reduce/Output/flaky-interestingness.ll.tmp /home/b/sanitizer-aarch64-linux-bootstrap-ubsan/build/llvm-project/llvm/test/tools/llvm-reduce/flaky-interestingness.ll -o /dev/null 2>&1 | /home/b/sanitizer-aarch64-linux-bootstrap-ubsan/build/llvm_build_ubsan/bin/FileCheck /home/b/sanitizer-aarch64-linux-bootstrap-ubsan/build/llvm-project/llvm/test/tools/llvm-reduce/flaky-interestingness.ll # RUN: at line 3
+ /home/b/sanitizer-aarch64-linux-bootstrap-ubsan/build/llvm_build_ubsan/bin/FileCheck /home/b/sanitizer-aarch64-linux-bootstrap-ubsan/build/llvm-project/llvm/test/tools/llvm-reduce/flaky-interestingness.ll
+ llvm-reduce -j=1 --delta-passes=instructions --test /usr/bin/python3 --test-arg /home/b/sanitizer-aarch64-linux-bootstrap-ubsan/build/llvm-project/llvm/test/tools/llvm-reduce/Inputs/flaky-test.py --test-arg /home/b/sanitizer-aarch64-linux-bootstrap-ubsan/build/llvm_build_ubsan/test/tools/llvm-reduce/Output/flaky-interestingness.ll.tmp /home/b/sanitizer-aarch64-linux-bootstrap-ubsan/build/llvm-project/llvm/test/tools/llvm-reduce/flaky-interestingness.ll -o /dev/null

--

********************
Testing:  0.. 10.. 20.. 30.. 40.. 50.. 60.. 70.. 80.. 90.. 
Slowest Tests:
--------------------------------------------------------------------------
123.90s: Clang :: Driver/fsanitize.c
77.74s: Clang :: Driver/arm-cortex-cpus-2.c
76.62s: Clang :: Driver/arm-cortex-cpus-1.c
74.57s: Clang :: Preprocessor/riscv-target-features.c
72.37s: Clang :: OpenMP/target_defaultmap_codegen_01.cpp
68.95s: Clang :: OpenMP/target_update_codegen.cpp
58.78s: Clang :: Preprocessor/aarch64-target-features.c
58.05s: Clang :: Preprocessor/arm-target-features.c
51.03s: Clang :: Driver/linux-ld.c
49.42s: Clang :: Preprocessor/predefined-arch-macros.c
48.66s: Clang :: Driver/clang_f_opts.c
46.87s: Clang :: Driver/cl-options.c
45.41s: Clang :: Driver/x86-target-features.c
40.58s: LLVM :: CodeGen/AMDGPU/amdgcn.bitcast.1024bit.ll
40.23s: LLVM :: CodeGen/RISCV/attributes.ll
38.70s: Clang :: Driver/debug-options.c
38.26s: Clang :: Analysis/a_flaky_crash.cpp
37.08s: Clang :: Preprocessor/predefined-macros-no-warnings.c
35.48s: Clang :: Preprocessor/init.c
35.01s: Clang :: Preprocessor/x86_target_features.c

Step 11 (stage2/ubsan check) failure: stage2/ubsan check (failure)
...
llvm-lit: /home/b/sanitizer-aarch64-linux-bootstrap-ubsan/build/llvm-project/llvm/utils/lit/lit/llvm/config.py:520: note: using lld-link: /home/b/sanitizer-aarch64-linux-bootstrap-ubsan/build/llvm_build_ubsan/bin/lld-link
llvm-lit: /home/b/sanitizer-aarch64-linux-bootstrap-ubsan/build/llvm-project/llvm/utils/lit/lit/llvm/config.py:520: note: using ld64.lld: /home/b/sanitizer-aarch64-linux-bootstrap-ubsan/build/llvm_build_ubsan/bin/ld64.lld
llvm-lit: /home/b/sanitizer-aarch64-linux-bootstrap-ubsan/build/llvm-project/llvm/utils/lit/lit/llvm/config.py:520: note: using wasm-ld: /home/b/sanitizer-aarch64-linux-bootstrap-ubsan/build/llvm_build_ubsan/bin/wasm-ld
llvm-lit: /home/b/sanitizer-aarch64-linux-bootstrap-ubsan/build/llvm-project/llvm/utils/lit/lit/llvm/config.py:520: note: using ld.lld: /home/b/sanitizer-aarch64-linux-bootstrap-ubsan/build/llvm_build_ubsan/bin/ld.lld
llvm-lit: /home/b/sanitizer-aarch64-linux-bootstrap-ubsan/build/llvm-project/llvm/utils/lit/lit/llvm/config.py:520: note: using lld-link: /home/b/sanitizer-aarch64-linux-bootstrap-ubsan/build/llvm_build_ubsan/bin/lld-link
llvm-lit: /home/b/sanitizer-aarch64-linux-bootstrap-ubsan/build/llvm-project/llvm/utils/lit/lit/llvm/config.py:520: note: using ld64.lld: /home/b/sanitizer-aarch64-linux-bootstrap-ubsan/build/llvm_build_ubsan/bin/ld64.lld
llvm-lit: /home/b/sanitizer-aarch64-linux-bootstrap-ubsan/build/llvm-project/llvm/utils/lit/lit/llvm/config.py:520: note: using wasm-ld: /home/b/sanitizer-aarch64-linux-bootstrap-ubsan/build/llvm_build_ubsan/bin/wasm-ld
llvm-lit: /home/b/sanitizer-aarch64-linux-bootstrap-ubsan/build/llvm-project/llvm/utils/lit/lit/main.py:73: note: The test suite configuration requested an individual test timeout of 0 seconds but a timeout of 900 seconds was requested on the command line. Forcing timeout to be 900 seconds.
-- Testing: 87798 tests, 72 workers --
Testing:  0.. 10.. 20.. 30.. 40.. 50.. 60.. 70.. 80..
FAIL: LLVM :: tools/llvm-reduce/flaky-interestingness.ll (77839 of 87798)
******************** TEST 'LLVM :: tools/llvm-reduce/flaky-interestingness.ll' FAILED ********************
Exit Code: 1

Command Output (stderr):
--
rm -f /home/b/sanitizer-aarch64-linux-bootstrap-ubsan/build/llvm_build_ubsan/test/tools/llvm-reduce/Output/flaky-interestingness.ll.tmp # RUN: at line 2
+ rm -f /home/b/sanitizer-aarch64-linux-bootstrap-ubsan/build/llvm_build_ubsan/test/tools/llvm-reduce/Output/flaky-interestingness.ll.tmp
llvm-reduce -j=1 --delta-passes=instructions --test "/usr/bin/python3" --test-arg /home/b/sanitizer-aarch64-linux-bootstrap-ubsan/build/llvm-project/llvm/test/tools/llvm-reduce/Inputs/flaky-test.py --test-arg /home/b/sanitizer-aarch64-linux-bootstrap-ubsan/build/llvm_build_ubsan/test/tools/llvm-reduce/Output/flaky-interestingness.ll.tmp /home/b/sanitizer-aarch64-linux-bootstrap-ubsan/build/llvm-project/llvm/test/tools/llvm-reduce/flaky-interestingness.ll -o /dev/null 2>&1 | /home/b/sanitizer-aarch64-linux-bootstrap-ubsan/build/llvm_build_ubsan/bin/FileCheck /home/b/sanitizer-aarch64-linux-bootstrap-ubsan/build/llvm-project/llvm/test/tools/llvm-reduce/flaky-interestingness.ll # RUN: at line 3
+ /home/b/sanitizer-aarch64-linux-bootstrap-ubsan/build/llvm_build_ubsan/bin/FileCheck /home/b/sanitizer-aarch64-linux-bootstrap-ubsan/build/llvm-project/llvm/test/tools/llvm-reduce/flaky-interestingness.ll
+ llvm-reduce -j=1 --delta-passes=instructions --test /usr/bin/python3 --test-arg /home/b/sanitizer-aarch64-linux-bootstrap-ubsan/build/llvm-project/llvm/test/tools/llvm-reduce/Inputs/flaky-test.py --test-arg /home/b/sanitizer-aarch64-linux-bootstrap-ubsan/build/llvm_build_ubsan/test/tools/llvm-reduce/Output/flaky-interestingness.ll.tmp /home/b/sanitizer-aarch64-linux-bootstrap-ubsan/build/llvm-project/llvm/test/tools/llvm-reduce/flaky-interestingness.ll -o /dev/null

--

********************
Testing:  0.. 10.. 20.. 30.. 40.. 50.. 60.. 70.. 80.. 90.. 
Slowest Tests:
--------------------------------------------------------------------------
123.90s: Clang :: Driver/fsanitize.c
77.74s: Clang :: Driver/arm-cortex-cpus-2.c
76.62s: Clang :: Driver/arm-cortex-cpus-1.c
74.57s: Clang :: Preprocessor/riscv-target-features.c
72.37s: Clang :: OpenMP/target_defaultmap_codegen_01.cpp
68.95s: Clang :: OpenMP/target_update_codegen.cpp
58.78s: Clang :: Preprocessor/aarch64-target-features.c
58.05s: Clang :: Preprocessor/arm-target-features.c
51.03s: Clang :: Driver/linux-ld.c
49.42s: Clang :: Preprocessor/predefined-arch-macros.c
48.66s: Clang :: Driver/clang_f_opts.c
46.87s: Clang :: Driver/cl-options.c
45.41s: Clang :: Driver/x86-target-features.c
40.58s: LLVM :: CodeGen/AMDGPU/amdgcn.bitcast.1024bit.ll
40.23s: LLVM :: CodeGen/RISCV/attributes.ll
38.70s: Clang :: Driver/debug-options.c
38.26s: Clang :: Analysis/a_flaky_crash.cpp
37.08s: Clang :: Preprocessor/predefined-macros-no-warnings.c
35.48s: Clang :: Preprocessor/init.c
35.01s: Clang :: Preprocessor/x86_target_features.c


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.

5 participants