[Bug 220125] head -r320059 and head -r324743 (e.g.) arm64: buildkernel after kernel-toolchain: crypto/armv8/armv8_crypto_wrap.c compile fails with .../lib/clang/[45].0.0/include/arm_neon.h: fatal error: 'stdint.h' file not found

bugzilla-noreply at freebsd.org bugzilla-noreply at freebsd.org
Thu Jul 12 13:47:01 UTC 2018


https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=220125

--- Comment #14 from Mark Millard <marklmi26-fbsd at yahoo.com> ---
stdint.h was added to C in C99. It was intended to be the subset
of the older inttypes.h that was suitable for freestanding
environments. inttypes.h is defined to include stdint.h for
C99 and later as I remember (or to behave as-if it had?).

https://www.freebsd.org/cgi/man.cgi?build(7) is very explicit about what
is supposed to be the case relative to kernel-toolchain use:

     kernel-toolchain  Rebuild the tools needed for kernel compilation.  Use
                       this if you did not do a buildworld first.

In other words: buildkernel is not intended to be self-contained/sufficient
according to the build documentation but buildworld should not be required.

Currently, overall, FreeBSD does not meet its own criteria for aarch64 relative
to kernel-toolchain .

As far as I can tell the issue can be summarized relative to kernel-toolchain
by saying that kernel-toolchain does not currently establish a (full)
freestanding C99 environment (relative to the headers anyway) but building
clang
requires (at least) one of the missing items ( stdint.h ) for aarch64
contexts.

In other words: I do not expect the blame would be with clang for this
issue, but with FreeBSD's build environment.

-- 
You are receiving this mail because:
You are the assignee for the bug.


More information about the freebsd-bugs mailing list