* [Buildroot] ARM allyespackageconfig report
@ 2013-03-07 10:11 Thomas Petazzoni
2013-03-07 10:53 ` Peter Korsgaard
0 siblings, 1 reply; 3+ messages in thread
From: Thomas Petazzoni @ 2013-03-07 10:11 UTC (permalink / raw)
To: buildroot
Hello,
I again did a build of an ARM allyespackageconfig configuration, with
the Linaro 2013.01 toolchain. Results are not too bad:
* I'm disabling jamvm and classpath because I don't have javac
installed in the chroot I used to test Buildroot. Installing javac
builds gazillions of dependencies, and since I want my chroot to
remain as limited as possible in terms of number of distro packages,
I don't want to installed javac. So definitely, those two packages
have not been tested.
* Besides those two packages that I disable ahead of time, only three
packages failed to build: mplayer, ltp-testsuite and sconeserver.
After disabling those 5 packages, the entire build went through.
output/target/ weights 1023 MB, output/build/ weights 17 GB with a
total number of 785324 files and directories. I don't have the overall
build time though, since the build was interrupted 3 times due to the 3
failed packages.
mplayer build failure
=====================
{standard input}: Assembler messages:
{standard input}:2857: Error: selected FPU does not support instruction -- `vmul.f32 q0,q0,q1'
{standard input}:2951: Error: selected processor does not support ARM mode `veor q0,q0,q2'
{standard input}:2952: Error: selected FPU does not support instruction -- `vmul.f32 q0,q0,q1'
{standard input}:3023: Error: selected FPU does not support instruction -- `vmul.f32 d0,d0,d1'
{standard input}:3106: Error: selected processor does not support ARM mode `veor d0,d0,d2'
{standard input}:3107: Error: selected FPU does not support instruction -- `vmul.f32 d0,d0,d1'
ltp-testsuite build failure
===========================
par_chld_ipv6.c: In function 'main':
par_chld_ipv6.c:55:14: error: 'CLONE_NEWNS' undeclared (first use in this function)
par_chld_ipv6.c:55:14: note: each undeclared identifier is reported only once for each function it appears in
par_chld_ipv6.c:84:9: warning: implicit declaration of function 'unshare' [-Wimplicit-function-declaration]
par_chld_ipv6.c:93:5: warning: implicit declaration of function 'crtchild' [-Wimplicit-function-declaration]
two_children_ns.c: In function 'main':make[6]: *** [par_chld_ipv6.o] Error 1
make[6]: *** Waiting for unfinished jobs....
two_children_ns.c:58:14: error: 'CLONE_NEWNS' undeclared (first use in this function)
two_children_ns.c:58:14: note: each undeclared identifier is reported only once for each function it appears in
two_children_ns.c:100:3: warning: implicit declaration of function 'unshare' [-Wimplicit-function-declaration]
two_children_ns.c:107:6: warning: implicit declaration of function 'crtchild' [-Wimplicit-function-declaration]
make[6]: *** [two_children_ns.o] Error 1
common.c: In function 'create_net_namespace':
common.c:64:17: error: 'CLONE_NEWNS' undeclared (first use in this function)
common.c:64:17: note: each undeclared identifier is reported only once for each function it appears in
common.c: In function 'child_fn':
common.c:124:11: error: 'CLONE_NEWNS' undeclared (first use in this function)
common.c:127:11: error: 'CLONE_FS' undeclared (first use in this function)
common.c:147:2: warning: implicit declaration of function 'unshare' [-Wimplicit-function-declaration]
sconeserver build failure
=========================
checking for InitializeMagick in -lMagick++... no
configure: error: library 'Magick++' is required for Sconesite:image
make[1]: *** [/home/test/outputs/allpkg/build/sconeserver-183/.stamp_configured] Error 1
make: *** [all] Error 2
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] 3+ messages in thread
* [Buildroot] ARM allyespackageconfig report
2013-03-07 10:11 [Buildroot] ARM allyespackageconfig report Thomas Petazzoni
@ 2013-03-07 10:53 ` Peter Korsgaard
2013-03-07 17:07 ` Thomas Petazzoni
0 siblings, 1 reply; 3+ messages in thread
From: Peter Korsgaard @ 2013-03-07 10:53 UTC (permalink / raw)
To: buildroot
>>>>> "Thomas" == Thomas Petazzoni <thomas.petazzoni@free-electrons.com> writes:
Thomas> Hello,
Thomas> I again did a build of an ARM allyespackageconfig configuration, with
Thomas> the Linaro 2013.01 toolchain. Results are not too bad:
Thomas> * I'm disabling jamvm and classpath because I don't have javac
Thomas> installed in the chroot I used to test Buildroot. Installing javac
Thomas> builds gazillions of dependencies, and since I want my chroot to
Thomas> remain as limited as possible in terms of number of distro packages,
Thomas> I don't want to installed javac. So definitely, those two packages
Thomas> have not been tested.
Thomas> * Besides those two packages that I disable ahead of time, only three
Thomas> packages failed to build: mplayer, ltp-testsuite and sconeserver.
Thomas> After disabling those 5 packages, the entire build went
Thomas> through. output/target/ weights 1023 MB, output/build/ weights
Thomas> 17 GB with a total number of 785324 files and directories. I
Thomas> don't have the overall build time though, since the build was
Thomas> interrupted 3 times due to the 3 failed packages.
Cool!
Thomas> mplayer build failure
Thomas> =====================
Thomas> {standard input}: Assembler messages:
Thomas> {standard input}:2857: Error: selected FPU does not support instruction -- `vmul.f32 q0,q0,q1'
Thomas> {standard input}:2951: Error: selected processor does not support ARM mode `veor q0,q0,q2'
Thomas> {standard input}:2952: Error: selected FPU does not support instruction -- `vmul.f32 q0,q0,q1'
Thomas> {standard input}:3023: Error: selected FPU does not support instruction -- `vmul.f32 d0,d0,d1'
Thomas> {standard input}:3106: Error: selected processor does not support ARM mode `veor d0,d0,d2'
Thomas> {standard input}:3107: Error: selected FPU does not support instruction -- `vmul.f32 d0,d0,d1'
Sounds like thumb2 / arm mismatch.
Thomas> ltp-testsuite build failure
Thomas> ===========================
Thomas> par_chld_ipv6.c: In function 'main':
Thomas> par_chld_ipv6.c:55:14: error: 'CLONE_NEWNS' undeclared (first use in this function)
Thomas> par_chld_ipv6.c:55:14: note: each undeclared identifier is reported only once for each function it appears in
Thomas> par_chld_ipv6.c:84:9: warning: implicit declaration of function 'unshare' [-Wimplicit-function-declaration]
Thomas> par_chld_ipv6.c:93:5: warning: implicit declaration of function 'crtchild' [-Wimplicit-function-declaration]
Thomas> two_children_ns.c: In function 'main':make[6]: *** [par_chld_ipv6.o] Error 1
Odd, do the Linaro guys build against old kernel headers (without
NEWNS/unshare)?
Thomas> sconeserver build failure
Thomas> =========================
Thomas> checking for InitializeMagick in -lMagick++... no
Thomas> configure: error: library 'Magick++' is required for Sconesite:image
Thomas> make[1]: *** [/home/test/outputs/allpkg/build/sconeserver-183/.stamp_configured] Error 1
Thomas> make: *** [all] Error 2
Could you have a look in config.log to see what goes wrong with the
InitializeMagick check?
--
Bye, Peter Korsgaard
^ permalink raw reply [flat|nested] 3+ messages in thread
* [Buildroot] ARM allyespackageconfig report
2013-03-07 10:53 ` Peter Korsgaard
@ 2013-03-07 17:07 ` Thomas Petazzoni
0 siblings, 0 replies; 3+ messages in thread
From: Thomas Petazzoni @ 2013-03-07 17:07 UTC (permalink / raw)
To: buildroot
Dear Peter Korsgaard,
On Thu, 07 Mar 2013 11:53:46 +0100, Peter Korsgaard wrote:
> Thomas> mplayer build failure
> Thomas> =====================
>
> Thomas> {standard input}: Assembler messages:
> Thomas> {standard input}:2857: Error: selected FPU does not support instruction -- `vmul.f32 q0,q0,q1'
> Thomas> {standard input}:2951: Error: selected processor does not support ARM mode `veor q0,q0,q2'
> Thomas> {standard input}:2952: Error: selected FPU does not support instruction -- `vmul.f32 q0,q0,q1'
> Thomas> {standard input}:3023: Error: selected FPU does not support instruction -- `vmul.f32 d0,d0,d1'
> Thomas> {standard input}:3106: Error: selected processor does not support ARM mode `veor d0,d0,d2'
> Thomas> {standard input}:3107: Error: selected FPU does not support instruction -- `vmul.f32 d0,d0,d1'
>
> Sounds like thumb2 / arm mismatch.
Seems more like floating point stuff, but I don't know yet.
> Thomas> ltp-testsuite build failure
> Thomas> ===========================
>
> Thomas> par_chld_ipv6.c: In function 'main':
> Thomas> par_chld_ipv6.c:55:14: error: 'CLONE_NEWNS' undeclared (first use in this function)
> Thomas> par_chld_ipv6.c:55:14: note: each undeclared identifier is reported only once for each function it appears in
> Thomas> par_chld_ipv6.c:84:9: warning: implicit declaration of function 'unshare' [-Wimplicit-function-declaration]
> Thomas> par_chld_ipv6.c:93:5: warning: implicit declaration of function 'crtchild' [-Wimplicit-function-declaration]
> Thomas> two_children_ns.c: In function 'main':make[6]: *** [par_chld_ipv6.o] Error 1
>
> Odd, do the Linaro guys build against old kernel headers (without
> NEWNS/unshare)?
$ grep -r CLONE_NEWNS staging/usr/include/*
staging/usr/include/arm-linux-gnueabi/bits/sched.h:# define CLONE_NEWNS 0x00020000 /* Set to create new namespace. */
staging/usr/include/arm-linux-gnueabihf/bits/sched.h:# define CLONE_NEWNS 0x00020000 /* Set to create new namespace. */
staging/usr/include/linux/sched.h:#define CLONE_NEWNS 0x00020000 /* New namespace group? */
$ grep -r unshare staging/usr/include/*
staging/usr/include/arm-linux-gnueabi/bits/sched.h:extern int unshare (int __flags) __THROW;
staging/usr/include/arm-linux-gnueabi/bits/syscall.h:#define SYS_unshare __NR_unshare
staging/usr/include/arm-linux-gnueabi/asm/unistd.h:#define __NR_unshare (__NR_SYSCALL_BASE+337)
staging/usr/include/arm-linux-gnueabihf/bits/sched.h:extern int unshare (int __flags) __THROW;
staging/usr/include/arm-linux-gnueabihf/bits/syscall.h:#define SYS_unshare __NR_unshare
staging/usr/include/arm-linux-gnueabihf/asm/unistd.h:#define __NR_unshare (__NR_SYSCALL_BASE+337)
staging/usr/include/asm-generic/unistd.h:#define __NR_unshare 97
staging/usr/include/asm-generic/unistd.h:__SYSCALL(__NR_unshare, sys_unshare)
$ cat staging/usr/include/linux/version.h
#define LINUX_VERSION_CODE 197134
#define KERNEL_VERSION(a,b,c) (((a) << 16) + ((b) << 8) + (c))
$ python
Python 2.6.6 (r266:84292, Dec 26 2010, 22:31:48)
[GCC 4.4.5] on linux2
Type "help", "copyright", "credits" or "license" for more information.
>>> 197134 >> 16
3
>>> (197134 >> 8) & 0xFF
2
>>> 197134 & 0xFF
14
So seems like their kernel headers are 3.2.14, and that they have
CLONE_NEWNS/unshare.
> Thomas> sconeserver build failure
> Thomas> =========================
>
> Thomas> checking for InitializeMagick in -lMagick++... no
> Thomas> configure: error: library 'Magick++' is required for Sconesite:image
> Thomas> make[1]: *** [/home/test/outputs/allpkg/build/sconeserver-183/.stamp_configured] Error 1
> Thomas> make: *** [all] Error 2
>
> Could you have a look in config.log to see what goes wrong with the
> InitializeMagick check?
Seems like the .pc file forgets to link against some library:
configure:15580: /home/test/outputs/allpkg/host/usr/bin/arm-linux-gnueabihf-g++ -o conftest -D_LARGEFILE_SOURCE -D_LARGEFILE64_SOURCE -D_FILE_OFFSET_BITS=64 -pipe -Os -I/home/test/outputs/allpkg/host/usr/arm-buildroot-linux-gnueabi/sysroot/usr/include/libxml2 -I/home/test/outputs/allpkg/host/usr/arm-buildroot-linux-gnueabi/sysroot/usr/include/mysql -Wall -D_LARGEFILE_SOURCE -D_LARGEFILE64_SOURCE -D_FILE_OFFSET_BITS=64 -I/home/test/outputs/allpkg/host/usr/include/libxml2 -L/home/test/outputs/allpkg/host/usr/arm-buildroot-linux-gnueabi/sysroot/usr/lib/mysql conftest.cpp -lMagick++ -lcrypt -lpcre -lpthread -ldl >&5
/home/test/outputs/allpkg/host/opt/ext-toolchain/bin/../lib/gcc/arm-linux-gnueabihf/4.7.3/../../../../arm-linux-gnueabihf/bin/ld: /tmp/ccVrnXFg.o: undefined reference to symbol 'InitializeMagick'
/home/test/outputs/allpkg/host/opt/ext-toolchain/bin/../lib/gcc/arm-linux-gnueabihf/4.7.3/../../../../arm-linux-gnueabihf/bin/ld: note: 'InitializeMagick' is defined in DSO /home/test/outputs/allpkg/host/usr/arm-buildroot-linux-gnueabi/sysroot/usr/lib/libMagickCore.so.5 so try adding it to the linker command line
/home/test/outputs/allpkg/host/usr/arm-buildroot-linux-gnueabi/sysroot/usr/lib/libMagickCore.so.5: could not read symbols: Invalid operation
collect2: error: ld returned 1 exit status
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] 3+ messages in thread
end of thread, other threads:[~2013-03-07 17:07 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2013-03-07 10:11 [Buildroot] ARM allyespackageconfig report Thomas Petazzoni
2013-03-07 10:53 ` Peter Korsgaard
2013-03-07 17:07 ` Thomas Petazzoni
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox