[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:10:44 PDT 2024
llvm-ci wrote:
LLVM Buildbot has detected a new failure on builder `libc-x86_64-debian-dbg-runtimes-build` running on `libc-x86_64-debian` while building `libc` at step 4 "annotate".
Full details are available at: https://lab.llvm.org/buildbot/#/builders/78/builds/8795
<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)
...
[1272/1428] Running unit test libc.test.src.stdio.vprintf_test.__unit__
[==========] Running 1 test from 1 test suite.
[ RUN ] LlvmLibcVPrintfTest.PrintOut
[ OK ] LlvmLibcVPrintfTest.PrintOut (68 us)
Ran 1 tests. PASS: 1 FAIL: 0
A simple string with no conversions.
1234567890
1234 and more
[1273/1428] Building CXX object libc/test/src/stdio/CMakeFiles/libc.test.src.stdio.rename_test.__unit__.__build__.dir/rename_test.cpp.o
[1274/1428] Building CXX object libc/test/src/sys/mman/linux/CMakeFiles/libc.test.src.sys.mman.linux.shm_test.__build__.dir/shm_test.cpp.o
FAILED: libc/test/src/sys/mman/linux/CMakeFiles/libc.test.src.sys.mman.linux.shm_test.__build__.dir/shm_test.cpp.o
/home/llvm-libc-buildbot/buildbot-worker/libc-x86_64-debian/libc-x86_64-debian-dbg-runtimes-build/build/./bin/clang++ --target=x86_64-unknown-linux-gnu -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-runtimes-build/llvm-project/libc -isystem /home/llvm-libc-buildbot/buildbot-worker/libc-x86_64-debian/libc-x86_64-debian-dbg-runtimes-build/build/runtimes/runtimes-bins/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 -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 -ffixed-point -Wno-c99-extensions -Wno-gnu-imaginary-constant -Wno-pedantic -std=gnu++17 -MD -MT libc/test/src/sys/mman/linux/CMakeFiles/libc.test.src.sys.mman.linux.shm_test.__build__.dir/shm_test.cpp.o -MF libc/test/src/sys/mman/linux/CMakeFiles/libc.test.src.sys.mman.linux.shm_test.__build__.dir/shm_test.cpp.o.d -o 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-runtimes-build/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-runtimes-build/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'
155 | struct f_owner_ex {
| ^
/usr/include/x86_64-linux-gnu/bits/fcntl-linux.h:274:8: note: previous definition is here
274 | struct f_owner_ex
| ^
In file included from /home/llvm-libc-buildbot/buildbot-worker/libc-x86_64-debian/libc-x86_64-debian-dbg-runtimes-build/llvm-project/libc/test/src/sys/mman/linux/shm_test.cpp:19:
/usr/include/asm-generic/fcntl.h:195:8: error: redefinition of 'flock'
195 | struct flock {
| ^
/usr/include/x86_64-linux-gnu/bits/fcntl.h:35:8: note: previous definition is here
35 | struct flock
| ^
In file included from /home/llvm-libc-buildbot/buildbot-worker/libc-x86_64-debian/libc-x86_64-debian-dbg-runtimes-build/llvm-project/libc/test/src/sys/mman/linux/shm_test.cpp:19:
/usr/include/asm-generic/fcntl.h:209:8: error: redefinition of 'flock64'
209 | struct flock64 {
| ^
/usr/include/x86_64-linux-gnu/bits/fcntl.h:50:8: note: previous definition is here
50 | struct flock64
| ^
3 errors generated.
[1275/1428] Linking CXX executable libc/test/src/stdio/libc.test.src.stdio.rename_test.__unit__.__build__
[1276/1428] Building CXX object libc/test/src/stdio/CMakeFiles/libc.test.src.stdio.fprintf_test.__unit__.__build__.dir/fprintf_test.cpp.o
[1277/1428] Building CXX object libc/test/src/__support/time/linux/CMakeFiles/libc.test.src.__support.time.linux.timeout_test.__unit__.__build__.dir/timeout_test.cpp.o
[1278/1428] Building CXX object libc/test/src/stdio/CMakeFiles/libc.test.src.stdio.vfprintf_test.__unit__.__build__.dir/vfprintf_test.cpp.o
[1279/1428] Building CXX object libc/test/src/stdio/CMakeFiles/libc.test.src.stdio.vfscanf_test.__unit__.__build__.dir/vfscanf_test.cpp.o
[1280/1428] Building CXX object libc/test/src/stdio/CMakeFiles/libc.test.src.stdio.fscanf_test.__unit__.__build__.dir/fscanf_test.cpp.o
[1281/1428] Building CXX object libc/test/src/sys/stat/CMakeFiles/libc.test.src.sys.stat.chmod_test.__build__.dir/chmod_test.cpp.o
[1282/1428] Building CXX object libc/test/src/__support/File/CMakeFiles/libc.test.src.__support.File.platform_file_test.__unit__.__build__.dir/platform_file_test.cpp.o
[1283/1428] Building CXX object libc/test/src/sys/mman/linux/CMakeFiles/libc.test.src.sys.mman.linux.mincore_test.__build__.dir/mincore_test.cpp.o
[1284/1428] Building CXX object libc/test/src/sys/mman/linux/CMakeFiles/libc.test.src.sys.mman.linux.msync_test.__build__.dir/msync_test.cpp.o
[1285/1428] Building CXX object libc/test/src/sys/auxv/linux/CMakeFiles/libc.test.src.sys.auxv.linux.getauxval_test.__build__.dir/getauxval_test.cpp.o
[1286/1428] Building CXX object libc/test/src/sys/stat/CMakeFiles/libc.test.src.sys.stat.stat_test.__build__.dir/stat_test.cpp.o
[1287/1428] Building CXX object libc/test/src/sys/sendfile/CMakeFiles/libc.test.src.sys.sendfile.sendfile_test.__build__.dir/sendfile_test.cpp.o
[1288/1428] Building CXX object libc/test/src/fcntl/CMakeFiles/libc.test.src.fcntl.creat_test.__build__.dir/creat_test.cpp.o
[1289/1428] Building CXX object libc/test/src/fcntl/CMakeFiles/libc.test.src.fcntl.openat_test.__build__.dir/openat_test.cpp.o
Step 7 (check-libc) failure: check-libc (failure)
...
[1272/1428] Running unit test libc.test.src.stdio.vprintf_test.__unit__
[==========] Running 1 test from 1 test suite.
[ RUN ] LlvmLibcVPrintfTest.PrintOut
[ OK ] LlvmLibcVPrintfTest.PrintOut (68 us)
Ran 1 tests. PASS: 1 FAIL: 0
A simple string with no conversions.
1234567890
1234 and more
[1273/1428] Building CXX object libc/test/src/stdio/CMakeFiles/libc.test.src.stdio.rename_test.__unit__.__build__.dir/rename_test.cpp.o
[1274/1428] Building CXX object libc/test/src/sys/mman/linux/CMakeFiles/libc.test.src.sys.mman.linux.shm_test.__build__.dir/shm_test.cpp.o
FAILED: libc/test/src/sys/mman/linux/CMakeFiles/libc.test.src.sys.mman.linux.shm_test.__build__.dir/shm_test.cpp.o
/home/llvm-libc-buildbot/buildbot-worker/libc-x86_64-debian/libc-x86_64-debian-dbg-runtimes-build/build/./bin/clang++ --target=x86_64-unknown-linux-gnu -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-runtimes-build/llvm-project/libc -isystem /home/llvm-libc-buildbot/buildbot-worker/libc-x86_64-debian/libc-x86_64-debian-dbg-runtimes-build/build/runtimes/runtimes-bins/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 -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 -ffixed-point -Wno-c99-extensions -Wno-gnu-imaginary-constant -Wno-pedantic -std=gnu++17 -MD -MT libc/test/src/sys/mman/linux/CMakeFiles/libc.test.src.sys.mman.linux.shm_test.__build__.dir/shm_test.cpp.o -MF libc/test/src/sys/mman/linux/CMakeFiles/libc.test.src.sys.mman.linux.shm_test.__build__.dir/shm_test.cpp.o.d -o 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-runtimes-build/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-runtimes-build/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'
155 | struct f_owner_ex {
| ^
/usr/include/x86_64-linux-gnu/bits/fcntl-linux.h:274:8: note: previous definition is here
274 | struct f_owner_ex
| ^
In file included from /home/llvm-libc-buildbot/buildbot-worker/libc-x86_64-debian/libc-x86_64-debian-dbg-runtimes-build/llvm-project/libc/test/src/sys/mman/linux/shm_test.cpp:19:
/usr/include/asm-generic/fcntl.h:195:8: error: redefinition of 'flock'
195 | struct flock {
| ^
/usr/include/x86_64-linux-gnu/bits/fcntl.h:35:8: note: previous definition is here
35 | struct flock
| ^
In file included from /home/llvm-libc-buildbot/buildbot-worker/libc-x86_64-debian/libc-x86_64-debian-dbg-runtimes-build/llvm-project/libc/test/src/sys/mman/linux/shm_test.cpp:19:
/usr/include/asm-generic/fcntl.h:209:8: error: redefinition of 'flock64'
209 | struct flock64 {
| ^
/usr/include/x86_64-linux-gnu/bits/fcntl.h:50:8: note: previous definition is here
50 | struct flock64
| ^
3 errors generated.
[1275/1428] Linking CXX executable libc/test/src/stdio/libc.test.src.stdio.rename_test.__unit__.__build__
[1276/1428] Building CXX object libc/test/src/stdio/CMakeFiles/libc.test.src.stdio.fprintf_test.__unit__.__build__.dir/fprintf_test.cpp.o
[1277/1428] Building CXX object libc/test/src/__support/time/linux/CMakeFiles/libc.test.src.__support.time.linux.timeout_test.__unit__.__build__.dir/timeout_test.cpp.o
[1278/1428] Building CXX object libc/test/src/stdio/CMakeFiles/libc.test.src.stdio.vfprintf_test.__unit__.__build__.dir/vfprintf_test.cpp.o
[1279/1428] Building CXX object libc/test/src/stdio/CMakeFiles/libc.test.src.stdio.vfscanf_test.__unit__.__build__.dir/vfscanf_test.cpp.o
[1280/1428] Building CXX object libc/test/src/stdio/CMakeFiles/libc.test.src.stdio.fscanf_test.__unit__.__build__.dir/fscanf_test.cpp.o
[1281/1428] Building CXX object libc/test/src/sys/stat/CMakeFiles/libc.test.src.sys.stat.chmod_test.__build__.dir/chmod_test.cpp.o
[1282/1428] Building CXX object libc/test/src/__support/File/CMakeFiles/libc.test.src.__support.File.platform_file_test.__unit__.__build__.dir/platform_file_test.cpp.o
[1283/1428] Building CXX object libc/test/src/sys/mman/linux/CMakeFiles/libc.test.src.sys.mman.linux.mincore_test.__build__.dir/mincore_test.cpp.o
[1284/1428] Building CXX object libc/test/src/sys/mman/linux/CMakeFiles/libc.test.src.sys.mman.linux.msync_test.__build__.dir/msync_test.cpp.o
[1285/1428] Building CXX object libc/test/src/sys/auxv/linux/CMakeFiles/libc.test.src.sys.auxv.linux.getauxval_test.__build__.dir/getauxval_test.cpp.o
[1286/1428] Building CXX object libc/test/src/sys/stat/CMakeFiles/libc.test.src.sys.stat.stat_test.__build__.dir/stat_test.cpp.o
[1287/1428] Building CXX object libc/test/src/sys/sendfile/CMakeFiles/libc.test.src.sys.sendfile.sendfile_test.__build__.dir/sendfile_test.cpp.o
[1288/1428] Building CXX object libc/test/src/fcntl/CMakeFiles/libc.test.src.fcntl.creat_test.__build__.dir/creat_test.cpp.o
[1289/1428] Building CXX object libc/test/src/fcntl/CMakeFiles/libc.test.src.fcntl.openat_test.__build__.dir/openat_test.cpp.o
```
</details>
https://github.com/llvm/llvm-project/pull/114464
More information about the libc-commits
mailing list