giellalt / giella-core

Build tools and build support files as well as developer support tools for the GiellaLT repositories.
https://giellalt.uit.no
GNU General Public License v3.0
7 stars 2 forks source link

Error building gramchecker in sme #6

Closed albbas closed 11 months ago

albbas commented 3 years ago

./configure --enable-grammarchecker gives this error on my linux box:

CP final_strings.all.default.hfst
  HRGX2FST errmodel.default.hfst
  HPROJECT acceptor.default.hfst
  ZIP      se.zhfst
  GEN      se_LO-voikko-5.0.oxt
cp: klarte ikke å opprette vanlig fil 'build/5.0/voikko/3/': Ikke en mappe
make[3]: *** [Makefile:2562: se_LO-voikko-5.0.oxt] Error 1
rm easteregg.default.desktop.errorth.hfst final_strings.txt.default.hfst strings.txt.default.hfst easteregg.default.desktop.suggtxt easteregg.default.desktop.temp.hfst final_strings.all.default.hfst strings.all.default.hfst easteregg.default.desktop.analyser.hfst
make[3]: Leaving directory '/home/boerre/gut/giellalt/lang-sme/tools/spellcheckers'
make[2]: *** [Makefile:1647: all-recursive] Error 1
make[2]: Leaving directory '/home/boerre/gut/giellalt/lang-sme/tools/spellcheckers'
make[1]: *** [Makefile:431: all-recursive] Error 1
make[1]: Leaving directory '/home/boerre/gut/giellalt/lang-sme/tools'
make: *** [Makefile:535: all-recursive] Error 1

To bypass it, I have to add option --disable-hfst-desktop-spellers to the configure line.

flammie commented 3 years ago

this dir for me comes from rsync of giella-libs:

$ make V=1
...
rm -f se_LO-voikko-5.0.oxt && \
    /bin/mkdir -p build/5.0/ ; \
    if test "x" != "x" ; then \
        remdirnum=$(echo /home/flammie/giella-libs//LibreOffice-voikko/5.0/ | sed 's|https://gtsvn.uit.no/langtech/||' | tr '/' '\n' | wc -l) ; \
    fi ; \
    cd build/5.0 && \
    /usr/bin/rsync -rlpgoD   /home/flammie/giella-libs//LibreOffice-voikko/5.0/ ./ \
        $remdirnum && \
    rm -f voikko/3/*.zhfst && \
    cd ../../ && \
    cp se.zhfst build/5.0/voikko/3/ && \
    cd build/5.0 && \
    /usr/bin/zip -r   -9   ../../se_LO-voikko-5.0.oxt *

if giella-libs is not setup locallu like so, it may try to rsync from internet and fail, I ahd that problem in another bug somewhere...

albbas commented 11 months ago

We don't use giella-libs anymore, closing this one