[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:27:23 PST 2024


llvm-ci wrote:

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

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

<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)
...
[       OK ] LlvmLibcSPrintfTest.IndexModeParsing (84 us)
Ran 20 tests.  PASS: 20  FAIL: 0
[773/1015] Running unit test libc.test.src.stdio.snprintf_test.__unit__
[==========] Running 2 tests from 1 test suite.
[ RUN      ] LlvmLibcSNPrintfTest.CutOff
[       OK ] LlvmLibcSNPrintfTest.CutOff (1651 ms)
[ RUN      ] LlvmLibcSNPrintfTest.NoCutOff
[       OK ] LlvmLibcSNPrintfTest.NoCutOff (20 us)
Ran 2 tests.  PASS: 2  FAIL: 0
[774/1015] 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_18_0_0_git -D_DEBUG -I/home/libc_worker/libc-riscv64-debian/libc-riscv64-debian-fullbuild-dbg/build/projects/libc/test/src/stdlib -I/home/libc_worker/libc-riscv64-debian/libc-riscv64-debian-fullbuild-dbg/llvm-project/libc/test/src/stdlib -I/home/libc_worker/libc-riscv64-debian/libc-riscv64-debian-fullbuild-dbg/llvm-project/libc -isystem /home/libc_worker/libc-riscv64-debian/libc-riscv64-debian-fullbuild-dbg/build/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 -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/libc_worker/libc-riscv64-debian/libc-riscv64-debian-fullbuild-dbg/llvm-project/libc/test/src/stdlib/atexit_test.cpp
/home/libc_worker/libc-riscv64-debian/libc-riscv64-debian-fullbuild-dbg/llvm-project/libc/test/src/stdlib/atexit_test.cpp:36:50: error: no member named '_Exit' in namespace '__llvm_libc_18_0_0_git'; did you mean 'exit'?
    LIBC_NAMESPACE::atexit(+[] { LIBC_NAMESPACE::_Exit(1); });
                                 ~~~~~~~~~~~~~~~~^~~~~
                                                 exit
/home/libc_worker/libc-riscv64-debian/libc-riscv64-debian-fullbuild-dbg/llvm-project/libc/src/stdlib/exit.h:16:19: note: 'exit' declared here
[[noreturn]] void exit(int status);
                  ^
1 error generated.
[775/1015] Running unit test libc.test.src.stdlib.strtol_test.__unit__
[==========] Running 7 tests from 1 test suite.
[ RUN      ] LlvmLibcStrtolTest.InvalidBase
[       OK ] LlvmLibcStrtolTest.InvalidBase (8 us)
[ RUN      ] LlvmLibcStrtolTest.CleanBaseTenDecode
[       OK ] LlvmLibcStrtolTest.CleanBaseTenDecode (28 us)
[ RUN      ] LlvmLibcStrtolTest.MessyBaseTenDecode
[       OK ] LlvmLibcStrtolTest.MessyBaseTenDecode (19 us)
[ RUN      ] LlvmLibcStrtolTest.DecodeInOtherBases
[       OK ] LlvmLibcStrtolTest.DecodeInOtherBases (1633 ms)
[ RUN      ] LlvmLibcStrtolTest.CleanBaseSixteenDecode
[       OK ] LlvmLibcStrtolTest.CleanBaseSixteenDecode (31 us)
[ RUN      ] LlvmLibcStrtolTest.MessyBaseSixteenDecode
[       OK ] LlvmLibcStrtolTest.MessyBaseSixteenDecode (8 us)
[ RUN      ] LlvmLibcStrtolTest.AutomaticBaseSelection
[       OK ] LlvmLibcStrtolTest.AutomaticBaseSelection (14 us)
Ran 7 tests.  PASS: 7  FAIL: 0
[776/1015] Running unit test libc.test.src.stdlib.strtold_test.__unit__
[==========] Running 9 tests from 1 test suite.
[ RUN      ] LlvmLibcStrToLDTest.SimpleTest
[       OK ] LlvmLibcStrToLDTest.SimpleTest (49 us)
[ RUN      ] LlvmLibcStrToLDTest.Float64SpecificFailures
[       OK ] LlvmLibcStrToLDTest.Float64SpecificFailures (29 us)
[ RUN      ] LlvmLibcStrToLDTest.Float80SpecificFailures
[       OK ] LlvmLibcStrToLDTest.Float80SpecificFailures (14 us)
[ RUN      ] LlvmLibcStrToLDTest.MaxSizeNumbers
[       OK ] LlvmLibcStrToLDTest.MaxSizeNumbers (206 ms)
[ RUN      ] LlvmLibcStrToLDTest.SubnormalTests
[       OK ] LlvmLibcStrToLDTest.SubnormalTests (389 ms)
Step 8 (libc-unit-tests) failure: libc-unit-tests (failure)
...
[       OK ] LlvmLibcSPrintfTest.IndexModeParsing (84 us)
Ran 20 tests.  PASS: 20  FAIL: 0
[773/1015] Running unit test libc.test.src.stdio.snprintf_test.__unit__
[==========] Running 2 tests from 1 test suite.
[ RUN      ] LlvmLibcSNPrintfTest.CutOff
[       OK ] LlvmLibcSNPrintfTest.CutOff (1651 ms)
[ RUN      ] LlvmLibcSNPrintfTest.NoCutOff
[       OK ] LlvmLibcSNPrintfTest.NoCutOff (20 us)
Ran 2 tests.  PASS: 2  FAIL: 0
[774/1015] 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_18_0_0_git -D_DEBUG -I/home/libc_worker/libc-riscv64-debian/libc-riscv64-debian-fullbuild-dbg/build/projects/libc/test/src/stdlib -I/home/libc_worker/libc-riscv64-debian/libc-riscv64-debian-fullbuild-dbg/llvm-project/libc/test/src/stdlib -I/home/libc_worker/libc-riscv64-debian/libc-riscv64-debian-fullbuild-dbg/llvm-project/libc -isystem /home/libc_worker/libc-riscv64-debian/libc-riscv64-debian-fullbuild-dbg/build/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 -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/libc_worker/libc-riscv64-debian/libc-riscv64-debian-fullbuild-dbg/llvm-project/libc/test/src/stdlib/atexit_test.cpp
/home/libc_worker/libc-riscv64-debian/libc-riscv64-debian-fullbuild-dbg/llvm-project/libc/test/src/stdlib/atexit_test.cpp:36:50: error: no member named '_Exit' in namespace '__llvm_libc_18_0_0_git'; did you mean 'exit'?
    LIBC_NAMESPACE::atexit(+[] { LIBC_NAMESPACE::_Exit(1); });
                                 ~~~~~~~~~~~~~~~~^~~~~
                                                 exit
