[libc-commits] [libc] [libc] Remove _Exit proxy func header and use LIBC_NAMESPACE::_Exit in tests (PR #114904)

LLVM Continuous Integration via libc-commits libc-commits at lists.llvm.org
Thu Nov 7 09:25:49 PST 2024


llvm-ci wrote:

LLVM Buildbot has detected a new failure on builder `libc-riscv32-qemu-yocto-fullbuild-dbg` running on `rv32gc-qemu-system` while building `libc` at step 4 "annotate".

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

<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)
...
-- Build files have been written to: /home/libcrv32buildbot/bbroot/libc-riscv32-qemu-yocto-fullbuild-dbg/build
@@@BUILD_STEP build libc@@@
Running: ninja libc
ninja: no work to do.
@@@BUILD_STEP build libc-startup@@@
Running: ninja libc-startup
ninja: no work to do.
@@@BUILD_STEP libc-unit-tests@@@
Running: ninja libc-unit-tests
[1/916] Building CXX object projects/libc/test/src/stdlib/CMakeFiles/libc.test.src.stdlib.atexit_test.__unit__.__build__.dir/atexit_test.cpp.o
FAILED: projects/libc/test/src/stdlib/CMakeFiles/libc.test.src.stdlib.atexit_test.__unit__.__build__.dir/atexit_test.cpp.o 
/usr/local/bin/clang++ -DLIBC_NAMESPACE=__llvm_libc_20_0_0_git -D_DEBUG -I/home/libcrv32buildbot/bbroot/libc-riscv32-qemu-yocto-fullbuild-dbg/build/projects/libc/test/src/stdlib -I/home/libcrv32buildbot/bbroot/libc-riscv32-qemu-yocto-fullbuild-dbg/llvm-project/libc/test/src/stdlib -I/home/libcrv32buildbot/bbroot/libc-riscv32-qemu-yocto-fullbuild-dbg/llvm-project/libc -isystem /home/libcrv32buildbot/bbroot/libc-riscv32-qemu-yocto-fullbuild-dbg/build/projects/libc/include -mabi=ilp32d -march=rv32imafdc --target=riscv32-unknown-linux-gnu --sysroot=/opt/riscv/sysroot --gcc-toolchain=/opt/riscv -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 -std=c++17 --target=riscv32-unknown-linux-gnu -fpie -DLIBC_FULL_BUILD -ffreestanding -fno-exceptions -fno-unwind-tables -fno-asynchronous-unwind-tables -fno-rtti -ffixed-point -Wno-c99-extensions -Wno-gnu-imaginary-constant -Wno-pedantic -MD -MT projects/libc/test/src/stdlib/CMakeFiles/libc.test.src.stdlib.atexit_test.__unit__.__build__.dir/atexit_test.cpp.o -MF projects/libc/test/src/stdlib/CMakeFiles/libc.test.src.stdlib.atexit_test.__unit__.__build__.dir/atexit_test.cpp.o.d -o projects/libc/test/src/stdlib/CMakeFiles/libc.test.src.stdlib.atexit_test.__unit__.__build__.dir/atexit_test.cpp.o -c /home/libcrv32buildbot/bbroot/libc-riscv32-qemu-yocto-fullbuild-dbg/llvm-project/libc/test/src/stdlib/atexit_test.cpp
/home/libcrv32buildbot/bbroot/libc-riscv32-qemu-yocto-fullbuild-dbg/llvm-project/libc/test/src/stdlib/atexit_test.cpp:36:50: error: no member named '_Exit' in namespace '__llvm_libc_20_0_0_git'; did you mean 'exit'?
   36 |     LIBC_NAMESPACE::atexit(+[] { LIBC_NAMESPACE::_Exit(1); });
      |                                  ~~~~~~~~~~~~~~~~^~~~~
      |                                                  exit
/home/libcrv32buildbot/bbroot/libc-riscv32-qemu-yocto-fullbuild-dbg/llvm-project/libc/src/stdlib/exit.h:16:19: note: 'exit' declared here
   16 | [[noreturn]] void exit(int status);
      |                   ^
