[poky] Error in compilation for Cpluff library
chinmaya hoshing
cahoshing at gmail.com
Wed Nov 23 05:12:38 PST 2011
Hi ,
I tried with the EXTRA_OEMAKE variable option in the recipe of
xbmc_10.1.bbas below :
EXTRA_OEMAKE += "LDFLAGS=-L/home/poky/build/tmp/sysroots/fishriver/usr/lib"
Also I modified the Makefile where I have specified the required path for
LDFLAGS and $libdir but still it is taking libexpat from my system.
On Wed, Nov 23, 2011 at 7:40 AM, Khem Raj <raj.khem at gmail.com> wrote:
> On Mon, Nov 14, 2011 at 3:29 AM, chinmaya hoshing <cahoshing at gmail.com>
> wrote:
> > 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() {
> > }
>
> this seems to be a libtool error to me. Somehow either the new libtool
> macros are not being used or libtool script itself used is old.
>
If it is a libtool error the how to set the libtool macros and where to
look for these macros
Regards
C Hoshing
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.yoctoproject.org/pipermail/poky/attachments/20111123/ef2dc49f/attachment.html>
More information about the poky
mailing list