All of lore.kernel.org
 help / color / mirror / Atom feed
From: Kang Kai <Kai.Kang@windriver.com>
To: "poky@yoctoproject.org" <poky@yoctoproject.org>
Subject: build gnutls failed on mpc8315
Date: Fri, 3 Jun 2011 17:17:02 +0800	[thread overview]
Message-ID: <4DE8A68E.9010205@windriver.com> (raw)

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


             reply	other threads:[~2011-06-03  9:17 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2011-06-03  9:17 Kang Kai [this message]
2011-06-03  9:34 ` build gnutls failed on mpc8315 Martin Jansa

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=4DE8A68E.9010205@windriver.com \
    --to=kai.kang@windriver.com \
    --cc=poky@yoctoproject.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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.