-
Notifications
You must be signed in to change notification settings - Fork 14.6k
Description
- cmake cmd:
cmake -S llvm -B build -DCMAKE_INSTALL_PREFIX=${INSTALL_DIR} -DCMAKE_BUILD_TYPE=Release
-DCMAKE_BUILD_TYPE=Release -DLLVM_ENABLE_PROJECTS=all -DCMAKE_C_COMPILER=/usr/bin/gcc -DCMAKE_CXX_COMPILER=/usr/bin/g++ - gcc/g++ version
13.3.0 - source code:
git clone --recursive -b release/19.x https://github.com/llvm/llvm-project.git
/home/dap/local/llvmorg-19.1.7/libc/src/wchar/wctob.cpp:18:25: error: ‘int _llvm_libc_19_1_7::wctob(wint_t)’ aliased to external symbol ‘wctob’
18 | LLVM_LIBC_FUNCTION(int, wctob, (wint_t c)) {
| ^~~~~
/home/dap/local/llvmorg-19.1.7/libc/src/__support/common.h:29:34: note: in definition of macro ‘LLVM_LIBC_FUNCTION_IMPL’
29 | decltype(LIBC_NAMESPACE::name) name [[gnu::alias(#name)]];
| ^~~~
/home/dap/local/llvmorg-19.1.7/libc/src/wchar/wctob.cpp:18:1: note: in expansion of macro ‘LLVM_LIBC_FUNCTION’
18 | LLVM_LIBC_FUNCTION(int, wctob, (wint_t c)) {
| ^~~~~~~~~~~~~~~~~~
/home/dap/local/llvmorg-19.1.7/libc/src/wchar/wctob.cpp:18:25: error: ‘int _llvm_libc_19_1_7::wctob(wint_t)’ specifies less restrictive attributes than its target ‘int wctob(wint_t)’: ‘leaf’, ‘nothrow’ [-Werror=missing-attributes]
18 | LLVM_LIBC_FUNCTION(int, wctob, (wint_t c)) {
| ^~~~~
/home/dap/local/llvmorg-19.1.7/libc/src/__support/common.h:29:34: note: in definition of macro ‘LLVM_LIBC_FUNCTION_IMPL’
29 | decltype(LIBC_NAMESPACE::name) name [[gnu::alias(#name)]];
| ^~~~
/home/dap/local/llvmorg-19.1.7/libc/src/wchar/wctob.cpp:18:1: note: in expansion of macro ‘LLVM_LIBC_FUNCTION’
18 | LLVM_LIBC_FUNCTION(int, wctob, (wint_t c)) {
| ^~~~~~~~~~~~~~~~~~
In file included from /usr/include/features.h:502,
from /usr/include/x86_64-linux-gnu/bits/libc-header-start.h:33,
from /usr/include/wchar.h:27,
from /home/dap/local/llvmorg-19.1.7/libc/src/wchar/wctob.h:13,
from /home/dap/local/llvmorg-19.1.7/libc/src/wchar/wctob.cpp:9:
/usr/include/wchar.h:349:1: note: ‘int _llvm_libc_19_1_7::wctob(wint_t)’ target declared here
349 | __NTH (wctob (wint_t __wc))
| ^~~~~
cc1plus: all warnings being treated as errors