[poky] build issue with pthread

Rajkumar Arjunan rajkumar at embeddedwireless.com
Wed Dec 14 17:46:40 PST 2011


Hi,

I am very new to Yacto project.
I am getting compilation error as "undefined reference to `pthread_create'"  during build.
I have added -lpthread libraray in my makefile to build. Still I have issue.
Please explain how to add library in poky build environment.

I have added 3G.bb file and the build output for reference below.

Note:-No error  If I compile the same source by my desktop Ubuntu native compiler "/usr/bin/gcc"


MY 3G.bb file:-

SUMMARY = "3G API library and Application"
DESCRIPTION = " "
DEPENDS = ""
RDEPENDS_${PN}-dev = ""

LICENSE = "GPLv2+"
LIC_FILES_CHKSUM = "file://LICENSE;md5=2d5025d4aa3495befef8f17206a5b0a1"

SRCREV = "e9078f6e99dde4a90828fa16978ef76897e721a1"

SRC_URI = "file://3G-1.1.tar.gz"
S = "${WORKDIR}/3G-1.1/"
EXTRA_OEMAKE = "'CC=${CC}' 'CFLAGS=${CFLAGS} -I${S}/include -DWITHOUT_XATTR' 'BUILDDIR=${S}'"


do_compile() {
                oe_runmake -f pkgs.mak
}


do_install () {
                oe_runmake install DESTDIR=${D} SBINDIR=${sbindir}

}



ewl at ubuntu-118:~/workspace/poky/build$ bitbake -v -c compile 3G
Loading cache: 100% |###########################################################################################################################################################################| ETA:  00:00:00
Loaded 1042 entries from dependency cache.

OE Build Configuration:
BB_VERSION        = "1.13.3"
TARGET_ARCH       = "powerpc"
TARGET_OS         = "linux"
MACHINE           = "mpc8315e-rdb"
DISTRO            = "poky"
DISTRO_VERSION    = "1.1"
TUNE_FEATURES     = "m32 fpu-hard ppc603e"
TARGET_FPU        = ""
meta
meta-yocto        = "edison:1924f52cc894d4dd6b9d9c1a2248b32fc0a24c8c"

