[oe] [meta-oe] Issues while building gpsd

2014-07-30 Thread Andrei Gherzan
I'm using Fedora 20 and yocto / meta-oe master / HEAD. While trying to
build gspd I encounter this error:

...
| i586-poky-linux-gcc -m32 -march=i586
--sysroot=/build/tmp/sysroots/qemux86 -o gpspipe.o -c -O2 -pipe -g
-feliminate-unused-debug-types -D_GNU_SOURCE
--sysroot=/media/SSHDD-WRS/Projects/Genivi/2014-07-23-qemux86/tmp/sysroots/qemux86
-Wextra -Wall -Wno-uninitialized -Wno-missing-field-initializers
-Wcast-align -Wmissing-declarations -Wmissing-prototypes
-Wstrict-prototypes -Wpointer-arith -Wreturn-type -g -O0 gpspipe.c
| i586-poky-linux-gcc -m32 -march=i586
--sysroot=/build/tmp/sysroots/qemux86 -o gpxlogger.o -c -O2 -pipe -g
-feliminate-unused-debug-types -D_GNU_SOURCE
--sysroot=/build/tmp/sysroots/qemux86 -Wextra -Wall -Wno-uninitialized
-Wno-missing-field-initializers -Wcast-align -Wmissing-declarations
-Wmissing-prototypes -Wstrict-prototypes -Wpointer-arith -Wreturn-type -g
-O0 gpxlogger.c
| //usr/lib/libpthread.so.0: undefined reference to `__uname@GLIBC_PRIVATE'
| //usr/lib/libpthread.so.0: undefined reference to
`__getrlimit@GLIBC_PRIVATE'
| collect2: error: ld returned 1 exit status
| //usr/lib/libpthread.so.0: undefined reference to `__uname@GLIBC_PRIVATE'
| //usr/lib/libpthread.so.0: undefined reference to
`__getrlimit@GLIBC_PRIVATE'
| collect2: error: ld returned 1 exit status
| scons: *** [gpsdecode] Error 1
| scons: *** [gpsctl] Error 1
| scons: building terminated because of errors.
| ERROR: scons build execution failed.
| WARNING:
/build/tmp/work/i586-poky-linux/gpsd/3.7-r14/temp/run.do_compile.24778:1
exit 1 from
|   exit 1
| ERROR: Function failed: do_compile (log file is located at
/build/tmp/work/i586-poky-linux/gpsd/3.7-r14/temp/log.do_compile.24778)
ERROR: Task 6 (//meta-openembedded/meta-oe/recipes-navigation/gpsd/
gpsd_3.7.bb, do_compile) failed with exit code '1'

Any hints?
-- 
*Andrei Gherzan*
m: +40.744.478.414 |  f: +40.31.816.28.12
-- 
___
Openembedded-devel mailing list
Openembedded-devel@lists.openembedded.org
http://lists.openembedded.org/mailman/listinfo/openembedded-devel


Re: [oe] [meta-oe] Issues while building gpsd

2014-07-30 Thread Khem Raj
On Wed, Jul 30, 2014 at 5:56 AM, Andrei Gherzan  wrote:
> | //usr/lib/libpthread.so.0: undefined reference to `__uname@GLIBC_PRIVATE'
> | //usr/lib/libpthread.so.0: undefined reference to
> `__getrlimit@GLIBC_PRIVATE'
> | collect2: error: ld returned 1 exit status
> | //usr/lib/libpthread.so.0: undefined reference to `__uname@GLIBC_PRIVATE'
> | //usr/lib/libpthread.so.0: undefined reference to
> `__getrlimit@GLIBC_PRIVATE'
> | collect2: error: ld returned 1 exit status

well gpsd's own build system seems to be not so cross compile
friendly. Figure out why it decided to poke
at your host thread library instead of one from target sysroot
-- 
___
Openembedded-devel mailing list
Openembedded-devel@lists.openembedded.org
http://lists.openembedded.org/mailman/listinfo/openembedded-devel


Re: [oe] [meta-oe] Issues while building gpsd

2014-07-31 Thread Andrei Gherzan
On Wed, Jul 30, 2014 at 8:00 PM, Khem Raj  wrote:

> On Wed, Jul 30, 2014 at 5:56 AM, Andrei Gherzan  wrote:
> > | //usr/lib/libpthread.so.0: undefined reference to
> `__uname@GLIBC_PRIVATE'
> > | //usr/lib/libpthread.so.0: undefined reference to
> > `__getrlimit@GLIBC_PRIVATE'
> > | collect2: error: ld returned 1 exit status
> > | //usr/lib/libpthread.so.0: undefined reference to
> `__uname@GLIBC_PRIVATE'
> > | //usr/lib/libpthread.so.0: undefined reference to
> > `__getrlimit@GLIBC_PRIVATE'
> > | collect2: error: ld returned 1 exit status
>
> well gpsd's own build system seems to be not so cross compile
> friendly. Figure out why it decided to poke
> at your host thread library instead of one from target sysroot
>

Ok. Thanks. Hoped somebody already saw this before. No luck.


-- 
*Andrei Gherzan*
m: +40.744.478.414 |  f: +40.31.816.28.12
-- 
___
Openembedded-devel mailing list
Openembedded-devel@lists.openembedded.org
http://lists.openembedded.org/mailman/listinfo/openembedded-devel