Hi All.
I am compiling src-netbsd, with the following setup :
* Host-Machine == Ubuntu 16.04 on a x86_64
* (Cross) Compiler == aarch64-linux-gnu-gcc
Things proceed fine, until I get the following :
##########################################################################################
--- flt_rounds.o ---
In file included from /home/ajay/rumprun/src-netbsd/lib/libc/arch/aarch64/gen/flt_rounds.c:32:0:
/home/ajay/rumprun/src-netbsd/sys/sys/cdefs.h:581:32: error: initializer element is not constant
#define __SHIFTIN(__x, __mask) ((__x) * __LOWEST_SET_BIT(__mask))
^
/home/ajay/rumprun/src-netbsd/sys/sys/cdefs.h:581:32: error: initializer element is not constant
#define __SHIFTIN(__x, __mask) ((__x) * __LOWEST_SET_BIT(__mask))
^
/home/ajay/rumprun/src-netbsd/sys/sys/cdefs.h:581:32: error: initializer element is not constant
#define __SHIFTIN(__x, __mask) ((__x) * __LOWEST_SET_BIT(__mask))
^
*** [flt_rounds.o] Error code 1
nbmake[1]: stopped in /home/ajay/rumprun/src-netbsd/lib/libc
1 error
nbmake[1]: stopped in /home/ajay/rumprun/src-netbsd/lib/libc
*** [dependall] Error code 2
nbmake: stopped in /home/ajay/rumprun/src-netbsd/lib/libc
1 error
nbmake: stopped in /home/ajay/rumprun/src-netbsd/lib/libc
ajay@Latitude-3480:~/rumprun$
##############################################################################################
I tried googling, but could not find a proper-fix (not even a compiler-flag that can help ignore the "error").