NOTE: Resolving any missing task queue dependencies
NOTE: selecting pseudo-native to satisfy virtual/fakeroot-native due to PREFERRED_PROVIDERS
NOTE: selecting gcc-cross to satisfy virtual/powerpc-poky-linux-gcc due to PREFERRED_PROVIDERS
NOTE: selecting gcc-runtime to satisfy virtual/powerpc-poky-linux-compilerlibs due to PREFERRED_PROVIDERS
NOTE: selecting eglibc to satisfy virtual/libc due to PREFERRED_PROVIDERS
NOTE: selecting eglibc to satisfy runtime libsegfault due to PREFERRED_PROVIDER_virtual/libc = eglibc
NOTE: selecting eglibc to satisfy runtime eglibc due to PREFERRED_PROVIDER_virtual/libc = eglibc
NOTE: selecting binutils-cross to satisfy virtual/powerpc-poky-linux-binutils due to PREFERRED_PROVIDERS
NOTE: selecting eglibc to satisfy virtual/powerpc-poky-linux-libc-for-gcc due to PREFERRED_PROVIDERS
NOTE: selecting gcc-cross to satisfy virtual/powerpc-poky-linux-g++ due to PREFERRED_PROVIDERS
NOTE: selecting libgcc to satisfy libgcc due to PREFERRED_PROVIDERS
NOTE: selecting gcc-cross-intermediate to satisfy virtual/powerpc-poky-linux-gcc-intermediate due to PREFERRED_PROVIDERS
NOTE: selecting linux-libc-headers to satisfy linux-libc-headers due to PREFERRED_PROVIDERS
NOTE: selecting gettext to satisfy virtual/gettext due to PREFERRED_PROVIDERS
NOTE: selecting libgcc to satisfy runtime libgcc due to PREFERRED_PROVIDER_libgcc = libgcc
NOTE: selecting linux-libc-headers to satisfy runtime linux-libc-headers-dev due to PREFERRED_PROVIDER_linux-libc-headers = linux-libc-headers
NOTE: selecting gettext to satisfy runtime gettext-dev due to PREFERRED_PROVIDER_virtual/gettext = gettext
NOTE: selecting gettext to satisfy runtime gettext due to PREFERRED_PROVIDER_virtual/gettext = gettext
NOTE: selecting eglibc-initial to satisfy virtual/powerpc-poky-linux-libc-initial due to PREFERRED_PROVIDERS
NOTE: selecting eglibc to satisfy virtual/libiconv due to PREFERRED_PROVIDERS
NOTE: selecting gcc-cross-initial to satisfy virtual/powerpc-poky-linux-gcc-initial due to PREFERRED_PROVIDERS
NOTE: Preparing runqueue
NOTE: Marking Active Tasks
NOTE: Pruned 1500 inactive tasks, 242 left
NOTE: Assign Weightings
NOTE: Compute totals (have 1 endpoint(s))
NOTE: Executing SetScene Tasks
NOTE: Executing RunQueue Tasks
NOTE: Running task 242 of 242 (ID: 4, /home/ewl/workspace/poky/meta/recipes-extended/3G/3G_1.1.bb, do_compile)
NOTE: package 3G-1.1-r0: task do_compile: Started
+ export prefix=/usr
+ prefix=/usr
+ export STAGING_SIPDIR=/home/ewl/workspace/poky/build/tmp/sysroots/i686-linux/usr/share/sip
+ STAGING_SIPDIR=/home/ewl/workspace/poky/build/tmp/sysroots/i686-linux/usr/share/sip
+ export localstatedir=/var
+ localstatedir=/var
+ export BUILD_CC=gcc
+ BUILD_CC=gcc
+ export USER=ewl
+ USER=ewl
+ export libexecdir=/usr/libexec
+ libexecdir=/usr/libexec
+ export QTDIR=/home/ewl/workspace/poky/build/tmp/sysroots/mpc8315e-rdb/qt2
+ QTDIR=/home/ewl/workspace/poky/build/tmp/sysro
ots/mpc8315e-rdb/qt2
+ export datadir=/usr/share
+ datadir=/usr/share
+ export STRIP=powerpc-poky-linux-strip
+ STRIP=powerpc-poky-linux-strip
+ export BUILD_CXX=g++
+ BUILD_CXX=g++
+ export 'LD=powerpc-poky-linux-ld --sysroot=/home/ewl/workspace/poky/build/tmp/sysroots/mpc8315e-rdb'
+ LD='powerpc-poky-linux-ld --sysroot=/home/ewl/workspace/poky/build/tmp/sysroots/mpc8315e-rdb'
+ export 'LDFLAGS=-Wl,-O1 -Wl,--hash-style=gnu -Wl,--as-needed'
+ LDFLAGS='-Wl,-O1 -Wl,--hash-style=gnu -Wl,--as-needed'
+ export b
indir=/usr/bin
+ bindir=/usr/bin
+ export 'TARGET_CXXFLAGS=-O2 -pipe -g -feliminate-unused-debug-types -fpermissive'
+ TARGET_CXXFLAGS='-O2 -pipe -g -feliminate-unused-debug-types -fpermissive'
+ export MAKE=make
+ MAKE=make
+ export includedir=/usr/include
+ includedir=/usr/include
+ export 'BUILD_LDFLAGS=-L/home/ewl/workspace/poky/build/tmp/sysroots/i686-linux/usr/lib -Wl,-rpath-link,/home/ewl/workspace/poky/build/tmp/sysroots/i686-linux/usr/lib -Wl,-rpath,/home/ewl/workspace/poky/build/tmp/sysroots/i686-
linux/usr/lib -Wl,-O1'
+ BUILD_LDFLAGS='-L/home/ewl/workspace/poky/build/tmp/sysroots/i686-linux/usr/lib -Wl,-rpath-link,/home/ewl/workspace/poky/build/tmp/sysroots/i686-linux/usr/lib -Wl,-rpath,/home/ewl/workspace/poky/build/tmp/sysroots/i686-linux/usr/lib -Wl,-O1'
+ export BUILD_F77=g77
+ BUILD_F77=g77
+ export CCACHE_DIR=/home/ewl/workspace/poky/build/tmp/ccache/powerpc-poky-linux/3G
+ CCACHE_DIR=/home/ewl/workspace/poky/build/tmp/ccache/powerpc-poky-linux/3G
+ export BUILD_LD=ld
+ BUILD_LD=ld
+ export o
ldincludedir=/usr/include
+ oldincludedir=/usr/include
+ export SHELLCMDS=bash
+ SHELLCMDS=bash
+ export QPEDIR=/home/ewl/workspace/poky/build/tmp/sysroots/mpc8315e-rdb
+ QPEDIR=/home/ewl/workspace/poky/build/tmp/sysroots/mpc8315e-rdb
+ export BUILD_CCLD=gcc
+ BUILD_CCLD=gcc
+ export 'BUILD_CFLAGS=-isystem/home/ewl/workspace/poky/build/tmp/sysroots/i686-linux/usr/include -O2 -pipe'
+ BUILD_CFLAGS='-isystem/home/ewl/workspace/poky/build/tmp/sysroots/i686-linux/usr/include -O2 -pipe'
+ export QMAKE_MKSPEC_PAT
H=/home/ewl/workspace/poky/build/tmp/sysroots/i686-linux/usr/share/qmake
+ QMAKE_MKSPEC_PATH=/home/ewl/workspace/poky/build/tmp/sysroots/i686-linux/usr/share/qmake
+ export docdir=/usr/share/doc
+ docdir=/usr/share/doc
+ export infodir=/usr/share/info
+ infodir=/usr/share/info
+ export 'CC=powerpc-poky-linux-gcc  -m32 -mhard-float  -mcpu=603e --sysroot=/home/ewl/workspace/poky/build/tmp/sysroots/mpc8315e-rdb'
+ CC='powerpc-poky-linux-gcc  -m32 -mhard-float  -mcpu=603e --sysroot=/home/ewl/workspace/poky/buil
d/tmp/sysroots/mpc8315e-rdb'
+ export TERM=xterm
+ TERM=xterm
+ export BUILD_CPP=cpp
+ BUILD_CPP=cpp
+ export RANLIB=powerpc-poky-linux-ranlib
+ RANLIB=powerpc-poky-linux-ranlib
+ export base_sbindir=/sbin
+ base_sbindir=/sbin
+ export 'CXX=powerpc-poky-linux-g++  -m32 -mhard-float  -mcpu=603e --sysroot=/home/ewl/workspace/poky/build/tmp/sysroots/mpc8315e-rdb'
+ CXX='powerpc-poky-linux-g++  -m32 -mhard-float  -mcpu=603e --sysroot=/home/ewl/workspace/poky/build/tmp/sysroots/mpc8315e-rdb'
+ export BUILD_RANLI
B=ranlib
+ BUILD_RANLIB=ranlib
+ export PKG_CONFIG_PATH=/home/ewl/workspace/poky/build/tmp/sysroots/mpc8315e-rdb//usr/lib/pkgconfig:/home/ewl/workspace/poky/build/tmp/sysroots/mpc8315e-rdb/usr/share/pkgconfig
+ PKG_CONFIG_PATH=/home/ewl/workspace/poky/build/tmp/sysroots/mpc8315e-rdb//usr/lib/pkgconfig:/home/ewl/workspace/poky/build/tmp/sysroots/mpc8315e-rdb/usr/share/pkgconfig
+ export BUILD_NM=nm
+ BUILD_NM=nm
+ export AS=powerpc-poky-linux-as
+ AS=powerpc-poky-linux-as
+ export BUILD_CPPFLAGS=-isystem/hom
e/ewl/workspace/poky/build/tmp/sysroots/i686-linux/usr/include
+ BUILD_CPPFLAGS=-isystem/home/ewl/workspace/poky/build/tmp/sysroots/i686-linux/usr/include
+ export BUILD_AS=as
+ BUILD_AS=as
+ export 'CPP=powerpc-poky-linux-gcc -E --sysroot=/home/ewl/workspace/poky/build/tmp/sysroots/mpc8315e-rdb  -m32 -mhard-float  -mcpu=603e'
+ CPP='powerpc-poky-linux-gcc -E --sysroot=/home/ewl/workspace/poky/build/tmp/sysroots/mpc8315e-rdb  -m32 -mhard-float  -mcpu=603e'
+ export mandir=/usr/share/man
+ mandir=/usr/share/
man
+ export PKG_CONFIG_SYSROOT_DIR=/home/ewl/workspace/poky/build/tmp/sysroots/mpc8315e-rdb
+ PKG_CONFIG_SYSROOT_DIR=/home/ewl/workspace/poky/build/tmp/sysroots/mpc8315e-rdb
+ export 'BUILD_CXXFLAGS=-isystem/home/ewl/workspace/poky/build/tmp/sysroots/i686-linux/usr/include -O2 -pipe -fpermissive'
+ BUILD_CXXFLAGS='-isystem/home/ewl/workspace/poky/build/tmp/sysroots/i686-linux/usr/include -O2 -pipe -fpermissive'
+ export OBJCOPY=powerpc-poky-linux-objcopy
+ OBJCOPY=powerpc-poky-linux-objcopy
+ export servic
edir=/srv
+ servicedir=/srv
+ export HOME=/home/ewl
+ HOME=/home/ewl
+ export USERNAME=ewl
+ USERNAME=ewl
+ export PKG_CONFIG_DIR=/home/ewl/workspace/poky/build/tmp/sysroots/mpc8315e-rdb//usr/lib/pkgconfig
+ PKG_CONFIG_DIR=/home/ewl/workspace/poky/build/tmp/sysroots/mpc8315e-rdb//usr/lib/pkgconfig
+ export sysconfdir=/etc
+ sysconfdir=/etc
+ export 'CCLD=powerpc-poky-linux-gcc  -m32 -mhard-float  -mcpu=603e --sysroot=/home/ewl/workspace/poky/build/tmp/sysroots/mpc8315e-rdb'
+ CCLD='powerpc-poky-linux-gcc  -
m32 -mhard-float  -mcpu=603e --sysroot=/home/ewl/workspace/poky/build/tmp/sysroots/mpc8315e-rdb'
+ export LC_ALL=C
+ LC_ALL=C
+ export base_libdir=/lib
+ base_libdir=/lib
+ export STAGING_IDLDIR=/home/ewl/workspace/poky/build/tmp/sysroots/mpc8315e-rdb/usr/share/idl
+ STAGING_IDLDIR=/home/ewl/workspace/poky/build/tmp/sysroots/mpc8315e-rdb/usr/share/idl
+ export LOGNAME=ewl
+ LOGNAME=ewl
+ export PATH=/home/ewl/workspace/poky/build/tmp/sysroots/i686-linux/usr/bin/ppc603e-poky-linux:/home/ewl/workspace/poky/bu
ild/tmp/sysroots/mpc8315e-rdb/usr/bin/crossscripts:/home/ewl/workspace/poky/build/tmp/sysroots/i686-linux/usr/sbin:/home/ewl/workspace/poky/build/tmp/sysroots/i686-linux/usr/bin:/home/ewl/workspace/poky/build/tmp/sysroots/i686-linux/sbin:/home/ewl/workspace/poky/build/tmp/sysroots/i686-linux//bin:/home/ewl/workspace/poky/scripts:/home/ewl/workspace/poky/bitbake/bin/:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/home/ewl/workspace/poky/scripts
+ PATH=/home/ewl/workspace/poky/build/
tmp/sysroots/i686-linux/usr/bin/ppc603e-poky-linux:/home/ewl/workspace/poky/build/tmp/sysroots/mpc8315e-rdb/usr/bin/crossscripts:/home/ewl/workspace/poky/build/tmp/sysroots/i686-linux/usr/sbin:/home/ewl/workspace/poky/build/tmp/sysroots/i686-linux/usr/bin:/home/ewl/workspace/poky/build/tmp/sysroots/i686-linux/sbin:/home/ewl/workspace/poky/build/tmp/sysroots/i686-linux//bin:/home/ewl/workspace/poky/scripts:/home/ewl/workspace/poky/bitbake/bin/:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr
/games:/home/ewl/workspace/poky/scripts
+ export 'TARGET_CFLAGS=-O2 -pipe -g -feliminate-unused-debug-types'
+ TARGET_CFLAGS='-O2 -pipe -g -feliminate-unused-debug-types'
+ export base_bindir=/bin
+ base_bindir=/bin
+ export PKG_CONFIG_LIBDIR=/home/ewl/workspace/poky/build/tmp/sysroots/mpc8315e-rdb//usr/lib/pkgconfig
+ PKG_CONFIG_LIBDIR=/home/ewl/workspace/poky/build/tmp/sysroots/mpc8315e-rdb//usr/lib/pkgconfig
+ unset MACHINE
+ export sbindir=/usr/sbin
+ sbindir=/usr/sbin
+ export 'CFLAGS=-O2 -pipe -g -fel
iminate-unused-debug-types'
+ CFLAGS='-O2 -pipe -g -feliminate-unused-debug-types'
+ export BUILD_AR=ar
+ BUILD_AR=ar
+ export sharedstatedir=/com
+ sharedstatedir=/com
+ export 'F77=powerpc-poky-linux-g77  -m32 -mhard-float  -mcpu=603e --sysroot=/home/ewl/workspace/poky/build/tmp/sysroots/mpc8315e-rdb'
+ F77='powerpc-poky-linux-g77  -m32 -mhard-float  -mcpu=603e --sysroot=/home/ewl/workspace/poky/build/tmp/sysroots/mpc8315e-rdb'
+ export OBJDUMP=powerpc-poky-linux-objdump
+ OBJDUMP=powerpc-poky-linux-objdu
mp
+ unset DISTRO
+ export exec_prefix=/usr
+ exec_prefix=/usr
+ export 'TARGET_LDFLAGS=-Wl,-O1 -Wl,--hash-style=gnu -Wl,--as-needed'
+ TARGET_LDFLAGS='-Wl,-O1 -Wl,--hash-style=gnu -Wl,--as-needed'
+ export PKG_CONFIG_DISABLE_UNINSTALLED=yes
+ PKG_CONFIG_DISABLE_UNINSTALLED=yes
+ export libdir=/usr/lib
+ libdir=/usr/lib
+ export OPIEDIR=/home/ewl/workspace/poky/build/tmp/sysroots/mpc8315e-rdb
+ OPIEDIR=/home/ewl/workspace/poky/build/tmp/sysroots/mpc8315e-rdb
+ export PSEUDO_DISABLED=1
+ PSEUDO_DISABLED=1
+
unset TARGET_ARCH
+ export SHELL=/bin/bash
+ SHELL=/bin/bash
+ export palmqtdir=/usr/lib/opie
+ palmqtdir=/usr/lib/opie
+ export palmtopdir=/usr/lib/opie
+ palmtopdir=/usr/lib/opie
+ export AR=powerpc-poky-linux-ar
+ AR=powerpc-poky-linux-ar
+ export PATCH_GET=0
+ PATCH_GET=0
+ export 'CXXFLAGS=-O2 -pipe -g -feliminate-unused-debug-types -fpermissive -fvisibility-inlines-hidden'
+ CXXFLAGS='-O2 -pipe -g -feliminate-unused-debug-types -fpermissive -fvisibility-inlines-hidden'
+ export NM=powerpc-poky-linux-n
m
+ NM=powerpc-poky-linux-nm
+ export BUILD_STRIP=strip
+ BUILD_STRIP=strip
+ cd /home/ewl/workspace/poky/build/tmp/work/ppc603e-poky-linux/3G-1.1-r0/3G-1.1/
+ do_compile
+ oe_runmake -f pkgs.mak CPU=powerpc
+ '[' xmake = x ']'
+ bbnote make -j 4 'CC=powerpc-poky-linux-gcc  -m32 -mhard-float  -mcpu=603e --sysroot=/home/ewl/workspace/poky/build/tmp/sysroots/mpc8315e-rdb' 'CFLAGS= -O2 -pipe -g -feliminate-unused-debug-types -I/home/ewl/workspace/poky/build/tmp/work/ppc603e-poky-linux/3G-1.1-r0/3G-1.1/include
-L/home/ewl/workspace/poky/build/tmp/sysroots/mpc8315e-rdb/usr/lib -DWITHOUT_XATTR' BUILDDIR=/home/ewl/workspace/poky/build/tmp/work/ppc603e-poky-linux/3G-1.1-r0/3G-1.1/ -f pkgs.mak CPU=powerpc
+ echo 'NOTE: make -j 4 CC=powerpc-poky-linux-gcc  -m32 -mhard-float  -mcpu=603e --sysroot=/home/ewl/workspace/poky/build/tmp/sysroots/mpc8315e-rdb CFLAGS= -O2 -pipe -g -feliminate-unused-debug-types -I/home/ewl/workspace/poky/build/tmp/work/ppc603e-poky-linux/3G-1.1-r0/3G-1.1/include -L/home/ewl/workspace/poky/build
/tmp/sysroots/mpc8315e-rdb/usr/lib -DWITHOUT_XATTR BUILDDIR=/home/ewl/workspace/poky/build/tmp/work/ppc603e-poky-linux/3G-1.1-r0/3G-1.1/ -f pkgs.mak CPU=powerpc'
NOTE: make -j 4 CC=powerpc-poky-linux-gcc  -m32 -mhard-float  -mcpu=603e --sysroot=/home/ewl/workspace/poky/build/tmp/sysroots/mpc8315e-rdb CFLAGS= -O2 -pipe -g -feliminate-unused-debug-types -I/home/ewl/workspace/poky/build/tmp/work/ppc603e-poky-linux/3G-1.1-r0/3G-1.1/include -L/home/ewl/workspace/poky/build/tmp/sysroots/mpc8315e-rdb/usr/lib -DWIT
HOUT_XATTR BUILDDIR=/home/ewl/workspace/poky/build/tmp/work/ppc603e-poky-linux/3G-1.1-r0/3G-1.1/ -f pkgs.mak CPU=powerpc
+ make -j 4 'CC=powerpc-poky-linux-gcc  -m32 -mhard-float  -mcpu=603e --sysroot=/home/ewl/workspace/poky/build/tmp/sysroots/mpc8315e-rdb' 'CFLAGS= -O2 -pipe -g -feliminate-unused-debug-types -I/home/ewl/workspace/poky/build/tmp/work/ppc603e-poky-linux/3G-1.1-r0/3G-1.1/include -L/home/ewl/workspace/poky/build/tmp/sysroots/mpc8315e-rdb/usr/lib -DWITHOUT_XATTR' BUILDDIR=/home/ewl/workspace/p
oky/build/tmp/work/ppc603e-poky-linux/3G-1.1-r0/3G-1.1/ -f pkgs.mak CPU=powerpc

