[libc-commits] [libc] [libc] Return the written character from putc, fputc and putchar (PR #239980)
LLVM Continuous Integration via libc-commits
libc-commits at lists.llvm.org
Sun Nov 8 19:27:49 PST 2026
llvm-ci wrote:
LLVM Buildbot has detected a new failure on builder `openmp-offload-amdgpu-runtime-2` running on `rocm-worker-hw-02` while building `libc` at step 3 "annotate".
Full details are available at: https://lab.llvm.org/buildbot/#/builders/10/builds/39034
<details>
<summary>Here is the relevant piece of the build log for the reference</summary>
```
Step 3 (annotate) failure: 'python ../llvm.src/offload/ci/openmp-offload-amdgpu-libc-runtime.py ...' (failure)
...
PASS: libc :: src/math/smoke/libc.test.src.math.smoke.ufromfpxf_test.__build__ (824 of 984)
PASS: libc :: src/stdbit/libc.test.src.stdbit.stdc_trailing_zeros_us_test.__build__ (825 of 984)
PASS: libc :: src/stdio/libc.test.src.stdio.asprintf_test.__build__ (826 of 984)
PASS: libc :: src/math/smoke/libc.test.src.math.smoke.fminl_test.__build__ (827 of 984)
PASS: libc :: src/math/smoke/libc.test.src.math.smoke.fmod_test.__build__ (828 of 984)
PASS: libc :: src/stdio/libc.test.src.stdio.fgetc_test.__build__ (829 of 984)
PASS: libc :: src/stdio/libc.test.src.stdio.fgets_test.__build__ (830 of 984)
PASS: libc :: src/math/smoke/libc.test.src.math.smoke.tan_test.__NO_ROUND_OPT.__build__ (831 of 984)
PASS: libc :: src/math/smoke/libc.test.src.math.smoke.tan_test.__build__ (832 of 984)
PASS: libc :: src/stdio/libc.test.src.stdio.printf_test.__build__ (833 of 984)
FAIL: libc :: src/stdio/libc.test.src.stdio.putc_test.__build__ (834 of 984)
******************** TEST 'libc :: src/stdio/libc.test.src.stdio.putc_test.__build__' FAILED ********************
[32m[==========] [0mRunning 1 test from 1 test suite.
[32m[ RUN ] [0mLlvmLibcPutcTest.WriteToFile
/home/botworker/builds/openmp-offload-amdgpu-runtime-2/llvm.src/libc/test/src/stdio/putc_test.cpp:26: FAILURE
Expected: __llvm_libc_24_0_0_git::putc(simple[i], file)
Which is: 0
To be equal to: static_cast<int>(static_cast<unsigned char>(simple[i]))
Which is: 115
/home/botworker/builds/openmp-offload-amdgpu-runtime-2/llvm.src/libc/test/src/stdio/putc_test.cpp:26: FAILURE
Expected: __llvm_libc_24_0_0_git::putc(simple[i], file)
Which is: 0
To be equal to: static_cast<int>(static_cast<unsigned char>(simple[i]))
Which is: 105
/home/botworker/builds/openmp-offload-amdgpu-runtime-2/llvm.src/libc/test/src/stdio/putc_test.cpp:26: FAILURE
Expected: __llvm_libc_24_0_0_git::putc(simple[i], file)
Which is: 0
To be equal to: static_cast<int>(static_cast<unsigned char>(simple[i]))
Which is: 109
/home/botworker/builds/openmp-offload-amdgpu-runtime-2/llvm.src/libc/test/src/stdio/putc_test.cpp:26: FAILURE
Expected: __llvm_libc_24_0_0_git::putc(simple[i], file)
Which is: 0
To be equal to: static_cast<int>(static_cast<unsigned char>(simple[i]))
Which is: 112
/home/botworker/builds/openmp-offload-amdgpu-runtime-2/llvm.src/libc/test/src/stdio/putc_test.cpp:26: FAILURE
Expected: __llvm_libc_24_0_0_git::putc(simple[i], file)
Which is: 0
To be equal to: static_cast<int>(static_cast<unsigned char>(simple[i]))
Which is: 108
/home/botworker/builds/openmp-offload-amdgpu-runtime-2/llvm.src/libc/test/src/stdio/putc_test.cpp:26: FAILURE
Expected: __llvm_libc_24_0_0_git::putc(simple[i], file)
Which is: 0
To be equal to: static_cast<int>(static_cast<unsigned char>(simple[i]))
Which is: 101
/home/botworker/builds/openmp-offload-amdgpu-runtime-2/llvm.src/libc/test/src/stdio/putc_test.cpp:26: FAILURE
Expected: __llvm_libc_24_0_0_git::putc(simple[i], file)
Which is: 0
To be equal to: static_cast<int>(static_cast<unsigned char>(simple[i]))
Which is: 32
Step 12 (run check-libc-amdgpu-amd-amdhsa) failure: run check-libc-amdgpu-amd-amdhsa (failure)
...
PASS: libc :: src/math/smoke/libc.test.src.math.smoke.ufromfpxf_test.__build__ (824 of 984)
PASS: libc :: src/stdbit/libc.test.src.stdbit.stdc_trailing_zeros_us_test.__build__ (825 of 984)
PASS: libc :: src/stdio/libc.test.src.stdio.asprintf_test.__build__ (826 of 984)
PASS: libc :: src/math/smoke/libc.test.src.math.smoke.fminl_test.__build__ (827 of 984)
PASS: libc :: src/math/smoke/libc.test.src.math.smoke.fmod_test.__build__ (828 of 984)
PASS: libc :: src/stdio/libc.test.src.stdio.fgetc_test.__build__ (829 of 984)
PASS: libc :: src/stdio/libc.test.src.stdio.fgets_test.__build__ (830 of 984)
PASS: libc :: src/math/smoke/libc.test.src.math.smoke.tan_test.__NO_ROUND_OPT.__build__ (831 of 984)
PASS: libc :: src/math/smoke/libc.test.src.math.smoke.tan_test.__build__ (832 of 984)
PASS: libc :: src/stdio/libc.test.src.stdio.printf_test.__build__ (833 of 984)
FAIL: libc :: src/stdio/libc.test.src.stdio.putc_test.__build__ (834 of 984)
******************** TEST 'libc :: src/stdio/libc.test.src.stdio.putc_test.__build__' FAILED ********************
[32m[==========] [0mRunning 1 test from 1 test suite.
[32m[ RUN ] [0mLlvmLibcPutcTest.WriteToFile
/home/botworker/builds/openmp-offload-amdgpu-runtime-2/llvm.src/libc/test/src/stdio/putc_test.cpp:26: FAILURE
Expected: __llvm_libc_24_0_0_git::putc(simple[i], file)
Which is: 0
To be equal to: static_cast<int>(static_cast<unsigned char>(simple[i]))
Which is: 115
/home/botworker/builds/openmp-offload-amdgpu-runtime-2/llvm.src/libc/test/src/stdio/putc_test.cpp:26: FAILURE
Expected: __llvm_libc_24_0_0_git::putc(simple[i], file)
Which is: 0
To be equal to: static_cast<int>(static_cast<unsigned char>(simple[i]))
Which is: 105
/home/botworker/builds/openmp-offload-amdgpu-runtime-2/llvm.src/libc/test/src/stdio/putc_test.cpp:26: FAILURE
Expected: __llvm_libc_24_0_0_git::putc(simple[i], file)
Which is: 0
To be equal to: static_cast<int>(static_cast<unsigned char>(simple[i]))
Which is: 109
/home/botworker/builds/openmp-offload-amdgpu-runtime-2/llvm.src/libc/test/src/stdio/putc_test.cpp:26: FAILURE
Expected: __llvm_libc_24_0_0_git::putc(simple[i], file)
Which is: 0
To be equal to: static_cast<int>(static_cast<unsigned char>(simple[i]))
Which is: 112
/home/botworker/builds/openmp-offload-amdgpu-runtime-2/llvm.src/libc/test/src/stdio/putc_test.cpp:26: FAILURE
Expected: __llvm_libc_24_0_0_git::putc(simple[i], file)
Which is: 0
To be equal to: static_cast<int>(static_cast<unsigned char>(simple[i]))
Which is: 108
/home/botworker/builds/openmp-offload-amdgpu-runtime-2/llvm.src/libc/test/src/stdio/putc_test.cpp:26: FAILURE
Expected: __llvm_libc_24_0_0_git::putc(simple[i], file)
Which is: 0
To be equal to: static_cast<int>(static_cast<unsigned char>(simple[i]))
Which is: 101
/home/botworker/builds/openmp-offload-amdgpu-runtime-2/llvm.src/libc/test/src/stdio/putc_test.cpp:26: FAILURE
Expected: __llvm_libc_24_0_0_git::putc(simple[i], file)
Which is: 0
To be equal to: static_cast<int>(static_cast<unsigned char>(simple[i]))
Which is: 32
```
</details>
https://github.com/llvm/llvm-project/pull/239980
More information about the libc-commits
mailing list