[GRASS-dev] issues building translations in GRASS 7

Maciej Sieczka msieczka at sieczka.org
Mon Mar 31 12:02:33 PDT 2014


Hi,

In trunk and releasebranch_7_0 make quits with an error as below 
building translations in pl_PL.utf8 locale:

---
$ make
Creating translations (= 'make mo')
make[1]: Wejście do katalogu 
'/home/pok/aur/grass70-svn/src/grass70-svn/locale'
msgfmt --statistics -o 
/home/pok/aur/grass70-svn/src/grass70-svn/dist.x86_64-unknown-linux-gnu/locale/de/LC_MESSAGES/grassmods.mo 
po/grassmods_de.po
po/grassmods_de.po:8901: podwójna definicja komunikatu...
po/grassmods_de.po:1159: ...to jest położenie pierwszej definicji
msgfmt: znaleziono 1 błąd krytyczny
Makefile:94: polecenia dla obiektu 
'/home/pok/aur/grass70-svn/src/grass70-svn/dist.x86_64-unknown-linux-gnu/locale/de/LC_MESSAGES/grassmods.mo' 
nie powiodły się
make[1]: *** 
[/home/pok/aur/grass70-svn/src/grass70-svn/dist.x86_64-unknown-linux-gnu/locale/de/LC_MESSAGES/grassmods.mo] 
Błąd 1
make[1]: Opuszczenie katalogu 
'/home/pok/aur/grass70-svn/src/grass70-svn/locale'
Creating translation statistics (= 'make statistics')
make[1]: Wejście do katalogu 
'/home/pok/aur/grass70-svn/src/grass70-svn/locale'
GISBASE="/home/pok/aur/grass70-svn/src/grass70-svn/dist.x86_64-unknown-linux-gnu" 
python ./grass_po_stats.py
Traceback (most recent call last):
   File "./grass_po_stats.py", line 154, in <module>
     sys.exit(main(directory, outfile))
   File "./grass_po_stats.py", line 144, in main
     stats = get_stats(languages, in_dirpath)
   File "./grass_po_stats.py", line 118, in get_stats
     read_msgfmt_statistics(msg, lgood, lfuzzy, lbad)
   File "./grass_po_stats.py", line 65, in read_msgfmt_statistics
     val = int(o.split(' ')[0])
ValueError: invalid literal for int() with base 10: 
'po/grassmods_el.po:8979:'
Makefile:86: polecenia dla obiektu 'statistics' nie powiodły się
make[1]: *** [statistics] Błąd 1
make[1]: Opuszczenie katalogu 
'/home/pok/aur/grass70-svn/src/grass70-svn/locale'
Makefile:9: polecenia dla obiektu 'default' nie powiodły się
make: *** [default] Błąd 2
---

With C locale enforced compilation passes as follows, though with some 
complaints about grassmods_de.po:

