[Cppunit-devel] problems making CppUnit (1.10.2) -- cross compile from hppa to ia64
Brought to you by:
blep
From: Morain, B. <bob...@hp...> - 2004-09-22 15:20:59
|
Dear CppUnit maintainers, I am having a problem compiling and linking CppUnit (1.10.2) for HP-UX = on ia64. The compile steps succeed, but the link step fails for lack of = a +DD64 options. I would appreciate any help you can offer. The = specifics follow. My build environment for HP-UX 11.31 ia64 consists of a cross-compiler = and linker running on HP-UX 11.11 hppa. I desire to compile for 64 bit. = I use the following commands: ./configure --enable-hpuxshl CC=3Dcc CXX=3DaCC = --prefix=3D$PWD/../deliver = --host=3Dia64-hp-hpux11.31.098.IA--build=3Dhppa-hp-hpux11.11 = CXXFLAGS=3D+DD64 CCFLAGS=3D+DD64 LDFLAGS=3D+DD64 make all install Unfortunately, this results in the following error at link time: /bin/sh ../../libtool --mode=3Dlink aCC +DD64 +DD64 -o libcppunit.la = -rpath /most/20040921163703/cppunit/../deliver/lib -version-info 2:0:0 = -release 1.10 AdditionalMessage.lo Asserter.lo = BeOsDynamicLibraryManager.lo BriefTestProgressListener.lo = CompilerOutputter.lo DefaultProtector.lo DynamicLibraryManager.lo = DynamicLibraryManagerException.lo Exception.lo Message.lo = RepeatedTest.lo PlugInManager.lo PlugInParameters.lo Protector.lo = ProtectorChain.lo SourceLine.lo StringTools.lo SynchronizedObject.lo = Test.lo TestAssert.lo TestCase.lo TestCaseDecorator.lo TestComposite.lo = TestDecorator.lo TestFactoryRegistry.lo TestFailure.lo TestLeaf.lo = TestNamer.lo TestPath.lo TestPlugInDefaultImpl.lo TestResult.lo = TestResultCollector.lo TestRunner.lo TestSetUp.lo TestSuccessListener.lo = TestSuite.lo TestSuiteBuilderContext.lo TextOutputter.lo = TextTestProgressListener.lo TextTestResult.lo TextTestRunner.lo = TypeInfoHelper.lo UnixDynamicLibraryManager.lo = ShlDynamicLibraryManager.lo XmlDocument.lo XmlElement.lo XmlOutputter.lo = XmlOutputterHook.lo Win32DynamicLibraryManager.lo=20 /net/amaranth.fc.hp.com/build/11.31/098.IA/icod/product/ABE/Wrappers/ld = -b +h libcppunit-1.10.so.2 -o .libs/libcppunit-1.10.so.2.0 = .libs/AdditionalMessage.o .libs/Asserter.o = .libs/BeOsDynamicLibraryManager.o .libs/BriefTestProgressListener.o = .libs/CompilerOutputter.o .libs/DefaultProtector.o = .libs/DynamicLibraryManager.o .libs/DynamicLibraryManagerException.o = .libs/Exception.o .libs/Message.o .libs/RepeatedTest.o = .libs/PlugInManager.o .libs/PlugInParameters.o .libs/Protector.o = .libs/ProtectorChain.o .libs/SourceLine.o .libs/StringTools.o = .libs/SynchronizedObject.o .libs/Test.o .libs/TestAssert.o = .libs/TestCase.o .libs/TestCaseDecorator.o .libs/TestComposite.o = .libs/TestDecorator.o .libs/TestFactoryRegistry.o .libs/TestFailure.o = .libs/TestLeaf.o .libs/TestNamer.o .libs/TestPath.o = .libs/TestPlugInDefaultImpl.o .libs/TestResult.o = .libs/TestResultCollector.o .libs/TestRunner.o .libs/TestSetUp.o = .libs/TestSuccessListener.o .libs/TestSuite.o = .libs/TestSuiteBuilderContext.o .libs/TextOutputter.o = .libs/TextTestProgressListener.o .libs/TextTestResult.o = .libs/TextTestRunner.o .libs/TypeInfoHelper.o = .libs/UnixDynamicLibraryManager.o .libs/ShlDynamicLibraryManager.o = .libs/XmlDocument.o .libs/XmlElement.o .libs/XmlOutputter.o = .libs/XmlOutputterHook.o .libs/Win32DynamicLibraryManager.o=20 ld: Mismatched Data ABI. Expected EF_IA_64_ABI64 but found None in file = /net/amaranth.fc.hp.com/build/11.31/098.IA/icod/product/ABE/usr/lib/hpux3= 2/libcres.a[memchr.o] Fatal error. =09 Stop. *** Error exit code 1 =09 *** Error exit code 1 Stop. *** Error exit code 1 =09 Stop. =09 As you can see, the +DD64 option is not passed to the actual invocation = of ld. I have tried in vain to find a way to get this option passed to = the ld, or to get configure to use aCC instead of ld (so it might uses = the CXXFLAGS). Can you give me any hints? Thanks, Bob Morain |