Skip to content

Conversation

@yonghong-song
Copy link
Contributor

Add a macro __BPF_FEATURE_GOTOX for bpf target for cpu v4. So the developer can easily detect whether insn gotox is supported or not.

Add a macro __BPF_FEATURE_GOTOX for bpf target for cpu v4.
So the developer can easily detect whether insn gotox is
supported or not.
@yonghong-song yonghong-song requested review from 4ast and eddyz87 October 28, 2025 18:37
@llvmbot llvmbot added clang Clang issues not falling into any other category clang:frontend Language frontend issues, e.g. anything involving "Sema" labels Oct 28, 2025
@llvmbot
Copy link
Member

llvmbot commented Oct 28, 2025

@llvm/pr-subscribers-clang

Author: None (yonghong-song)

Changes

Add a macro __BPF_FEATURE_GOTOX for bpf target for cpu v4. So the developer can easily detect whether insn gotox is supported or not.


Full diff: https://github.com/llvm/llvm-project/pull/165456.diff

2 Files Affected:

  • (modified) clang/lib/Basic/Targets/BPF.cpp (+1)
  • (modified) clang/test/Preprocessor/bpf-predefined-macros.c (+4)
diff --git a/clang/lib/Basic/Targets/BPF.cpp b/clang/lib/Basic/Targets/BPF.cpp
index 0411bcca51789..8de1083d758c7 100644
--- a/clang/lib/Basic/Targets/BPF.cpp
+++ b/clang/lib/Basic/Targets/BPF.cpp
@@ -75,6 +75,7 @@ void BPFTargetInfo::getTargetDefines(const LangOptions &Opts,
     Builder.defineMacro("__BPF_FEATURE_GOTOL");
     Builder.defineMacro("__BPF_FEATURE_ST");
     Builder.defineMacro("__BPF_FEATURE_LOAD_ACQ_STORE_REL");
+    Builder.defineMacro("__BPF_FEATURE_GOTOX");
   }
 }
 
diff --git a/clang/test/Preprocessor/bpf-predefined-macros.c b/clang/test/Preprocessor/bpf-predefined-macros.c
index cd8a2ec031925..a9ae8c58c3ba7 100644
--- a/clang/test/Preprocessor/bpf-predefined-macros.c
+++ b/clang/test/Preprocessor/bpf-predefined-macros.c
@@ -70,6 +70,9 @@ int u;
 #ifdef __BPF_FEATURE_LOAD_ACQ_STORE_REL
 int v;
 #endif
+#ifdef __BPF_FEATURE_GOTOX
+int w;
+#endif
 
 // CHECK: int b;
 // CHECK: int c;
@@ -110,6 +113,7 @@ int v;
 // CPU_V4: int u;
 
 // CPU_V4: int v;
+// CPU_V4: int w;
 
 // CPU_GENERIC: int g;
 

@yonghong-song
Copy link
Contributor Author

cc @aspsk

Copy link
Contributor

@eddyz87 eddyz87 left a comment

Choose a reason for hiding this comment

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

I think we come to a point where we need to decide if gotox is a part of cpuv4. If it is, we should keep it disabled by default, to avoid backwards compatibility issues.
@4ast , @yonghong-song

@yonghong-song
Copy link
Contributor Author

I think it should be okay. Based on practice of selftest, feature testing sounds a good way to guard specific features. And in the long run, e.g., after llvm24 released, we do not even care to use feature guard as users can upgrade to llvm22/23/24.

@eddyz87
Copy link
Contributor

eddyz87 commented Oct 28, 2025

I think it should be okay. Based on practice of selftest, feature testing sounds a good way to guard specific features. And in the long run, e.g., after llvm24 released, we do not even care to use feature guard as users can upgrade to llvm22/23/24.

Yes, but if someone upgrades to new llvm he would have to either adjust build scripts to disable gotox, or upgrade the kernel version. Just want to clarify if that's what we want.

@yonghong-song
Copy link
Contributor Author

yonghong-song commented Oct 28, 2025

I think it should be okay. I discussed this earlier with @4ast, we do not to increase version number frequently as it is not sustainable. So we have feature flags and llvm internal flags to guard this. Just for this specific case, switch cases need to more than 12 to trigger jump table and computed goto won't work without this feature. So potential hits on people is low. @4ast What do you think?

