__attribute_alloc_align__ ((1)) error
Andrew Pinski
pinskia@gmail.com
Tue Nov 19 08:30:59 GMT 2024
On Tue, Nov 19, 2024 at 12:23 AM 赵爱南 <zhaoainan163@163.com> wrote:
>
> 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
Don't do ` -isystem /usr/include`.
Thanks,
Andrew
>
> thanks.
>
More information about the Libc-alpha
mailing list