[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[microblaze-uclinux] Microblaze C++ pthreads linking problems



Hello All,
 
I am trying to build a mixed C / C++ application. Problem is that microblaze-uclinux-g++ does not seem to find the pthreads library even though I added -lpthreads to the LDFLAGS.
 
Before spending days trying to figure out what's going on I'd like to make sure that this is even supposed to work. If so, any ideas on what the problem could be ..?
 
I'm using Petalinux 0.3 on a Spartan 3E board. Linux 2.6.x
 
Here is the part of the printout
 
make[3]: Entering directory `/home/ottob/petalinux-v0.30-rc1/software/user-apps/ds34t104/src/topDkApp'
/bin/sh ../../libtool --mode=link --tag=CXX microblaze-uclinux-g++  -g -O2  -lpthread -o halDallas  vx_init_fpga.o top8App.o ../../src/packages/HW_drv/Asic/HAL/libAsicHal.a ../../src/packages/HW_drv/libHwcf.a ../../src/packages/Lib/libHalLib.a ../../src/packages/rm/libRm.a ../../src/packages/os/libOs.a ../../src/packages/hw/libHw.a ../../src/packages/plib/libPlib.a ../../src/packages/HW_drv/Asic/Drv/libAsicDrv.a ../../src/packages/dbg/libDbg.a ../../src/packages/HW_drv/Xilinx/libXilinx.a ../../src/packages/HW_drv/Xilinx_dat/libXilinxDat.a ../../src/topApi/libTopApi.a ../../src/interface/libInterface.a ../../src/apps/libApps.a ../../framer/libFramer.a
microblaze-uclinux-g++ -g -O2 -o halDallas vx_init_fpga.o top8App.o  -lpthread ../../src/packages/HW_drv/Asic/HAL/libAsicHal.a ../../src/packages/HW_drv/libHwcf.a ../../src/packages/Lib/libHalLib.a ../../src/packages/rm/libRm.a ../../src/packages/os/libOs.a ../../src/packages/hw/libHw.a ../../src/packages/plib/libPlib.a ../../src/packages/HW_drv/Asic/Drv/libAsicDrv.a ../../src/packages/dbg/libDbg.a ../../src/packages/HW_drv/Xilinx/libXilinx.a ../../src/packages/HW_drv/Xilinx_dat/libXilinxDat.a ../../src/topApi/libTopApi.a ../../src/interface/libInterface.a ../../src/apps/libApps.a ../../framer/libFramer.a
../../src/interface/libInterface.a(CLI.o): In function `mem_Menu()':
/home/ottob/petalinux-v0.30-rc1/software/user-apps/ds34t104/src/interface/CLI.cpp(.text+0x2334):
halDallas.elf2flt: In function `Los::~Los()':
/home/ottob/petalinux-v0.30-rc1/software/user-apps/ds34t104/src/packages/Lib/los.cpp(.text+0x4f010): undefined reference to `sem_destroy'
halDallas.elf2flt: In function `Los::~Los()':
/home/ottob/petalinux-v0.30-rc1/software/user-apps/ds34t104/src/packages/Lib/los.cpp(.text+0x4f0c8): undefined reference to `sem_destroy'
halDallas.elf2flt: In function `Los::createThread(long, void (*)(), long*)':
/home/ottob/petalinux-v0.30-rc1/software/user-apps/ds34t104/src/packages/Lib/los.cpp(.text+0x4f2bc): undefined reference to `pthread_sigmask'
/home/ottob/petalinux-v0.30-rc1/software/user-apps/ds34t104/src/packages/Lib/los.cpp(.text+0x4f2f8): undefined reference to `pthread_attr_setstacksize'
 
Thanks,
 
/Otto