RPI3 can't build kernel-toolchain

bob prohaska fbsd at www.zefox.net
Fri Feb 16 17:09:24 UTC 2018


On Fri, Feb 16, 2018 at 06:19:15AM -0800, Mark Millard wrote:
> 
> On 2018-Feb-15, at 10:03 PM, bob prohaska <fbsd at www.zefox.net> wrote:
> 
> > On Mon, Feb 12, 2018 at 10:32:56AM -0800, bob prohaska wrote:
> > 
> > Updating sources eventually allowed make kernel-toolchain to build without
> > errors. However, make buildkernel still stops, reporting
> > 
> > In file included from /usr/src/sys/crypto/armv8/armv8_crypto_wrap.c:46:
> > /usr/obj/usr/src/arm64.aarch64/tmp/usr/lib/clang/6.0.0/include/arm_neon.h:31:10: fatal error: 'stdint.h' file not found
> > #include <stdint.h>
> >         ^~~~~~~~~~
> > 1 error generated.
> > *** [armv8_crypto_wrap.o] Error code 1
> > 
> 
> See FreeBSD bugzilla 220125:
> 
> https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=220125 <https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=220125>
> 
> You can hand patch the tree (similar to comment 3 but for
> the clang version in use). Later comments have notes about
> various places the file might go.
> 
Running
cp ./contrib/llvm/tools/clang/lib/Headers/stdint.h /usr/lib/clang/6.0.0/include
didn't solve the problem. 

Using
cp /usr/lib/include/stdint.h /usr/obj/usr/src/arm64.aarch64/tmp/usr/include/
does seem to be working. Since this is a self-hosted compile there's hope the
resulting kernel will be more stable  than r328935.

Am I correct in thinking that arm does not correctly recognize when it's 
self-hosting? Doubtless I'm being naive, but shouldn't that be a fairly
straightforward determination? Armv7 gave hints of the same problem, asking
that TARGET_ARCH be set in a self-hosting buildworld. That's seemingly fixed, 
now.

Thanks very much!

bob prohaska



More information about the freebsd-arm mailing list