Hi there,

I am cross compiling vim from the git repository I just checked out.

It breaks when the sjiscorr is built for a ARM and the build process tries
to execute on my x86 host.

I am cross compiling on x86 to a ARMv6.

I was able to work around the issue with a simple patch work.

Obviously this is not a final fix but just a heads up.



ORIGINAL ISSUE:

...
iconv -f utf-8 -t cp932 ja.po | ./sjiscorr > ja.sjis.po
/bin/sh: ./sjiscorr: cannot execute binary file: Exec format error
Makefile:200: recipe for target 'ja.sjis.po' failed
make[2]: *** [ja.sjis.po] Error 126
make[2]: Leaving directory 'vim/src/po'
Makefile:1769: recipe for target 'languages' failed
make[1]: *** [languages] Error 2
make[1]: Leaving directory 'vim/src'
Makefile:26: recipe for target 'first' failed
make: *** [first] Error 2




MY WORK AROUND:

$ git diff Makefile
diff --git a/src/po/Makefile b/src/po/Makefile
index d9aa834..272695e 100644
--- a/src/po/Makefile
+++ b/src/po/Makefile
@@ -202,7 +202,8 @@ ja.sjis.po: ja.po
        iconv -f utf-8 -t cp932 ja.po | ./sjiscorr > ja.sjis.po

 sjiscorr: sjiscorr.c
-       $(CC) -o sjiscorr sjiscorr.c
+       #$(CC) -o sjiscorr sjiscorr.c
+       gcc -o sjiscorr sjiscorr.c

 ja.euc-jp.po: ja.po
        iconv -f utf-8 -t euc-jp ja.po | \






THE ORIGINAL GIT SOURCE CODE LOG:

commit b58988b832b69b52dfefeca338ea4802d0c4cdca
Author: Bram Moolenaar <b...@vim.org>
Date:   Tue Sep 1 21:25:44 2015 +0200

    patch 7.4.854
    Problem:    Missing information about runtime files.
    Solution:   Add section about runtime files. (Christian Brabandt)

-- 
-- 
You received this message from the "vim_dev" maillist.
Do not top-post! Type your reply below the text you are replying to.
For more information, visit http://www.vim.org/maillist.php

--- 
You received this message because you are subscribed to the Google Groups 
"vim_dev" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to vim_dev+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Raspunde prin e-mail lui