Port-arm archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

Re: GENERIC64 cross-compilation error



On 21/01/2021 11:03, nia wrote:
has anyone seen this before / know how I can work around it?

when I build NetBSD I usually do it natively but I figured this would
be faster than building on an rpi3...

$ ./build.sh -U -j2 -m evbarm64 kernel=GENERIC64
[...]
In file included from /home/nia/cvs/src/sys/crypto/adiantum/adiantum.c:39:
/home/nia/cvs/src/sys/crypto/adiantum/adiantum.c: In function 'nh':
/home/nia/cvs/src/sys/sys/cdefs.h:164:39: error: bit-field '__ctassert0' width not an integer constant
   164 | #define __CTASSERT(x)  __CTASSERT0(x, __ctassert, __COUNTER__)
       |                                       ^~~~~~~~~~
/home/nia/cvs/src/sys/sys/cdefs.h:173:16: note: in definition of macro '__CTASSERT1'
   173 |   unsigned int y ## z : /*CONSTCOND*/(x) ? 1 : -1; \
       |                ^
/home/nia/cvs/src/sys/sys/cdefs.h:164:24: note: in expansion of macro '__CTASSERT0'
   164 | #define __CTASSERT(x)  __CTASSERT0(x, __ctassert, __COUNTER__)
       |                        ^~~~~~~~~~~
/home/nia/cvs/src/sys/lib/libkern/libkern.h:255:22: note: in expansion of macro '__CTASSERT'
   255 | #define CTASSERT(x)  __CTASSERT(x)
       |                      ^~~~~~~~~~
/home/nia/cvs/src/sys/crypto/adiantum/adiantum.c:400:2: note: in expansion of macro 'CTASSERT'
   400 |  CTASSERT(r*w/8 == 16);
       |  ^~~~~~~~
[...]
ERROR: Failed to make all in "/home/nia/cvs/src/sys/arch/evbarm/compile/obj/GENERIC64"
*** BUILD ABORTED ***


Is your source clean? Or maybe the obj needs cleaning?

Nick


Home | Main Index | Thread Index | Old Index