Welcome to the most active Linux Forum on the web.
Go Back > Forums > Linux Forums > Linux - Hardware > Linux - Embedded & Single-board computer
User Name
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.


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

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


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/ so try adding it to the linker command line
/lib64/ 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??


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 03:28 AM
Shared library - error when compiling glyn Programming 3 12-10-2009 07: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 05:28 AM
Multithreading and Xft library df_0903 Programming 0 09-21-2005 09:55 AM
Newbie: Compiling Error - QT Library [New Theme with KDE 3 - SuSE 7.3] pokkkie Linux - Newbie 2 08-19-2002 06:13 AM > Forums > Linux Forums > Linux - Hardware > Linux - Embedded & Single-board computer

All times are GMT -5. The time now is 02:07 AM.

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