331576717 / vim

Automatically exported from code.google.com/p/vim
0 stars 0 forks source link

cross-compiling vim fails due to uint32_t check #25

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
this bit of code in configure.in:
  AC_MSG_CHECKING([uint32_t is 32 bits])
  AC_TRY_RUN([...........],
  AC_MSG_RESULT(ok),
  AC_MSG_ERROR([WRONG!  uint32_t not defined correctly.]),
  AC_MSG_ERROR([could not compile program using uint32_t.]))

causes problems when cross-compiling in that it always fails.  the fix is to 
change that last AC_MSG_ERROR() into an AC_MSG_WARN().  if you read the 
autoconf spec, you'll see that the last arg is for cross-compiling, not for 
when the compile fails.

a simple patch by Maksim Melnikau has been posted here:
https://bugs.gentoo.org/attachment.cgi?id=243615

http://www.gnu.org/software/autoconf/manual/autoconf.html#index-AC_005fTRY_005fL
INK_005fFUNC-2135

Original issue reported on code.google.com by vapier@gmail.com on 27 Sep 2011 at 2:06

GoogleCodeExporter commented 9 years ago
fI have the same error when I try to cross-compiling vim 7.3 for a Synology NAS 
(arch 88f6281).

I tested the patch mentioned above, but I have the same error "configure: 
error: could not compile program using uint32_t."

Original comment by duvalmic...@gmail.com on 16 Jun 2013 at 3:42

GoogleCodeExporter commented 9 years ago
Fixed by 7.3.378

Original comment by chrisbr...@googlemail.com on 30 Sep 2014 at 7:31