WelcomeWelcome | FAQFAQ | DownloadsDownloads | WikiWiki

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

Offline andyj

  • Hero Member
  • *****
  • Posts: 760
Gvim build fails on 32-bit only
« on: May 03, 2019, 11:16:14 AM »
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.

Offline Juanito

  • Administrator
  • Hero Member
  • *****
  • Posts: 11111
Re: Gvim build fails on 32-bit only
« Reply #1 on: May 03, 2019, 11:03:10 PM »
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?

Offline Juanito

  • Administrator
  • Hero Member
  • *****
  • Posts: 11111
Re: Gvim build fails on 32-bit only
« Reply #2 on: May 04, 2019, 01: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: 760
Re: Gvim build fails on 32-bit only
« Reply #3 on: May 04, 2019, 07: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.

Offline Juanito

  • Administrator
  • Hero Member
  • *****
  • Posts: 11111
Re: Gvim build fails on 32-bit only
« Reply #4 on: May 04, 2019, 11:38:59 PM »
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