1 error generated.
[2/916] Building CXX object projects/libc/test/src/stdlib/CMakeFiles/libc.test.src.stdlib.at_quick_exit_test.__unit__.__build__.dir/at_quick_exit_test.cpp.o
FAILED: projects/libc/test/src/stdlib/CMakeFiles/libc.test.src.stdlib.at_quick_exit_test.__unit__.__build__.dir/at_quick_exit_test.cpp.o 
/usr/local/bin/clang++ -DLIBC_NAMESPACE=__llvm_libc_20_0_0_git -D_DEBUG -I/home/libcrv32buildbot/bbroot/libc-riscv32-qemu-yocto-fullbuild-dbg/build/projects/libc/test/src/stdlib -I/home/libcrv32buildbot/bbroot/libc-riscv32-qemu-yocto-fullbuild-dbg/llvm-project/libc/test/src/stdlib -I/home/libcrv32buildbot/bbroot/libc-riscv32-qemu-yocto-fullbuild-dbg/llvm-project/libc -isystem /home/libcrv32buildbot/bbroot/libc-riscv32-qemu-yocto-fullbuild-dbg/build/projects/libc/include -mabi=ilp32d -march=rv32imafdc --target=riscv32-unknown-linux-gnu --sysroot=/opt/riscv/sysroot --gcc-toolchain=/opt/riscv -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 -std=c++17 --target=riscv32-unknown-linux-gnu -fpie -DLIBC_FULL_BUILD -ffreestanding -fno-exceptions -fno-unwind-tables -fno-asynchronous-unwind-tables -fno-rtti -ffixed-point -Wno-c99-extensions -Wno-gnu-imaginary-constant -Wno-pedantic -MD -MT projects/libc/test/src/stdlib/CMakeFiles/libc.test.src.stdlib.at_quick_exit_test.__unit__.__build__.dir/at_quick_exit_test.cpp.o -MF projects/libc/test/src/stdlib/CMakeFiles/libc.test.src.stdlib.at_quick_exit_test.__unit__.__build__.dir/at_quick_exit_test.cpp.o.d -o projects/libc/test/src/stdlib/CMakeFiles/libc.test.src.stdlib.at_quick_exit_test.__unit__.__build__.dir/at_quick_exit_test.cpp.o -c /home/libcrv32buildbot/bbroot/libc-riscv32-qemu-yocto-fullbuild-dbg/llvm-project/libc/test/src/stdlib/at_quick_exit_test.cpp
/home/libcrv32buildbot/bbroot/libc-riscv32-qemu-yocto-fullbuild-dbg/llvm-project/libc/test/src/stdlib/at_quick_exit_test.cpp:36:57: error: no member named '_Exit' in namespace '__llvm_libc_20_0_0_git'
   36 |     LIBC_NAMESPACE::at_quick_exit(+[] { LIBC_NAMESPACE::_Exit(1); });
      |                                         ~~~~~~~~~~~~~~~~^
