[libc-commits] [libc] [libc] Fix path to fcntl_overlay in cmake (PR #114464)
LLVM Continuous Integration via libc-commits
libc-commits at lists.llvm.org
Thu Oct 31 14:34:35 PDT 2024
llvm-ci wrote:
LLVM Buildbot has detected a new failure on builder `libc-riscv64-debian-dbg` running on `libc-riscv64-debian` while building `libc` at step 4 "annotate".
Full details are available at: https://lab.llvm.org/buildbot/#/builders/188/builds/6164
<details>
<summary>Here is the relevant piece of the build log for the reference</summary>
```
Step 4 (annotate) failure: 'python ../llvm-zorg/zorg/buildbot/builders/annotated/libc-linux.py ...' (failure)
...
[ RUN ] LlvmLibcMincoreTest.InvalidVec
[ OK ] LlvmLibcMincoreTest.InvalidVec (15 us)
[ RUN ] LlvmLibcMincoreTest.NoError
[ OK ] LlvmLibcMincoreTest.NoError (15 us)
[ RUN ] LlvmLibcMincoreTest.NegativeLength
[ OK ] LlvmLibcMincoreTest.NegativeLength (10 us)
[ RUN ] LlvmLibcMincoreTest.PageOut
[ OK ] LlvmLibcMincoreTest.PageOut (48 us)
Ran 6 tests. PASS: 6 FAIL: 0
[1185/1308] Building CXX object projects/libc/test/src/sys/mman/linux/CMakeFiles/libc.test.src.sys.mman.linux.shm_test.__build__.dir/shm_test.cpp.o
FAILED: projects/libc/test/src/sys/mman/linux/CMakeFiles/libc.test.src.sys.mman.linux.shm_test.__build__.dir/shm_test.cpp.o
/usr/bin/clang++ -DLIBC_NAMESPACE=__llvm_libc_18_0_0_git -D_DEBUG -I/home/libc_worker/libc-riscv64-debian/libc-riscv64-debian-dbg/build/projects/libc/test/src/sys/mman/linux -I/home/libc_worker/libc-riscv64-debian/libc-riscv64-debian-dbg/llvm-project/libc/test/src/sys/mman/linux -I/home/libc_worker/libc-riscv64-debian/libc-riscv64-debian-dbg/llvm-project/libc -isystem /home/libc_worker/libc-riscv64-debian/libc-riscv64-debian-dbg/build/projects/libc/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 -fpie -Wno-c99-extensions -Wno-gnu-imaginary-constant -Wno-pedantic -std=c++17 -MD -MT projects/libc/test/src/sys/mman/linux/CMakeFiles/libc.test.src.sys.mman.linux.shm_test.__build__.dir/shm_test.cpp.o -MF projects/libc/test/src/sys/mman/linux/CMakeFiles/libc.test.src.sys.mman.linux.shm_test.__build__.dir/shm_test.cpp.o.d -o projects/libc/test/src/sys/mman/linux/CMakeFiles/libc.test.src.sys.mman.linux.shm_test.__build__.dir/shm_test.cpp.o -c /home/libc_worker/libc-riscv64-debian/libc-riscv64-debian-dbg/llvm-project/libc/test/src/sys/mman/linux/shm_test.cpp
In file included from /home/libc_worker/libc-riscv64-debian/libc-riscv64-debian-dbg/llvm-project/libc/test/src/sys/mman/linux/shm_test.cpp:19:
/usr/include/asm-generic/fcntl.h:156:8: error: redefinition of 'f_owner_ex'
struct f_owner_ex {
^
/usr/include/riscv64-linux-gnu/bits/fcntl-linux.h:274:8: note: previous definition is here
struct f_owner_ex
^
In file included from /home/libc_worker/libc-riscv64-debian/libc-riscv64-debian-dbg/llvm-project/libc/test/src/sys/mman/linux/shm_test.cpp:19:
/usr/include/asm-generic/fcntl.h:196:8: error: redefinition of 'flock'
struct flock {
^
/usr/include/riscv64-linux-gnu/bits/fcntl.h:36:8: note: previous definition is here
struct flock
^
In file included from /home/libc_worker/libc-riscv64-debian/libc-riscv64-debian-dbg/llvm-project/libc/test/src/sys/mman/linux/shm_test.cpp:19:
/usr/include/asm-generic/fcntl.h:211:8: error: redefinition of 'flock64'
struct flock64 {
^
/usr/include/riscv64-linux-gnu/bits/fcntl.h:51:8: note: previous definition is here
struct flock64
^
3 errors generated.
[1186/1308] Building CXX object projects/libc/test/src/sys/mman/linux/CMakeFiles/libc.test.src.sys.mman.linux.remap_file_pages_test.__build__.dir/remap_file_pages_test.cpp.o
[1187/1308] Linking CXX executable projects/libc/test/src/sys/mman/linux/libc.test.src.sys.mman.linux.mlock_test.__build__
[1188/1308] Building CXX object projects/libc/test/src/sys/resource/CMakeFiles/libc.test.src.sys.resource.getrlimit_setrlimit_test.__build__.dir/getrlimit_setrlimit_test.cpp.o
[1189/1308] Linking CXX executable projects/libc/test/src/sys/mman/linux/libc.test.src.sys.mman.linux.msync_test.__build__
[1190/1308] Building CXX object projects/libc/test/src/sys/sendfile/CMakeFiles/libc.test.src.sys.sendfile.sendfile_test.__build__.dir/sendfile_test.cpp.o
ninja: build stopped: subcommand failed.
['ninja', 'libc-unit-tests'] exited with return code 1.
The build step threw an exception...
Traceback (most recent call last):
File "/home/libc_worker/libc-riscv64-debian/libc-riscv64-debian-dbg/build/../llvm-zorg/zorg/buildbot/builders/annotated/libc-linux.py", line 164, in step
yield
File "/home/libc_worker/libc-riscv64-debian/libc-riscv64-debian-dbg/build/../llvm-zorg/zorg/buildbot/builders/annotated/libc-linux.py", line 132, in main
run_command(['ninja', 'libc-unit-tests'])
File "/home/libc_worker/libc-riscv64-debian/libc-riscv64-debian-dbg/build/../llvm-zorg/zorg/buildbot/builders/annotated/libc-linux.py", line 179, in run_command
util.report_run_cmd(cmd, cwd=directory)
Step 7 (libc-unit-tests) failure: libc-unit-tests (failure)
...
[ RUN ] LlvmLibcMincoreTest.InvalidVec
[ OK ] LlvmLibcMincoreTest.InvalidVec (15 us)
[ RUN ] LlvmLibcMincoreTest.NoError
[ OK ] LlvmLibcMincoreTest.NoError (15 us)
[ RUN ] LlvmLibcMincoreTest.NegativeLength
[ OK ] LlvmLibcMincoreTest.NegativeLength (10 us)
[ RUN ] LlvmLibcMincoreTest.PageOut
[ OK ] LlvmLibcMincoreTest.PageOut (48 us)
Ran 6 tests. PASS: 6 FAIL: 0
[1185/1308] Building CXX object projects/libc/test/src/sys/mman/linux/CMakeFiles/libc.test.src.sys.mman.linux.shm_test.__build__.dir/shm_test.cpp.o
FAILED: projects/libc/test/src/sys/mman/linux/CMakeFiles/libc.test.src.sys.mman.linux.shm_test.__build__.dir/shm_test.cpp.o
/usr/bin/clang++ -DLIBC_NAMESPACE=__llvm_libc_18_0_0_git -D_DEBUG -I/home/libc_worker/libc-riscv64-debian/libc-riscv64-debian-dbg/build/projects/libc/test/src/sys/mman/linux -I/home/libc_worker/libc-riscv64-debian/libc-riscv64-debian-dbg/llvm-project/libc/test/src/sys/mman/linux -I/home/libc_worker/libc-riscv64-debian/libc-riscv64-debian-dbg/llvm-project/libc -isystem /home/libc_worker/libc-riscv64-debian/libc-riscv64-debian-dbg/build/projects/libc/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 -fpie -Wno-c99-extensions -Wno-gnu-imaginary-constant -Wno-pedantic -std=c++17 -MD -MT projects/libc/test/src/sys/mman/linux/CMakeFiles/libc.test.src.sys.mman.linux.shm_test.__build__.dir/shm_test.cpp.o -MF projects/libc/test/src/sys/mman/linux/CMakeFiles/libc.test.src.sys.mman.linux.shm_test.__build__.dir/shm_test.cpp.o.d -o projects/libc/test/src/sys/mman/linux/CMakeFiles/libc.test.src.sys.mman.linux.shm_test.__build__.dir/shm_test.cpp.o -c /home/libc_worker/libc-riscv64-debian/libc-riscv64-debian-dbg/llvm-project/libc/test/src/sys/mman/linux/shm_test.cpp
In file included from /home/libc_worker/libc-riscv64-debian/libc-riscv64-debian-dbg/llvm-project/libc/test/src/sys/mman/linux/shm_test.cpp:19:
/usr/include/asm-generic/fcntl.h:156:8: error: redefinition of 'f_owner_ex'
struct f_owner_ex {
^
/usr/include/riscv64-linux-gnu/bits/fcntl-linux.h:274:8: note: previous definition is here
struct f_owner_ex
^
In file included from /home/libc_worker/libc-riscv64-debian/libc-riscv64-debian-dbg/llvm-project/libc/test/src/sys/mman/linux/shm_test.cpp:19:
/usr/include/asm-generic/fcntl.h:196:8: error: redefinition of 'flock'
struct flock {
^
/usr/include/riscv64-linux-gnu/bits/fcntl.h:36:8: note: previous definition is here
struct flock
^
In file included from /home/libc_worker/libc-riscv64-debian/libc-riscv64-debian-dbg/llvm-project/libc/test/src/sys/mman/linux/shm_test.cpp:19:
/usr/include/asm-generic/fcntl.h:211:8: error: redefinition of 'flock64'
struct flock64 {
^
/usr/include/riscv64-linux-gnu/bits/fcntl.h:51:8: note: previous definition is here
struct flock64
^
3 errors generated.
[1186/1308] Building CXX object projects/libc/test/src/sys/mman/linux/CMakeFiles/libc.test.src.sys.mman.linux.remap_file_pages_test.__build__.dir/remap_file_pages_test.cpp.o
[1187/1308] Linking CXX executable projects/libc/test/src/sys/mman/linux/libc.test.src.sys.mman.linux.mlock_test.__build__
[1188/1308] Building CXX object projects/libc/test/src/sys/resource/CMakeFiles/libc.test.src.sys.resource.getrlimit_setrlimit_test.__build__.dir/getrlimit_setrlimit_test.cpp.o
[1189/1308] Linking CXX executable projects/libc/test/src/sys/mman/linux/libc.test.src.sys.mman.linux.msync_test.__build__
[1190/1308] Building CXX object projects/libc/test/src/sys/sendfile/CMakeFiles/libc.test.src.sys.sendfile.sendfile_test.__build__.dir/sendfile_test.cpp.o
ninja: build stopped: subcommand failed.
['ninja', 'libc-unit-tests'] exited with return code 1.
The build step threw an exception...
Traceback (most recent call last):
File "/home/libc_worker/libc-riscv64-debian/libc-riscv64-debian-dbg/build/../llvm-zorg/zorg/buildbot/builders/annotated/libc-linux.py", line 164, in step
yield
File "/home/libc_worker/libc-riscv64-debian/libc-riscv64-debian-dbg/build/../llvm-zorg/zorg/buildbot/builders/annotated/libc-linux.py", line 132, in main
run_command(['ninja', 'libc-unit-tests'])
File "/home/libc_worker/libc-riscv64-debian/libc-riscv64-debian-dbg/build/../llvm-zorg/zorg/buildbot/builders/annotated/libc-linux.py", line 179, in run_command
util.report_run_cmd(cmd, cwd=directory)
```
</details>
https://github.com/llvm/llvm-project/pull/114464
More information about the libc-commits
mailing list