arm64 on head -r320059 (e.g.) fails buildkernel with only kernel-toolchain first (not buildworld) [Bugzilla 220125]
Dimitry Andric
dim at FreeBSD.org
Mon Jun 19 06:58:16 UTC 2017
On 19 Jun 2017, at 08:46, Mark Millard <markmi at dsl-only.net> wrote:
>
> This is a variant of the wording in bugzilla 220125:
>
> Unless buildworld (not just kernel-toolchain) is used before
> buildkernel the result for arm64 is:
>
> --- armv8_crypto_wrap.o ---
> In file included from /usr/src/sys/crypto/armv8/armv8_crypto_wrap.c:46:
> /usr/obj/cortexA53dbg_clang/arm64.aarch64/usr/src/tmp/usr/bin/../lib/clang/4.0.0/include/arm_neon.h:31:10:
> fatal error: 'stdint.h' file not found
...
> A) kernel-toolchain needs to establish a stdint.h
> that would be found
> vs.
> B) arm_neon.h needs to avoid needing stdint.h
> (presumes armv8_crypto_wrap.c is correct to
> include arm_neon.h )
>
> at least if the kernel-toolchain then buildkernel
> sequence is to be supported for arm64.
Solution A is problematic because it then would require to install
headers into ${WORLDTMP}. This is what buildworld does.
Solution B is problematic because arm_neon.h uses stdint.h types
extensively.
Maybe the solution with the least amount of work is to provide a
kernel-specific wrapper header with the stdint.h types.
Otherwise, just use buildworld before buildkernel.
-Dimitry
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 194 bytes
Desc: Message signed with OpenPGP
URL: <http://lists.freebsd.org/pipermail/freebsd-toolchain/attachments/20170619/5d1737d9/attachment.sig>
More information about the freebsd-toolchain
mailing list