LinuxQuestions.org
LinuxAnswers - the LQ Linux tutorial section.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Hardware > Linux - Embedded & Single-board computer
User Name
Password
Linux - Embedded & Single-board computer This forum is for the discussion of Linux on both embedded devices and single-board computers (such as the Raspberry Pi, BeagleBoard and PandaBoard). Discussions involving Arduino, plug computers and other micro-controller like devices are also welcome.

Notices

Reply
 
Search this Thread
Old 08-06-2012, 03:52 AM   #1
ashangel
LQ Newbie
 
Registered: Jul 2012
Location: Home
Posts: 19

Rep: Reputation: Disabled
Error compiling the MPAC library for multithreading on embedded system


Hi,

I am trying to make the mpac_1.2 software on fedora 17 host system for octeon embedded system. It gives the following error:


make[4]: Entering directory `/home/aisha/mpac_1.2/benchmarks/cpu'
gcc mpac_cpu.c -g -c -Wall -I/home/aisha/mpac_1.2/target/include -Dlinux
gcc mpac_cpu_bm.c -g -c -Wall -I/home/aisha/mpac_1.2/target/include -Dlinux
gcc mpac_cpu_bm_fl.c -g -c -Wall -I/home/aisha/mpac_1.2/target/include -Dlinux
gcc mpac_cpu_bm_int.c -g -c -Wall -I/home/aisha/mpac_1.2/target/include -Dlinux
gcc mpac_cpu_bm_lo.c -g -c -Wall -I/home/aisha/mpac_1.2/target/include -Dlinux
mpac_cpu_bm_lo.c: In function ‘mpac_cpu_bm_lo’:
mpac_cpu_bm_lo.c:88:7: warning: variable ‘x’ set but not used [-Wunused-but-set-variable]
gcc -o mpac_cpu_bm mpac_cpu.o mpac_cpu_bm.o mpac_cpu_bm_fl.o mpac_cpu_bm_int.o mpac_cpu_bm_lo.o -L/home/aisha/mpac_1.2/target/lib -lmpac -lm -lrt
/usr/bin/ld: /home/aisha/mpac_1.2/target/lib/libmpac.a(mpac_thread_manager.o): undefined reference to symbol 'pthread_kill@@GLIBC_2.2.5'
/usr/bin/ld: note: 'pthread_kill@@GLIBC_2.2.5' is defined in DSO /lib64/libpthread.so.0 so try adding it to the linker command line
/lib64/libpthread.so.0: could not read symbols: Invalid operation
collect2: error: ld returned 1 exit status
make[4]: *** [mpac_cpu_bm] Error 1
make[4]: Leaving directory `/home/aisha/mpac_1.2/benchmarks/cpu'
make[3]: *** [benchmarks] Error 2
make[3]: Leaving directory `/home/aisha/mpac_1.2/benchmarks'
make[2]: *** [all] Error 2
make[2]: Leaving directory `/home/aisha/mpac_1.2/benchmarks'
make[1]: *** [source] Error 2
make[1]: Leaving directory `/home/aisha/mpac_1.2'
make: *** [all] Error 2


Can any one please figure out the error??
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
[SOLVED] Error compiling C++ program using C library bvkim Programming 2 05-09-2010 02:28 AM
Shared library - error when compiling glyn Programming 3 12-10-2009 06:35 PM
Xpert in 8-16 bit microcontroller embedded system now inclining toward embedded linux priyadarshan Linux - Embedded & Single-board computer 2 02-12-2009 04:28 AM
Multithreading and Xft library df_0903 Programming 0 09-21-2005 08:55 AM
Newbie: Compiling Error - QT Library [New Theme with KDE 3 - SuSE 7.3] pokkkie Linux - Newbie 2 08-19-2002 05:13 AM


All times are GMT -5. The time now is 10:34 AM.

Main Menu
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration