giellalt / bugzilla-dummy

0 stars 0 forks source link

The changes in Java and Saxon configuration has broken xml-to-lexc conversion on MacOSX (Bugzilla Bug 1502) #1431

Closed albbas closed 11 years ago

albbas commented 11 years ago

This issue was created automatically with bugzilla2github

Bugzilla Bug 1502

Date: 2012-11-05T19:41:03+01:00 From: Jack Rueter <> To: Tommi A Pirinen <> CC: sjur.n.moshagen, trond.trosterud

Blocker for: #1497 Last updated: 2012-11-06T15:47:09+01:00

albbas commented 11 years ago

Comment 7308

Date: 2012-11-05 19:41:03 +0100 From: Jack Rueter <>

after cd mdf ./autogen.sh ./configure --with-hfst make

this also happened in izh, mhr, mrj, kca...

++ twolc> save-binary mdf-phon.xfst opening "mdf-phon.xfst" Writing "mdf-phon.xfst" twolc> quit Bye! Making all in morphology GEN stems/adjectives.lexc /bin/sh: no: command not found make[2]: [stems/adjectives.lexc] Error 127 make[1]: [all-recursive] Error 1 make: *** [all-recursive] Error 1

++

albbas commented 11 years ago

Comment 7310

Date: 2012-11-06 07:48:27 +0100 From: Sjur Nørstebø Moshagen <>

I got the same problem. It was resolved by deleting all files, svn up, and reconfigure. Try, and report back. Remember to commit any changes (or move the files out of the lang dir) before deleting the lang dir.

albbas commented 11 years ago

Comment 7312

Date: 2012-11-06 08:47:44 +0100 From: Jack Rueter <>

after deleting the langs/izh directory cd main

svn up

langs/izh was restored

cd izh

./autogen.sh ./configure --with-hfst make

++ :izh jackrueter$ ./autogen.sh && ./configure --with-hfst && make Initial automake setup of izh checking for a BSD-compatible install... /usr/bin/install -c checking whether build environment is sane... yes checking for a thread-safe mkdir -p... build-aux/install-sh -c -d checking for gawk... no checking for mawk... no checking for nawk... no checking for awk... awk checking whether make sets $(MAKE)... yes checking whether make supports nested variables... yes checking for a Python interpreter with version >= 3.1... python3.2 checking for python3.2... /opt/local/bin/python3.2 checking for python3.2 version... 3.2 checking for python3.2 platform... darwin checking for python3.2 script directory... ${prefix}/lib/python3.2/site-packages checking for python3.2 extension module directory... ${exec_prefix}/lib/python3.2/site-packages checking python3.2 module: yaml... yes checking Whether to enable yaml-based test... yes checking for zip... /usr/bin/zip checking for gt-version.sh... false checking for hfst-info... /usr/local/bin/hfst-info checking for hfst-compose... /usr/local/bin/hfst-compose checking for hfst-compose-intersect... /usr/local/bin/hfst-compose-intersect checking for hfst-minimize... /usr/local/bin/hfst-minimize checking for hfst-conjunct... /usr/local/bin/hfst-conjunct checking for hfst-disjunct... /usr/local/bin/hfst-disjunct checking for hfst-fst2fst... /usr/local/bin/hfst-fst2fst checking for hfst-invert... /usr/local/bin/hfst-invert checking for hfst-lexc... /usr/local/bin/hfst-lexc checking for hfst-lookup... /usr/local/bin/hfst-lookup checking for hfst-minimize... /usr/local/bin/hfst-minimize checking for hfst-proc... /usr/local/bin/hfst-proc checking for hfst-project... /usr/local/bin/hfst-project checking for hfst-regexp2fst... /usr/local/bin/hfst-regexp2fst checking for hfst-repeat... /usr/local/bin/hfst-repeat checking for hfst-split... /usr/local/bin/hfst-split checking for hfst-minimize... /usr/local/bin/hfst-minimize checking for hfst-minimize... /usr/local/bin/hfst-minimize checking for hfst-twolc... /usr/local/bin/hfst-twolc checking for hfst-txt2fst... /usr/local/bin/hfst-txt2fst checking for hfst-xfst... /usr/local/bin/hfst-xfst checking hfst is at least 3.3.14... yes checking for printf... /usr/bin/printf checking for xfst... /Users/jackrueter/bin/xfst checking for twolc... /Users/jackrueter/bin/twolc checking for lexc... /Users/jackrueter/bin/lexc checking for lookup... /Users/jackrueter/bin/lookup checking whether we can enable xfst building... gt_prog_xfst checking for cg-comp... /opt/local/bin/cg-comp checking whether we can enable vislcg3 building... yes checking for saxonb-xslt... no checking for java... /usr/bin/java checking whether we can enable xslt2 transformations... gt_prog_saxon checking that generated files are newer than configure... done configure: creating ./config.status config.status: creating Makefile config.status: creating src/Makefile config.status: creating src/filters/Makefile config.status: creating src/hyphenation/Makefile config.status: creating src/morphology/Makefile config.status: creating src/orthography/Makefile config.status: creating src/phonetics/Makefile config.status: creating src/phonology/Makefile config.status: creating src/syntax/Makefile config.status: creating src/transcriptions/Makefile config.status: creating doc/Makefile config.status: creating test/Makefile config.status: creating test/src/Makefile config.status: creating test/src/morphology/Makefile config.status: creating test/src/phonology/Makefile config.status: creating test/src/syntax/Makefile config.status: creating test/tools/Makefile config.status: creating test/tools/spellcheckers/Makefile config.status: creating tools/Makefile config.status: creating tools/spellcheckers/Makefile config.status: creating tools/spellcheckers/hfst/Makefile config.status: creating test/src/morphology/run-gt-norm-yaml-testcases.sh config.status: creating test/src/morphology/run-gt-desc-yaml-testcases.sh config.status: creating test/src/morphology/generate-noun-lemmas.sh -- Building gtlangs-izh 20110617:

