arm64 on head -r320059 (e.g.) fails buildkernel with only kernel-toolchain first (not buildworld) [Bugzilla 220125]

Dimitry Andric dim at FreeBSD.org
Wed Jun 21 06:33:42 UTC 2017


On 21 Jun 2017, at 02:15, Ryan Stone <rysto32 at gmail.com> wrote:
> 
> On Mon, Jun 19, 2017 at 2:57 AM, Dimitry Andric <dim at freebsd.org> wrote:
> 
>> Solution B is problematic because arm_neon.h uses stdint.h types
>> extensively.
>> 
> 
> If I manually modify the arm_neon.h file to instead say this, the problem
> is avoided and the kernel builds:
> 
> #ifdef _KERNEL
> #include <sys/types.h>
> #else
> #include <stdint.h>
> #endif
> 
> Do you think that the llvm devs would be willing to take a change to
> NeonEmitter that does this on FreeBSD?
> 
> This may not be a complete solution, though, as googling seems to indicate
> that gcc also provides a arm_neon.h and it also #includes <stdint.h>

Indeed.  It seems this header is not really designed to be included from
kernel space.  It is probably easiest to provide a kernel wrapper for
stdint.h, maybe even just for arm.

-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-arm/attachments/20170621/e01c997e/attachment.sig>


More information about the freebsd-arm mailing list