LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 06-07-2011, 03:59 PM   #1
atb2010
LQ Newbie
 
Registered: Mar 2011
Posts: 4

Rep: Reputation: 0
Complie CppUnit in RTEMS


I am trying to compile cppunit in rtems. However, I keep getting this error when I run the make file. (as seen in red) The actual thing is way longer, but I just wanted to give a general idea of the make files. I believe that it may have something to do with libstdc++. Somewhere it is pulling that in and I am actually using g++. What do you think is the issue?


/builddir/build/BUILD/rtems-4.10-i386-rtems4.10-gcc-4.4.6/build/i386-rtems4.10/l
ibstdc++-v3/include/fstream:826: undefined reference to `memmove'
/builddir/build/BUILD/rtems-4.10-i386-rtems4.10-gcc-4.4.6/build/i386-rtems4.10/l
ibstdc++-v3/include/fstream:826: undefined reference to `memmove'
/builddir/build/BUILD/rtems-4.10-i386-rtems4.10-gcc-4.4.6/build/i386-rtems4.10/l
ibstdc++-v3/include/fstream:826: undefined reference to `wmemcpy'
/opt/rtems-4.10/lib/gcc/i386-rtems4.10/4.4.6/libstdc++.a(ctype_members.o): In fu
nction `std::ctype_byname<char>::ctype_byname(char const*, unsigned long)':
/builddir/build/BUILD/rtems-4.10-i386-rtems4.10-gcc-4.4.6/build/i386-rtems4.10/l
ibstdc++-v3/src/ctype_members.cc:44: undefined reference to `wctob'
/builddir/build/BUILD/rtems-4.10-i386-rtems4.10-gcc-4.4.6/build/i386-rtems4.10/l
ibstdc++-v3/src/ctype_members.cc:49: undefined reference to `wctob'
/builddir/build/BUILD/rtems-4.10-i386-rtems4.10-gcc-4.4.6/build/i386-rtems4.10/l
ibstdc++-v3/src/ctype_members.cc:42: undefined reference to `wctob'
/builddir/build/BUILD/rtems-4.10-i386-rtems4.10-gcc-4.4.6/build/i386-rtems4.10/l
ibstdc++-v3/src/ctype_members.cc:44: undefined reference to `iswctype'
/builddir/build/BUILD/rtems-4.10-i386-rtems4.10-gcc-4.4.6/build/i386-rtems4.10/l
ibstdc++-v3/src/ctype_members.cc:44: undefined reference to `iswctype'
/builddir/build/BUILD/rtems-4.10-i386-rtems4.10-gcc-4.4.6/build/i386-rtems4.10/l
ibstdc++-v3/src/ctype_members.cc:42: undefined reference to `towlower'
/builddir/build/BUILD/rtems-4.10-i386-rtems4.10-gcc-4.4.6/build/i386-rtems4.10/l
ibstdc++-v3/src/ctype_members.cc:42: undefined reference to `towlower'
/builddir/build/BUILD/rtems-4.10-i386-rtems4.10-gcc-4.4.6/build/i386-rtems4.10/l
ibstdc++-v3/src/ctype_members.cc:42: undefined reference to `towupper'
/builddir/build/BUILD/rtems-4.10-i386-rtems4.10-gcc-4.4.6/build/i386-rtems4.10/l
ibstdc++-v3/src/ctype_members.cc:42: undefined reference to `towupper'
/builddir/build/BUILD/rtems-4.10-i386-rtems4.10-gcc-4.4.6/build/i386-rtems4.10/l
ibstdc++-v3/src/ctype_members.cc:49: undefined reference to `wctype'
/builddir/build/BUILD/rtems-4.10-i386-rtems4.10-gcc-4.4.6/build/i386-rtems4.10/l
ibstdc++-v3/src/ctype_members.cc:46: undefined reference to `wctype'
/builddir/build/BUILD/rtems-4.10-i386-rtems4.10-gcc-4.4.6/build/i386-rtems4.10/l
ibstdc++-v3/src/ctype_members.cc:49: undefined reference to `wctype'
/builddir/build/BUILD/rtems-4.10-i386-rtems4.10-gcc-4.4.6/build/i386-rtems4.10/l
ibstdc++-v3/src/ctype_members.cc:49: undefined reference to `wctype'
/builddir/build/BUILD/rtems-4.10-i386-rtems4.10-gcc-4.4.6/build/i386-rtems4.10/l
ibstdc++-v3/src/ctype_members.cc:49: undefined reference to `wctype'
/opt/rtems-4.10/lib/gcc/i386-rtems4.10/4.4.6/libstdc++.a(ctype_members.o):/build
dir/build/BUILD/rtems-4.10-i386-rtems4.10-gcc-4.4.6/build/i386-rtems4.10/libstdc
++-v3/src/ctype_members.cc:49: more undefined references to `wctype' follow
/opt/rtems-4.10/lib/gcc/i386-rtems4.10/4.4.6/libstdc++.a(ctype_members.o): In fu
nction `std::ctype_byname<char>::ctype_byname(char const*, unsigned long)':
/builddir/build/BUILD/rtems-4.10-i386-rtems4.10-gcc-4.4.6/build/i386-rtems4.10/l
ibstdc++-v3/src/ctype_members.cc:44: undefined reference to `wctob'
/builddir/build/BUILD/rtems-4.10-i386-rtems4.10-gcc-4.4.6/build/i386-rtems4.10/l
ibstdc++-v3/src/ctype_members.cc:44: undefined reference to `btowc'
/opt/rtems-4.10/lib/gcc/i386-rtems4.10/4.4.6/libstdc++.a(cp-demangle.o): In func
tion `d_print_comp':
/builddir/build/BUILD/rtems-4.10-i386-rtems4.10-gcc-4.4.6/build/i386-rtems4.10/l
ibstdc++-v3/libsupc++/cp-demangle.c:4064: undefined reference to `sprintf'
/opt/rtems-4.10/lib/gcc/i386-rtems4.10/4.4.6/libstdc++.a(cp-demangle.o): In func
tion `__cxa_demangle':
/builddir/build/BUILD/rtems-4.10-i386-rtems4.10-gcc-4.4.6/build/i386-rtems4.10/l
ibstdc++-v3/libsupc++/cp-demangle.c:4668: undefined reference to `strcpy'
/opt/rtems-4.10/lib/gcc/i386-rtems4.10/4.4.6/libgcc.a(unwind-dw2.o): In function
`_Unwind_SetGR':
/builddir/build/BUILD/rtems-4.10-i386-rtems4.10-gcc-4.4.6/build/i386-rtems4.10/l
ibgcc/../../../gcc-4.4.6/libgcc/../gcc/unwind-dw2.c:218: undefined reference to
`abort'
/opt/rtems-4.10/lib/gcc/i386-rtems4.10/4.4.6/libgcc.a(unwind-dw2.o): In function
`_Unwind_GetGR':
/builddir/build/BUILD/rtems-4.10-i386-rtems4.10-gcc-4.4.6/build/i386-rtems4.10/l
ibgcc/../../../gcc-4.4.6/libgcc/../gcc/unwind-dw2.c:175: undefined reference to
`abort'
/opt/rtems-4.10/lib/gcc/i386-rtems4.10/4.4.6/libgcc.a(unwind-dw2.o): In function
`_Unwind_SetSpColumn':
/builddir/build/BUILD/rtems-4.10-i386-rtems4.10-gcc-4.4.6/build/i386-rtems4.10/l
ibgcc/../../../gcc-4.4.6/libgcc/../gcc/unwind-dw2.c:1256: undefined reference to
`abort'
/opt/rtems-4.10/lib/gcc/i386-rtems4.10/4.4.6/libgcc.a(unwind-dw2.o): In function
`execute_cfa_program':
/builddir/build/BUILD/rtems-4.10-i386-rtems4.10-gcc-4.4.6/build/i386-rtems4.10/l
ibgcc/../../../gcc-4.4.6/libgcc/../gcc/unwind-dw2.c:1104: undefined reference to
`abort'
/opt/rtems-4.10/lib/gcc/i386-rtems4.10/4.4.6/libgcc.a(unwind-dw2.o): In function
`uw_install_context_1':
/builddir/build/BUILD/rtems-4.10-i386-rtems4.10-gcc-4.4.6/build/i386-rtems4.10/l
ibgcc/../../../gcc-4.4.6/libgcc/../gcc/unwind-dw2.c:1519: undefined reference to
`abort'
/opt/rtems-4.10/lib/gcc/i386-rtems4.10/4.4.6/libgcc.a(unwind-dw2.o):/builddir/bu
ild/BUILD/rtems-4.10-i386-rtems4.10-gcc-4.4.6/build/i386-rtems4.10/libgcc/../../
../gcc-4.4.6/libgcc/../gcc/unwind-dw2.c:847: more undefined references to `abort
' follow
collect2: ld returned 1 exit status
make[2]: *** [libcppunit.la] Error 1
make[2]: Leaving directory `/opt/rtems/cppunit-1.12.1/src/cppunit'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/opt/rtems/cppunit-1.12.1/src'
make: *** [all-recursive] Error 1
 
