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


llvm-ci wrote:

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

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

<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      ] LlvmLibcRoundToIntegerTest.IntegerOverflow
[       OK ] LlvmLibcRoundToIntegerTest.IntegerOverflow (21 us)
[ RUN      ] LlvmLibcRoundToIntegerTest.SubnormalRange
[       OK ] LlvmLibcRoundToIntegerTest.SubnormalRange (350 ms)
[ RUN      ] LlvmLibcRoundToIntegerTest.NormalRange
[       OK ] LlvmLibcRoundToIntegerTest.NormalRange (4088 ms)
Ran 6 tests.  PASS: 6  FAIL: 0
[1038/1165] Building CXX object projects/libc/test/src/fcntl/CMakeFiles/libc.test.src.fcntl.creat_test.__build__.dir/creat_test.cpp.o
[1039/1165] Building CXX object projects/libc/test/src/fcntl/CMakeFiles/libc.test.src.fcntl.openat_test.__build__.dir/openat_test.cpp.o
[1040/1165] 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 -Iprojects/libc/test/src/sys/mman/linux -I/home/libc-buildbot/libc-aarch64-ubuntu/libc-aarch64-ubuntu/llvm-project/libc/test/src/sys/mman/linux -I/home/libc-buildbot/libc-aarch64-ubuntu/libc-aarch64-ubuntu/llvm-project/libc -isystem 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-buildbot/libc-aarch64-ubuntu/libc-aarch64-ubuntu/llvm-project/libc/test/src/sys/mman/linux/shm_test.cpp
In file included from /home/libc-buildbot/libc-aarch64-ubuntu/libc-aarch64-ubuntu/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/aarch64-linux-gnu/bits/fcntl-linux.h:274:8: note: previous definition is here
struct f_owner_ex
       ^
In file included from /home/libc-buildbot/libc-aarch64-ubuntu/libc-aarch64-ubuntu/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/aarch64-linux-gnu/bits/fcntl.h:40:8: note: previous definition is here
struct flock
       ^
In file included from /home/libc-buildbot/libc-aarch64-ubuntu/libc-aarch64-ubuntu/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/aarch64-linux-gnu/bits/fcntl.h:50:8: note: previous definition is here
struct flock64
       ^
3 errors generated.
[1041/1165] 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
[1042/1165] 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
[1043/1165] Linking CXX executable projects/libc/test/src/fcntl/libc.test.src.fcntl.openat_test.__build__
[1044/1165] Building CXX object projects/libc/test/src/fcntl/CMakeFiles/libc.test.src.fcntl.fcntl_test.__build__.dir/fcntl_test.cpp.o
[1045/1165] Linking CXX executable projects/libc/test/src/fcntl/libc.test.src.fcntl.creat_test.__build__
[1046/1165] Running unit test libc.test.src.math.lrintl_test.__unit__
[==========] Running 6 tests from 1 test suite.
[ RUN      ] LlvmLibcRoundToIntegerTest.InfinityAndNaN
[       OK ] LlvmLibcRoundToIntegerTest.InfinityAndNaN (4 us)
[ RUN      ] LlvmLibcRoundToIntegerTest.RoundNumbers
[       OK ] LlvmLibcRoundToIntegerTest.RoundNumbers (83 us)
[ RUN      ] LlvmLibcRoundToIntegerTest.Fractions
[       OK ] LlvmLibcRoundToIntegerTest.Fractions (29 us)
[ RUN      ] LlvmLibcRoundToIntegerTest.IntegerOverflow
[       OK ] LlvmLibcRoundToIntegerTest.IntegerOverflow (22 us)
Step 7 (libc-unit-tests) failure: libc-unit-tests (failure)
...
[ RUN      ] LlvmLibcRoundToIntegerTest.IntegerOverflow
[       OK ] LlvmLibcRoundToIntegerTest.IntegerOverflow (21 us)
[ RUN      ] LlvmLibcRoundToIntegerTest.SubnormalRange
[       OK ] LlvmLibcRoundToIntegerTest.SubnormalRange (350 ms)
[ RUN      ] LlvmLibcRoundToIntegerTest.NormalRange
[       OK ] LlvmLibcRoundToIntegerTest.NormalRange (4088 ms)
Ran 6 tests.  PASS: 6  FAIL: 0
[1038/1165] Building CXX object projects/libc/test/src/fcntl/CMakeFiles/libc.test.src.fcntl.creat_test.__build__.dir/creat_test.cpp.o
[1039/1165] Building CXX object projects/libc/test/src/fcntl/CMakeFiles/libc.test.src.fcntl.openat_test.__build__.dir/openat_test.cpp.o
[1040/1165] 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 -Iprojects/libc/test/src/sys/mman/linux -I/home/libc-buildbot/libc-aarch64-ubuntu/libc-aarch64-ubuntu/llvm-project/libc/test/src/sys/mman/linux -I/home/libc-buildbot/libc-aarch64-ubuntu/libc-aarch64-ubuntu/llvm-project/libc -isystem 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-buildbot/libc-aarch64-ubuntu/libc-aarch64-ubuntu/llvm-project/libc/test/src/sys/mman/linux/shm_test.cpp
In file included from /home/libc-buildbot/libc-aarch64-ubuntu/libc-aarch64-ubuntu/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/aarch64-linux-gnu/bits/fcntl-linux.h:274:8: note: previous definition is here
struct f_owner_ex
       ^
In file included from /home/libc-buildbot/libc-aarch64-ubuntu/libc-aarch64-ubuntu/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/aarch64-linux-gnu/bits/fcntl.h:40:8: note: previous definition is here
struct flock
       ^
In file included from /home/libc-buildbot/libc-aarch64-ubuntu/libc-aarch64-ubuntu/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/aarch64-linux-gnu/bits/fcntl.h:50:8: note: previous definition is here
struct flock64
       ^
3 errors generated.
[1041/1165] 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
[1042/1165] 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
[1043/1165] Linking CXX executable projects/libc/test/src/fcntl/libc.test.src.fcntl.openat_test.__build__
[1044/1165] Building CXX object projects/libc/test/src/fcntl/CMakeFiles/libc.test.src.fcntl.fcntl_test.__build__.dir/fcntl_test.cpp.o
[1045/1165] Linking CXX executable projects/libc/test/src/fcntl/libc.test.src.fcntl.creat_test.__build__
[1046/1165] Running unit test libc.test.src.math.lrintl_test.__unit__
[==========] Running 6 tests from 1 test suite.
[ RUN      ] LlvmLibcRoundToIntegerTest.InfinityAndNaN
[       OK ] LlvmLibcRoundToIntegerTest.InfinityAndNaN (4 us)
[ RUN      ] LlvmLibcRoundToIntegerTest.RoundNumbers
[       OK ] LlvmLibcRoundToIntegerTest.RoundNumbers (83 us)
[ RUN      ] LlvmLibcRoundToIntegerTest.Fractions
[       OK ] LlvmLibcRoundToIntegerTest.Fractions (29 us)
[ RUN      ] LlvmLibcRoundToIntegerTest.IntegerOverflow
[       OK ] LlvmLibcRoundToIntegerTest.IntegerOverflow (22 us)

```

</details>

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


More information about the libc-commits mailing list