apertium / apertium-sme-nob

Apertium translation pair for Northern Sámi and Norwegian Bokmål
http://wiki.apertium.org/wiki/Apertium-sme-nob
GNU General Public License v2.0
4 stars 0 forks source link

Build failure in non-parallel build #3

Open sanvila opened 1 year ago

sanvila commented 1 year ago

Hello. While building this package under Debian (version 0.6.1+ds.1-2) I found this:

  [...]
  HFST2TXT generator-mt-apertium-norm.att
  GZIP     generator-mt-apertium-norm.att.gz
  CP       apertium-sme.sme.RL.att.gz
  GEN      disambiguator-mt-gt.cg3
  CG3COMP  disambiguator-mt-gt.bin
disambiguator-mt-gt.cg3: Error: Cannot stat semsets.cg3 due to error -1 - bailing out!
make[6]: *** [Makefile:1425: disambiguator-mt-gt.bin] Error 1
rm generator-mt-apertium-norm.tmp.hfst disambiguator-mt-gt.cg3 generator-mt-apertium-norm.att analyser-mt-apertium-desc.und.att generator-mt-apertium-norm.hfst analyser-mt-apertium-desc.und.tmp1.hfst analyser-mt-apertium-desc.und.hfst analyser-mt-gt-desc.und.hfst analyser-mt-apertium-desc.und.tmp.hfst analyser-mt-apertium-desc.und.att.gz
make[6]: Leaving directory '/<<PKGBUILDDIR>>/giella-sme-0.1.0/tools/mt/apertium'

I think it's a Makefile bug of some sort.

As I believe it is not a bug introduced by Debian, I'm reporting it here. To reproduce the error, try to build with a single CPU, maybe "make -j1" is enough.

Thanks.

Trondtr commented 1 year ago

Things should work out-of-the-box, so this is smething to look at. What has happened is that the compiling routine has not found the file semsets.cg3 (needed only for sme). But I do not quite see why, as the file is in place and (seen by its ability to be compiled) also syntactically well-formed:

uit-mac-443:lang-sme ttr000$ ls -l src/cg3/semsets.*
-rw-r--r--  1 ttr000  staff  19281  3 nov  2021 src/cg3/semsets.bin
-rw-r--r--  1 ttr000  staff  25005 18 aug  2021 src/cg3/semsets.cg3
sanvila commented 1 year ago

Hi. I forgot to say that this happens in Debian stable (Debian 11, aka bullseye). The way it fails in Debian unstable is different and it's reported here:

https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=1008348

But it's version 0.6.1 in both cases.

This is indeed very subtle and very odd, so if you could not reproduce it easily, please contact me privately (add "at debian.org" to my gitbub username) and I will gladly prepare a virtual machine for you in which this happens.

Thanks.

TinoDidriksen commented 1 year ago

I am the Debian maintainer for all Apertium packages. The existing release is severely bitrotted, but making a new release is a lot of work. It requires a release of https://github.com/giellalt/lang-sme which in turn requires a release of giella-core, giella-shared-mul, and giella-shared-smi. Probably also divvun-corpustools and divvun-gramcheck. And checking there are no regressions.

I'm considering pushing nightly state to Debian for the last few failing Apertium packages, or removing them from Debian entirely.