On Fri, Feb 11, 2022 at 09:40:12PM -0700, Kurt Mosiejczuk wrote: > http://build-failures.rhaalovely.net/sparc64/2022-02-09/textproc/docbook-utils.log
I'm reposting my earlier mail here with proper subject to keep track. We already build some ports without optimiziations on sparc64, macppc and powerpc64 to "fix" things. OpenJade is old and just a leaf port, so not much interest from my side in chasing this bug... On Thu, Feb 10, 2022 at 09:40:30PM +0000, Klemens Nanni wrote: > On Tue, Feb 08, 2022 at 09:21:16PM -0700, Kurt Mosiejczuk wrote: > > http://build-failures.rhaalovely.net/sparc64/2022-02-06/textproc/docbook-utils.log > > > SGML_SEARCH_PATH=../..:../../doc:.. \ > > jade -t sgml -i html -d ../../docbook-utils.dsl\#html \ > > -V '%use-id-as-filename%' ../../doc/docbook-utils.sgml > > Segmentation fault (core dumped) > > This is textproc/openjade segfaulting: > > #0 0x0000006f5aedf698 in Collector::Block::Block(Collector::Block*, unsigned > long, unsigned long, Collector::Object*) () from > /usr/local/lib/libostyle.so.0.0 > #1 0x0000006f5aedfdb0 in Collector::makeSpace() () from > /usr/local/lib/libostyle.so.0.0 > #2 0x0000006f5af36d54 in > OpenJade_DSSSL::Interpreter::convertNumber(OpenSP::String<unsigned int> > const&, int) () from /usr/local/lib/libostyle.so.0.0 > #3 0x0000006f5af4a710 in > OpenJade_DSSSL::SchemeParser::parseSelfEvaluating(unsigned int, > OpenJade_DSSSL::ELObj*&, OpenJade_DSSSL::SchemeParser::Token&) () from > /usr/local/lib/libostyle.so.0.0 > #4 0x0000006f5af4a988 in OpenJade_DSSSL::SchemeParser::parseDatum(unsigned > int, OpenJade_DSSSL::ELObj*&, OpenSP::Location&, > OpenJade_DSSSL::SchemeParser::Token&) () from /usr/local/lib/libostyle.so.0.0 > #5 0x0000006f5af4fa50 in > OpenJade_DSSSL::SchemeParser::parseCase(OpenSP::Owner<OpenJade_DSSSL::Expression>&) > () from /usr/local/lib/libostyle.so.0.0 > #6 0x0000006f5af4c034 in > OpenJade_DSSSL::SchemeParser::parseExpression(unsigned int, > OpenSP::Owner<OpenJade_DSSSL::Expression>&, > OpenJade_DSSSL::Identifier::SyntacticKey&, > OpenJade_DSSSL::SchemeParser::Token&) () from /usr/local/lib/libostyle.so.0.0 > #7 0x0000006f5af4f5a0 in > OpenJade_DSSSL::SchemeParser::parseBegin(OpenSP::Owner<OpenJade_DSSSL::Expression>&) > () from /usr/local/lib/libostyle.so.0.0 > #8 0x0000006f5af5145c in OpenJade_DSSSL::SchemeParser::doDefine() () from > /usr/local/lib/libostyle.so.0.0 > #9 0x0000006f5af529f0 in OpenJade_DSSSL::SchemeParser::parse() () from > /usr/local/lib/libostyle.so.0.0 > #10 0x0000006f5af58ca4 in > OpenJade_DSSSL::StyleEngine::parseSpec(OpenSP::SgmlParser&, > OpenSP::CharsetInfo const&, OpenSP::String<unsigned int> const&, > OpenSP::Messenger&) () from /usr/local/lib/libostyle.so.0.0 > #11 0x0000006f5aee1064 in OpenJade_DSSSL::DssslApp::processGrove() () from > /usr/local/lib/libostyle.so.0.0 > #12 0x0000006f800b85e8 in > OpenSP::GroveApp::generateEvents(OpenSP::ErrorCountEventHandler*) () from > /usr/local/lib/libospgrove.so.0.0 > #13 0x0000006fb7a0fd24 in > OpenSP::ParserApp::processSysid(OpenSP::String<unsigned int> const&) () from > /usr/local/lib/libosp.so.0.0 > #14 0x0000006f5aee1484 in > OpenJade_DSSSL::DssslApp::processSysid(OpenSP::String<unsigned int> const&) > () from /usr/local/lib/libostyle.so.0.0 > #15 0x0000006fb79e1ccc in OpenSP::EntityApp::processArguments(int, char**) () > from /usr/local/lib/libosp.so.0.0 > #16 0x0000006fb79cf408 in OpenSP::CmdLineApp::run(int, char**) () from > /usr/local/lib/libosp.so.0.0 > #17 0x0000006d40a028a8 in main () > > I rebuilt it with DEBUG='-g3 -O0' and its debug- package enabled, but > that made docbook-utils build fine without segfault on sparc64... I decided to not waste more time on this (openjade has more probblems), but we can still "fix" it for sparc64 like this. Regen PLIST while here. Feedback? Objections? OK? Index: textproc/docbook-utils/Makefile =================================================================== RCS file: /home/cvs/ports/textproc/docbook-utils/Makefile,v retrieving revision 1.2 diff -u -p -r1.2 Makefile --- textproc/docbook-utils/Makefile 4 Sep 2021 12:23:48 -0000 1.2 +++ textproc/docbook-utils/Makefile 11 Feb 2022 08:38:05 -0000 @@ -3,7 +3,7 @@ COMMENT= generates various output formats from DocBook SGML documents DISTNAME= docbook-utils-0.6.14 -REVISION= 0 +REVISION= 1 CATEGORIES= textproc @@ -20,7 +20,7 @@ BUILD_DEPENDS= ${RUN_DEPENDS} RUN_DEPENDS= textproc/docbook \ textproc/docbook-dsssl \ - textproc/openjade + textproc/openjade>=1.3.3pre1p9 CONFIGURE_STYLE= gnu Index: textproc/docbook-utils/pkg/PLIST =================================================================== RCS file: /home/cvs/ports/textproc/docbook-utils/pkg/PLIST,v retrieving revision 1.1.1.1 diff -u -p -r1.1.1.1 PLIST --- textproc/docbook-utils/pkg/PLIST 2 Sep 2021 20:14:58 -0000 1.1.1.1 +++ textproc/docbook-utils/pkg/PLIST 11 Feb 2022 08:44:24 -0000 @@ -40,8 +40,6 @@ share/doc/html/docbook-utils-0.6.14/intr share/doc/html/docbook-utils-0.6.14/introduction.html share/doc/html/docbook-utils-0.6.14/jw.html share/doc/html/docbook-utils-0.6.14/sgmldiff.html -share/sgml/ -share/sgml/docbook/ share/sgml/docbook/utils-0.6.14/ share/sgml/docbook/utils-0.6.14/backends/ share/sgml/docbook/utils-0.6.14/backends/dvi Index: textproc/openjade/Makefile =================================================================== RCS file: /home/cvs/ports/textproc/openjade/Makefile,v retrieving revision 1.35 diff -u -p -r1.35 Makefile --- textproc/openjade/Makefile 10 Sep 2021 17:41:30 -0000 1.35 +++ textproc/openjade/Makefile 11 Feb 2022 08:39:44 -0000 @@ -4,7 +4,7 @@ COMMENT= object-oriented DSSSL engine DISTNAME= openjade-1.3.3-pre1 PKGNAME= openjade-1.3.3pre1 -REVISION= 8 +REVISION= 9 CATEGORIES= textproc @@ -22,6 +22,11 @@ MASTER_SITES= ${MASTER_SITE_SOURCEFORGE: WANTLIB += c iconv intl m pthread ${COMPILER_LIBCXX} osp COMPILER= base-clang ports-gcc base-gcc + +.if ${MACHINE_ARCH:Msparc64} +# -O[12] make openjade segfault in textproc/docbook-utils 0.6.14 build +CXXFLAGS += -O0 +.endif LIB_DEPENDS= textproc/opensp