* [Buildroot] nspr and aarch64 build issue @ 2013-03-17 21:53 Alexander Khryukin 2013-03-18 10:40 ` Alexander Khryukin 2013-03-18 15:20 ` Thomas Petazzoni 0 siblings, 2 replies; 7+ messages in thread From: Alexander Khryukin @ 2013-03-17 21:53 UTC (permalink / raw) To: buildroot Hello, guys! I'm trying to build aarch64 libnspr package cd freebl; /usr/bin/make libs make[3]: Entering directory `/home/user/buildroot/output/build/libnss-3.12.9/mozilla/security/nss/lib/freebl' ../../../coreconf/nsinstall/Linux2.6_aarch64_glibc_PTH_OPT.OBJ/nsinstall -R -m 664 Linux2.6_aarch64_glibc_PTH_OPT.OBJ/libfreebl.a /home/user/buildroot/output/build/libnss-3.12.9/mozilla/dist/lib /usr/bin/make FREEBL_CHILD_BUILD=1 \ OBJDIR=Linux2.6_aarch64_glibc_PTH_OPT.OBJ/Linux_SINGLE_SHLIB libs make[4]: Entering directory `/home/user/buildroot/output/build/libnss-3.12.9/mozilla/security/nss/lib/freebl' /home/user/buildroot/output/host/usr/bin/aarch64-linux-gnu-gcc -o Linux2.6_aarch64_glibc_PTH_OPT.OBJ/Linux_SINGLE_SHLIB/drbg.o -c -D_LARGEFILE_SOURCE -D_LARGEFILE64_SOURCE -D_FILE_OFFSET_BITS=64 -pipe -Os -ansi -D_POSIX_SOURCE -D_BSD_SOURCE -D_XOPEN_SOURCE -fPIC -DLINUX2_1 -Wall -Werror-implicit-function-declaration -Wno-switch -pipe -DLINUX -Dlinux -DHAVE_STRERROR -DXP_UNIX -DSHLIB_SUFFIX=\"so\" -DSHLIB_PREFIX=\"lib\" -DSHLIB_VERSION=\"3\" -DSOFTOKEN_SHLIB_VERSION=\"3\" -DRIJNDAEL_INCLUDE_TABLES -UDEBUG -DNDEBUG -D_REENTRANT -DNSS_ENABLE_ECC -DUSE_UTIL_DIRECTLY -DFREEBL_NO_DEPEND -DMP_API_COMPATIBLE -I/home/user/buildroot/output/host/usr/aarch64-buildroot-linux-gnu/sysroot/usr/include/nspr -I/home/user/buildroot/output/build/libnss-3.12.9/mozilla/dist/include -I../../../../dist/public/nss -I../../../../dist/private/nss -Impi -Iecl drbg.c 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' make[3]: *** [libs] Error 2 make[3]: Leaving directory `/home/user/buildroot/output/build/libnss-3.12.9/mozilla/security/nss/lib/freebl' make[2]: *** [libs] Error 2 make[2]: Leaving directory `/home/user/buildroot/output/build/libnss-3.12.9/mozilla/security/nss/lib' make[1]: *** [libs] Error 2 make[1]: Leaving directory `/home/user/buildroot/output/build/libnss-3.12.9/mozilla/security/nss' make: *** [/home/user/buildroot/output/build/libnss-3.12.9/.stamp_built] Error 2 -------------- next part -------------- An HTML attachment was scrubbed... URL: <http://lists.busybox.net/pipermail/buildroot/attachments/20130318/934be1a5/attachment-0001.html> ^ permalink raw reply [flat|nested] 7+ messages in thread
* [Buildroot] nspr and aarch64 build issue 2013-03-17 21:53 [Buildroot] nspr and aarch64 build issue Alexander Khryukin @ 2013-03-18 10:40 ` Alexander Khryukin 2013-03-18 15:09 ` Thomas Petazzoni 2013-03-18 15:20 ` Thomas Petazzoni 1 sibling, 1 reply; 7+ messages in thread From: Alexander Khryukin @ 2013-03-18 10:40 UTC (permalink / raw) To: buildroot 2013/3/18 Alexander Khryukin <alexander@mezon.ru> > Hello, guys! > I'm trying to build aarch64 libnspr package > > > cd freebl; /usr/bin/make libs > make[3]: Entering directory > `/home/user/buildroot/output/build/libnss-3.12.9/mozilla/security/nss/lib/freebl' > ../../../coreconf/nsinstall/Linux2.6_aarch64_glibc_PTH_OPT.OBJ/nsinstall > -R -m 664 Linux2.6_aarch64_glibc_PTH_OPT.OBJ/libfreebl.a > /home/user/buildroot/output/build/libnss-3.12.9/mozilla/dist/lib > /usr/bin/make FREEBL_CHILD_BUILD=1 \ > OBJDIR=Linux2.6_aarch64_glibc_PTH_OPT.OBJ/Linux_SINGLE_SHLIB libs > make[4]: Entering directory > `/home/user/buildroot/output/build/libnss-3.12.9/mozilla/security/nss/lib/freebl' > /home/user/buildroot/output/host/usr/bin/aarch64-linux-gnu-gcc -o > Linux2.6_aarch64_glibc_PTH_OPT.OBJ/Linux_SINGLE_SHLIB/drbg.o -c > -D_LARGEFILE_SOURCE -D_LARGEFILE64_SOURCE -D_FILE_OFFSET_BITS=64 -pipe > -Os -ansi -D_POSIX_SOURCE -D_BSD_SOURCE -D_XOPEN_SOURCE -fPIC -DLINUX2_1 > -Wall -Werror-implicit-function-declaration -Wno-switch -pipe -DLINUX > -Dlinux -DHAVE_STRERROR -DXP_UNIX -DSHLIB_SUFFIX=\"so\" > -DSHLIB_PREFIX=\"lib\" -DSHLIB_VERSION=\"3\" -DSOFTOKEN_SHLIB_VERSION=\"3\" > -DRIJNDAEL_INCLUDE_TABLES -UDEBUG -DNDEBUG -D_REENTRANT -DNSS_ENABLE_ECC > -DUSE_UTIL_DIRECTLY -DFREEBL_NO_DEPEND -DMP_API_COMPATIBLE > -I/home/user/buildroot/output/host/usr/aarch64-buildroot-linux-gnu/sysroot/usr/include/nspr > -I/home/user/buildroot/output/build/libnss-3.12.9/mozilla/dist/include > -I../../../../dist/public/nss -I../../../../dist/private/nss -Impi -Iecl > drbg.c > 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' > make[3]: *** [libs] Error 2 > make[3]: Leaving directory > `/home/user/buildroot/output/build/libnss-3.12.9/mozilla/security/nss/lib/freebl' > make[2]: *** [libs] Error 2 > make[2]: Leaving directory > `/home/user/buildroot/output/build/libnss-3.12.9/mozilla/security/nss/lib' > make[1]: *** [libs] Error 2 > make[1]: Leaving directory > `/home/user/buildroot/output/build/libnss-3.12.9/mozilla/security/nss' > make: *** [/home/user/buildroot/output/build/libnss-3.12.9/.stamp_built] > Error 2 > > Well i fixed it when do export USE_64=1 and run make again -------------- next part -------------- An HTML attachment was scrubbed... URL: <http://lists.busybox.net/pipermail/buildroot/attachments/20130318/11c6accd/attachment.html> ^ permalink raw reply [flat|nested] 7+ messages in thread
* [Buildroot] nspr and aarch64 build issue 2013-03-18 10:40 ` Alexander Khryukin @ 2013-03-18 15:09 ` Thomas Petazzoni 0 siblings, 0 replies; 7+ messages in thread From: Thomas Petazzoni @ 2013-03-18 15:09 UTC (permalink / raw) To: buildroot Dear Alexander Khryukin, On Mon, 18 Mar 2013 14:40:12 +0400, Alexander Khryukin wrote: > Well i fixed it when do > > export USE_64=1 > and run make again Aaah, yes, found the bug. I'll send a patch soon after testing the fix. I'll add you in Cc. Thanks, Thomas -- Thomas Petazzoni, Free Electrons Kernel, drivers, real-time and embedded Linux development, consulting, training and support. http://free-electrons.com ^ permalink raw reply [flat|nested] 7+ messages in thread
* [Buildroot] nspr and aarch64 build issue 2013-03-17 21:53 [Buildroot] nspr and aarch64 build issue Alexander Khryukin 2013-03-18 10:40 ` Alexander Khryukin @ 2013-03-18 15:20 ` Thomas Petazzoni 2013-03-18 17:56 ` Alexander Khryukin 1 sibling, 1 reply; 7+ messages in thread From: Thomas Petazzoni @ 2013-03-18 15:20 UTC (permalink / raw) To: buildroot 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 ^ permalink raw reply [flat|nested] 7+ messages in thread
* [Buildroot] nspr and aarch64 build issue 2013-03-18 15:20 ` Thomas Petazzoni @ 2013-03-18 17:56 ` Alexander Khryukin 2013-03-18 18:58 ` Alexander Khryukin 0 siblings, 1 reply; 7+ messages in thread From: Alexander Khryukin @ 2013-03-18 17:56 UTC (permalink / raw) To: buildroot Yes, fixed. I'll send patch in a short time 18.03.2013 19:20 ???????????? "Thomas Petazzoni" < thomas.petazzoni@free-electrons.com> ???????: > 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 > -------------- next part -------------- An HTML attachment was scrubbed... URL: <http://lists.busybox.net/pipermail/buildroot/attachments/20130318/d5a8ffdb/attachment.html> ^ permalink raw reply [flat|nested] 7+ messages in thread
* [Buildroot] nspr and aarch64 build issue 2013-03-18 17:56 ` Alexander Khryukin @ 2013-03-18 18:58 ` Alexander Khryukin 2013-03-18 19:25 ` Peter Korsgaard 0 siblings, 1 reply; 7+ messages in thread From: Alexander Khryukin @ 2013-03-18 18:58 UTC (permalink / raw) To: buildroot 2013/3/18 Alexander Khryukin <alexander@mezon.ru> > Yes, fixed. I'll send patch in a short time > 18.03.2013 19:20 ???????????? "Thomas Petazzoni" < > thomas.petazzoni at free-electrons.com> ???????: > > 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 >> > patch: nspr-prcpucfg-aarch64.patch http://pastie.org/6606946 -------------- next part -------------- An HTML attachment was scrubbed... URL: <http://lists.busybox.net/pipermail/buildroot/attachments/20130318/b9edba3b/attachment.html> ^ permalink raw reply [flat|nested] 7+ messages in thread
* [Buildroot] nspr and aarch64 build issue 2013-03-18 18:58 ` Alexander Khryukin @ 2013-03-18 19:25 ` Peter Korsgaard 0 siblings, 0 replies; 7+ messages in thread From: Peter Korsgaard @ 2013-03-18 19:25 UTC (permalink / raw) To: buildroot >>>>> "Alexander" == Alexander Khryukin <alexander@mezon.ru> writes: Alexander> 2013/3/18 Alexander Khryukin <alexander@mezon.ru> Alexander> Yes, fixed. I'll send patch in a short time Alexander> patch:?nspr-prcpucfg-aarch64.patch Alexander> http://pastie.org/6606946 Could you send a real signed-off git patch, and preferably also send it upstream? Thanks. -- Bye, Peter Korsgaard ^ permalink raw reply [flat|nested] 7+ messages in thread
end of thread, other threads:[~2013-03-18 19:25 UTC | newest] Thread overview: 7+ messages (download: mbox.gz / follow: Atom feed) -- links below jump to the message on this page -- 2013-03-17 21:53 [Buildroot] nspr and aarch64 build issue Alexander Khryukin 2013-03-18 10:40 ` Alexander Khryukin 2013-03-18 15:09 ` Thomas Petazzoni 2013-03-18 15:20 ` Thomas Petazzoni 2013-03-18 17:56 ` Alexander Khryukin 2013-03-18 18:58 ` Alexander Khryukin 2013-03-18 19:25 ` Peter Korsgaard
This is an external index of several public inboxes, see mirroring instructions on how to clone and mirror all data and code used by this external index.