[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:16:20 PST 2024
llvm-ci wrote:
LLVM Buildbot has detected a new failure on builder `libc-x86_64-debian-fullbuild-dbg` running on `libc-x86_64-debian-fullbuild` while building `libc` at step 4 "annotate".
Full details are available at: https://lab.llvm.org/buildbot/#/builders/179/builds/9800
<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)
...
[1086/1095] Running unit test libc.test.src.math.smoke.llrintl_test.__unit__
[==========] Running 3 tests from 1 test suite.
[ RUN ] LlvmLibcRoundToIntegerTest.InfinityAndNaN
[ OK ] LlvmLibcRoundToIntegerTest.InfinityAndNaN (7 us)
[ RUN ] LlvmLibcRoundToIntegerTest.RoundNumbers
[ OK ] LlvmLibcRoundToIntegerTest.RoundNumbers (8 us)
[ RUN ] LlvmLibcRoundToIntegerTest.SubnormalRange
[ OK ] LlvmLibcRoundToIntegerTest.SubnormalRange (1294 ms)
Ran 3 tests. PASS: 3 FAIL: 0
[1087/1095] 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/bin/clang++ -DLIBC_NAMESPACE=__llvm_libc_19_0_0_git -D_DEBUG -I/home/llvm-libc-buildbot/buildbot-worker/libc-x86_64-debian-fullbuild/libc-x86_64-debian-fullbuild-dbg/build/projects/libc/test/src/stdlib -I/home/llvm-libc-buildbot/buildbot-worker/libc-x86_64-debian-fullbuild/libc-x86_64-debian-fullbuild-dbg/llvm-project/libc/test/src/stdlib -I/home/llvm-libc-buildbot/buildbot-worker/libc-x86_64-debian-fullbuild/libc-x86_64-debian-fullbuild-dbg/llvm-project/libc -isystem /home/llvm-libc-buildbot/buildbot-worker/libc-x86_64-debian-fullbuild/libc-x86_64-debian-fullbuild-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 -DLIBC_FULL_BUILD -ffreestanding -fno-exceptions -fno-unwind-tables -fno-asynchronous-unwind-tables -fno-rtti -Wno-c99-extensions -Wno-gnu-imaginary-constant -Wno-pedantic -std=c++17 -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/llvm-libc-buildbot/buildbot-worker/libc-x86_64-debian-fullbuild/libc-x86_64-debian-fullbuild-dbg/llvm-project/libc/test/src/stdlib/atexit_test.cpp
/home/llvm-libc-buildbot/buildbot-worker/libc-x86_64-debian-fullbuild/libc-x86_64-debian-fullbuild-dbg/llvm-project/libc/test/src/stdlib/atexit_test.cpp:36:50: error: no member named '_Exit' in namespace '__llvm_libc_19_0_0_git'; did you mean 'exit'?
LIBC_NAMESPACE::atexit(+[] { LIBC_NAMESPACE::_Exit(1); });
~~~~~~~~~~~~~~~~^~~~~
exit
/home/llvm-libc-buildbot/buildbot-worker/libc-x86_64-debian-fullbuild/libc-x86_64-debian-fullbuild-dbg/llvm-project/libc/src/stdlib/exit.h:16:19: note: 'exit' declared here
[[noreturn]] void exit(int status);
^
1 error generated.
[1088/1095] Running unit test libc.test.src.math.smoke.lrintl_test.__unit__
[==========] Running 3 tests from 1 test suite.
[ RUN ] LlvmLibcRoundToIntegerTest.InfinityAndNaN
[ OK ] LlvmLibcRoundToIntegerTest.InfinityAndNaN (7 us)
[ RUN ] LlvmLibcRoundToIntegerTest.RoundNumbers
[ OK ] LlvmLibcRoundToIntegerTest.RoundNumbers (8 us)
[ RUN ] LlvmLibcRoundToIntegerTest.SubnormalRange
[ OK ] LlvmLibcRoundToIntegerTest.SubnormalRange (1313 ms)
Ran 3 tests. PASS: 3 FAIL: 0
[1089/1095] Running unit test libc.test.src.stdlib.strtoint32_test.__unit__
[==========] Running 14 tests from 1 test suite.
[ RUN ] LlvmLibcStrtoint32Test.InvalidBase
[ OK ] LlvmLibcStrtoint32Test.InvalidBase (5 us)
[ RUN ] LlvmLibcStrtoint32Test.CleanBaseTenDecode
[ OK ] LlvmLibcStrtoint32Test.CleanBaseTenDecode (10 us)
[ RUN ] LlvmLibcStrtoint32Test.MessyBaseTenDecode
[ OK ] LlvmLibcStrtoint32Test.MessyBaseTenDecode (7 us)
[ RUN ] LlvmLibcStrtoint32Test.DecodeInOtherBases
[ OK ] LlvmLibcStrtoint32Test.DecodeInOtherBases (485 ms)
[ RUN ] LlvmLibcStrtoint32Test.CleanBaseSixteenDecode
[ OK ] LlvmLibcStrtoint32Test.CleanBaseSixteenDecode (9 us)
[ RUN ] LlvmLibcStrtoint32Test.MessyBaseSixteenDecode
[ OK ] LlvmLibcStrtoint32Test.MessyBaseSixteenDecode (2 us)
[ RUN ] LlvmLibcStrtoint32Test.AutomaticBaseSelection
[ OK ] LlvmLibcStrtoint32Test.AutomaticBaseSelection (4 us)
[ RUN ] LlvmLibcStrtouint32Test.InvalidBase
[ OK ] LlvmLibcStrtouint32Test.InvalidBase (3 us)
[ RUN ] LlvmLibcStrtouint32Test.CleanBaseTenDecode
[ OK ] LlvmLibcStrtouint32Test.CleanBaseTenDecode (7 us)
Step 8 (libc-unit-tests) failure: libc-unit-tests (failure)
...
[1086/1095] Running unit test libc.test.src.math.smoke.llrintl_test.__unit__
[==========] Running 3 tests from 1 test suite.
[ RUN ] LlvmLibcRoundToIntegerTest.InfinityAndNaN
[ OK ] LlvmLibcRoundToIntegerTest.InfinityAndNaN (7 us)
[ RUN ] LlvmLibcRoundToIntegerTest.RoundNumbers
[ OK ] LlvmLibcRoundToIntegerTest.RoundNumbers (8 us)
[ RUN ] LlvmLibcRoundToIntegerTest.SubnormalRange
[ OK ] LlvmLibcRoundToIntegerTest.SubnormalRange (1294 ms)
Ran 3 tests. PASS: 3 FAIL: 0
[1087/1095] 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/bin/clang++ -DLIBC_NAMESPACE=__llvm_libc_19_0_0_git -D_DEBUG -I/home/llvm-libc-buildbot/buildbot-worker/libc-x86_64-debian-fullbuild/libc-x86_64-debian-fullbuild-dbg/build/projects/libc/test/src/stdlib -I/home/llvm-libc-buildbot/buildbot-worker/libc-x86_64-debian-fullbuild/libc-x86_64-debian-fullbuild-dbg/llvm-project/libc/test/src/stdlib -I/home/llvm-libc-buildbot/buildbot-worker/libc-x86_64-debian-fullbuild/libc-x86_64-debian-fullbuild-dbg/llvm-project/libc -isystem /home/llvm-libc-buildbot/buildbot-worker/libc-x86_64-debian-fullbuild/libc-x86_64-debian-fullbuild-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 -DLIBC_FULL_BUILD -ffreestanding -fno-exceptions -fno-unwind-tables -fno-asynchronous-unwind-tables -fno-rtti -Wno-c99-extensions -Wno-gnu-imaginary-constant -Wno-pedantic -std=c++17 -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/llvm-libc-buildbot/buildbot-worker/libc-x86_64-debian-fullbuild/libc-x86_64-debian-fullbuild-dbg/llvm-project/libc/test/src/stdlib/atexit_test.cpp
/home/llvm-libc-buildbot/buildbot-worker/libc-x86_64-debian-fullbuild/libc-x86_64-debian-fullbuild-dbg/llvm-project/libc/test/src/stdlib/atexit_test.cpp:36:50: error: no member named '_Exit' in namespace '__llvm_libc_19_0_0_git'; did you mean 'exit'?
LIBC_NAMESPACE::atexit(+[] { LIBC_NAMESPACE::_Exit(1); });
~~~~~~~~~~~~~~~~^~~~~
exit
/home/llvm-libc-buildbot/buildbot-worker/libc-x86_64-debian-fullbuild/libc-x86_64-debian-fullbuild-dbg/llvm-project/libc/src/stdlib/exit.h:16:19: note: 'exit' declared here
[[noreturn]] void exit(int status);
^
1 error generated.
[1088/1095] Running unit test libc.test.src.math.smoke.lrintl_test.__unit__
[==========] Running 3 tests from 1 test suite.
[ RUN ] LlvmLibcRoundToIntegerTest.InfinityAndNaN
[ OK ] LlvmLibcRoundToIntegerTest.InfinityAndNaN (7 us)
[ RUN ] LlvmLibcRoundToIntegerTest.RoundNumbers
[ OK ] LlvmLibcRoundToIntegerTest.RoundNumbers (8 us)
[ RUN ] LlvmLibcRoundToIntegerTest.SubnormalRange
[ OK ] LlvmLibcRoundToIntegerTest.SubnormalRange (1313 ms)
Ran 3 tests. PASS: 3 FAIL: 0
[1089/1095] Running unit test libc.test.src.stdlib.strtoint32_test.__unit__
[==========] Running 14 tests from 1 test suite.
[ RUN ] LlvmLibcStrtoint32Test.InvalidBase
[ OK ] LlvmLibcStrtoint32Test.InvalidBase (5 us)
[ RUN ] LlvmLibcStrtoint32Test.CleanBaseTenDecode
[ OK ] LlvmLibcStrtoint32Test.CleanBaseTenDecode (10 us)
[ RUN ] LlvmLibcStrtoint32Test.MessyBaseTenDecode
[ OK ] LlvmLibcStrtoint32Test.MessyBaseTenDecode (7 us)
[ RUN ] LlvmLibcStrtoint32Test.DecodeInOtherBases
[ OK ] LlvmLibcStrtoint32Test.DecodeInOtherBases (485 ms)
[ RUN ] LlvmLibcStrtoint32Test.CleanBaseSixteenDecode
[ OK ] LlvmLibcStrtoint32Test.CleanBaseSixteenDecode (9 us)
[ RUN ] LlvmLibcStrtoint32Test.MessyBaseSixteenDecode
[ OK ] LlvmLibcStrtoint32Test.MessyBaseSixteenDecode (2 us)
[ RUN ] LlvmLibcStrtoint32Test.AutomaticBaseSelection
[ OK ] LlvmLibcStrtoint32Test.AutomaticBaseSelection (4 us)
[ RUN ] LlvmLibcStrtouint32Test.InvalidBase
[ OK ] LlvmLibcStrtouint32Test.InvalidBase (3 us)
[ RUN ] LlvmLibcStrtouint32Test.CleanBaseTenDecode
[ OK ] LlvmLibcStrtouint32Test.CleanBaseTenDecode (7 us)
```
</details>
https://github.com/llvm/llvm-project/pull/114904
More information about the libc-commits
mailing list