[compiler-rt] [llvm] [compiler-rt][X86] Use functions in cpuid.h instead of inline assembly (PR #97877)
LLVM Continuous Integration via llvm-commits
llvm-commits at lists.llvm.org
Mon Jul 8 10:58:01 PDT 2024
llvm-ci wrote:
LLVM Buildbot has detected a new failure on builder `libc-aarch64-ubuntu-fullbuild-dbg` running on `libc-aarch64-ubuntu` while building `compiler-rt,llvm` at step 4 "annotate".
Full details are available at: https://lab.llvm.org/buildbot/#/builders/71/builds/1636
Here is the relevant piece of the build log for the reference:
```
Step 4 (annotate) failure: 'python ../llvm-zorg/zorg/buildbot/builders/annotated/libc-linux.py ...' (failure)
...
PASS __vn_powf in [0x1.ep-1;0x1.1p+0] x [-0x1p+8;-0x1p+14] round n errlim 2.1 maxerr 1.69687 +0.5 cnt 50000 cnt1 2382 4.764% cnt2 20 0.04% cntfail 0 0%
PASS _ZGVnN4vv_powf in [0x1p-1;0x1p+1] x [0x1p-7;0x1p+7] round n errlim 2.1 maxerr 0.0155004 +0.5 cnt 50000 cnt1 60 0.12% cnt2 0 0% cntfail 0 0%
PASS _ZGVnN4vv_powf in [0x1p-1;0x1p+1] x [-0x1p-7;-0x1p+7] round n errlim 2.1 maxerr 0.0212817 +0.5 cnt 50000 cnt1 57 0.114% cnt2 0 0% cntfail 0 0%
PASS _ZGVnN4vv_powf in [0x1p-70;0x1p+70] x [0x1p-1;0x1p+1] round n errlim 2.1 maxerr 0.00117655 +0.5 cnt 50000 cnt1 32 0.064% cnt2 0 0% cntfail 0 0%
PASS _ZGVnN4vv_powf in [0x1p-70;0x1p+70] x [-0x1p-1;-0x1p+1] round n errlim 2.1 maxerr 0.00122117 +0.5 cnt 50000 cnt1 33 0.066% cnt2 0 0% cntfail 0 0%
PASS _ZGVnN4vv_powf in [0x1.ep-1;0x1.1p+0] x [0x1p+8;0x1p+14] round n errlim 2.1 maxerr 1.74019 +0.5 cnt 50000 cnt1 2429 4.858% cnt2 31 0.062% cntfail 0 0%
PASS _ZGVnN4vv_powf in [0x1.ep-1;0x1.1p+0] x [-0x1p+8;-0x1p+14] round n errlim 2.1 maxerr 1.69687 +0.5 cnt 50000 cnt1 2382 4.764% cnt2 20 0.04% cntfail 0 0%
@@@BUILD_STEP Benchmark Utils Tests@@@
Running: ninja libc-benchmark-util-tests
[1/5] Building CXX object lib/TargetParser/CMakeFiles/LLVMTargetParser.dir/Host.cpp.o
FAILED: lib/TargetParser/CMakeFiles/LLVMTargetParser.dir/Host.cpp.o
/usr/bin/clang++ -DGTEST_HAS_RTTI=0 -D_DEBUG -D_GLIBCXX_ASSERTIONS -D_GNU_SOURCE -D__STDC_CONSTANT_MACROS -D__STDC_FORMAT_MACROS -D__STDC_LIMIT_MACROS -Ilib/TargetParser -I/home/libc-buildbot/libc-aarch64-ubuntu/libc-aarch64-ubuntu-fullbuild-dbg/llvm-project/llvm/lib/TargetParser -Iinclude -I/home/libc-buildbot/libc-aarch64-ubuntu/libc-aarch64-ubuntu-fullbuild-dbg/llvm-project/llvm/include -fPIC -fvisibility-inlines-hidden -Werror=date-time -Werror=unguarded-availability-new -Wall -Wextra -Wno-unused-parameter -Wwrite-strings -Wcast-qual -Wmissing-field-initializers -pedantic -Wno-long-long -Wc++98-compat-extra-semi -Wimplicit-fallthrough -Wcovered-switch-default -Wno-noexcept-type -Wnon-virtual-dtor -Wdelete-non-virtual-dtor -Wsuggest-override -Wstring-conversion -Wmisleading-indentation -Wctad-maybe-unsupported -fdiagnostics-color -g -fno-exceptions -funwind-tables -fno-rtti -std=c++17 -MD -MT lib/TargetParser/CMakeFiles/LLVMTargetParser.dir/Host.cpp.o -MF lib/TargetParser/CMakeFiles/LLVMTargetParser.dir/Host.cpp.o.d -o lib/TargetParser/CMakeFiles/LLVMTargetParser.dir/Host.cpp.o -c /home/libc-buildbot/libc-aarch64-ubuntu/libc-aarch64-ubuntu-fullbuild-dbg/llvm-project/llvm/lib/TargetParser/Host.cpp
In file included from /home/libc-buildbot/libc-aarch64-ubuntu/libc-aarch64-ubuntu-fullbuild-dbg/llvm-project/llvm/lib/TargetParser/Host.cpp:54:
/usr/lib/llvm-11/lib/clang/11.0.1/include/cpuid.h:11:2: error: this header is for x86 only
#error this header is for x86 only
^
/usr/lib/llvm-11/lib/clang/11.0.1/include/cpuid.h:280:5: error: invalid output constraint '=a' in asm
__cpuid(__leaf, __eax, __ebx, __ecx, __edx);
^
/usr/lib/llvm-11/lib/clang/11.0.1/include/cpuid.h:245:11: note: expanded from macro '__cpuid'
: "=a"(__eax), "=r" (__ebx), "=c"(__ecx), "=d"(__edx) \
^
/usr/lib/llvm-11/lib/clang/11.0.1/include/cpuid.h:295:5: error: invalid output constraint '=a' in asm
__cpuid(__leaf, *__eax, *__ebx, *__ecx, *__edx);
^
/usr/lib/llvm-11/lib/clang/11.0.1/include/cpuid.h:245:11: note: expanded from macro '__cpuid'
: "=a"(__eax), "=r" (__ebx), "=c"(__ecx), "=d"(__edx) \
^
/usr/lib/llvm-11/lib/clang/11.0.1/include/cpuid.h:309:5: error: invalid output constraint '=a' in asm
__cpuid_count(__leaf, __subleaf, *__eax, *__ebx, *__ecx, *__edx);
^
/usr/lib/llvm-11/lib/clang/11.0.1/include/cpuid.h:252:11: note: expanded from macro '__cpuid_count'
: "=a"(__eax), "=r" (__ebx), "=c"(__ecx), "=d"(__edx) \
^
4 errors generated.
ninja: build stopped: subcommand failed.
['ninja', 'libc-benchmark-util-tests'] exited with return code 1.
The build step threw an exception...
Traceback (most recent call last):
File "../llvm-zorg/zorg/buildbot/builders/annotated/libc-linux.py", line 164, in step
yield
File "../llvm-zorg/zorg/buildbot/builders/annotated/libc-linux.py", line 151, in main
run_command(['ninja', 'libc-benchmark-util-tests'])
File "../llvm-zorg/zorg/buildbot/builders/annotated/libc-linux.py", line 179, in run_command
util.report_run_cmd(cmd, cwd=directory)
File "/home/libc-buildbot/libc-aarch64-ubuntu/libc-aarch64-ubuntu-fullbuild-dbg/llvm-zorg/zorg/buildbot/builders/annotated/util.py", line 49, in report_run_cmd
subprocess.check_call(cmd, shell=shell, *args, **kwargs)
File "/usr/lib/python2.7/subprocess.py", line 190, in check_call
raise CalledProcessError(retcode, cmd)
```
https://github.com/llvm/llvm-project/pull/97877
More information about the llvm-commits
mailing list