Old 06-08-2011, 10:04 AM   #2
Peverel
Member
 
Registered: May 2009
Location: Chelmsford, England
Distribution: OpenSuse 12.2 and 13.2
Posts: 104

Rep: Reputation: 21
In order to compile a program, g++ needs to access standard functions: these are defined in header files in /usr/include and the code is contained in /usr/lib or /usr/lib64, depending on your system. Either your system does not have one or other of these or the environment variables are not set up correctly, so that the compiler cannot find them. The error is in the system, not the makefile. The error messages suggest that the header files are not accessible. Might be best just to reinstall gcc.
 
Old 06-08-2011, 04:48 PM   #3
atb2010
LQ Newbie
 
Registered: Mar 2011
Posts: 4

Original Poster
Rep: Reputation: 0
Thanks! I will give it a try.
 
  


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
Eclipse CppUnit Test Run Time Error - libcppunit-1.12.so.1: cannot open shared object aayu09 Linux - Software 12 08-05-2010 08:38 PM
Cppunit gregarion Programming 0 02-04-2010 08:15 AM
Understanding of CppUnit gregarion Programming 1 01-09-2010 03:40 PM
CppUnit for DOS??? paulsm4 Programming 1 07-11-2007 09:45 AM
complie under qt macro-linux Programming 10 11-06-2003 06:18 AM


All times are GMT -5. The time now is 02:33 PM.

Main Menu
Advertisement
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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration