[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [Mingw-cross-env-list] Compiling bash from source
From: |
Volker Grabsch |
Subject: |
Re: [Mingw-cross-env-list] Compiling bash from source |
Date: |
Thu, 29 Mar 2012 13:42:37 +0200 |
User-agent: |
Mutt/1.5.21 (2010-09-15) |
Allen Choong schrieb:
> [...]
> gcc -DPROGRAM='"bash.exe"' -DCONF_HOSTTYPE='"i686"'
> -DCONF_OSTYPE='"mingw32"' -DCONF_MACHTYPE='"i686-pc-mingw32"'
> -DCONF_VENDOR='"pc"' -DLOCALEDIR='"/usr/local/share/locale"'
> -DPACKAGE='"bash"' -DSHELL -DHAVE_CONFIG_H -I. -I.. -I../include -I../lib
> -g -DCROSS_COMPILING -o mksyntax.exe ../mksyntax.c
> [...]
> /usr/include/unistd.h:275:21: error: two or more data types in declaration
> specifiers
> [...]
> Is there anyway to solve this? Because it looks like reading the "unistd.h"
> from the Linux root, not based on the installed i686-pc-mingw32 path.
That's true, but the deeper problem is that the Makefile
calls "gcc" rather than "i686-pc-mingw32-gcc". I guess
there is a bug in the bash Makefile which affects
cross-compiling.
Regards,
Volker
--
Volker Grabsch
---<<(())>>---