[clang] [Clang][AArch64] Diagnose invalid FPM scale arguments (PR #227722)
via cfe-commits
cfe-commits at lists.llvm.org
Tue Oct 13 02:58:36 PDT 2026
CarolineConcatto wrote:
So I think that problem may be that uint64_t is mapped to different types in stdint.h.
Clang’s target builtin uses the AArch64(/build/lib/clang/24/include/stdint.h) type: uint64_t == unsigned long
but it looks like your host (/usr/include/stdint.h) uses: uint64_t == unsigned long long
> __fpm 'fpm_t':'unsigned long long'
Can you check if this fix to you:
> The solution is to compile with an AArch64 sysroot containing matching target libc headers, for example:
>
> build/bin/clang --target=aarch64-linux-gnu \
> --sysroot=/path/to/aarch64-sysroot \
> -c -o /dev/null -x c -
>
> The person should ensure the -H output selects stdint.h from that AArch64 sysroot rather than /usr/include.
https://github.com/llvm/llvm-project/pull/227722
More information about the cfe-commits
mailing list