Thread: [Cppunit-devel] Building cppunit for Sun 5.0 and 6.0 compilers
Brought to you by:
blep
From: Magne B. <bo...@it...> - 2002-05-22 22:33:26
|
Hi there, I have some problems building/configure cppunit for the Sun 5.0 and 6.0 compilers. Is cppunit compatible with these compilers? If it is compatible, can you specify which macros I should set? Here is what my command line looks like when I start configure for th eSun 5.0 compiler: ./configure --prefix=/home/CppUnit/1.8.0 CC=/home/SPARCworks/WS5.0/SUNWspro/SC5.0/bin/cc CXX=/home/SPARCworks/WS5.0/SUNWspro/SC5.0/bin/CC CXXFLAGS=-I/home/SPARCworks/WS5.0/SUNWspro/SC5.0/include/CC LDFLAGS=-L/home/SPARCworks/WS5.0/SUNWspro/SC5.0/lib LIBS='-lCstd' CFLAGS=-I/home/SPARCworks/WS5.0/SUNWspro/SC5.0/include/cc It configures and the make runs fine, but make check failes: % make check Making check in src Making check in cppunit Making check in include Making check in cppunit Making check in extensions Making check in ui Making check in text Making check in mfc Making check in qt Making check in examples Making check in hierarchy make hierarchy source='BoardGame.cpp' object='BoardGame.o' libtool=no \ depfile='.deps/BoardGame.Po' tmpdepfile='.deps/BoardGame.TPo' \ depmode=none /bin/sh ../../config/depcomp \ /home/SPARCworks/WS5.0/SUNWspro/SC5.0/bin/CC -DHAVE_CONFIG_H -I. -I. -I../.. /config -I../../include -I../../include -I/home/SPARCworks/WS5.0/SUNWspr o/SC5.0/include/CC -c -o BoardGame.o `test -f BoardGame.cpp || echo './'`BoardGame.cpp source='Chess.cpp' object='Chess.o' libtool=no \ depfile='.deps/Chess.Po' tmpdepfile='.deps/Chess.TPo' \ depmode=none /bin/sh ../../config/depcomp \ /home/SPARCworks/WS5.0/SUNWspro/SC5.0/bin/CC -DHAVE_CONFIG_H -I. -I. -I../.. /config -I../../include -I../../include -I/home/SPARCworks/WS5.0/SUNWspr o/SC5.0/include/CC -c -o Chess.o `test -f Chess.cpp || echo './'`Chess.cpp source='main.cpp' object='main.o' libtool=no \ depfile='.deps/main.Po' tmpdepfile='.deps/main.TPo' \ depmode=none /bin/sh ../../config/depcomp \ /home/SPARCworks/WS5.0/SUNWspro/SC5.0/bin/CC -DHAVE_CONFIG_H -I. -I. -I../.. /config -I../../include -I../../include -I/home/SPARCworks/WS5.0/SUNWspr o/SC5.0/include/CC -c -o main.o `test -f main.cpp || echo './'`main.cpp "../../include/cppunit/TextTestResult.h", line 46: Warning: CppUnit::TextTestResult::addFailure hides the virtual function CppUnit::TestResult::addFailure(CppUnit::Test*, CppUnit::Exception*). "../../include/cppunit/extensions/TestSuiteBuilder.h", line 80: Error: Member templates not implemented. "BoardGameTest.h", line 12: Where: While specializing "CppUnit::TestSuiteBuilder<BoardGameTest<BoardGame>>". "BoardGameTest.h", line 12: Where: Instantiated from static BoardGameTest<BoardGame>::suite(). "main.cpp", line 21: Where: Instantiated from non-template code. 1 Error(s) and 1 Warning(s) detected. *** Error code 1 make: Fatal error: Command failed for target `main.o' Current working directory /home/CppUnit/cppunit-1.8.0/examples/hierarchy *** Error code 1 make: Fatal error: Command failed for target `check-am' Current working directory /home/CppUnit/cppunit-1.8.0/examples/hierarchy *** Error code 1 make: Fatal error: Command failed for target `check-recursive' Current working directory /home/CppUnit/cppunit-1.8.0/examples *** Error code 1 make: Fatal error: Command failed for target `check-recursive' I appreciate any comments/help. Thank you, Magne e-mail: bo...@it... |
From: Baptiste L. <gai...@fr...> - 2002-05-23 14:39:54
|
It seems that your compiler does not support template methods. You can get around this by commenting out the method addTestCallerForException() in TestSuiteBuilder.h. This means that you will not be able to use CPPUNIT_TEST_EXCEPTION and CPPUNIT_TEST_FAIL macros. I'll fix that issue at a later time (I have the refactoring on paper, just need to get it done). Baptiste. ----- Original Message ----- From: Magne Borg To: cpp...@li... Sent: Thursday, May 23, 2002 12:32 AM Subject: [Cppunit-devel] Building cppunit for Sun 5.0 and 6.0 compilers Hi there, I have some problems building/configure cppunit for the Sun 5.0 and 6.0 compilers. Is cppunit compatible with these compilers? If it is compatible, can you specify which macros I should set? Here is what my command line looks like when I start configure for th eSun 5.0 compiler: ./configure --prefix=/home/CppUnit/1.8.0 CC=/home/SPARCworks/WS5.0/SUNWspro/SC5.0/bin/cc CXX=/home/SPARCworks/WS5.0/SUNWspro/SC5.0/bin/CC CXXFLAGS=-I/home/SPARCworks/WS5.0/SUNWspro/SC5.0/include/CC LDFLAGS=-L/home/SPARCworks/WS5.0/SUNWspro/SC5.0/lib LIBS='-lCstd' CFLAGS=-I/home/SPARCworks/WS5.0/SUNWspro/SC5.0/include/cc It configures and the make runs fine, but make check failes: % make check Making check in src Making check in cppunit Making check in include Making check in cppunit Making check in extensions Making check in ui Making check in text Making check in mfc Making check in qt Making check in examples Making check in hierarchy make hierarchy source='BoardGame.cpp' object='BoardGame.o' libtool=no \ depfile='.deps/BoardGame.Po' tmpdepfile='.deps/BoardGame.TPo' \ depmode=none /bin/sh ../../config/depcomp \ /home/SPARCworks/WS5.0/SUNWspro/SC5.0/bin/CC -DHAVE_CONFIG_H -I. -I. -I../.. /config -I../../include -I../../include -I/home/SPARCworks/WS5.0/SUNWspr o/SC5.0/include/CC -c -o BoardGame.o `test -f BoardGame.cpp || echo './'`BoardGame.cpp source='Chess.cpp' object='Chess.o' libtool=no \ depfile='.deps/Chess.Po' tmpdepfile='.deps/Chess.TPo' \ depmode=none /bin/sh ../../config/depcomp \ /home/SPARCworks/WS5.0/SUNWspro/SC5.0/bin/CC -DHAVE_CONFIG_H -I. -I. -I../.. /config -I../../include -I../../include -I/home/SPARCworks/WS5.0/SUNWspr o/SC5.0/include/CC -c -o Chess.o `test -f Chess.cpp || echo './'`Chess.cpp source='main.cpp' object='main.o' libtool=no \ depfile='.deps/main.Po' tmpdepfile='.deps/main.TPo' \ depmode=none /bin/sh ../../config/depcomp \ /home/SPARCworks/WS5.0/SUNWspro/SC5.0/bin/CC -DHAVE_CONFIG_H -I. -I. -I../.. /config -I../../include -I../../include -I/home/SPARCworks/WS5.0/SUNWspr o/SC5.0/include/CC -c -o main.o `test -f main.cpp || echo './'`main.cpp "../../include/cppunit/TextTestResult.h", line 46: Warning: CppUnit::TextTestResult::addFailure hides the virtual function CppUnit::TestResult::addFailure(CppUnit::Test*, CppUnit::Exception*). "../../include/cppunit/extensions/TestSuiteBuilder.h", line 80: Error: Member templates not implemented. "BoardGameTest.h", line 12: Where: While specializing "CppUnit::TestSuiteBuilder<BoardGameTest<BoardGame>>". "BoardGameTest.h", line 12: Where: Instantiated from static BoardGameTest<BoardGame>::suite(). "main.cpp", line 21: Where: Instantiated from non-template code. 1 Error(s) and 1 Warning(s) detected. *** Error code 1 make: Fatal error: Command failed for target `main.o' Current working directory /home/CppUnit/cppunit-1.8.0/examples/hierarchy *** Error code 1 make: Fatal error: Command failed for target `check-am' Current working directory /home/CppUnit/cppunit-1.8.0/examples/hierarchy *** Error code 1 make: Fatal error: Command failed for target `check-recursive' Current working directory /home/CppUnit/cppunit-1.8.0/examples *** Error code 1 make: Fatal error: Command failed for target `check-recursive' I appreciate any comments/help. Thank you, Magne e-mail: bo...@it... |
From: David M. <dma...@ga...> - 2002-05-23 16:38:45
|
Magne, I do think 6.0 supports templates You might want to try use different options for CC, I've seen this kind of problem before. There is on option -instances ( extern static global ) Give it a try it might help. In a project I also had to use -pta ( equivalent to -template=wholeclass ). I do remember what was the exact combination, hopefully it will trigger some memories here. Hope it Helps David M. At 03:32 PM 5/22/2002 -0700, Magne Borg wrote: >Hi there, > >I have some problems building/configure cppunit for the Sun 5.0 and 6.0 >compilers. >Is cppunit compatible with these compilers? >If it is compatible, can you specify which macros I should set? > >Here is what my command line looks like when I start configure for th eSun >5.0 compiler: > >./configure --prefix=/home/CppUnit/1.8.0 >CC=/home/SPARCworks/WS5.0/SUNWspro/SC5.0/bin/cc >CXX=/home/SPARCworks/WS5.0/SUNWspro/SC5.0/bin/CC >CXXFLAGS=-I/home/SPARCworks/WS5.0/SUNWspro/SC5.0/include/CC >LDFLAGS=-L/home/SPARCworks/WS5.0/SUNWspro/SC5.0/lib LIBS='-lCstd' >CFLAGS=-I/home/SPARCworks/WS5.0/SUNWspro/SC5.0/include/cc > >It configures and the make runs fine, but make check failes: >% make check >Making check in src >Making check in cppunit >Making check in include >Making check in cppunit >Making check in extensions >Making check in ui >Making check in text >Making check in mfc >Making check in qt >Making check in examples >Making check in hierarchy >make hierarchy >source='BoardGame.cpp' object='BoardGame.o' libtool=no \ >depfile='.deps/BoardGame.Po' tmpdepfile='.deps/BoardGame.TPo' \ >depmode=none /bin/sh ../../config/depcomp \ >/home/SPARCworks/WS5.0/SUNWspro/SC5.0/bin/CC -DHAVE_CONFIG_H -I. -I. >-I../../config -I../../include >-I../../include -I/home/SPARCworks/WS5.0/SUNWspro/SC5.0/include/CC -c >-o BoardGame.o `test -f BoardGame.cpp || echo './'`BoardGame.cpp >source='Chess.cpp' object='Chess.o' libtool=no \ >depfile='.deps/Chess.Po' tmpdepfile='.deps/Chess.TPo' \ >depmode=none /bin/sh ../../config/depcomp \ >/home/SPARCworks/WS5.0/SUNWspro/SC5.0/bin/CC -DHAVE_CONFIG_H -I. -I. >-I../../config -I../../include >-I../../include -I/home/SPARCworks/WS5.0/SUNWspro/SC5.0/include/CC -c >-o Chess.o `test -f Chess.cpp || echo './'`Chess.cpp >source='main.cpp' object='main.o' libtool=no \ >depfile='.deps/main.Po' tmpdepfile='.deps/main.TPo' \ >depmode=none /bin/sh ../../config/depcomp \ >/home/SPARCworks/WS5.0/SUNWspro/SC5.0/bin/CC -DHAVE_CONFIG_H -I. -I. >-I../../config -I../../include >-I../../include -I/home/SPARCworks/WS5.0/SUNWspro/SC5.0/include/CC -c >-o main.o `test -f main.cpp || echo './'`main.cpp >"../../include/cppunit/TextTestResult.h", line 46: Warning: >CppUnit::TextTestResult::addFailure hides the virtual function >CppUnit::TestResult::addFailure(CppUnit::Test*, CppUnit::Exception*). >"../../include/cppunit/extensions/TestSuiteBuilder.h", line 80: Error: >Member templates not implemented. >"BoardGameTest.h", line 12: Where: While specializing >"CppUnit::TestSuiteBuilder<BoardGameTest<BoardGame>>". >"BoardGameTest.h", line 12: Where: Instantiated from static >BoardGameTest<BoardGame>::suite(). >"main.cpp", line 21: Where: Instantiated from non-template code. >1 Error(s) and 1 Warning(s) detected. >*** Error code 1 >make: Fatal error: Command failed for target `main.o' >Current working directory /home/CppUnit/cppunit-1.8.0/examples/hierarchy >*** Error code 1 >make: Fatal error: Command failed for target `check-am' >Current working directory /home/CppUnit/cppunit-1.8.0/examples/hierarchy >*** Error code 1 >make: Fatal error: Command failed for target `check-recursive' >Current working directory /home/CppUnit/cppunit-1.8.0/examples >*** Error code 1 >make: Fatal error: Command failed for target `check-recursive' >I appreciate any comments/help. > >Thank you, >Magne > >e-mail: <mailto:bo...@it...>bo...@it... > David Marcombes - Project Engineer WesternGeco - LTeC::MAP dma...@ga... |
From: Lavoie P. <la...@yu...> - 2002-05-24 14:55:34
|
David Marcombes wrote: > Magne, > > I do think 6.0 supports templates > > You might want to try use different options for CC, I've seen this > kind of problem before. There is on option -instances ( extern static > global ) Give it a try it might help. In a project I also had to use > -pta ( equivalent to -template=wholeclass ). > I do remember what was the exact combination, hopefully it will > trigger some memories here. > > Hope it Helps > > David M. > I concur with David, I checked my old configuration files and I have something like the following inside the configure.in if test "$CXX" = CC; then case "$target_os" in solaris*) CXXFLAGS=$CXXFLAGS" -pta" complex_lib="-lcomplex" clean_list="-r Templates.DB" ;; irix*) CXXFLAGS=$CXXFLAGS" -pta -n32 -64" complex_lib="-lcomplex" clean_list="-r Templates.DB ii_files" ;; esac The -pta is pretty much required when you generate a library. Phil |
From: Magne B. <bo...@it...> - 2002-05-24 16:08:19
|
Thank you all for the helpful information. I was able to build cppunit for Sun 6.0 by adding the -pta and -instances=static options. However, when I do a "make check" it starts printing "Output line too long." and I have to kill it after a while. But after doing a "make install" I am able to use the cppunit library, so it seems like it was able to build fine. Cppunit will not work with Sun 5.0 because Sun 5.0 doesn't support member templates. Thanks, Magne -----Original Message----- From: Lavoie Philippe [mailto:la...@yu...] Sent: Friday, May 24, 2002 7:54 AM To: David Marcombes Cc: bo...@it...; cpp...@li... Subject: Re: [Cppunit-devel] Building cppunit for Sun 5.0 and 6.0 compilers David Marcombes wrote: Magne, I do think 6.0 supports templates You might want to try use different options for CC, I've seen this kind of problem before. There is on option -instances ( extern static global ) Give it a try it might help. In a project I also had to use -pta ( equivalent to -template=wholeclass ). I do remember what was the exact combination, hopefully it will trigger some memories here. Hope it Helps David M. I concur with David, I checked my old configuration files and I have something like the following inside the configure.in if test "$CXX" = CC; then case "$target_os" in solaris*) CXXFLAGS=$CXXFLAGS" -pta" complex_lib="-lcomplex" clean_list="-r Templates.DB" ;; irix*) CXXFLAGS=$CXXFLAGS" -pta -n32 -64" complex_lib="-lcomplex" clean_list="-r Templates.DB ii_files" ;; esac The -pta is pretty much required when you generate a library. Phil |
From: Baptiste L. <gai...@fr...> - 2002-06-01 11:39:05
|
I've added the following to install-unix. Let me know if it is enough: Solaris/Sun 6.0 compiler ------------------------ Sun 6.0 compiler requires the "-pta -instances=3Dstatic" options. 'make check' has been reported to fail to build, but 'make install' = works. ----- Original Message -----=20 From: Magne Borg=20 To: 'Lavoie Philippe' ; 'David Marcombes'=20 Cc: cpp...@li...=20 Sent: Friday, May 24, 2002 6:06 PM Subject: RE: [Cppunit-devel] Building cppunit for Sun 5.0 and 6.0 = compilers Thank you all for the helpful information. =20 I was able to build cppunit for Sun 6.0 by adding the -pta and = -instances=3Dstatic options. However, when I do a "make check" it starts printing "Output line too = long." and I have to kill it after a while. But after doing a "make install" I am able to use the cppunit library, = so it seems like it was able to build fine. =20 Cppunit will not work with Sun 5.0 because Sun 5.0 doesn't support = member templates. =20 Thanks, Magne -----Original Message----- From: Lavoie Philippe [mailto:la...@yu...] Sent: Friday, May 24, 2002 7:54 AM To: David Marcombes Cc: bo...@it...; cpp...@li... Subject: Re: [Cppunit-devel] Building cppunit for Sun 5.0 and 6.0 = compilers David Marcombes wrote: Magne, I do think 6.0 supports templates You might want to try use different options for CC, I've seen this = kind of problem before. There is on option -instances ( extern static = global ) Give it a try it might help. In a project I also had to use = -pta ( equivalent to -template=3Dwholeclass ). I do remember what was the exact combination, hopefully it will = trigger some memories here. Hope it Helps David M. I concur with David, I checked my old configuration files and I have = something like the following inside the configure.in if test "$CXX" =3D CC; then case "$target_os" in solaris*) CXXFLAGS=3D$CXXFLAGS" -pta" complex_lib=3D"-lcomplex" clean_list=3D"-r Templates.DB" ;; irix*) CXXFLAGS=3D$CXXFLAGS" -pta -n32 -64" complex_lib=3D"-lcomplex" clean_list=3D"-r Templates.DB ii_files" ;; esac The -pta is pretty much required when you generate a library.=20 Phil |