---
$ make
Creating translations (= 'make mo')
make[1]: Entering directory '/home/pok/aur/grass7-svn/src/grass7-svn/locale'
msgfmt --statistics -o 
/home/pok/aur/grass7-svn/src/grass7-svn/dist.x86_64-unknown-linux-gnu/locale/de/LC_MESSAGES/grassmods.mo 
po/grassmods_de.po
po/grassmods_de.po:8901: duplicate message definition...
po/grassmods_de.po:1159: ...this is the location of the first definition
msgfmt: found 1 fatal error
Makefile:94: recipe for target 
'/home/pok/aur/grass7-svn/src/grass7-svn/dist.x86_64-unknown-linux-gnu/locale/de/LC_MESSAGES/grassmods.mo' 
failed
make[1]: *** 
[/home/pok/aur/grass7-svn/src/grass7-svn/dist.x86_64-unknown-linux-gnu/locale/de/LC_MESSAGES/grassmods.mo] 
Error 1
make[1]: Leaving directory '/home/pok/aur/grass7-svn/src/grass7-svn/locale'
Creating translation statistics (= 'make statistics')
make[1]: Entering directory '/home/pok/aur/grass7-svn/src/grass7-svn/locale'
GISBASE="/home/pok/aur/grass7-svn/src/grass7-svn/dist.x86_64-unknown-linux-gnu" 
python ./grass_po_stats.py
WARNING: file <grassmods_el.po> has some problems: 
<po/grassmods_el.po:8979: duplicate message definition...
po/grassmods_el.po:1156: ...this is the location of the first definition
msgfmt: found 1 fatal error>
WARNING: file <grassmods_zh.po> has some problems: 
<po/grassmods_zh.po:9411: duplicate message definition...
po/grassmods_zh.po:1179: ...this is the location of the first definition
msgfmt: found 1 fatal error>
WARNING: file <grassmods_pt_br.po> has some problems: 
<po/grassmods_pt_br.po:9541: duplicate message definition...
po/grassmods_pt_br.po:1191: ...this is the location of the first definition
msgfmt: found 1 fatal error>
WARNING: file <grassmods_vi.po> has some problems: 
<po/grassmods_vi.po:9512: duplicate message definition...
po/grassmods_vi.po:1176: ...this is the location of the first definition
msgfmt: found 1 fatal error>
WARNING: file <grassmods_it.po> has some problems: 
<po/grassmods_it.po:9407: duplicate message definition...
po/grassmods_it.po:1190: ...this is the location of the first definition
msgfmt: found 1 fatal error>
WARNING: file <grassmods_ar.po> has some problems: 
<po/grassmods_ar.po:9315: duplicate message definition...
po/grassmods_ar.po:1177: ...this is the location of the first definition
msgfmt: found 1 fatal error>
WARNING: file <grassmods_cs.po> has some problems: 
<po/grassmods_cs.po:9489: duplicate message definition...
po/grassmods_cs.po:1181: ...this is the location of the first definition
msgfmt: found 1 fatal error>
WARNING: file <grassmods_es.po> has some problems: 
<po/grassmods_es.po:9540: duplicate message definition...
po/grassmods_es.po:1190: ...this is the location of the first definition
msgfmt: found 1 fatal error>
WARNING: file <grassmods_ru.po> has some problems: 
<po/grassmods_ru.po:9488: duplicate message definition...
po/grassmods_ru.po:1177: ...this is the location of the first definition
msgfmt: found 1 fatal error>
WARNING: file <grassmods_pt.po> has some problems: 
<po/grassmods_pt.po:9595: duplicate message definition...
po/grassmods_pt.po:1193: ...this is the location of the first definition
msgfmt: found 1 fatal error>
WARNING: file <grassmods_tr.po> has some problems: 
<po/grassmods_tr.po:9134: duplicate message definition...
po/grassmods_tr.po:1173: ...this is the location of the first definition
msgfmt: found 1 fatal error>
WARNING: file <grassmods_lv.po> has some problems: 
<po/grassmods_lv.po:9266: duplicate message definition...
po/grassmods_lv.po:1176: ...this is the location of the first definition
msgfmt: found 1 fatal error>
WARNING: file <grassmods_th.po> has some problems: 
<po/grassmods_th.po:9367: duplicate message definition...
po/grassmods_th.po:1175: ...this is the location of the first definition
msgfmt: found 1 fatal error>
WARNING: file <grassmods_ro.po> has some problems: 
<po/grassmods_ro.po:8839: duplicate message definition...
po/grassmods_ro.po:1131: ...this is the location of the first definition
msgfmt: found 1 fatal error>
WARNING: file <grassmods_pl.po> has some problems: 
<po/grassmods_pl.po:9249: duplicate message definition...
po/grassmods_pl.po:1179: ...this is the location of the first definition
msgfmt: found 1 fatal error>
WARNING: file <grassmods_fr.po> has some problems: 
<po/grassmods_fr.po:10003: duplicate message definition...
po/grassmods_fr.po:1212: ...this is the location of the first definition
msgfmt: found 1 fatal error>
WARNING: file <grassmods_de.po> has some problems: 
<po/grassmods_de.po:8901: duplicate message definition...
po/grassmods_de.po:1159: ...this is the location of the first definition
msgfmt: found 1 fatal error>
WARNING: file <grassmods_ja.po> has some problems: 
<po/grassmods_ja.po:9334: duplicate message definition...
po/grassmods_ja.po:1181: ...this is the location of the first definition
msgfmt: found 1 fatal error>
WARNING: file <grassmods_ko.po> has some problems: 
<po/grassmods_ko.po:9051: duplicate message definition...
po/grassmods_ko.po:1150: ...this is the location of the first definition
msgfmt: found 1 fatal error>
WARNING: file <grassmods_sl.po> has some problems: 
<po/grassmods_sl.po:9382: duplicate message definition...
po/grassmods_sl.po:1186: ...this is the location of the first definition
msgfmt: found 1 fatal error>
make[1]: Leaving directory '/home/pok/aur/grass7-svn/src/grass7-svn/locale'
---

This is Arch Linux x86_64. Can anybody reproduce this behavior on other 
platforms?

-- 
Maciej Sieczka
http://www.sieczka.org


More information about the grass-dev mailing list