Hi everyone,

I’m a gcc contributor (gfortran maintainer), I haven’t hacked with mingw for a 
few years, but I’m getting back on the Windows horse to try to improve our 
testsuite results and performance on this target. Things have changed a lot 
since my last working setup (using mingw32 and old msys).

I tried to install a working mingw-w64 base on top of the MSYS2 shell, on a Win 
7 64-bit virtual machine, by:

  1. running the 64-bit MSYS2 installer at https://msys2.github.io
  2. installing (with “pacman -S”) the following packages: svn make 
mingw-w64-x86_64-gcc (full list of installed packages attached below)
  3. downloading gcc trunk
  4. ../gcc-trunk/configure --prefix=/home/FX/irun 
--enable-languages=c,c++,fortran --disable-bootstrap && make

After step 4, the build dies with the following error:

make[2]: Entering directory '/home/FX/ibin/fixincludes'
gcc -c -g -O2 -D__USE_MINGW_ACCESS -W -Wall -Wwrite-strings -Wstrict-prototypes 
-Wmissing-prototypes -Wold-style-definition -Wmissing-format-attribute 
-Wno-overlength-strings -pedantic -Wno-long-long   -DHAVE_CONFIG_H -I. 
-I../../gcc-trunk/fixincludes -I../include 
-I../../gcc-trunk/fixincludes/../include ../../gcc-trunk/fixincludes/fixincl.c
../../gcc-trunk/fixincludes/fixincl.c:29:22: fatal error: sys/wait.h: No such 
file or directory
compilation terminated.
Makefile:76: recipe for target 'fixincl.o' failed
make[2]: *** [fixincl.o] Error 1
make[2]: Leaving directory '/home/FX/ibin/fixincludes'
Makefile:3509: recipe for target 'all-fixincludes' failed
make[1]: *** [all-fixincludes] Error 2
make[1]: Leaving directory '/home/FX/ibin'
Makefile:879: recipe for target 'all' failed
make: *** [all] Error 2


and indeed, there is no sys/wait.h file under /mingw64/*/include.

I’ve tried to replace the configure line (step 4) by adding 
--with-sysroot=/mingw64/x86_64-w64-mingw32 but it didn’t change anything.

Am I missing something? Thanks for any hint or help.

FX





-- output of “pacman -Q”:

apr 1.5.1-1
apr-util 1.5.4-1
bash 4.3.042-1
bash-completion 2.1-6
bsdcpio 3.1.2-5
bsdtar 3.1.2-5
bzip2 1.0.6-2
ca-certificates 20150426-1
catgets 1.1-2
coreutils 8.24-1
crypt 1.1-6
curl 7.44.0-1
dash 0.5.8-1
expat 2.1.0-2
file 5.24-1
filesystem 2015.04-3
findutils 4.5.14-4
flex 2.5.39-4
gawk 4.1.3-1
gcc-libs 4.9.2-5
gettext 0.19.6-1
gmp 6.0.0-3
gnupg 1.4.19-1
grep 2.21-1
gzip 1.6-1
heimdal-libs 1.5.3-6
icu 51.2-2
inetutils 1.9.2-1
info 6.0-1
less 481-1
libarchive 3.1.2-5
libasprintf 0.19.6-1
libbz2 1.0.6-2
libcatgets 1.1-2
libcrypt 1.1-6
libcurl 7.44.0-1
libdb 5.3.28-2
libexpat 2.1.0-2
libffi 3.2.1-1
libgettextpo 0.19.6-1
libiconv 1.14-2
libidn 1.32-1
libintl 0.19.6-1
liblzma 5.2.1-1
liblzo2 2.09-1
libmetalink 0.1.2-2
libnettle 3.1.1-1
libopenssl 1.0.2.d-1
libp11-kit 0.23.1-1
libpcre 8.37-1
libpcre16 8.37-1
libpcre32 8.37-1
libpcrecpp 8.37-1
libpcreposix 8.37-1
libreadline 6.3.008-5
libsasl 2.1.26-7
libserf 1.3.8-1
libsqlite 3.8.8.2-1
libssh2 1.6.0-1
libtasn1 4.7-1
libutil-linux 2.26.2-1
libxml2 2.9.2-2
lndir 1.0.3-1
m4 1.4.17-4
make 4.1-4
mingw-w64-x86_64-binutils 2.25.1-1
mingw-w64-x86_64-bzip2 1.0.6-4
mingw-w64-x86_64-crt-git 5.0.0.4573.628fdbf-1
mingw-w64-x86_64-gcc 5.2.0-3
mingw-w64-x86_64-gcc-libs 5.2.0-3
mingw-w64-x86_64-gmp 6.0.0-3
mingw-w64-x86_64-headers-git 5.0.0.4575.ada0f35-1
mingw-w64-x86_64-isl 0.14.1-2
mingw-w64-x86_64-libiconv 1.14-5
mingw-w64-x86_64-libwinpthread-git 5.0.0.4573.628fdbf-1
mingw-w64-x86_64-mpc 1.0.3-2
mingw-w64-x86_64-mpfr 3.1.3.p0-2
mingw-w64-x86_64-windows-default-manifest 6.4-2
mingw-w64-x86_64-winpthreads-git 5.0.0.4573.628fdbf-1
mingw-w64-x86_64-zlib 1.2.8-9
mintty 1~2.1.5-1
mpfr 3.1.3.p0-1
msys2-keyring r9.397a52e-1
msys2-runtime 2.2.1.16655.6ecd782-2
ncurses 6.0.20150627-2
openssl 1.0.2.d-1
p11-kit 0.23.1-1
pacman 4.2.1.6198.439d376-1
pacman-mirrors 20150722-2
pax-git 20140703.2.1.g469552a-1
pcre 8.37-1
pkgfile 15-1
rebase 4.4.1-6
repman-git r23.87bf865-1
sed 4.2.2-2
subversion 1.9.1-1
tftp-hpa 5.2-1
time 1.7-1
tzcode 2015.e-1
util-linux 2.26.2-1
vim 7.4.872-2
which 2.21-2
xz 5.2.1-1
zlib 1.2.8-3


------------------------------------------------------------------------------
_______________________________________________
Mingw-w64-public mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/mingw-w64-public

Reply via email to