__attribute_alloc_align__ ((1)) error
赵爱南
zhaoainan163@163.com
Tue Nov 19 08:22:32 GMT 2024
hi
gcc12.3.0
glibc2.38
binutils2.41
and now I am using gcc to compile llvm17 and then had a error:
/usr/include/stdlib.h:725:35:error: expected initializer before '__attribute_alloc_align__'
725 | __THROW __attribute_maloc__ __attribute_alloc_align__ ((1))
and the command is:
cd /mnt/zhaoan/workplace/swllvm/build/lib/Support && g++ -I/mnt/zhaoan/workplace/swllvm/build/lib/Support -I/mnt/zhaoan/workplace/swllvm/build/lib/Support -I/mnt/zhaoan/workplace/swllvm/build/include -I/mnt/zhaoan/workplace/swllvm/llvm/include -isystem /usr/include -O2 -std=c++17 -o CMakeFile/LLVMSupport.dir/AMDGPUMetadata.cpp.o -c /mnt/zhaoan/workplace/swllvm/llvm/lib/Support/AMDGPUMetadata.cpp
thanks.
More information about the Libc-help
mailing list