build gnutls failed on mpc8315
Hi All,
My local repository is 484c4e73245c93a08413cd204513bf5c5698b994, and set MACHINE ?= "mpc8315e-rdb".
When build gnutls, it fails. But when I build it for arm, it succeeds. Do anyone meets that before, thanks!
Error log:
| powerpc-poky-linux-libtool: link: powerpc-poky-linux-ranlib .libs/libcmd-p11tool.a | powerpc-poky-linux-libtool: link: rm -fr .libs/libcmd-p11tool.lax .libs/libcmd-p11tool.lax | /bin/sh ../powerpc-poky-linux-libtool --tag=CC --mode=link powerpc-poky-linux-gcc -mcpu=603e -mhard-float --sysroot=/mnt/sda9/poky-tmp-build/build/tmp/sysroots/mpc8315e-rdb -std=gnu99 -O2 -pipe -g -feliminate-unused-debug-types -Wl,-O1 -Wl,--as-needed -o psktool psk.o ../lib/libgnutls.la libcmd-psk.la ../gl/libgnu.la | /mnt/sda9/poky-tmp-build/build/tmp/sysroots/x86_64-linux/usr/libexec/ppc603e-poky-linux/gcc/powerpc-poky-linux/4.6.0/ld: warning: library search path "/usr/lib" is unsafe for cross-compilation | ../lib/.libs/libgnutls.so: undefined reference to `dlsym' | ../lib/.libs/libgnutls.so: undefined reference to `dlopen' | ../lib/.libs/libgnutls.so: undefined reference to `dlclose' | collect2: ld returned 1 exit status | make[3]: *** [gnutls-serv] Error 1 | make[3]: *** Waiting for unfinished jobs.... | powerpc-poky-linux-libtool: link: ( cd ".libs" && rm -f "libcmd-p11tool.la" && ln -s "../libcmd-p11tool.la" "libcmd-p11tool.la" ) | powerpc-poky-linux-libtool: link: powerpc-poky-linux-gcc -mcpu=603e -mhard-float --sysroot=/mnt/sda9/poky-tmp-build/build/tmp/sysroots/mpc8315e-rdb -std=gnu99 -O2 -pipe -g -feliminate-unused-debug-types -Wl,-O1 -Wl,--as-needed -o .libs/gnutls-cli cli.o common.o p11common.o ../lib/.libs/libgnutls.so -L/mnt/sda9/poky-tmp-build/build/tmp/sysroots/mpc8315e-rdb/usr/lib -L=/usr/lib -L/usr/lib ../libextra/.libs/libgnutls-extra.so /mnt/sda9/poky-tmp-build/build/tmp/sysroots/mpc8315e-rdb/usr/lib/liblzo2.so /mnt/sda9/poky-tmp-build/build/tmp/work/ppc603e-poky-linux/gnutls-2.12.5-r0/gnutls-2.12.5/lib/.libs/libgnutls.so /mnt/sda9/poky-tmp-build/build/tmp/sysroots/mpc8315e-rdb/usr/lib/libtasn1.so -lpthread ./.libs/libcmd-cli.a ../gl/.libs/libgnu.a -lrt /mnt/sda9/poky-tmp-build/build/tmp/sysroots/mpc8315e-rdb/usr/lib/libgcrypt.so /mnt/sda9/poky-tmp-build/build/tmp/sysroots/mpc8315e-rdb/usr/lib/libgpg-error.so | /mnt/sda9/poky-tmp-build/build/tmp/sysroots/x86_64-linux/usr/libexec/ppc603e-poky-linux/gcc/powerpc-poky-linux/4.6.0/ld: warning: library search path "/usr/lib" is unsafe for cross-compilation | ../lib/.libs/libgnutls.so: undefined reference to `dlsym' | ../lib/.libs/libgnutls.so: undefined reference to `dlopen' | ../lib/.libs/libgnutls.so: undefined reference to `dlclose' | collect2: ld returned 1 exit status | make[3]: *** [gnutls-cli] Error 1 | powerpc-poky-linux-libtool: link: powerpc-poky-linux-gcc -mcpu=603e -mhard-float --sysroot=/mnt/sda9/poky-tmp-build/build/tmp/sysroots/mpc8315e-rdb -std=gnu99 -O2 -pipe -g -feliminate-unused-debug-types -Wl,-O1 -Wl,--as-needed -o .libs/psktool psk.o ../lib/.libs/libgnutls.so -L/mnt/sda9/poky-tmp-build/build/tmp/sysroots/mpc8315e-rdb/usr/lib -L=/usr/lib -L/usr/lib /mnt/sda9/poky-tmp-build/build/tmp/sysroots/mpc8315e-rdb/usr/lib/libtasn1.so /mnt/sda9/poky-tmp-build/build/tmp/sysroots/mpc8315e-rdb/usr/lib/libgcrypt.so /mnt/sda9/poky-tmp-build/build/tmp/sysroots/mpc8315e-rdb/usr/lib/libgpg-error.so -lpthread ./.libs/libcmd-psk.a ../gl/.libs/libgnu.a -lrt | /mnt/sda9/poky-tmp-build/build/tmp/sysroots/x86_64-linux/usr/libexec/ppc603e-poky-linux/gcc/powerpc-poky-linux/4.6.0/ld: warning: library search path "/usr/lib" is unsafe for cross-compilation | ../lib/.libs/libgnutls.so: undefined reference to `dlsym' | ../lib/.libs/libgnutls.so: undefined reference to `dlopen' | ../lib/.libs/libgnutls.so: undefined reference to `dlclose' | collect2: ld returned 1 exit status | make[3]: *** [psktool] Error 1 | make[3]: Leaving directory `/mnt/sda9/poky-tmp-build/build/tmp/work/ppc603e-poky-linux/gnutls-2.12.5-r0/gnutls-2.12.5/src' | make[2]: *** [all-recursive] Error 1 | make[2]: Leaving directory `/mnt/sda9/poky-tmp-build/build/tmp/work/ppc603e-poky-linux/gnutls-2.12.5-r0/gnutls-2.12.5/src' | make[1]: *** [all-recursive] Error 1 | make[1]: Leaving directory `/mnt/sda9/poky-tmp-build/build/tmp/work/ppc603e-poky-linux/gnutls-2.12.5-r0/gnutls-2.12.5' | make: *** [all] Error 2 | ERROR: oe_runmake failed | ERROR: Function 'do_compile' failed (see /mnt/sda9/poky-tmp-build/build/tmp/work/ppc603e-poky-linux/gnutls-2.12.5-r0/temp/log.do_compile.12294 for further information) | ERROR: Function 'do_compile' failed (see /mnt/sda9/poky-tmp-build/build/tmp/work/ppc603e-poky-linux/gnutls-2.12.5-r0/temp/log.do_compile.12294 for further information)
NOTE: package gnutls-2.12.5-r0: task do_compile: Failed
ERROR: Task 7 (/mnt/sda9/poky-tmp-build/meta/recipes-support/gnutls/gnutls_2.12.5.bb, do_compile) failed with exit code '1'
Regards,
Kai
Quoted 7 lines · Kang Kai
Hi All,
My local repository is
484c4e73245c93a08413cd204513bf5c5698b994, and set MACHINE ?= "mpc8315e-rdb".When build gnutls, it fails. But when I build it for arm, it succeeds. Do anyone meets that before, thanks!
Yes on arm:
http://lists.linuxtogo.org/pipermail/openembedded-core/2011-June/003591.html
patch was merged, but without PR bump so please try to -c clean it before rebuilding to run configure again.
another gnutls patch with changed PR was sent to list yesterday so manual clean won't be needed after it.
Regards,
Signature · 1 line
Martin 'JaMa' Jansa jabber: [email protected]