On 4/11/22 06:37, Brad Spencer wrote: ...
On Sat, May 21, 2022 at 9:41 PM Benny Siegert <bsiegert%gmail.com@localhost> wrote:I tried building a kernel for my Pinebook Pro from a FreeBSD host (TrueNAS core, to be exact.) Unfortunately, the compiler chokes on audiobell.c: compile PBP64/audiobell.o /usr/src/sys/dev/audio/audiobell.c:66:2: internal compiler error: Illegal instruction 66 | A( 0), | ^
...
I can reproduce this on NetBSD/amd64 by running ./build.sh -j 4 -N 1 -U -u -m evbarm64 tools kernel=GENERIC64 And I am puzzled because this is something that should work. Is "-m evbarm64" the right value for 64-bit arm? I think so. FWIW, native compilation works.I use this, but I can't remember why: ./build.sh ... -m evbarm -a aarch64 release
"evbarm64" is an alias for "-m evbarm -a aarch64" according to ./build.sh -m \*arm\* list-arch, so there shouldn't be any difference.
What compiler is "cc" on your FreeBSD system? If it's clang, then maybe try installing GCC and building with that? What's the host compiler on the systems that fail? Also, what version of NetBSD are you trying to build?
I successfully built NetBSD-current with "... -m evbarm64 tools kernel=GENERIC64" on the following platforms.
NetBSD/amd64 9.99.79 Host GCC: gcc version 9.3.0 (nb1 20200907) Tools GCC: gcc version 10.4.0 (NetBSD nb1 20220722) Arch Linux Host GCC: gcc version 12.2.0 (GCC) Tools GCC: gcc version 10.4.0 (NetBSD nb1 20220722) NetBSD/amd64 9.3_STABLE Host GCC: gcc version 7.5.0 (nb4 20200810) Tools GCC: gcc version 10.4.0 (NetBSD nb1 20220722) Cheers, Lloyd