#######################################
###        BUILDING ALL TARGETS     ###
#######################################

# sleep is required for dependency to work since build
# happens so fast, the time compare fails
for i in os mm er sl ql pi dl ic us ci hd cn dd am ds su hp dr ui sdk ap apdx apui  ; do    \
               ( cd $i ; make -f $i.mak ; sleep 1) ;       \
                done
make[1]: Entering directory `/home/ewl/workspace/pok
y/build/tmp/work/ppc603e-poky-linux/3G-1.1-r0/3G-1.1/os'
-I.. -L/home/ewl/workspace/poky/build/tmp/sysroots/mpc8315e-rdb/usr/lib -static -lrt -lpthread
-I.. -L/home/ewl/workspace/poky/build/tmp/sysroots/mpc8315e-rdb/usr/lib -static -lrt -lpthread
-I.. -L/home/ewl/workspace/poky/build/tmp/sysroots/mpc8315e-rdb/usr/lib -static -lrt -lpthread
-I.. -L/home/ewl/workspace/poky/build/tmp/sysroots/mpc8315e-rdb/usr/lib -static -lrt -lpthread
============================
============================
--- Building  os
for powerpc...
============================
--- Building  os for powerpc...
----------------------------
============================
--- Building  os for powerpc...
----------------------------
exists...
powerpc-poky-linux-gcc  -m32 -mhard-float  -mcpu=603e --sysroot=/home/ewl/workspace/poky/build/tmp/sysroots/mpc8315e-rdb -O2 -pipe -g -feliminate-unused-debug-types -I/home/ewl/workspace/poky/build/tmp/work/ppc603e-poky-linux/3G-1.1-r0/3G-1.1/include -L/home/ewl/workspace/poky/build/tmp/sysroots/mpc8315e-
rdb/usr/lib -DWITHOUT_XATTR -D UMTS -I..   -L/home/ewl/workspace/poky/build/tmp/sysroots/mpc8315e-rdb/usr/lib -L/home/ewl/workspace/poky/build/tmp/sysroots/mpc8315e-rdb/usr/lib swi_osapi.c swi_ossdk.c swi_ossdkcheck.c
--- Building  os for powerpc...
----------------------------
exists...
powerpc-poky-linux-gcc  -m32 -mhard-float  -mcpu=603e --sysroot=/home/ewl/workspace/poky/build/tmp/sysroots/mpc8315e-rdb -O2 -pipe -g -feliminate-unused-debug-types -I/home/ewl/workspace/poky/build/tmp/work/ppc603e-poky-li
nux/3G-1.1-r0/3G-1.1/include -L/home/ewl/workspace/poky/build/tmp/sysroots/mpc8315e-rdb/usr/lib -DWITHOUT_XATTR -D UMTS -I..   -L/home/ewl/workspace/poky/build/tmp/sysroots/mpc8315e-rdb/usr/lib -L/home/ewl/workspace/poky/build/tmp/sysroots/mpc8315e-rdb/usr/lib swi_osapi.c swi_ossdk.c swi_ossdkcheck.c
----------------------------
exists...
powerpc-poky-linux-gcc  -m32 -mhard-float  -mcpu=603e --sysroot=/home/ewl/workspace/poky/build/tmp/sysroots/mpc8315e-rdb -O2 -pipe -g -feliminate-unused-debug-types -I/ho
me/ewl/workspace/poky/build/tmp/work/ppc603e-poky-linux/3G-1.1-r0/3G-1.1/include -L/home/ewl/workspace/poky/build/tmp/sysroots/mpc8315e-rdb/usr/lib -DWITHOUT_XATTR -D UMTS -I..   -L/home/ewl/workspace/poky/build/tmp/sysroots/mpc8315e-rdb/usr/lib -L/home/ewl/workspace/poky/build/tmp/sysroots/mpc8315e-rdb/usr/lib swi_osapi.c swi_ossdk.c swi_ossdkcheck.c
exists...
powerpc-poky-linux-gcc  -m32 -mhard-float  -mcpu=603e --sysroot=/home/ewl/workspace/poky/build/tmp/sysroots/mpc8315e-rdb -O2 -pipe -g -feliminate-u
nused-debug-types -I/home/ewl/workspace/poky/build/tmp/work/ppc603e-poky-linux/3G-1.1-r0/3G-1.1/include -L/home/ewl/workspace/poky/build/tmp/sysroots/mpc8315e-rdb/usr/lib -DWITHOUT_XATTR -D UMTS -I..   -L/home/ewl/workspace/poky/build/tmp/sysroots/mpc8315e-rdb/usr/lib -L/home/ewl/workspace/poky/build/tmp/sysroots/mpc8315e-rdb/usr/lib swi_osapi.c swi_ossdk.c swi_ossdkcheck.c
/home/ewl/workspace/poky/build/tmp/sysroots/mpc8315e-rdb/usr/lib/crt1.o:(.rodata+0x4): undefined reference to `main'
/tmp/ccVadGQx.o: I
n function `swi_ossdkthreadcreate':
/home/ewl/workspace/poky/build/tmp/work/ppc603e-poky-linux/3G-1.1-r0/3G-1.1/os/swi_ossdk.c:520: undefined reference to `pthread_create'
/tmp/ccVadGQx.o: In function `swi_ossdkwaiterwait':
/home/ewl/workspace/poky/build/tmp/work/ppc603e-poky-linux/3G-1.1-r0/3G-1.1/os/swi_ossdk.c:669: undefined reference to `clock_gettime'
/tmp/ccK2KX2A.o: In function `swi_osapithreadcreate':
/home/ewl/workspace/poky/build/tmp/work/ppc603e-poky-linux/3G-1.1-r0/3G-1.1/os/swi_osapi.c:824: und
efined reference to `pthread_create'
collect2: ld returned 1 exit status
make[1]: *** [objpowerpc/swi_ossdkcheck.o] Error 1
make[1]: *** Waiting for unfinished jobs....
/home/ewl/workspace/poky/build/tmp/sysroots/mpc8315e-rdb/usr/lib/crt1.o:(.rodata+0x4): undefined reference to `main'
/tmp/cct6CpNx.o: In function `swi_ossdkthreadcreate':
/home/ewl/workspace/poky/build/tmp/work/ppc603e-poky-linux/3G-1.1-r0/3G-1.1/os/swi_ossdk.c:520: undefined reference to `pthread_create'
/tmp/cct6CpNx.o: In function `swi_os
sdkwaiterwait':
/home/ewl/workspace/poky/build/tmp/work/ppc603e-poky-linux/3G-1.1-r0/3G-1.1/os/swi_ossdk.c:669: undefined reference to `clock_gettime'
/tmp/ccP8YAQA.o: In function `swi_osapithreadcreate':
/home/ewl/workspace/poky/build/tmp/work/ppc603e-poky-linux/3G-1.1-r0/3G-1.1/os/swi_osapi.c:824: undefined reference to `pthread_create'
collect2: ld returned 1 exit status
make[1]: *** [objpowerpc/swi_osstubs.o] Error 1
/home/ewl/workspace/poky/build/tmp/sysroots/mpc8315e-rdb/usr/lib/crt1.o:(.rodata+0x4):
undefined reference to `main'
/tmp/ccAN9cXx.o: In function `swi_ossdkthreadcreate':
/home/ewl/workspace/poky/build/tmp/work/ppc603e-poky-linux/3G-1.1-r0/3G-1.1/os/swi_ossdk.c:520: undefined reference to `pthread_create'
/tmp/ccAN9cXx.o: In function `swi_ossdkwaiterwait':
/home/ewl/workspace/poky/build/tmp/work/ppc603e-poky-linux/3G-1.1-r0/3G-1.1/os/swi_ossdk.c:669: undefined reference to `clock_gettime'
/tmp/ccuC7pYA.o: In function `swi_osapithreadcreate':
/home/ewl/workspace/poky/build/tmp/work/ppc603e-pok
y-linux/3G-1.1-r0/3G-1.1/os/swi_osapi.c:824: undefined reference to `pthread_create'
collect2: ld returned 1 exit status
/home/ewl/workspace/poky/build/tmp/sysroots/mpc8315e-rdb/usr/lib/crt1.o:(.rodata+0x4): undefined reference to `main'
/tmp/ccPg00ky.o: In function `swi_ossdkthreadcreate':
/home/ewl/workspace/poky/build/tmp/work/ppc603e-poky-linux/3G-1.1-r0/3G-1.1/os/swi_ossdk.c:520: undefined reference to `pthread_create'
/tmp/ccPg00ky.o: In function `swi_ossdkwaiterwait':
/home/ewl/workspace/poky/build/t
mp/work/ppc603e-poky-linux/3G-1.1-r0/3G-1.1/os/swi_ossdk.c:669: undefined reference to `clock_gettime'
/tmp/cccoxyqB.o: In function `swi_osapithreadcreate':
/home/ewl/workspace/poky/build/tmp/work/ppc603e-poky-linux/3G-1.1-r0/3G-1.1/os/swi_osapi.c:824: undefined reference to `pthread_create'
collect2: ld returned 1 exit status
make[1]: *** [objpowerpc/swi_ossdk.o] Error 1
make[1]: *** [objpowerpc/swi_osapi.o] Error 1
make[1]: Leaving directory `/home/ewl/workspace/poky/build/tmp/work/ppc603e-poky-linux/3G-1
.1-r0/3G-1.1/os

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.yoctoproject.org/pipermail/poky/attachments/20111215/15bc4fba/attachment.html>


More information about the poky mailing list