@4ast
Copy link
Member

4ast commented Oct 28, 2025

I think we come to a point where we need to decide if gotox is a part of cpuv4. If it is, we should keep it disabled by default, to avoid backwards compatibility issues. @4ast , @yonghong-song

it's fine for gotox to be in cpuv4. It will be generated only for large-ish switches where backward compat is unlikely to be an issue, and for explicit computed goto which would have failed to compile.

@yonghong-song yonghong-song merged commit 2aecb3c into llvm:main Oct 28, 2025
13 checks passed
@llvm-ci
Copy link
Collaborator

llvm-ci commented Oct 28, 2025

LLVM Buildbot has detected a new failure on builder lldb-aarch64-ubuntu running on linaro-lldb-aarch64-ubuntu while building clang at step 6 "test".

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

Here is the relevant piece of the build log for the reference
Step 6 (test) failure: build (failure)
...
PASS: lldb-api :: commands/frame/var/TestFrameVar.py (189 of 2349)
PASS: lldb-api :: commands/log/invalid-args/TestInvalidArgsLog.py (190 of 2349)
PASS: lldb-api :: commands/help/TestHelp.py (191 of 2349)
PASS: lldb-api :: commands/platform/basic/TestPlatformPython.py (192 of 2349)
PASS: lldb-api :: commands/platform/basic/TestPlatformCommand.py (193 of 2349)
PASS: lldb-api :: commands/memory/write/TestMemoryWrite.py (194 of 2349)
PASS: lldb-api :: commands/platform/file/close/TestPlatformFileClose.py (195 of 2349)
PASS: lldb-api :: commands/platform/file/read/TestPlatformFileRead.py (196 of 2349)
PASS: lldb-api :: commands/memory/read/TestMemoryRead.py (197 of 2349)
UNRESOLVED: lldb-api :: commands/gui/spawn-threads/TestGuiSpawnThreads.py (198 of 2349)
******************** TEST 'lldb-api :: commands/gui/spawn-threads/TestGuiSpawnThreads.py' FAILED ********************
Script:
--
/usr/bin/python3.10 /home/tcwg-buildbot/worker/lldb-aarch64-ubuntu/llvm-project/lldb/test/API/dotest.py -u CXXFLAGS -u CFLAGS --env LLVM_LIBS_DIR=/home/tcwg-buildbot/worker/lldb-aarch64-ubuntu/build/./lib --env LLVM_INCLUDE_DIR=/home/tcwg-buildbot/worker/lldb-aarch64-ubuntu/build/include --env LLVM_TOOLS_DIR=/home/tcwg-buildbot/worker/lldb-aarch64-ubuntu/build/./bin --arch aarch64 --build-dir /home/tcwg-buildbot/worker/lldb-aarch64-ubuntu/build/lldb-test-build.noindex --lldb-module-cache-dir /home/tcwg-buildbot/worker/lldb-aarch64-ubuntu/build/lldb-test-build.noindex/module-cache-lldb/lldb-api --clang-module-cache-dir /home/tcwg-buildbot/worker/lldb-aarch64-ubuntu/build/lldb-test-build.noindex/module-cache-clang/lldb-api --executable /home/tcwg-buildbot/worker/lldb-aarch64-ubuntu/build/./bin/lldb --compiler /home/tcwg-buildbot/worker/lldb-aarch64-ubuntu/build/./bin/clang --dsymutil /home/tcwg-buildbot/worker/lldb-aarch64-ubuntu/build/./bin/dsymutil --make /usr/bin/gmake --llvm-tools-dir /home/tcwg-buildbot/worker/lldb-aarch64-ubuntu/build/./bin --lldb-obj-root /home/tcwg-buildbot/worker/lldb-aarch64-ubuntu/build/tools/lldb --lldb-libs-dir /home/tcwg-buildbot/worker/lldb-aarch64-ubuntu/build/./lib --cmake-build-type Release /home/tcwg-buildbot/worker/lldb-aarch64-ubuntu/llvm-project/lldb/test/API/commands/gui/spawn-threads -p TestGuiSpawnThreads.py
--
Exit Code: 1