Compiling the izh language.

CDPATH="${ZSH_VERSION+.}:" && cd . && /bin/sh /Users/jackrueter/Languages/gtsvn/langs/izh/build-aux/missing --run autoconf Making all in .

Compiling the izh language.

CDPATH="${ZSH_VERSION+.}:" && cd . && /bin/sh /Users/jackrueter/Languages/gtsvn/langs/izh/build-aux/missing --run autoconf make[1]: Nothing to be done for all-am'. Making all in src Making all in phonology make[2]: Nothing to be done forall'. Making all in morphology GEN stems/adverbs.lexc /bin/sh: no: command not found make[2]: [stems/adverbs.lexc] Error 127 make[1]: [all-recursive] Error 1 make: *** [all-recursive] Error 1

++

Nothing has changed since last night.

albbas commented 11 years ago

Comment 7313

Date: 2012-11-06 09:15:25 +0100 From: Sjur Nørstebø Moshagen <>

Ah - now I know what this is all about. It relates to Tommi's work on a proper and portable configuration for the java/xslt processing of the xml lexicon files.

The first step was committed yesterday, with the intention that proper autotools configuration for Saxon should be in place for Debian, whereas things should work as before in all other cases. It didn't go that well.

I'll set Tommi as the responsible, but will also look into this myself.

albbas commented 11 years ago

Comment 7314

Date: 2012-11-06 09:34:45 +0100 From: Sjur Nørstebø Moshagen <>

Here are some more details for Tommi:

Making verbosely reveals this:

$ make V=1 [...]

Making all in morphology no -xsl:/Users/sjur/langtech/main/gtcore/scripts/xsl/generate_lex-fileVM.xsl /Users/sjur/langtech/main/langs/izh/src/morphology/stems/adjectives.xml \ inFile=/Users/sjur/langtech/main/langs/izh/src/morphology/stems/adjectives.xml > stems/adjectives.lexc /bin/sh: no: command not found make[2]: *** [stems/adjectives.lexc] Error 127

It looks like it tries to apply the Debian Saxon shell script instead of the fallback, old-style direct call.

albbas commented 11 years ago

Comment 7319

Date: 2012-11-06 13:43:44 +0100 From: Jack Rueter <>

after installing the latest version of Saxon: saxon @9.4.0.3_0 on my MacBook Pro Snow leopard

manually removing izh svn up restarting terminal

./autogen.sh ./configure --with-hfst make

++ ... Done. twolc> save-binary izh-phon.xfst opening "izh-phon.xfst" Writing "izh-phon.xfst" twolc> quit Bye! Making all in morphology GEN izh.lexc.hfst /usr/local/bin/hfst-lexc: warning: multiple file handling is not supported by all backends; concatenating to temporary file /usr/local/bin/hfst-lexc: fseek failedInvalid argument make[2]: [izh.lexc.hfst] Error 1 make[1]: [all-recursive] Error 1 make: *** [all-recursive] Error 1

++

It stops in the same place, but the complaint is different.

Invalid argument

albbas commented 11 years ago

Comment 7320

Date: 2012-11-06 14:46:10 +0100 From: Jack Rueter <>

The latest version of hfst3 revision 2826

Error back to what it was before

++ ... Done. twolc> save-binary izh-phon.xfst opening "izh-phon.xfst" Writing "izh-phon.xfst" twolc> quit Bye! Making all in morphology GEN stems/adjectives.lexc /bin/sh: no: command not found make[2]: [stems/adjectives.lexc] Error 127 make[1]: [all-recursive] Error 1 make: *** [all-recursive] Error 1

++

albbas commented 11 years ago

Comment 7321

Date: 2012-11-06 15:05:54 +0100 From: Jack Rueter <>

cd izh

./autogen.sh ./configure --with-hfst make

++ ... Making all in syntax GEN disambiguation.bin dyld: Library not loaded: /opt/local/lib/libicuuc.48.dylib Referenced from: /opt/local/bin/cg-comp Reason: image not found /bin/sh: line 1: 22890 Trace/BPT trap /opt/local/bin/cg-comp disambiguation.cg3 disambiguation.bin make[2]: [disambiguation.bin] Error 133 make[1]: [all-recursive] Error 1 make: *** [all-recursive] Error 1

++

albbas commented 11 years ago

Comment 7322

Date: 2012-11-06 15:12:49 +0100 From: Sjur Nørstebø Moshagen <>

Thanks to Tommi's changes in r 65061, applied to all languages in r 65066, xml conversion is now back to normal (unless you are on Debian, in which case it is all new). Ready to close?

albbas commented 11 years ago

Comment 7323

Date: 2012-11-06 15:14:27 +0100 From: Sjur Nørstebø Moshagen <>

(In reply to comment #7)

dyld: Library not loaded: /opt/local/lib/libicuuc.48.dylib Referenced from: /opt/local/bin/cg-comp Reason: image not found /bin/sh: line 1: 22890 Trace/BPT trap /opt/local/bin/cg-comp disambiguation.cg3 disambiguation.bin

This has nothing to do with the xml conversion, and should not be discussed in this bug. Also, this is not a bug, but a problem on the local machine. It can probably be fixed by recompiling vislcg3 anew.