[poky] build issue with pthread

Khem Raj raj.khem at gmail.com
Wed Dec 14 23:07:11 PST 2011


On Wed, Dec 14, 2011 at 5:46 PM, Rajkumar Arjunan
<rajkumar at embeddedwireless.com> wrote:
> 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

there is no -pthread used on cmdline here. So either fix your makefile
so its added
or try TARGET_CC_ARCH += "-pthread" in .bb
>
> /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'



More information about the poky mailing list