1 error generated.
[3/916] Running unit test libc.test.src.__support.freelist_test.__unit__
sh: line 1: /timer.28231: Permission denied
[==========] Running 9 tests from 1 test suite.
[ RUN      ] LlvmLibcFreeList.EmptyListHasNoMembers
[       OK ] LlvmLibcFreeList.EmptyListHasNoMembers (731 us)
[ RUN      ] LlvmLibcFreeList.CanRetrieveAddedMember
[       OK ] LlvmLibcFreeList.CanRetrieveAddedMember (611 us)
[ RUN      ] LlvmLibcFreeList.CanRetrieveAddedMemberForSmallerSize
[       OK ] LlvmLibcFreeList.CanRetrieveAddedMemberForSmallerSize (121 us)
[ RUN      ] LlvmLibcFreeList.CanRemoveItem
[       OK ] LlvmLibcFreeList.CanRemoveItem (873 us)
[ RUN      ] LlvmLibcFreeList.FindReturnsSmallestChunk
[       OK ] LlvmLibcFreeList.FindReturnsSmallestChunk (535 us)
[ RUN      ] LlvmLibcFreeList.FindReturnsCorrectChunkInSameBucket
[       OK ] LlvmLibcFreeList.FindReturnsCorrectChunkInSameBucket (150 us)
[ RUN      ] LlvmLibcFreeList.FindCanMoveUpThroughBuckets
[       OK ] LlvmLibcFreeList.FindCanMoveUpThroughBuckets (127 us)
[ RUN      ] LlvmLibcFreeList.RemoveUnknownChunkReturnsNotFound
[       OK ] LlvmLibcFreeList.RemoveUnknownChunkReturnsNotFound (108 us)
[ RUN      ] LlvmLibcFreeList.CanStoreMultipleChunksPerBucket
[       OK ] LlvmLibcFreeList.CanStoreMultipleChunksPerBucket (252 us)
Ran 9 tests.  PASS: 9  FAIL: 0
Step 8 (libc-unit-tests) failure: libc-unit-tests (failure)
@@@BUILD_STEP libc-unit-tests@@@
Running: ninja libc-unit-tests
[1/916] Building CXX object projects/libc/test/src/stdlib/CMakeFiles/libc.test.src.stdlib.atexit_test.__unit__.__build__.dir/atexit_test.cpp.o
FAILED: projects/libc/test/src/stdlib/CMakeFiles/libc.test.src.stdlib.atexit_test.__unit__.__build__.dir/atexit_test.cpp.o 
/usr/local/bin/clang++ -DLIBC_NAMESPACE=__llvm_libc_20_0_0_git -D_DEBUG -I/home/libcrv32buildbot/bbroot/libc-riscv32-qemu-yocto-fullbuild-dbg/build/projects/libc/test/src/stdlib -I/home/libcrv32buildbot/bbroot/libc-riscv32-qemu-yocto-fullbuild-dbg/llvm-project/libc/test/src/stdlib -I/home/libcrv32buildbot/bbroot/libc-riscv32-qemu-yocto-fullbuild-dbg/llvm-project/libc -isystem /home/libcrv32buildbot/bbroot/libc-riscv32-qemu-yocto-fullbuild-dbg/build/projects/libc/include -mabi=ilp32d -march=rv32imafdc --target=riscv32-unknown-linux-gnu --sysroot=/opt/riscv/sysroot --gcc-toolchain=/opt/riscv -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 -std=c++17 --target=riscv32-unknown-linux-gnu -fpie -DLIBC_FULL_BUILD -ffreestanding -fno-exceptions -fno-unwind-tables -fno-asynchronous-unwind-tables -fno-rtti -ffixed-point -Wno-c99-extensions -Wno-gnu-imaginary-constant -Wno-pedantic -MD -MT projects/libc/test/src/stdlib/CMakeFiles/libc.test.src.stdlib.atexit_test.__unit__.__build__.dir/atexit_test.cpp.o -MF projects/libc/test/src/stdlib/CMakeFiles/libc.test.src.stdlib.atexit_test.__unit__.__build__.dir/atexit_test.cpp.o.d -o projects/libc/test/src/stdlib/CMakeFiles/libc.test.src.stdlib.atexit_test.__unit__.__build__.dir/atexit_test.cpp.o -c /home/libcrv32buildbot/bbroot/libc-riscv32-qemu-yocto-fullbuild-dbg/llvm-project/libc/test/src/stdlib/atexit_test.cpp
/home/libcrv32buildbot/bbroot/libc-riscv32-qemu-yocto-fullbuild-dbg/llvm-project/libc/test/src/stdlib/atexit_test.cpp:36:50: error: no member named '_Exit' in namespace '__llvm_libc_20_0_0_git'; did you mean 'exit'?
   36 |     LIBC_NAMESPACE::atexit(+[] { LIBC_NAMESPACE::_Exit(1); });
      |                                  ~~~~~~~~~~~~~~~~^~~~~
      |                                                  exit
/home/libcrv32buildbot/bbroot/libc-riscv32-qemu-yocto-fullbuild-dbg/llvm-project/libc/src/stdlib/exit.h:16:19: note: 'exit' declared here
   16 | [[noreturn]] void exit(int status);
      |                   ^
