Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 12 Jul 2018 13:46:58 +0000
From:      bugzilla-noreply@freebsd.org
To:        bugs@FreeBSD.org
Subject:   [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
Message-ID:  <bug-220125-227-6FNaiMn5ND@https.bugs.freebsd.org/bugzilla/>
In-Reply-To: <bug-220125-227@https.bugs.freebsd.org/bugzilla/>
References:  <bug-220125-227@https.bugs.freebsd.org/bugzilla/>

next in thread | previous in thread | raw e-mail | index | archive | help
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D220125

--- Comment #14 from Mark Millard <marklmi26-fbsd@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 rela=
tive
to kernel-toolchain .

As far as I can tell the issue can be summarized relative to kernel-toolcha=
in
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.

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



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?bug-220125-227-6FNaiMn5ND>