[poky] Error in compilation for Cpluff library
chinmaya hoshing
cahoshing at gmail.com
Mon Nov 14 03:29:08 PST 2011
Hi ,
I am trying to port Poky to the "sandybridge platform" and using the
branch "bernard" for "fishriver" machine.
I am running Ubuntu 10.10 on 64 bit machine.
In this I am trying to pull cpluff library
Following is the error I am getting :-
| /bin/sh ../libtool --tag=CC --mode=link ccache i586-poky-linux-gcc -m32
-march=core2 -msse3 -mtune=generic -mfpmath=sse
--sysroot=/home/poky/build/tmp/sysroots/fishriver
-fexpensive-optimizations -fomit-frame-pointer -frename-registers -O2
-ggdb -feliminate-unused-debug-types -no-undefined -version-info 0:3:0
-L/home/poky/build/tmp/sysroots/fishriver/usr/lib -o libcpluff.la -rpath
/usr/lib psymbol.lo pscan.lo ploader.lo pinfo.lo pcontrol.lo serial.lo
logging.lo context.lo cpluff.lo util.lo list.lo hash.lo thread_posix.lo
-lexpat -ldl
| ccache i586-poky-linux-gcc -m32 -march=core2 -msse3 -mtune=generic
-mfpmath=sse --sysroot=/home/poky/build/tmp/sysroots/fishriver -shared
.libs/psymbol.o .libs/pscan.o .libs/ploader.o .libs/pinfo.o
.libs/pcontrol.o .libs/serial.o .libs/logging.o .libs/context.o
.libs/cpluff.o .libs/util.o .libs/list.o .libs/hash.o .libs/thread_posix.o
-L/home/poky/build/tmp/sysroots/fishriver/usr/lib /usr/lib/libexpat.so
-ldl -m32 -march=core2 -msse3 -mtune=generic -mfpmath=sse -Wl,-soname
-Wl,libcpluff.so.0 -o .libs/libcpluff.so.0.0.3
| /usr/lib/libexpat.so: could not read symbols: File in wrong format
| collect2: ld returned 1 exit status
| make[3]: *** [libcpluff.la] Error 1
| make[3]: Leaving directory
`/home/poky/build/tmp/work/atom-poky-linux/cpluff-0.1.3-r0/cpluff-0.1.3/libcpluff'
| make[2]: *** [all-recursive] Error 1
| make[2]: Leaving directory
`/home/poky/build/tmp/work/atom-poky-linux/cpluff-0.1.3-r0/cpluff-0.1.3/libcpluff'
| make[1]: *** [all-recursive] Error 1
| make[1]: Leaving directory
`/home/poky/build/tmp/work/atom-poky-linux/cpluff-0.1.3-r0/cpluff-0.1.3'
| make: *** [all] Error 2
| FATAL: oe_runmake failed
| ERROR: Function 'do_compile' failed (see
/home/poky/build/tmp/work/atom-poky-linux/cpluff-0.1.3-r0/temp/log.do_compile.546
for further information)
NOTE: package cpluff-0.1.3-r0: task do_compile: Failed
ERROR: Task 8 (/home/sct/black_gigabyte/poky/meta-sct/recipes-sct/cpluff/
cpluff_0.1.3.bb, do_compile) failed with exit code '1'
After going through the error it seems that during compilation it is taking
the expat library from my system instead it should take from poky
environment so throwing error.
So what changes should I make in my recipe .Can any one help me too solve
the error.
following is the recipe for Cpluff
************cpluff_0.1.3.bb*****************
DESCRIPTION = "C-Pluff, a plug-in framework for C"
HOMEPAGE = "http://www.c-pluff.org"
LICENSE = "MIT"
DEPENDS += "expat"
SRC_URI = "http://www.c-pluff.org/downloads/${PN}-${PV}.tar.gz"
S = "${WORKDIR}/cpluff-0.1.3"
export TARGET_LDFLAGS="-L${STAGING_DIR}/${MACHINE}${libdir}" //line
added so that during compilation it should take libraries from poky
environment but after adding this line getting same error as above
inherit autotools
do_configure() {
cd ${S}
./configure --prefix=/usr
}
do_qa_configure() {
}
*********************
Regards
C Hoshing
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.yoctoproject.org/pipermail/poky/attachments/20111114/bd87bcfd/attachment.html>
More information about the poky
mailing list