Command Output (stdout):
--
lldb version 22.0.0git (https://github.com/llvm/llvm-project.git revision 2aecb3cc58613010c40e55c3ca45d85249cc970d)
  clang revision 2aecb3cc58613010c40e55c3ca45d85249cc970d
  llvm revision 2aecb3cc58613010c40e55c3ca45d85249cc970d
Skipping the following test categories: ['libc++', 'msvcstl', 'dsym', 'gmodules', 'debugserver', 'objc']

--
Command Output (stderr):
--
FAIL: LLDB (/home/tcwg-buildbot/worker/lldb-aarch64-ubuntu/build/bin/clang-aarch64) :: test_gui (TestGuiSpawnThreads.TestGuiSpawnThreadsTest)
======================================================================
ERROR: test_gui (TestGuiSpawnThreads.TestGuiSpawnThreadsTest)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/home/tcwg-buildbot/worker/lldb-aarch64-ubuntu/llvm-project/lldb/packages/Python/lldbsuite/test/decorators.py", line 156, in wrapper
    return func(*args, **kwargs)
  File "/home/tcwg-buildbot/worker/lldb-aarch64-ubuntu/llvm-project/lldb/test/API/commands/gui/spawn-threads/TestGuiSpawnThreads.py", line 44, in test_gui
    self.child.expect_exact(f"thread #{i + 2}: tid =")
  File "/usr/local/lib/python3.10/dist-packages/pexpect/spawnbase.py", line 432, in expect_exact
    return exp.expect_loop(timeout)
  File "/usr/local/lib/python3.10/dist-packages/pexpect/expect.py", line 179, in expect_loop
    return self.eof(e)
  File "/usr/local/lib/python3.10/dist-packages/pexpect/expect.py", line 122, in eof
    raise exc
pexpect.exceptions.EOF: End Of File (EOF). Exception style platform.
<pexpect.pty_spawn.spawn object at 0xf30f515ed420>
command: /home/tcwg-buildbot/worker/lldb-aarch64-ubuntu/build/bin/lldb
args: ['/home/tcwg-buildbot/worker/lldb-aarch64-ubuntu/build/bin/lldb', '--no-lldbinit', '--no-use-colors', '-O', 'settings clear --all', '-O', 'settings set symbols.enable-external-lookup false', '-O', 'settings set target.inherit-tcc true', '-O', 'settings set target.disable-aslr false', '-O', 'settings set target.detach-on-error false', '-O', 'settings set target.auto-apply-fixits false', '-O', 'settings set plugin.process.gdb-remote.packet-timeout 60', '-O', 'settings set symbols.clang-modules-cache-path "/home/tcwg-buildbot/worker/lldb-aarch64-ubuntu/build/lldb-test-build.noindex/module-cache-lldb/lldb-api"', '-O', 'settings set use-color false', '-O', 'settings set show-statusline false', '--file', '/home/tcwg-buildbot/worker/lldb-aarch64-ubuntu/build/lldb-test-build.noindex/commands/gui/spawn-threads/TestGuiSpawnThreads.test_gui/a.out']
buffer (last 100 chars): b''
before (last 100 chars): b'thread_create.c:442:8\n#20 0x0000fe2545b39e9c ./misc/../sysdeps/unix/sysv/linux/aarch64/clone.S:82:0\n'
after: <class 'pexpect.exceptions.EOF'>

@llvm-ci
Copy link
Collaborator

llvm-ci commented Oct 28, 2025

LLVM Buildbot has detected a new failure on builder clang-aarch64-quick running on linaro-clang-aarch64-quick while building clang at step 5 "ninja check 1".

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

Here is the relevant piece of the build log for the reference
Step 5 (ninja check 1) failure: stage 1 checked (failure)
******************** TEST 'Clangd Unit Tests :: ./ClangdTests/160/335' FAILED ********************
Script(shard):
--
GTEST_OUTPUT=json:/home/tcwg-buildbot/worker/clang-aarch64-quick/stage1/tools/clang/tools/extra/clangd/unittests/./ClangdTests-Clangd Unit Tests-1415516-160-335.json GTEST_SHUFFLE=0 GTEST_TOTAL_SHARDS=335 GTEST_SHARD_INDEX=160 /home/tcwg-buildbot/worker/clang-aarch64-quick/stage1/tools/clang/tools/extra/clangd/unittests/./ClangdTests
--

Note: This is test shard 161 of 335.
[==========] Running 4 tests from 4 test suites.
[----------] Global test environment set-up.
[----------] 1 test from CompletionTest
[ RUN      ] CompletionTest.InsertIncludeOrImport
Built preamble of size 707732 for file /clangd-test/foo.cpp version null in 0.41 seconds
Code complete: fuzzyFind({
  "AnyScope": false,
  "Limit": null,
  "PreferredTypes": [],
  "ProximityPaths": [
    "/clangd-test/foo.cpp"
  ],
  "Query": "Fun",
  "RestrictForCodeCompletion": true,
  "Scopes": [
    ""
  ]
})
Code complete: sema context TopLevel, query scopes [] (AnyScope=false), expected type <none>
Code complete: 0 results from Sema, 1 from Index, 0 matched, 0 from identifiers, 1 returned.
Built preamble of size 709276 for file /clangd-test/Foo.m version null in 0.52 seconds
Code complete: fuzzyFind({
  "AnyScope": false,
  "Limit": null,
  "PreferredTypes": [],
  "ProximityPaths": [
    "/clangd-test/Foo.m"
  ],
  "Query": "Fun",
  "RestrictForCodeCompletion": true,
  "Scopes": [
    ""
  ]
})
Code complete: sema context TopLevel, query scopes [] (AnyScope=false), expected type <none>
Code complete: 0 results from Sema, 1 from Index, 0 matched, 0 from identifiers, 1 returned.
Built preamble of size 707732 for file /clangd-test/foo.cpp version null in 0.17 seconds
Code complete: fuzzyFind({
  "AnyScope": false,
  "Limit": null,
  "PreferredTypes": [],
  "ProximityPaths": [
    "/clangd-test/foo.cpp"
...

@llvm-ci
Copy link
Collaborator

llvm-ci commented Oct 28, 2025

LLVM Buildbot has detected a new failure on builder llvm-clang-x86_64-darwin running on doug-worker-3 while building clang at step 6 "test-build-unified-tree-check-all".

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

Here is the relevant piece of the build log for the reference
Step 6 (test-build-unified-tree-check-all) failure: test (failure)
******************** TEST 'Clang :: Driver/wasm-features.c' FAILED ********************
Exit Code: 127

Command Output (stdout):
--
# RUN: at line 1
/Volumes/RAMDisk/buildbot-root/x86_64-darwin/build/bin/clang --target=wasm32-unknown-unknown -### /Volumes/RAMDisk/buildbot-root/x86_64-darwin/llvm-project/clang/test/Driver/wasm-features.c -fsyntax-only 2>&1 | /Volumes/RAMDisk/buildbot-root/x86_64-darwin/build/bin/FileCheck /Volumes/RAMDisk/buildbot-root/x86_64-darwin/llvm-project/clang/test/Driver/wasm-features.c
# executed command: /Volumes/RAMDisk/buildbot-root/x86_64-darwin/build/bin/clang --target=wasm32-unknown-unknown '-###' /Volumes/RAMDisk/buildbot-root/x86_64-darwin/llvm-project/clang/test/Driver/wasm-features.c -fsyntax-only
# note: command had no output on stdout or stderr
# executed command: /Volumes/RAMDisk/buildbot-root/x86_64-darwin/build/bin/FileCheck /Volumes/RAMDisk/buildbot-root/x86_64-darwin/llvm-project/clang/test/Driver/wasm-features.c
# note: command had no output on stdout or stderr
# RUN: at line 5
/Volumes/RAMDisk/buildbot-root/x86_64-darwin/build/bin/clang --target=wasm32-unknown-unknown -### /Volumes/RAMDisk/buildbot-root/x86_64-darwin/llvm-project/clang/test/Driver/wasm-features.c -mcpu=mvp 2>&1 | /Volumes/RAMDisk/buildbot-root/x86_64-darwin/build/bin/FileCheck /Volumes/RAMDisk/buildbot-root/x86_64-darwin/llvm-project/clang/test/Driver/wasm-features.c -check-prefix=MVP
# executed command: /Volumes/RAMDisk/buildbot-root/x86_64-darwin/build/bin/clang --target=wasm32-unknown-unknown '-###' /Volumes/RAMDisk/buildbot-root/x86_64-darwin/llvm-project/clang/test/Driver/wasm-features.c -mcpu=mvp
# note: command had no output on stdout or stderr
# executed command: /Volumes/RAMDisk/buildbot-root/x86_64-darwin/build/bin/FileCheck /Volumes/RAMDisk/buildbot-root/x86_64-darwin/llvm-project/clang/test/Driver/wasm-features.c -check-prefix=MVP
# note: command had no output on stdout or stderr
# RUN: at line 6
/Volumes/RAMDisk/buildbot-root/x86_64-darwin/build/bin/clang --target=wasm32-unknown-unknown -### /Volumes/RAMDisk/buildbot-root/x86_64-darwin/llvm-project/clang/test/Driver/wasm-features.c 2>&1 | /Volumes/RAMDisk/buildbot-root/x86_64-darwin/build/bin/FileCheck /Volumes/RAMDisk/buildbot-root/x86_64-darwin/llvm-project/clang/test/Driver/wasm-features.c -check-prefix=GENERIC
# executed command: /Volumes/RAMDisk/buildbot-root/x86_64-darwin/build/bin/clang --target=wasm32-unknown-unknown '-###' /Volumes/RAMDisk/buildbot-root/x86_64-darwin/llvm-project/clang/test/Driver/wasm-features.c
# note: command had no output on stdout or stderr
# executed command: /Volumes/RAMDisk/buildbot-root/x86_64-darwin/build/bin/FileCheck /Volumes/RAMDisk/buildbot-root/x86_64-darwin/llvm-project/clang/test/Driver/wasm-features.c -check-prefix=GENERIC
# note: command had no output on stdout or stderr
# RUN: at line 7
/Volumes/RAMDisk/buildbot-root/x86_64-darwin/build/bin/clang --target=wasm32-unknown-unknown -### /Volumes/RAMDisk/buildbot-root/x86_64-darwin/llvm-project/clang/test/Driver/wasm-features.c -mcpu=generic 2>&1 | /Volumes/RAMDisk/buildbot-root/x86_64-darwin/build/bin/FileCheck /Volumes/RAMDisk/buildbot-root/x86_64-darwin/llvm-project/clang/test/Driver/wasm-features.c -check-prefix=GENERIC
# executed command: /Volumes/RAMDisk/buildbot-root/x86_64-darwin/build/bin/clang --target=wasm32-unknown-unknown '-###' /Volumes/RAMDisk/buildbot-root/x86_64-darwin/llvm-project/clang/test/Driver/wasm-features.c -mcpu=generic
# note: command had no output on stdout or stderr
# executed command: /Volumes/RAMDisk/buildbot-root/x86_64-darwin/build/bin/FileCheck /Volumes/RAMDisk/buildbot-root/x86_64-darwin/llvm-project/clang/test/Driver/wasm-features.c -check-prefix=GENERIC
# note: command had no output on stdout or stderr
# RUN: at line 8
/Volumes/RAMDisk/buildbot-root/x86_64-darwin/build/bin/clang --target=wasm32-unknown-unknown -### /Volumes/RAMDisk/buildbot-root/x86_64-darwin/llvm-project/clang/test/Driver/wasm-features.c -mcpu=bleeding-edge 2>&1 | /Volumes/RAMDisk/buildbot-root/x86_64-darwin/build/bin/FileCheck /Volumes/RAMDisk/buildbot-root/x86_64-darwin/llvm-project/clang/test/Driver/wasm-features.c -check-prefix=BLEEDING-EDGE
# executed command: /Volumes/RAMDisk/buildbot-root/x86_64-darwin/build/bin/clang --target=wasm32-unknown-unknown '-###' /Volumes/RAMDisk/buildbot-root/x86_64-darwin/llvm-project/clang/test/Driver/wasm-features.c -mcpu=bleeding-edge
# note: command had no output on stdout or stderr
# executed command: /Volumes/RAMDisk/buildbot-root/x86_64-darwin/build/bin/FileCheck /Volumes/RAMDisk/buildbot-root/x86_64-darwin/llvm-project/clang/test/Driver/wasm-features.c -check-prefix=BLEEDING-EDGE
# note: command had no output on stdout or stderr
# RUN: at line 14
/Volumes/RAMDisk/buildbot-root/x86_64-darwin/build/bin/clang --target=wasm32-unknown-unknown -### /Volumes/RAMDisk/buildbot-root/x86_64-darwin/llvm-project/clang/test/Driver/wasm-features.c -matomics 2>&1 | /Volumes/RAMDisk/buildbot-root/x86_64-darwin/build/bin/FileCheck /Volumes/RAMDisk/buildbot-root/x86_64-darwin/llvm-project/clang/test/Driver/wasm-features.c -check-prefix=ATOMICS
# executed command: /Volumes/RAMDisk/buildbot-root/x86_64-darwin/build/bin/clang --target=wasm32-unknown-unknown '-###' /Volumes/RAMDisk/buildbot-root/x86_64-darwin/llvm-project/clang/test/Driver/wasm-features.c -matomics
# note: command had no output on stdout or stderr
# executed command: /Volumes/RAMDisk/buildbot-root/x86_64-darwin/build/bin/FileCheck /Volumes/RAMDisk/buildbot-root/x86_64-darwin/llvm-project/clang/test/Driver/wasm-features.c -check-prefix=ATOMICS
# note: command had no output on stdout or stderr
# RUN: at line 15
/Volumes/RAMDisk/buildbot-root/x86_64-darwin/build/bin/clang --target=wasm32-unknown-unknown -### /Volumes/RAMDisk/buildbot-root/x86_64-darwin/llvm-project/clang/test/Driver/wasm-features.c -mno-atomics 2>&1 | /Volumes/RAMDisk/buildbot-root/x86_64-darwin/build/bin/FileCheck /Volumes/RAMDisk/buildbot-root/x86_64-darwin/llvm-project/clang/test/Driver/wasm-features.c -check-prefix=NO-ATOMICS
# executed command: /Volumes/RAMDisk/buildbot-root/x86_64-darwin/build/bin/clang --target=wasm32-unknown-unknown '-###' /Volumes/RAMDisk/buildbot-root/x86_64-darwin/llvm-project/clang/test/Driver/wasm-features.c -mno-atomics
# note: command had no output on stdout or stderr
# executed command: /Volumes/RAMDisk/buildbot-root/x86_64-darwin/build/bin/FileCheck /Volumes/RAMDisk/buildbot-root/x86_64-darwin/llvm-project/clang/test/Driver/wasm-features.c -check-prefix=NO-ATOMICS
# note: command had no output on stdout or stderr
# RUN: at line 20
/Volumes/RAMDisk/buildbot-root/x86_64-darwin/build/bin/clang --target=wasm32-unknown-unknown -### /Volumes/RAMDisk/buildbot-root/x86_64-darwin/llvm-project/clang/test/Driver/wasm-features.c -mbulk-memory 2>&1 | /Volumes/RAMDisk/buildbot-root/x86_64-darwin/build/bin/FileCheck /Volumes/RAMDisk/buildbot-root/x86_64-darwin/llvm-project/clang/test/Driver/wasm-features.c -check-prefix=BULK-MEMORY
# executed command: /Volumes/RAMDisk/buildbot-root/x86_64-darwin/build/bin/clang --target=wasm32-unknown-unknown '-###' /Volumes/RAMDisk/buildbot-root/x86_64-darwin/llvm-project/clang/test/Driver/wasm-features.c -mbulk-memory
...

@llvm-ci
Copy link
Collaborator

llvm-ci commented Oct 28, 2025

LLVM Buildbot has detected a new failure on builder ppc64le-lld-multistage-test running on ppc64le-lld-multistage-test while building clang at step 12 "build-stage2-unified-tree".

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

Here is the relevant piece of the build log for the reference
Step 12 (build-stage2-unified-tree) failure: build (failure) (timed out)
...
1321.523 [57/10/6698] Linking CXX executable bin/llvm-c-test
1321.995 [57/9/6699] Linking CXX executable bin/dsymutil
1323.285 [57/8/6700] Linking CXX executable unittests/CodeGen/CGPluginTest/CGPluginTest
1323.843 [57/7/6701] Linking CXX executable bin/llvm-lto
1324.411 [57/6/6702] Linking CXX executable bin/llvm-dwp
1327.157 [57/5/6703] Linking CXX executable unittests/MC/MCTests
1327.871 [57/4/6704] Linking CXX executable bin/lld
1328.061 [57/3/6705] Linking CXX executable bin/opt
1350.109 [57/2/6706] Building CXX object tools/bugpoint-passes/CMakeFiles/BugpointPasses.dir/TestPasses.cpp.o
1352.694 [56/2/6707] Linking CXX shared module lib/BugpointPasses.so
command timed out: 1200 seconds without output running [b'ninja'], attempting to kill
process killed by signal 9
program finished with exit code -1
elapsedTime=2553.351273

aokblast pushed a commit to aokblast/llvm-project that referenced this pull request Oct 30, 2025
Add a macro __BPF_FEATURE_GOTOX for bpf target for cpu v4. So the
developer can easily detect whether insn gotox is supported or not.
DEBADRIBASAK pushed a commit to DEBADRIBASAK/llvm-project that referenced this pull request Nov 3, 2025
Add a macro __BPF_FEATURE_GOTOX for bpf target for cpu v4. So the
developer can easily detect whether insn gotox is supported or not.
@llvm-ci
Copy link
Collaborator

llvm-ci commented Nov 3, 2025

LLVM Buildbot has detected a new failure on builder clang-ppc64le-linux-test-suite running on ppc64le-clang-test-suite while building clang at step 6 "test-build-unified-tree-check-all".

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

Here is the relevant piece of the build log for the reference
Step 6 (test-build-unified-tree-check-all) failure: test (failure)
******************** TEST 'LeakSanitizer-Standalone-powerpc64le :: TestCases/create_thread_leak.cpp' FAILED ********************
Exit Code: 2

Command Output (stderr):
--
/home/buildbots/llvm-external-buildbots/workers/ppc64le-clang-test-suite/clang-ppc64le-test-suite/build/./bin/clang  --driver-mode=g++ -O0  -m64 -fno-function-sections  -gline-tables-only -fsanitize=leak -I/home/buildbots/llvm-external-buildbots/workers/ppc64le-clang-test-suite/clang-ppc64le-test-suite/llvm-project/compiler-rt/test/lsan/../ -pthread /home/buildbots/llvm-external-buildbots/workers/ppc64le-clang-test-suite/clang-ppc64le-test-suite/llvm-project/compiler-rt/test/lsan/TestCases/create_thread_leak.cpp -o /home/buildbots/llvm-external-buildbots/workers/ppc64le-clang-test-suite/clang-ppc64le-test-suite/build/runtimes/runtimes-bins/compiler-rt/test/lsan/POWERPC64LELsanConfig/TestCases/Output/create_thread_leak.cpp.tmp # RUN: at line 3
+ /home/buildbots/llvm-external-buildbots/workers/ppc64le-clang-test-suite/clang-ppc64le-test-suite/build/./bin/clang --driver-mode=g++ -O0 -m64 -fno-function-sections -gline-tables-only -fsanitize=leak -I/home/buildbots/llvm-external-buildbots/workers/ppc64le-clang-test-suite/clang-ppc64le-test-suite/llvm-project/compiler-rt/test/lsan/../ -pthread /home/buildbots/llvm-external-buildbots/workers/ppc64le-clang-test-suite/clang-ppc64le-test-suite/llvm-project/compiler-rt/test/lsan/TestCases/create_thread_leak.cpp -o /home/buildbots/llvm-external-buildbots/workers/ppc64le-clang-test-suite/clang-ppc64le-test-suite/build/runtimes/runtimes-bins/compiler-rt/test/lsan/POWERPC64LELsanConfig/TestCases/Output/create_thread_leak.cpp.tmp
not  /home/buildbots/llvm-external-buildbots/workers/ppc64le-clang-test-suite/clang-ppc64le-test-suite/build/runtimes/runtimes-bins/compiler-rt/test/lsan/POWERPC64LELsanConfig/TestCases/Output/create_thread_leak.cpp.tmp 10 1 0 0 2>&1 | FileCheck /home/buildbots/llvm-external-buildbots/workers/ppc64le-clang-test-suite/clang-ppc64le-test-suite/llvm-project/compiler-rt/test/lsan/TestCases/create_thread_leak.cpp --check-prefixes=LEAK,LEAK123 # RUN: at line 4
+ FileCheck /home/buildbots/llvm-external-buildbots/workers/ppc64le-clang-test-suite/clang-ppc64le-test-suite/llvm-project/compiler-rt/test/lsan/TestCases/create_thread_leak.cpp --check-prefixes=LEAK,LEAK123
+ not /home/buildbots/llvm-external-buildbots/workers/ppc64le-clang-test-suite/clang-ppc64le-test-suite/build/runtimes/runtimes-bins/compiler-rt/test/lsan/POWERPC64LELsanConfig/TestCases/Output/create_thread_leak.cpp.tmp 10 1 0 0
not  /home/buildbots/llvm-external-buildbots/workers/ppc64le-clang-test-suite/clang-ppc64le-test-suite/build/runtimes/runtimes-bins/compiler-rt/test/lsan/POWERPC64LELsanConfig/TestCases/Output/create_thread_leak.cpp.tmp 10 0 1 0 2>&1 | FileCheck /home/buildbots/llvm-external-buildbots/workers/ppc64le-clang-test-suite/clang-ppc64le-test-suite/llvm-project/compiler-rt/test/lsan/TestCases/create_thread_leak.cpp --check-prefixes=LEAK,LEAK234 # RUN: at line 5
+ not /home/buildbots/llvm-external-buildbots/workers/ppc64le-clang-test-suite/clang-ppc64le-test-suite/build/runtimes/runtimes-bins/compiler-rt/test/lsan/POWERPC64LELsanConfig/TestCases/Output/create_thread_leak.cpp.tmp 10 0 1 0
+ FileCheck /home/buildbots/llvm-external-buildbots/workers/ppc64le-clang-test-suite/clang-ppc64le-test-suite/llvm-project/compiler-rt/test/lsan/TestCases/create_thread_leak.cpp --check-prefixes=LEAK,LEAK234
not  /home/buildbots/llvm-external-buildbots/workers/ppc64le-clang-test-suite/clang-ppc64le-test-suite/build/runtimes/runtimes-bins/compiler-rt/test/lsan/POWERPC64LELsanConfig/TestCases/Output/create_thread_leak.cpp.tmp 10 0 0 1 2>&1 | FileCheck /home/buildbots/llvm-external-buildbots/workers/ppc64le-clang-test-suite/clang-ppc64le-test-suite/llvm-project/compiler-rt/test/lsan/TestCases/create_thread_leak.cpp --check-prefixes=LEAK,LEAK234 # RUN: at line 6
+ not /home/buildbots/llvm-external-buildbots/workers/ppc64le-clang-test-suite/clang-ppc64le-test-suite/build/runtimes/runtimes-bins/compiler-rt/test/lsan/POWERPC64LELsanConfig/TestCases/Output/create_thread_leak.cpp.tmp 10 0 0 1
+ FileCheck /home/buildbots/llvm-external-buildbots/workers/ppc64le-clang-test-suite/clang-ppc64le-test-suite/llvm-project/compiler-rt/test/lsan/TestCases/create_thread_leak.cpp --check-prefixes=LEAK,LEAK234
FileCheck error: '<stdin>' is empty.
FileCheck command line:  FileCheck /home/buildbots/llvm-external-buildbots/workers/ppc64le-clang-test-suite/clang-ppc64le-test-suite/llvm-project/compiler-rt/test/lsan/TestCases/create_thread_leak.cpp --check-prefixes=LEAK,LEAK234

--

********************


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

Labels

clang:frontend Language frontend issues, e.g. anything involving "Sema" clang Clang issues not falling into any other category

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants