Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 16 Feb 2018 06:19:15 -0800
From:      Mark Millard <marklmi26-fbsd@yahoo.com>
To:        bob prohaska <fbsd@www.zefox.net>
Cc:        freebsd-arm@freebsd.org
Subject:   Re: RPI3 can't build kernel-toolchain
Message-ID:  <11F7E450-097C-41B3-B494-73106C710AE7@yahoo.com>
In-Reply-To: <20180216060337.GA88230@www.zefox.net>
References:  <20180212183256.GA75467@www.zefox.net> <20180216060337.GA88230@www.zefox.net>

next in thread | previous in thread | raw e-mail | index | archive | help

On 2018-Feb-15, at 10:03 PM, bob prohaska <fbsd@www.zefox.net> wrote:

> On Mon, Feb 12, 2018 at 10:32:56AM -0800, bob prohaska wrote:
>> On a Pi3 running r328935 trying to build sources at 329171 a=20
>> make -j2 kernel-toolchain fails with
>> /usr/bin/ld: error: duplicate symbol:=20
>>>>> defined at ASTImporter.o:() in archive =
/usr/obj/usr/src/arm64.aarch64/tmp/obj-tools/lib/clang/libclang/libclang.a=

>>=20
>=20
> Updating sources eventually allowed make kernel-toolchain to build =
without
> errors. However, make buildkernel still stops, reporting
>=20
> 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
>=20
> This seems rather odd, since find reports files with that name in
> several locations within /usr/src:
>=20
> root@www:/usr/src # find . -name stdint.h -depth -print
> ./sys/sys/stdint.h
> ./sys/contrib/zstd/lib/freebsd/stdint.h
> ./contrib/llvm/tools/clang/lib/Headers/stdint.h
> ./contrib/libc++/include/stdint.h
> ./contrib/libstdc++/include/tr1/stdint.h
>=20
> To the best of my ability the source tree is unmolested, svnlite info =
reports:
> root@www:/usr/src # svnlite status .
> ?       buildkernel.log
> ?       buildscript
> ?       installscript
> ?       kernelscript
> ?       toolchain.log
> ?       toolchainscript
> root@www:/usr/src #=20
>=20
> The source tree is presently at r329360.

See FreeBSD bugzilla 220125:

https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D220125 =
<https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D220125>;

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.

If you can get buildworld to work, it will put stdint.h in the right =
place.
The places that you list are not the places the compiles actively look =
in.

See comment 9 for the difference between buildworld and
kernel-toolchain for where the file is placed.

kernel-toolchain does not do the right thing for arm_neon.h to work;
arm-neon.h presumes that header, which is not normally part of a FreeBSD
kernel build. Your report tells me that this is currently unresolved.

=3D=3D=3D
Mark Millard
marklmi at yahoo.com
( markmi at dsl-only.net is
going away in 2018-Feb, late)




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?11F7E450-097C-41B3-B494-73106C710AE7>