[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 ********************
[==========] Running 27 tests from 1 test suite.
[ RUN      ] LlvmLibcSwprintfTest.SimpleNoConv
[       OK ] LlvmLibcSwprintfTest.SimpleNoConv (19 us)
[ RUN      ] LlvmLibcSwprintfTest.PercentConv
[       OK ] LlvmLibcSwprintfTest.PercentConv (18 us)
[ RUN      ] LlvmLibcSwprintfTest.CharConv
[       OK ] LlvmLibcSwprintfTest.CharConv (18 us)
[ RUN      ] LlvmLibcSwprintfTest.StringConv
[       OK ] LlvmLibcSwprintfTest.StringConv (49 us)
[ RUN      ] LlvmLibcSwprintfTest.IntConv
[       OK ] LlvmLibcSwprintfTest.IntConv (410 us)
[ RUN      ] LlvmLibcSwprintfTest.HexConv
[       OK ] LlvmLibcSwprintfTest.HexConv (165 us)
[ RUN      ] LlvmLibcSwprintfTest.BinConv
[       OK ] LlvmLibcSwprintfTest.BinConv (146 us)
[ RUN      ] LlvmLibcSwprintfTest.PointerConv
[       OK ] LlvmLibcSwprintfTest.PointerConv (72 us)
[ RUN      ] LlvmLibcSwprintfTest.OctConv
[       OK ] LlvmLibcSwprintfTest.OctConv (158 us)
[ RUN      ] LlvmLibcSwprintfTest.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 ********************
[==========] Running 27 tests from 1 test suite.
[ RUN      ] LlvmLibcSwprintfTest.SimpleNoConv
[       OK ] LlvmLibcSwprintfTest.SimpleNoConv (19 us)
[ RUN      ] LlvmLibcSwprintfTest.PercentConv
[       OK ] LlvmLibcSwprintfTest.PercentConv (18 us)
[ RUN      ] LlvmLibcSwprintfTest.CharConv
[       OK ] LlvmLibcSwprintfTest.CharConv (18 us)
[ RUN      ] LlvmLibcSwprintfTest.StringConv
[       OK ] LlvmLibcSwprintfTest.StringConv (49 us)
[ RUN      ] LlvmLibcSwprintfTest.IntConv
[       OK ] LlvmLibcSwprintfTest.IntConv (410 us)
[ RUN      ] LlvmLibcSwprintfTest.HexConv
[       OK ] LlvmLibcSwprintfTest.HexConv (165 us)
[ RUN      ] LlvmLibcSwprintfTest.BinConv
[       OK ] LlvmLibcSwprintfTest.BinConv (146 us)
[ RUN      ] LlvmLibcSwprintfTest.PointerConv
[       OK ] LlvmLibcSwprintfTest.PointerConv (72 us)
[ RUN      ] LlvmLibcSwprintfTest.OctConv
[       OK ] LlvmLibcSwprintfTest.OctConv (158 us)
[ RUN      ] LlvmLibcSwprintfTest.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