[ http://issues.apache.org/jira/browse/XALANC-342?page=comments#action_12423953 ] Max Polk commented on XALANC-342: ---------------------------------
Here's a workaround that worked for me on RHEL, ES release 2.1, gcc 2.96, Xalan 1.10. After running "runConfigure -plinux -cgcc -xg++", edit Makefile.incl, and just after each "-O2" type in "-fno-default-inline" so that it ends up like this: CFLAGS = -O2 -fno-default-inline -DNDEBUG CXXFLAGS = -O2 -fno-default-inline -DNDEBUG -fno-elide-constructors This tweak to the optimization fixes the problem, the compile then works. > Failed to build Xalan1.6 on Red Has Linux 7.2 using GNU 2.96 > ------------------------------------------------------------ > > Key: XALANC-342 > URL: http://issues.apache.org/jira/browse/XALANC-342 > Project: XalanC > Issue Type: Bug > Components: XalanC > Affects Versions: 1.6 > Environment: Operating System: Linux > Platform: PC > Reporter: Craig R. Just > Assigned To: Xalan Developers Mailing List > > # Compiler comes by default w/Red Hat Linux 7.2 > $ g++ -v > gcc version 2.96 20000731 (Red Hat Linux 7.2 2.96-118.7.2) > #Set the environment to the following > XML_HOME_DIR=/mff/sw/sw_linux/Linux2_i686/apache > XERCESCROOT=${XML_HOME_DIR}/xerces-c-src_2_3_0 > XALANCROOT=${XML_HOME_DIR}/xalan-C_1_6-Linux2_i686_gnu/xml-xalan/c > export XERCESCROOT > export XALANCROOT > NOTE: Built xerces w/no problems. > As per the documentation ran the following to initialize the build for > xalan on gnu complier on linux. > $ runConfigure -p linux -c gcc -x g++ > The Following Error Occurs: > g++ -O2 -DNDEBUG -fno-elide-constructors -Wall -fPIC -DLINUX - > D_REENTRANT -c -I/mff/sw/sw_linux/Linux2_i686/apache/xalan-C_1_6- > Linux2_i686_gnu/xml-xalan/c/src > -I/mff/sw/sw_linux/Linux2_i686/apache/xerces-c- > src_2_3_0/src/ -I/mff/sw/sw_linux/Linux2_i686/apache/xerces-c- > src_2_3_0/include/xercesc -I/mff/sw/sw_linux/Linux2_i686/apache/xerces-c- > src_2_3_0/include/ -o > /mff/sw/sw_linux/Linux2_i686/apache/Xalan-C_1_6-src/xml- > xalan/c/src/xalanc/obj/XPathExecutionContextDefault.o > /mff/sw/sw_linux/Linux2_i6 > 86/apache/xalan-C_1_6-Linux2_i686_gnu/xml- > xalan/c/src/xalanc/XPath/XPathExecutionContextDefault.cpp > /mff/sw/sw_linux/Linux2_i686/apache/xalan-C_1_6-Linux2_i686_gnu/xml- > xalan/c/src/xalanc/Include/XalanObjectCache.hpp: In > method `xalanc_1_6::XPathExecutionContextDefault::XPathExecutionContextDefault > (xalanc_1_6::XPathEnvSupport &, xalanc_1_6::DOMSupport &, > xalanc_1_6::XObjectFactory &, > xalanc_1_6::XalanNode *, const xalanc_1_6::NodeRefListBase *, const > xalanc_1_6::PrefixResolver *)': > /mff/sw/sw_linux/Linux2_i686/apache/xalan-C_1_6-Linux2_i686_gnu/xml- > xalan/c/src/xalanc/Include/XalanObjectCache.hpp:305: Internal > error: Segmentation fault. > Please submit a full bug report. > See <URL:http://bugzilla.redhat.com/bugzilla/> for instructions. > make: *** [/mff/sw/sw_linux/Linux2_i686/apache/Xalan-C_1_6-src/xml- > xalan/c/src/xalanc/obj/XPathExecutionContextDefault.o] Error 1 -- This message is automatically generated by JIRA. - If you think it was sent incorrectly contact one of the administrators: http://issues.apache.org/jira/secure/Administrators.jspa - For more information on JIRA, see: http://www.atlassian.com/software/jira --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
