[libc-commits] [libc] [libc] Implement swprintf. (PR #235008)
LLVM Continuous Integration via libc-commits
libc-commits at lists.llvm.org
Thu Nov 5 06:52:18 PST 2026
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/57558
<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)
...
[8298/8305] Building CXX object libc/test/shared/CMakeFiles/libc.test.shared.shared_math_test.__NO_FMA_OPT.__build__.dir/shared_math_test.cpp.o
[8299/8305] Linking CXX executable libc/test/shared/libc.test.shared.shared_math_test.__NO_FMA_OPT.__NO_MISC_MATH_BASIC_OPS_OPT.__build__
[8300/8305] Linking CXX executable libc/test/shared/libc.test.shared.shared_math_test.__NO_MISC_MATH_BASIC_OPS_OPT.__build__
[8301/8305] Linking CXX executable libc/test/shared/libc.test.shared.shared_math_test.__NO_FMA_OPT.__NO_ROUND_OPT.__build__
[8302/8305] Linking CXX executable libc/test/shared/libc.test.shared.shared_math_test.__NO_FMA_OPT.__build__
[8303/8305] Building CXX object libc/test/shared/CMakeFiles/libc.test.shared.shared_math_test.__NO_FMA_OPT.__NO_MISC_MATH_BASIC_OPS_OPT.__NO_ROUND_OPT.__build__.dir/shared_math_test.cpp.o
[8304/8305] Linking CXX executable libc/test/shared/libc.test.shared.shared_math_test.__NO_FMA_OPT.__NO_MISC_MATH_BASIC_OPS_OPT.__NO_ROUND_OPT.__build__
[8304/8305] Running libc tests via lit
-- Testing: 1848 tests, 32 workers --
Testing: 0.. 10.. 20.. 30.. 40.. 50.. 60.. 70.. 80.. 90..
FAIL: libc :: src/wchar/libc.test.src.wchar.swprintf_test.__build__ (1840 of 1848)
******************** TEST 'libc :: src/wchar/libc.test.src.wchar.swprintf_test.__build__' FAILED ********************
[32m[==========] [0mRunning 27 tests from 1 test suite.
[32m[ RUN ] [0mLlvmLibcSwprintfTest.SimpleNoConv
[32m[ OK ] [0mLlvmLibcSwprintfTest.SimpleNoConv (19 us)
[32m[ RUN ] [0mLlvmLibcSwprintfTest.PercentConv
[32m[ OK ] [0mLlvmLibcSwprintfTest.PercentConv (18 us)
[32m[ RUN ] [0mLlvmLibcSwprintfTest.CharConv
[32m[ OK ] [0mLlvmLibcSwprintfTest.CharConv (18 us)
[32m[ RUN ] [0mLlvmLibcSwprintfTest.StringConv
[32m[ OK ] [0mLlvmLibcSwprintfTest.StringConv (49 us)
[32m[ RUN ] [0mLlvmLibcSwprintfTest.IntConv
[32m[ OK ] [0mLlvmLibcSwprintfTest.IntConv (410 us)
[32m[ RUN ] [0mLlvmLibcSwprintfTest.HexConv
[32m[ OK ] [0mLlvmLibcSwprintfTest.HexConv (165 us)
[32m[ RUN ] [0mLlvmLibcSwprintfTest.BinConv
[32m[ OK ] [0mLlvmLibcSwprintfTest.BinConv (146 us)
[32m[ RUN ] [0mLlvmLibcSwprintfTest.PointerConv
[32m[ OK ] [0mLlvmLibcSwprintfTest.PointerConv (72 us)
[32m[ RUN ] [0mLlvmLibcSwprintfTest.OctConv
[32m[ OK ] [0mLlvmLibcSwprintfTest.OctConv (158 us)
[32m[ RUN ] [0mLlvmLibcSwprintfTest.FloatHexExpConv
/home/llvm-libc-buildbot/buildbot-worker/libc-x86_64-debian-fullbuild/libc-x86_64-debian-fullbuild-dbg/llvm-project/libc/test/src/wchar/swprintf_test.cpp:740: FAILURE
Expected: written
Which is: 39
To be equal to: static_cast<int>(sizeof(L"0x1.999999999999999999999999999ap-4") / sizeof(wchar_t) - 1)
Which is: 35
/home/llvm-libc-buildbot/buildbot-worker/libc-x86_64-debian-fullbuild/libc-x86_64-debian-fullbuild-dbg/llvm-project/libc/test/src/wchar/swprintf_test.cpp:740: FAILURE
Expected: buff
Which is: 0x0.0000000002db0000000000489631p-16382
To be equal to: L"0x1.999999999999999999999999999ap-4"
Which is: 0x1.999999999999999999999999999ap-4
/home/llvm-libc-buildbot/buildbot-worker/libc-x86_64-debian-fullbuild/libc-x86_64-debian-fullbuild-dbg/llvm-project/libc/test/src/wchar/swprintf_test.cpp:880: FAILURE
Expected: written
Which is: 12
To be equal to: static_cast<int>(sizeof(L"0x1.ap-4") / sizeof(wchar_t) - 1)
Which is: 8
/home/llvm-libc-buildbot/buildbot-worker/libc-x86_64-debian-fullbuild/libc-x86_64-debian-fullbuild-dbg/llvm-project/libc/test/src/wchar/swprintf_test.cpp:880: FAILURE
Expected: buff
Step 9 (check-libc) failure: check-libc (failure)
...
[8298/8305] Building CXX object libc/test/shared/CMakeFiles/libc.test.shared.shared_math_test.__NO_FMA_OPT.__build__.dir/shared_math_test.cpp.o
[8299/8305] Linking CXX executable libc/test/shared/libc.test.shared.shared_math_test.__NO_FMA_OPT.__NO_MISC_MATH_BASIC_OPS_OPT.__build__
[8300/8305] Linking CXX executable libc/test/shared/libc.test.shared.shared_math_test.__NO_MISC_MATH_BASIC_OPS_OPT.__build__
[8301/8305] Linking CXX executable libc/test/shared/libc.test.shared.shared_math_test.__NO_FMA_OPT.__NO_ROUND_OPT.__build__
[8302/8305] Linking CXX executable libc/test/shared/libc.test.shared.shared_math_test.__NO_FMA_OPT.__build__
[8303/8305] Building CXX object libc/test/shared/CMakeFiles/libc.test.shared.shared_math_test.__NO_FMA_OPT.__NO_MISC_MATH_BASIC_OPS_OPT.__NO_ROUND_OPT.__build__.dir/shared_math_test.cpp.o
[8304/8305] Linking CXX executable libc/test/shared/libc.test.shared.shared_math_test.__NO_FMA_OPT.__NO_MISC_MATH_BASIC_OPS_OPT.__NO_ROUND_OPT.__build__
[8304/8305] Running libc tests via lit
-- Testing: 1848 tests, 32 workers --
Testing: 0.. 10.. 20.. 30.. 40.. 50.. 60.. 70.. 80.. 90..
FAIL: libc :: src/wchar/libc.test.src.wchar.swprintf_test.__build__ (1840 of 1848)
******************** TEST 'libc :: src/wchar/libc.test.src.wchar.swprintf_test.__build__' FAILED ********************
[32m[==========] [0mRunning 27 tests from 1 test suite.
[32m[ RUN ] [0mLlvmLibcSwprintfTest.SimpleNoConv
[32m[ OK ] [0mLlvmLibcSwprintfTest.SimpleNoConv (19 us)
[32m[ RUN ] [0mLlvmLibcSwprintfTest.PercentConv
[32m[ OK ] [0mLlvmLibcSwprintfTest.PercentConv (18 us)
[32m[ RUN ] [0mLlvmLibcSwprintfTest.CharConv
[32m[ OK ] [0mLlvmLibcSwprintfTest.CharConv (18 us)
[32m[ RUN ] [0mLlvmLibcSwprintfTest.StringConv
[32m[ OK ] [0mLlvmLibcSwprintfTest.StringConv (49 us)
[32m[ RUN ] [0mLlvmLibcSwprintfTest.IntConv
[32m[ OK ] [0mLlvmLibcSwprintfTest.IntConv (410 us)
[32m[ RUN ] [0mLlvmLibcSwprintfTest.HexConv
[32m[ OK ] [0mLlvmLibcSwprintfTest.HexConv (165 us)
[32m[ RUN ] [0mLlvmLibcSwprintfTest.BinConv
[32m[ OK ] [0mLlvmLibcSwprintfTest.BinConv (146 us)
[32m[ RUN ] [0mLlvmLibcSwprintfTest.PointerConv
[32m[ OK ] [0mLlvmLibcSwprintfTest.PointerConv (72 us)
[32m[ RUN ] [0mLlvmLibcSwprintfTest.OctConv
[32m[ OK ] [0mLlvmLibcSwprintfTest.OctConv (158 us)
[32m[ RUN ] [0mLlvmLibcSwprintfTest.FloatHexExpConv
/home/llvm-libc-buildbot/buildbot-worker/libc-x86_64-debian-fullbuild/libc-x86_64-debian-fullbuild-dbg/llvm-project/libc/test/src/wchar/swprintf_test.cpp:740: FAILURE
Expected: written
Which is: 39
To be equal to: static_cast<int>(sizeof(L"0x1.999999999999999999999999999ap-4") / sizeof(wchar_t) - 1)
Which is: 35
/home/llvm-libc-buildbot/buildbot-worker/libc-x86_64-debian-fullbuild/libc-x86_64-debian-fullbuild-dbg/llvm-project/libc/test/src/wchar/swprintf_test.cpp:740: FAILURE
Expected: buff
Which is: 0x0.0000000002db0000000000489631p-16382
To be equal to: L"0x1.999999999999999999999999999ap-4"
Which is: 0x1.999999999999999999999999999ap-4
/home/llvm-libc-buildbot/buildbot-worker/libc-x86_64-debian-fullbuild/libc-x86_64-debian-fullbuild-dbg/llvm-project/libc/test/src/wchar/swprintf_test.cpp:880: FAILURE
Expected: written
Which is: 12
To be equal to: static_cast<int>(sizeof(L"0x1.ap-4") / sizeof(wchar_t) - 1)
Which is: 8
/home/llvm-libc-buildbot/buildbot-worker/libc-x86_64-debian-fullbuild/libc-x86_64-debian-fullbuild-dbg/llvm-project/libc/test/src/wchar/swprintf_test.cpp:880: FAILURE
Expected: buff
```
</details>
https://github.com/llvm/llvm-project/pull/235008
More information about the libc-commits
mailing list