mingw-cross-env-list
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Mingw-cross-env-list] Compiling bash from source


From: Allen Choong
Subject: [Mingw-cross-env-list] Compiling bash from source
Date: Wed, 28 Mar 2012 23:01:24 +0800

I tried to use mingw-cross-env to compile bash from source, intended to build latest bash. The bash version is 4.2. After configure, when "make", the following error produced,
rm -f mksyntax.exe
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
In file included from ../mksyntax.c:31:0:
/usr/include/unistd.h:275:21: error: two or more data types in declaration specifiers
make: *** [mksyntax.exe] Error 1

With "make -d",
...
Invoking recipe from Makefile:654 to update target `mksyntax.exe'.
rm -f mksyntax.exe
Putting child 0x8c7ec20 (mksyntax.exe) PID 32644 on the chain.
Live child 0x8c7ec20 (mksyntax.exe) PID 32644
Reaping winning child 0x8c7ec20 PID 32644
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
Live child 0x8c7ec20 (mksyntax.exe) PID 32645
In file included from ../mksyntax.c:31:0:
/usr/include/unistd.h:275:21: error: two or more data types in declaration specifiers
Reaping losing child 0x8c7ec20 PID 32645
make: *** [mksyntax.exe] Error 1
Removing child 0x8c7ec20 PID 32645 from chain.

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.

For your information, my build environment is Arch Linux with gcc 4.6.3.

reply via email to

[Prev in Thread] Current Thread [Next in Thread]