[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:06:03 PDT 2024
llvm-ci wrote:
LLVM Buildbot has detected a new failure on builder `libc-x86_64-debian-dbg` running on `libc-x86_64-debian` while building `libc` at step 4 "annotate".
Full details are available at: https://lab.llvm.org/buildbot/#/builders/93/builds/9262
<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 ] LlvmLibcRemoveTest.CreateAndRemoveFile
[ OK ] LlvmLibcRemoveTest.CreateAndRemoveFile (86 us)
[ RUN ] LlvmLibcRemoveTest.CreateAndRemoveDir
[ OK ] LlvmLibcRemoveTest.CreateAndRemoveDir (123 us)
[ RUN ] LlvmLibcRemoveTest.RemoveNonExistent
[ OK ] LlvmLibcRemoveTest.RemoveNonExistent (7 us)
Ran 3 tests. PASS: 3 FAIL: 0
[1045/1187] Building CXX object projects/libc/test/src/sys/mman/linux/CMakeFiles/libc.test.src.sys.mman.linux.mincore_test.__build__.dir/mincore_test.cpp.o
[1046/1187] Building CXX object projects/libc/test/src/fcntl/CMakeFiles/libc.test.src.fcntl.openat_test.__build__.dir/openat_test.cpp.o
[1047/1187] 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_19_0_0_git -D_DEBUG -I/home/llvm-libc-buildbot/buildbot-worker/libc-x86_64-debian/libc-x86_64-debian-dbg/build/projects/libc/test/src/sys/mman/linux -I/home/llvm-libc-buildbot/buildbot-worker/libc-x86_64-debian/libc-x86_64-debian-dbg/llvm-project/libc/test/src/sys/mman/linux -I/home/llvm-libc-buildbot/buildbot-worker/libc-x86_64-debian/libc-x86_64-debian-dbg/llvm-project/libc -isystem /home/llvm-libc-buildbot/buildbot-worker/libc-x86_64-debian/libc-x86_64-debian-dbg/build/projects/libc/include -fPIC -fno-semantic-interposition -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/llvm-libc-buildbot/buildbot-worker/libc-x86_64-debian/libc-x86_64-debian-dbg/llvm-project/libc/test/src/sys/mman/linux/shm_test.cpp
In file included from /home/llvm-libc-buildbot/buildbot-worker/libc-x86_64-debian/libc-x86_64-debian-dbg/llvm-project/libc/test/src/sys/mman/linux/shm_test.cpp:19:
/usr/include/asm-generic/fcntl.h:155:8: error: redefinition of 'f_owner_ex'
struct f_owner_ex {
^
/usr/include/x86_64-linux-gnu/bits/fcntl-linux.h:274:8: note: previous definition is here
struct f_owner_ex
^
In file included from /home/llvm-libc-buildbot/buildbot-worker/libc-x86_64-debian/libc-x86_64-debian-dbg/llvm-project/libc/test/src/sys/mman/linux/shm_test.cpp:19:
/usr/include/asm-generic/fcntl.h:195:8: error: redefinition of 'flock'
struct flock {
^
/usr/include/x86_64-linux-gnu/bits/fcntl.h:35:8: note: previous definition is here
struct flock
^
In file included from /home/llvm-libc-buildbot/buildbot-worker/libc-x86_64-debian/libc-x86_64-debian-dbg/llvm-project/libc/test/src/sys/mman/linux/shm_test.cpp:19:
/usr/include/asm-generic/fcntl.h:209:8: error: redefinition of 'flock64'
struct flock64 {
^
/usr/include/x86_64-linux-gnu/bits/fcntl.h:50:8: note: previous definition is here
struct flock64
^
3 errors generated.
[1048/1187] Building CXX object projects/libc/test/src/sys/mman/linux/CMakeFiles/libc.test.src.sys.mman.linux.msync_test.__build__.dir/msync_test.cpp.o
[1049/1187] Building CXX object projects/libc/test/src/fcntl/CMakeFiles/libc.test.src.fcntl.creat_test.__build__.dir/creat_test.cpp.o
[1050/1187] Building CXX object projects/libc/test/src/sys/mman/linux/CMakeFiles/libc.test.src.sys.mman.linux.mlock_test.__build__.dir/mlock_test.cpp.o
[1051/1187] Linking CXX executable projects/libc/test/src/stdio/libc.test.src.stdio.vprintf_test.__unit__.__build__
[1052/1187] Linking CXX executable projects/libc/test/src/stdio/libc.test.src.stdio.fprintf_test.__unit__.__build__
[1053/1187] 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
[1054/1187] Building CXX object projects/libc/test/src/fcntl/CMakeFiles/libc.test.src.fcntl.fcntl_test.__build__.dir/fcntl_test.cpp.o
[1055/1187] Linking CXX executable projects/libc/test/src/stdio/libc.test.src.stdio.fscanf_test.__unit__.__build__
[1056/1187] Linking CXX executable projects/libc/test/src/stdio/libc.test.src.stdio.vfscanf_test.__unit__.__build__
[1057/1187] 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
[1058/1187] Linking CXX executable projects/libc/test/src/stdio/libc.test.src.stdio.vfprintf_test.__unit__.__build__
[1059/1187] Linking CXX executable projects/libc/test/src/stdio/libc.test.src.stdio.rename_test.__unit__.__build__
[1060/1187] Building CXX object projects/libc/test/src/sys/sendfile/CMakeFiles/libc.test.src.sys.sendfile.sendfile_test.__build__.dir/sendfile_test.cpp.o
[1061/1187] Linking CXX executable projects/libc/test/src/stdio/libc.test.src.stdio.printf_test.__unit__.__build__
[1062/1187] Linking CXX executable projects/libc/test/src/fcntl/libc.test.src.fcntl.openat_test.__build__
Step 7 (libc-unit-tests) failure: libc-unit-tests (failure)
...
[ RUN ] LlvmLibcRemoveTest.CreateAndRemoveFile
[ OK ] LlvmLibcRemoveTest.CreateAndRemoveFile (86 us)
[ RUN ] LlvmLibcRemoveTest.CreateAndRemoveDir
[ OK ] LlvmLibcRemoveTest.CreateAndRemoveDir (123 us)
[ RUN ] LlvmLibcRemoveTest.RemoveNonExistent
[ OK ] LlvmLibcRemoveTest.RemoveNonExistent (7 us)
Ran 3 tests. PASS: 3 FAIL: 0
[1045/1187] Building CXX object projects/libc/test/src/sys/mman/linux/CMakeFiles/libc.test.src.sys.mman.linux.mincore_test.__build__.dir/mincore_test.cpp.o
[1046/1187] Building CXX object projects/libc/test/src/fcntl/CMakeFiles/libc.test.src.fcntl.openat_test.__build__.dir/openat_test.cpp.o
[1047/1187] 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_19_0_0_git -D_DEBUG -I/home/llvm-libc-buildbot/buildbot-worker/libc-x86_64-debian/libc-x86_64-debian-dbg/build/projects/libc/test/src/sys/mman/linux -I/home/llvm-libc-buildbot/buildbot-worker/libc-x86_64-debian/libc-x86_64-debian-dbg/llvm-project/libc/test/src/sys/mman/linux -I/home/llvm-libc-buildbot/buildbot-worker/libc-x86_64-debian/libc-x86_64-debian-dbg/llvm-project/libc -isystem /home/llvm-libc-buildbot/buildbot-worker/libc-x86_64-debian/libc-x86_64-debian-dbg/build/projects/libc/include -fPIC -fno-semantic-interposition -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/llvm-libc-buildbot/buildbot-worker/libc-x86_64-debian/libc-x86_64-debian-dbg/llvm-project/libc/test/src/sys/mman/linux/shm_test.cpp
In file included from /home/llvm-libc-buildbot/buildbot-worker/libc-x86_64-debian/libc-x86_64-debian-dbg/llvm-project/libc/test/src/sys/mman/linux/shm_test.cpp:19:
/usr/include/asm-generic/fcntl.h:155:8: error: redefinition of 'f_owner_ex'
struct f_owner_ex {
^
/usr/include/x86_64-linux-gnu/bits/fcntl-linux.h:274:8: note: previous definition is here
struct f_owner_ex
^
In file included from /home/llvm-libc-buildbot/buildbot-worker/libc-x86_64-debian/libc-x86_64-debian-dbg/llvm-project/libc/test/src/sys/mman/linux/shm_test.cpp:19:
/usr/include/asm-generic/fcntl.h:195:8: error: redefinition of 'flock'
struct flock {
^
/usr/include/x86_64-linux-gnu/bits/fcntl.h:35:8: note: previous definition is here
struct flock
^
In file included from /home/llvm-libc-buildbot/buildbot-worker/libc-x86_64-debian/libc-x86_64-debian-dbg/llvm-project/libc/test/src/sys/mman/linux/shm_test.cpp:19:
/usr/include/asm-generic/fcntl.h:209:8: error: redefinition of 'flock64'
struct flock64 {
^
/usr/include/x86_64-linux-gnu/bits/fcntl.h:50:8: note: previous definition is here
struct flock64
^
3 errors generated.
[1048/1187] Building CXX object projects/libc/test/src/sys/mman/linux/CMakeFiles/libc.test.src.sys.mman.linux.msync_test.__build__.dir/msync_test.cpp.o
[1049/1187] Building CXX object projects/libc/test/src/fcntl/CMakeFiles/libc.test.src.fcntl.creat_test.__build__.dir/creat_test.cpp.o
[1050/1187] Building CXX object projects/libc/test/src/sys/mman/linux/CMakeFiles/libc.test.src.sys.mman.linux.mlock_test.__build__.dir/mlock_test.cpp.o
[1051/1187] Linking CXX executable projects/libc/test/src/stdio/libc.test.src.stdio.vprintf_test.__unit__.__build__
[1052/1187] Linking CXX executable projects/libc/test/src/stdio/libc.test.src.stdio.fprintf_test.__unit__.__build__
[1053/1187] 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
[1054/1187] Building CXX object projects/libc/test/src/fcntl/CMakeFiles/libc.test.src.fcntl.fcntl_test.__build__.dir/fcntl_test.cpp.o
[1055/1187] Linking CXX executable projects/libc/test/src/stdio/libc.test.src.stdio.fscanf_test.__unit__.__build__
[1056/1187] Linking CXX executable projects/libc/test/src/stdio/libc.test.src.stdio.vfscanf_test.__unit__.__build__
[1057/1187] 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
[1058/1187] Linking CXX executable projects/libc/test/src/stdio/libc.test.src.stdio.vfprintf_test.__unit__.__build__
[1059/1187] Linking CXX executable projects/libc/test/src/stdio/libc.test.src.stdio.rename_test.__unit__.__build__
[1060/1187] Building CXX object projects/libc/test/src/sys/sendfile/CMakeFiles/libc.test.src.sys.sendfile.sendfile_test.__build__.dir/sendfile_test.cpp.o
[1061/1187] Linking CXX executable projects/libc/test/src/stdio/libc.test.src.stdio.printf_test.__unit__.__build__
[1062/1187] Linking CXX executable projects/libc/test/src/fcntl/libc.test.src.fcntl.openat_test.__build__
```
</details>
https://github.com/llvm/llvm-project/pull/114464
More information about the libc-commits
mailing list