Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 20 Jun 2017 20:15:34 -0400
From:      Ryan Stone <rysto32@gmail.com>
To:        Dimitry Andric <dim@freebsd.org>
Cc:        Mark Millard <markmi@dsl-only.net>, freebsd-arm <freebsd-arm@freebsd.org>,  FreeBSD Toolchain <freebsd-toolchain@freebsd.org>
Subject:   Re: arm64 on head -r320059 (e.g.) fails buildkernel with only kernel-toolchain first (not buildworld) [Bugzilla 220125]
Message-ID:  <CAFMmRNwioFT%2BLk=WBvUbL4T3O6f1n_98iz7UhPvqWUdnTKCqPA@mail.gmail.com>
In-Reply-To: <CB7359D7-4BFE-45A8-838A-AA69B9450398@FreeBSD.org>
References:  <9B6857F6-FD8E-43B7-B142-050E51EE68AB@dsl-only.net> <CB7359D7-4BFE-45A8-838A-AA69B9450398@FreeBSD.org>

next in thread | previous in thread | raw e-mail | index | archive | help
On Mon, Jun 19, 2017 at 2:57 AM, Dimitry Andric <dim@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>



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?CAFMmRNwioFT%2BLk=WBvUbL4T3O6f1n_98iz7UhPvqWUdnTKCqPA>