[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:52 PDT 2024


llvm-ci wrote:

LLVM Buildbot has detected a new failure on builder `libc-x86_64-debian-dbg-asan` running on `libc-x86_64-debian` while building `libc` at step 4 "annotate".

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

<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      ] LlvmLibcStrtouint32Test.MessyBaseSixteenDecode
[       OK ] LlvmLibcStrtouint32Test.MessyBaseSixteenDecode (5 us)
[ RUN      ] LlvmLibcStrtouint32Test.AutomaticBaseSelection
[       OK ] LlvmLibcStrtouint32Test.AutomaticBaseSelection (8 us)
Ran 14 tests.  PASS: 14  FAIL: 0
[1035/1184] Building CXX object projects/libc/test/src/stdio/CMakeFiles/libc.test.src.stdio.vfprintf_test.__unit__.__build__.dir/vfprintf_test.cpp.o
[1036/1184] Building CXX object projects/libc/test/src/fcntl/CMakeFiles/libc.test.src.fcntl.creat_test.__build__.dir/creat_test.cpp.o
[1037/1184] Building CXX object projects/libc/test/src/stdio/CMakeFiles/libc.test.src.stdio.remove_test.__unit__.__build__.dir/remove_test.cpp.o
[1038/1184] Linking CXX executable projects/libc/test/src/stdio/libc.test.src.stdio.vprintf_test.__unit__.__build__
[1039/1184] 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-asan/build/projects/libc/test/src/sys/mman/linux -I/home/llvm-libc-buildbot/buildbot-worker/libc-x86_64-debian/libc-x86_64-debian-dbg-asan/llvm-project/libc/test/src/sys/mman/linux -I/home/llvm-libc-buildbot/buildbot-worker/libc-x86_64-debian/libc-x86_64-debian-dbg-asan/llvm-project/libc -isystem /home/llvm-libc-buildbot/buildbot-worker/libc-x86_64-debian/libc-x86_64-debian-dbg-asan/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 -fno-omit-frame-pointer -O1 -fsanitize=address -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-asan/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-asan/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-asan/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-asan/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.
[1040/1184] Linking CXX executable projects/libc/test/src/stdio/libc.test.src.stdio.printf_test.__unit__.__build__
[1041/1184] Running unit test libc.test.src.stdio.vprintf_test.__unit__
[==========] Running 1 test from 1 test suite.
[ RUN      ] LlvmLibcVPrintfTest.PrintOut
[       OK ] LlvmLibcVPrintfTest.PrintOut (141 us)
Ran 1 tests.  PASS: 1  FAIL: 0
A simple string with no conversions.
1234567890
1234 and more
[1042/1184] Linking CXX executable projects/libc/test/src/stdio/libc.test.src.stdio.fprintf_test.__unit__.__build__
[1043/1184] Linking CXX executable projects/libc/test/src/stdio/libc.test.src.stdio.vfscanf_test.__unit__.__build__
[1044/1184] Linking CXX executable projects/libc/test/src/stdio/libc.test.src.stdio.rename_test.__unit__.__build__
[1045/1184] Building CXX object projects/libc/test/src/__support/File/CMakeFiles/libc.test.src.__support.File.file_test.__unit__.__build__.dir/file_test.cpp.o
[1046/1184] Building CXX object projects/libc/test/src/sys/stat/CMakeFiles/libc.test.src.sys.stat.chmod_test.__build__.dir/chmod_test.cpp.o
[1047/1184] Building CXX object projects/libc/test/src/sys/stat/CMakeFiles/libc.test.src.sys.stat.fchmodat_test.__build__.dir/fchmodat_test.cpp.o
Step 7 (libc-unit-tests) failure: libc-unit-tests (failure)
...
[ RUN      ] LlvmLibcStrtouint32Test.MessyBaseSixteenDecode
[       OK ] LlvmLibcStrtouint32Test.MessyBaseSixteenDecode (5 us)
[ RUN      ] LlvmLibcStrtouint32Test.AutomaticBaseSelection
[       OK ] LlvmLibcStrtouint32Test.AutomaticBaseSelection (8 us)
Ran 14 tests.  PASS: 14  FAIL: 0
[1035/1184] Building CXX object projects/libc/test/src/stdio/CMakeFiles/libc.test.src.stdio.vfprintf_test.__unit__.__build__.dir/vfprintf_test.cpp.o
[1036/1184] Building CXX object projects/libc/test/src/fcntl/CMakeFiles/libc.test.src.fcntl.creat_test.__build__.dir/creat_test.cpp.o
[1037/1184] Building CXX object projects/libc/test/src/stdio/CMakeFiles/libc.test.src.stdio.remove_test.__unit__.__build__.dir/remove_test.cpp.o
[1038/1184] Linking CXX executable projects/libc/test/src/stdio/libc.test.src.stdio.vprintf_test.__unit__.__build__
[1039/1184] 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-asan/build/projects/libc/test/src/sys/mman/linux -I/home/llvm-libc-buildbot/buildbot-worker/libc-x86_64-debian/libc-x86_64-debian-dbg-asan/llvm-project/libc/test/src/sys/mman/linux -I/home/llvm-libc-buildbot/buildbot-worker/libc-x86_64-debian/libc-x86_64-debian-dbg-asan/llvm-project/libc -isystem /home/llvm-libc-buildbot/buildbot-worker/libc-x86_64-debian/libc-x86_64-debian-dbg-asan/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 -fno-omit-frame-pointer -O1 -fsanitize=address -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-asan/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-asan/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-asan/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-asan/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.
[1040/1184] Linking CXX executable projects/libc/test/src/stdio/libc.test.src.stdio.printf_test.__unit__.__build__
[1041/1184] Running unit test libc.test.src.stdio.vprintf_test.__unit__
[==========] Running 1 test from 1 test suite.
[ RUN      ] LlvmLibcVPrintfTest.PrintOut
[       OK ] LlvmLibcVPrintfTest.PrintOut (141 us)
Ran 1 tests.  PASS: 1  FAIL: 0
A simple string with no conversions.
1234567890
1234 and more
[1042/1184] Linking CXX executable projects/libc/test/src/stdio/libc.test.src.stdio.fprintf_test.__unit__.__build__
[1043/1184] Linking CXX executable projects/libc/test/src/stdio/libc.test.src.stdio.vfscanf_test.__unit__.__build__
[1044/1184] Linking CXX executable projects/libc/test/src/stdio/libc.test.src.stdio.rename_test.__unit__.__build__
[1045/1184] Building CXX object projects/libc/test/src/__support/File/CMakeFiles/libc.test.src.__support.File.file_test.__unit__.__build__.dir/file_test.cpp.o
[1046/1184] Building CXX object projects/libc/test/src/sys/stat/CMakeFiles/libc.test.src.sys.stat.chmod_test.__build__.dir/chmod_test.cpp.o
[1047/1184] Building CXX object projects/libc/test/src/sys/stat/CMakeFiles/libc.test.src.sys.stat.fchmodat_test.__build__.dir/fchmodat_test.cpp.o

```

</details>

https://github.com/llvm/llvm-project/pull/114464


More information about the libc-commits mailing list