<table border="1" cellspacing="0" cellpadding="8">
<tr>
<th>Issue</th>
<td>
<a href=https://github.com/llvm/llvm-project/issues/82467>82467</a>
</td>
</tr>
<tr>
<th>Summary</th>
<td>
Building libc on Ubuntu bionic fails with `error: no member named 'getc' in namespace '__llvm_libc_18_1_0_::internal'`
</td>
</tr>
<tr>
<th>Labels</th>
<td>
build-problem,
libc
</td>
</tr>
<tr>
<th>Assignees</th>
<td>
</td>
</tr>
<tr>
<th>Reporter</th>
<td>
sylvestre
</td>
</tr>
</table>
<pre>
```
/build/source/build-llvm/./bin/clang++ --target=x86_64-pc-linux-gnu -DLIBC_NAMESPACE=__llvm_libc_18_1_0_ -I/build/source/libc -isystem libc/include -fstack-protector-strong -Wformat -Werror=format-security -Wno-unused-command-line-argument -Wdate-time -D_FORTIFY_SOURCE=2 -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 -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 -ffunction-sections -fdata-sections -fdebug-prefix-map=/build/source/build-llvm/runtimes/runtimes-bins=../../../ -fdebug-prefix-map=/build/source/= -no-canonical-prefixes -ffile-prefix-map=/build/source/build-llvm/runtimes/runtimes-bins=../../../ -ffile-prefix-map=/build/source/= -no-canonical-prefixes -O3 -DNDEBUG -fpie -fno-builtin -fno-exceptions -fno-lax-vector-conversions -fno-unwind-tables -fno-asynchronous-unwind-tables -fno-rtti -ftrivial-auto-var-init=pattern -Wall -Wextra -Werror -Wconversion -Wno-sign-conversion -Wimplicit-fallthrough -Wwrite-strings -Wextra-semi -Wnewline-eof -Wnonportable-system-include-path -Wstrict-prototypes -Wthread-safety -Wglobal-constructors -DLIBC_COPT_PUBLIC_PACKAGING -DLIBC_COPT_STDIO_USE_SYSTEM_FILE -std=gnu++17 -MD -MT libc/src/stdio/CMakeFiles/libc.src.stdio.fscanf.dir/fscanf.cpp.o -MF libc/src/stdio/CMakeFiles/libc.src.stdio.fscanf.dir/fscanf.cpp.o.d -o libc/src/stdio/CMakeFiles/libc.src.stdio.fscanf.dir/fscanf.cpp.o -c /build/source/libc/src/stdio/fscanf.cpp
In file included from /build/source/libc/src/stdio/fscanf.cpp:13:
/build/source/libc/src/stdio/scanf_core/vfscanf_internal.h:78:48: error: no member named 'getc' in namespace '__llvm_libc_18_1_0_::internal'
78 | scanf_core::Reader reader(stream, &internal::getc, internal::ungetc);
| ~~~~~~~~~~^
1 error generated.
```
</pre>
<img width="1px" height="1px" alt="" src="http://email.email.llvm.org/o/eJy0Vktv4zgS_jX0hShDphw_Dj7YVtwwttMJOgmMOQkUWZK5Q5FaPpx4D_vbF5Sc105mtjHoDgLKLBa_KhbrqyL3XjUGcUWuNuSqGPEYjtat_Fmf0AeHo8rK84rMsst_VpBsfRnZropKS8J23kYn8EUAWp9awnbjJFCGsJ3Q3DSEbQjbUIDAXYOB5MXzYlbOptAJ0MrEZ2hMpFB83W-25bf1zfX93Xp7TfKiLBNgqVUlysminJRZSWH_mfmkQkH5sw_Y0jQjbKeM0FEihdoHLn6HztmAIlgHPjhrGgqH2rqWBwoHdM46kheDADyK6FQ4UzgYC9FEjxKEbVtuZPIZgbsmtmjSXskDQlAtUijK3e33h_3ut_L-9vF7fwhGob7bbynUxoLHlpugBCgT0HXWq6CsoVCflFeV0iqcQZlkwMNRSYnmnW_v7LzKomkidxIl8BNXml8wDD5ROHCtk-pzcPzDQTrueIsBHYXDk1MBU0CUaTyFg-A-wL8iTztb5b0yDdQKtQRlVFBcq3-jS4qq7bQSKkDNtQ5HZ2NzTPvtCR1K8E8qiCNIrHnUYTBvLD4L7AKEc4e9yMBJuRC5BhlsckeixoDwyYqPTYM-QMJ3Kl3rYfAahDUndL4PZPJZI5dJroxEE_gQ4YMIX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