1 error generated.
[2/916] Building CXX object projects/libc/test/src/stdlib/CMakeFiles/libc.test.src.stdlib.at_quick_exit_test.__unit__.__build__.dir/at_quick_exit_test.cpp.o
FAILED: projects/libc/test/src/stdlib/CMakeFiles/libc.test.src.stdlib.at_quick_exit_test.__unit__.__build__.dir/at_quick_exit_test.cpp.o 
/usr/local/bin/clang++ -DLIBC_NAMESPACE=__llvm_libc_20_0_0_git -D_DEBUG -I/home/libcrv32buildbot/bbroot/libc-riscv32-qemu-yocto-fullbuild-dbg/build/projects/libc/test/src/stdlib -I/home/libcrv32buildbot/bbroot/libc-riscv32-qemu-yocto-fullbuild-dbg/llvm-project/libc/test/src/stdlib -I/home/libcrv32buildbot/bbroot/libc-riscv32-qemu-yocto-fullbuild-dbg/llvm-project/libc -isystem /home/libcrv32buildbot/bbroot/libc-riscv32-qemu-yocto-fullbuild-dbg/build/projects/libc/include -mabi=ilp32d -march=rv32imafdc --target=riscv32-unknown-linux-gnu --sysroot=/opt/riscv/sysroot --gcc-toolchain=/opt/riscv -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 -std=c++17 --target=riscv32-unknown-linux-gnu -fpie -DLIBC_FULL_BUILD -ffreestanding -fno-exceptions -fno-unwind-tables -fno-asynchronous-unwind-tables -fno-rtti -ffixed-point -Wno-c99-extensions -Wno-gnu-imaginary-constant -Wno-pedantic -MD -MT projects/libc/test/src/stdlib/CMakeFiles/libc.test.src.stdlib.at_quick_exit_test.__unit__.__build__.dir/at_quick_exit_test.cpp.o -MF projects/libc/test/src/stdlib/CMakeFiles/libc.test.src.stdlib.at_quick_exit_test.__unit__.__build__.dir/at_quick_exit_test.cpp.o.d -o projects/libc/test/src/stdlib/CMakeFiles/libc.test.src.stdlib.at_quick_exit_test.__unit__.__build__.dir/at_quick_exit_test.cpp.o -c /home/libcrv32buildbot/bbroot/libc-riscv32-qemu-yocto-fullbuild-dbg/llvm-project/libc/test/src/stdlib/at_quick_exit_test.cpp
/home/libcrv32buildbot/bbroot/libc-riscv32-qemu-yocto-fullbuild-dbg/llvm-project/libc/test/src/stdlib/at_quick_exit_test.cpp:36:57: error: no member named '_Exit' in namespace '__llvm_libc_20_0_0_git'
   36 |     LIBC_NAMESPACE::at_quick_exit(+[] { LIBC_NAMESPACE::_Exit(1); });
      |                                         ~~~~~~~~~~~~~~~~^
1 error generated.
[3/916] Running unit test libc.test.src.__support.freelist_test.__unit__
sh: line 1: /timer.28231: Permission denied
[==========] Running 9 tests from 1 test suite.
[ RUN      ] LlvmLibcFreeList.EmptyListHasNoMembers
[       OK ] LlvmLibcFreeList.EmptyListHasNoMembers (731 us)
[ RUN      ] LlvmLibcFreeList.CanRetrieveAddedMember
[       OK ] LlvmLibcFreeList.CanRetrieveAddedMember (611 us)
[ RUN      ] LlvmLibcFreeList.CanRetrieveAddedMemberForSmallerSize
[       OK ] LlvmLibcFreeList.CanRetrieveAddedMemberForSmallerSize (121 us)
[ RUN      ] LlvmLibcFreeList.CanRemoveItem
[       OK ] LlvmLibcFreeList.CanRemoveItem (873 us)
[ RUN      ] LlvmLibcFreeList.FindReturnsSmallestChunk
[       OK ] LlvmLibcFreeList.FindReturnsSmallestChunk (535 us)
[ RUN      ] LlvmLibcFreeList.FindReturnsCorrectChunkInSameBucket
[       OK ] LlvmLibcFreeList.FindReturnsCorrectChunkInSameBucket (150 us)
[ RUN      ] LlvmLibcFreeList.FindCanMoveUpThroughBuckets
[       OK ] LlvmLibcFreeList.FindCanMoveUpThroughBuckets (127 us)
[ RUN      ] LlvmLibcFreeList.RemoveUnknownChunkReturnsNotFound
[       OK ] LlvmLibcFreeList.RemoveUnknownChunkReturnsNotFound (108 us)
[ RUN      ] LlvmLibcFreeList.CanStoreMultipleChunksPerBucket
[       OK ] LlvmLibcFreeList.CanStoreMultipleChunksPerBucket (252 us)
Ran 9 tests.  PASS: 9  FAIL: 0
[4/916] Running unit test libc.test.src.__support.CPP.cstddef_test.__unit__
sh: line 1: /timer.28254: Permission denied
[==========] Running 2 tests from 1 test suite.
[ RUN      ] LlvmLibcByteTest.to_integer
[       OK ] LlvmLibcByteTest.to_integer (281 us)
[ RUN      ] LlvmLibcByteTest.bitwise
[       OK ] LlvmLibcByteTest.bitwise (594 us)
Ran 2 tests.  PASS: 2  FAIL: 0

```

</details>

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


More information about the libc-commits mailing list