Byte Termite wrote:

> 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 | \

$CC is passed from the main Makefile to po/Makefile, so why does it have
the wrong value?

-- 
Mynd you, m00se bites Kan be pretty nasti ...
                 "Monty Python and the Holy Grail" PYTHON (MONTY) PICTURES LTD

 /// Bram Moolenaar -- b...@moolenaar.net -- http://www.Moolenaar.net   \\\
///        sponsor Vim, vote for features -- http://www.Vim.org/sponsor/ \\\
\\\  an exciting new programming language -- http://www.Zimbu.org        ///
 \\\            help me help AIDS victims -- http://ICCF-Holland.org    ///

-- 
-- 
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