[Buildroot] nspr and aarch64 build issue
Thomas Petazzoni
thomas.petazzoni at free-electrons.com
Mon Mar 18 15:20:33 UTC 2013
Dear Alexander Khryukin,
On Mon, 18 Mar 2013 01:53:38 +0400, Alexander Khryukin wrote:
> drbg.c: In function 'RNG_RandomUpdate':
> *drbg.c:516:5: error: size of array 'arg' is negative*
> make[4]: ***
> [Linux2.6_aarch64_glibc_PTH_OPT.OBJ/Linux_SINGLE_SHLIB/drbg.o] Error 1
> make[4]: Leaving directory
> `/home/user/buildroot/output/build/libnss-3.12.9/mozilla/security/nss/lib/freebl'
I sent a patch that should hopefully fix this. The BR2_ARCH_IS_64 was
not selected on the AArch64 architecture, so the following bit of code
in libnss.mk was not being triggered:
ifeq ($(BR2_ARCH_IS_64),y)
LIBNSS_BUILD_VARS += USE_64=1
endif
However, I am rather surprised, because here, the build of libnspr
(which is a dependency of libnss) doesn't work. I get:
In file included from ../../../dist/include/nspr/prtypes.h:26:0,
from ../../../dist/include/nspr/pratom.h:14,
from ../../../dist/include/nspr/nspr.h:9,
from ../../../pr/include/private/primpl.h:39,
from prfdcach.c:6:
../../../dist/include/nspr/prcpucfg.h:817:2: error: #error "Unknown CPU architecture"
Have you fixed this?
Thanks,
Thomas
--
Thomas Petazzoni, Free Electrons
Kernel, drivers, real-time and embedded Linux
development, consulting, training and support.
http://free-electrons.com
More information about the buildroot
mailing list