/home/libc_worker/libc-riscv64-debian/libc-riscv64-debian-fullbuild-dbg/llvm-project/libc/src/stdlib/exit.h:16:19: note: 'exit' declared here
[[noreturn]] void exit(int status);
                  ^
1 error generated.
[775/1015] Running unit test libc.test.src.stdlib.strtol_test.__unit__
[==========] Running 7 tests from 1 test suite.
[ RUN      ] LlvmLibcStrtolTest.InvalidBase
[       OK ] LlvmLibcStrtolTest.InvalidBase (8 us)
[ RUN      ] LlvmLibcStrtolTest.CleanBaseTenDecode
[       OK ] LlvmLibcStrtolTest.CleanBaseTenDecode (28 us)
[ RUN      ] LlvmLibcStrtolTest.MessyBaseTenDecode
[       OK ] LlvmLibcStrtolTest.MessyBaseTenDecode (19 us)
[ RUN      ] LlvmLibcStrtolTest.DecodeInOtherBases
[       OK ] LlvmLibcStrtolTest.DecodeInOtherBases (1633 ms)
[ RUN      ] LlvmLibcStrtolTest.CleanBaseSixteenDecode
[       OK ] LlvmLibcStrtolTest.CleanBaseSixteenDecode (31 us)
[ RUN      ] LlvmLibcStrtolTest.MessyBaseSixteenDecode
[       OK ] LlvmLibcStrtolTest.MessyBaseSixteenDecode (8 us)
[ RUN      ] LlvmLibcStrtolTest.AutomaticBaseSelection
[       OK ] LlvmLibcStrtolTest.AutomaticBaseSelection (14 us)
Ran 7 tests.  PASS: 7  FAIL: 0
[776/1015] Running unit test libc.test.src.stdlib.strtold_test.__unit__
[==========] Running 9 tests from 1 test suite.
[ RUN      ] LlvmLibcStrToLDTest.SimpleTest
[       OK ] LlvmLibcStrToLDTest.SimpleTest (49 us)
[ RUN      ] LlvmLibcStrToLDTest.Float64SpecificFailures
[       OK ] LlvmLibcStrToLDTest.Float64SpecificFailures (29 us)
[ RUN      ] LlvmLibcStrToLDTest.Float80SpecificFailures
[       OK ] LlvmLibcStrToLDTest.Float80SpecificFailures (14 us)
[ RUN      ] LlvmLibcStrToLDTest.MaxSizeNumbers
[       OK ] LlvmLibcStrToLDTest.MaxSizeNumbers (206 ms)
[ RUN      ] LlvmLibcStrToLDTest.SubnormalTests
[       OK ] LlvmLibcStrToLDTest.SubnormalTests (389 ms)

```

</details>

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


More information about the libc-commits mailing list