WelcomeWelcome | FAQFAQ | DownloadsDownloads | WikiWiki

Author Topic: Gvim build fails on 32-bit only  (Read 3258 times)

Offline andyj

  • Hero Member
  • *****
  • Posts: 1036
Gvim build fails on 32-bit only
« on: May 03, 2019, 02:16:14 PM »
Building gvim on 64-bit works just fine. On 32-bit it fails:

Code: [Select]
msgfmt --desktop -d . --template gvim.desktop.in -o gvim.desktop                                                                           
msgfmt: Cannot convert from "ISO-8859-1" to "UTF-8". msgfmt relies on iconv(). This version was built without iconv().                     

tce-fetch says it's up to date. I also noticed that glib2 32-bit no longer depends on pcre so I have some dep files to update as well.

Online Juanito

  • Administrator
  • Hero Member
  • *****
  • Posts: 14815
Re: Gvim build fails on 32-bit only
« Reply #1 on: May 04, 2019, 02:03:10 AM »
As far as I can see, glib2 has never had a dep on pcre in the 32-bit repo?

I'm surprised by the msgfmt (gettext) error, which version of gvim were you compiling?

Online Juanito

  • Administrator
  • Hero Member
  • *****
  • Posts: 14815
Re: Gvim build fails on 32-bit only
« Reply #2 on: May 04, 2019, 04:24:41 AM »
I just tested using vim81 in tc-10.x x86 - it compiles without error with and without gettext:
Code: [Select]
tce-load -i compiletc gtk3-dev [gettext]

cd vim81

CC="gcc -flto -fuse-linker-plugin -march=i486 -mtune=i686 -Os -pipe" CXX="g++ -flto -fuse-linker-plugin -march=i486 -mtune=i686 -Os -pipe -fno-exceptions -fno-rtti" ./configure --prefix=/usr/local --localstatedir=/var --sysconfdir=/usr/local/etc --mandir=/usr/local/share/man --enable-multibyte --with-tlib=ncursesw --with-x --enable-gui=gtk3

find . -name config.mk -type f -exec sed -i 's/-g -O2//g' {} \;

make [1m 28.29s]
sudo make install

Offline andyj

  • Hero Member
  • *****
  • Posts: 1036
Re: Gvim build fails on 32-bit only
« Reply #3 on: May 04, 2019, 10:10:41 PM »
At the time the most current: vim-8.1.1248.tar.gz. I didn't have a problem with older versions, I'd have to experiment to see exactly which version breaks it. I use the same build file for 32 and 64-bit.

Online Juanito

  • Administrator
  • Hero Member
  • *****
  • Posts: 14815
Re: Gvim build fails on 32-bit only
« Reply #4 on: May 05, 2019, 02:38:59 AM »
I saw the same problem with vim-8.1.1270, it seems gettext-0.19.8.1 has gained a sed since it was last compiled:
Code: [Select]
sed -e '/AppData/{N;N;p;s/\.appdata\./.metainfo./}' -i gettext-tools/its/appdata.loc
..which seems to fix the problem - updated gettext posted

Offline andyj

  • Hero Member
  • *****
  • Posts: 1036
Re: Gvim build fails on 32-bit only
« Reply #5 on: February 02, 2020, 10:38:34 AM »
It's back on TC-11 when making gvim:

Code: [Select]
msgfmt --desktop -d . --template gvim.desktop.in -o tmp_gvim.desktop
ko.po: warning: Charset "EUC-KR" is not supported. msgfmt relies on iconv(),
                and iconv() does not support "EUC-KR". 
                Installing GNU libiconv and then reinstalling GNU gettext
                would fix this problem.                 
                Continuing anyway.                                                                                                                         
msgfmt: Cannot convert from "EUC-KR" to "UTF-8". msgfmt relies on iconv(), and iconv() does not support this conversion.

Online Juanito

  • Administrator
  • Hero Member
  • *****
  • Posts: 14815
Re: Gvim build fails on 32-bit only
« Reply #6 on: February 03, 2020, 03:02:02 AM »
I get the same error with gettext alone, but things work if you compile with gettext and glibc_gconv.