Add support for Windows 8, first step
Teemu Nätkinniemi
tnatkinn@gmail.com
Tue Oct 18 11:58:00 GMT 2011
On 13.10.2011 19:51, Corinna Vinschen wrote:
> I just checked in a patch to find_fast_cwd_pointer which allows to
> compute fast_cwd_ptr on W8 as well. It was pretty simple. The only
> crucial difference in the code was the usage of "push crit-sect-addr"
> instead of "mov edi, crit-sect-addr; push edi", which changes the
> address of the next instruction by a single byte.
Just tested and it seems to work fine apart from one problem. When LANG
is set to default C.UTF-8 I get random fork errors. I found a workaround
because I don't like to use Cygwin in Finnish so setting LANG=C fixes
the problem. I've attached a log that shows the errors. Otherwise Cygwin
works fine with your latest patch, I managed to compile Cygwin itself
without any problems.
-------------- next part --------------
make[1]: Siirrytään hakemistoon "/src/build"
make[2]: Siirrytään hakemistoon "/src/build/etc"
for f in standards.info configure.info; do \
if test -f ../../cygwin-snapshot-20111010-1/etc/`echo $f | sed -e 's/.info$/.texi/'`; then \
if make "MAKEINFO=makeinfo --split-size=5000000 --split-size=5000000" $f; then \
true; \
else \
exit 1; \
fi; \
fi; \
done
make[3]: Siirrytään hakemistoon "/src/build/etc"
make[3]: "standards.info" on ajan tasalla.
make[3]: Poistutaan hakemistosta "/src/build/etc"
make[3]: Siirrytään hakemistoon "/src/build/etc"
make[3]: "configure.info" on ajan tasalla.
make[3]: Poistutaan hakemistosta "/src/build/etc"
make[2]: Poistutaan hakemistosta "/src/build/etc"
Checking multilib configuration for newlib...
make[2]: Siirrytään hakemistoon "/src/build/i686-pc-cygwin/newlib"
make "AR_FLAGS=rc" "CC_FOR_BUILD=gcc" "CFLAGS=-g -O2" "CCASFLAGS=-g -O2" "CFLAGS_FOR_BUILD=-g -O2" "CFLAGS_FOR_TARGET=-g -O2" "INSTALL=/usr/bin/install -c" "LDFLAGS=" "LIBCFLAGS=-g -O2" "LIBCFLAGS_FOR_TARGET=-g -O2" "MAKE=make" "MAKEINFO=makeinfo --split-size=5000000 --split-size=5000000 " "PICFLAG=" "PICFLAG_FOR_TARGET=" "SHELL=/bin/sh" "EXPECT=expect" "RUNTEST=runtest" "RUNTESTFLAGS=" "exec_prefix=/usr/local" "infodir=/usr/local/share/info" "libdir=/usr/local/lib" "prefix=/usr/local" "tooldir=/usr/local/i686-pc-cygwin" "top_toollibdir=/usr/local/i686-pc-cygwin/lib" "AR=ar" "AS=as" "CC=gcc -L/src/build/i686-pc-cygwin/winsup -L/src/build/i686-pc-cygwin/winsup/cygwin -L/src/build/i686-pc-cygwin/winsup/w32api/lib -isystem /src/cygwin-snapshot-20111010-1/winsup/include -isystem /src/cygwin-snapshot-20111010-1/winsup/cygwin/include -isystem /src/cygwin-snapshot-20111010-1/winsup/w32api/include -B/src/build/i686-pc-cygwin/newlib/ -isystem /src/build/i686-pc-cygwin/newlib/targ-include -isystem /src/cygwin-snapshot-20111010-1/newlib/libc/include -I/src/cygwin-snapshot-20111010-1/winsup/cygwin/include" "LD=/usr/lib/gcc/i686-pc-cygwin/4.5.3/../../../../i686-pc-cygwin/bin/ld.exe" "LIBCFLAGS=-g -O2" "NM=nm" "PICFLAG=" "RANLIB=ranlib" "DESTDIR=" all-recursive
make[3]: Siirrytään hakemistoon "/src/build/i686-pc-cygwin/newlib"
make "AR_FLAGS=rc" "CC_FOR_BUILD=gcc" "CFLAGS=-g -O2" "CCASFLAGS=-g -O2" "CFLAGS_FOR_BUILD=-g -O2" "CFLAGS_FOR_TARGET=-g -O2" "INSTALL=/usr/bin/install -c" "LDFLAGS=" "LIBCFLAGS=-g -O2" "LIBCFLAGS_FOR_TARGET=-g -O2" "MAKE=make" "MAKEINFO=makeinfo --split-size=5000000 --split-size=5000000 " "PICFLAG=" "PICFLAG_FOR_TARGET=" "SHELL=/bin/sh" "EXPECT=expect" "RUNTEST=runtest" "RUNTESTFLAGS=" "exec_prefix=/usr/local" "infodir=/usr/local/share/info" "libdir=/usr/local/lib" "prefix=/usr/local" "tooldir=/usr/local/i686-pc-cygwin" "top_toollibdir=/usr/local/i686-pc-cygwin/lib" "AR=ar" "AS=as" "CC=gcc -L/src/build/i686-pc-cygwin/winsup -L/src/build/i686-pc-cygwin/winsup/cygwin -L/src/build/i686-pc-cygwin/winsup/w32api/lib -isystem /src/cygwin-snapshot-20111010-1/winsup/include -isystem /src/cygwin-snapshot-20111010-1/winsup/cygwin/include -isystem /src/cygwin-snapshot-20111010-1/winsup/w32api/include -B/src/build/i686-pc-cygwin/newlib/ -isystem /src/build/i686-pc-cygwin/newlib/targ-include -isystem /src/cygwin-snapshot-20111010-1/newlib/libc/include -I/src/cygwin-snapshot-20111010-1/winsup/cygwin/include" "LD=/usr/lib/gcc/i686-pc-cygwin/4.5.3/../../../../i686-pc-cygwin/bin/ld.exe" "LIBCFLAGS=-g -O2" "NM=nm" "PICFLAG=" "RANLIB=ranlib" "DESTDIR=" DO=all multi-do # make
3 [main] make 3756 fhandler_disk_file::fixup_mmap_after_fork: requested 0x7F1A0000 != 0x0 mem alloc base 0x7F140000, state 0x2000, size 655360, Win32 error 487
1442 [main] make 3756 C:\cygwin\bin\make.exe: *** fatal error in forked process - recreate_mmaps_after_fork_failed
Stack trace:
Frame Function Args
0028E2A0 6102DB9C (FFFFFFFE, 0028E2BC, 00000000, 00000000)
0028E590 6102DB9C (6118EEA0, 00008000, 00000000, 61190A6F)
0028F5C0 61005D7C (61190A98, 0028F5EC, 0028F650, 004D0CBC)
0028F5E0 61005DB8 (61190A98, 00000000, 61190A91, 00420000)
0028F620 61005EF1 (00000048, 02000000, 6117AD64, 6117AD60)
0028F650 6100706B (00000000, 770E72F6, 00000192, 6F8E0000)
0028F720 6107AD05 (61000000, 00000001, 0028FD24, 00000000)
0028F740 770E0FF8 (6107A9F0, 61000000, 00000001, 0028FD24)
0028F788 770E1047 (6107A9F0, 61000000, 00000001, 0028FD24)
0028F824 770E8F9A (004D1638, 004D17A8, 004D11D0, 004D1DB0)
0028F844 770E8E27 (004D1638, 0028F92C, 0028F867, 00000000)
0028F86C 770E9DA0 (004D11D0, 0028F92C, 0028F9B3, 4FAE7252)
0028FC98 770EBB1A (0028FD24, 77080000, 4FAE723A, 00000000)
0028FCF0 770EAC6A (0028FD24, 77080000, 0028FD10, 770E2F55)
0028FD00 770E2F8B (0028FD24, 77080000, 00000000, 00000000)
0028FD10 770E2F55 (0028FD24, 77080000, 00000000, 0001002F)
End of stack trace (more stack frames may be present)
2 [main] make 1824 fork: child -1 - forked process died unexpectedly, retry 10, exit code 256, errno 11
make[3]: vfork: Resource temporarily unavailable
make[3]: Poistutaan hakemistosta "/src/build/i686-pc-cygwin/newlib"
make[2]: *** [all] Virhe 2
make[2]: Poistutaan hakemistosta "/src/build/i686-pc-cygwin/newlib"
make[1]: *** [all-target-newlib] Virhe 2
make[1]: Poistutaan hakemistosta "/src/build"
make: *** [all] Virhe 2
More information about the Cygwin-developers
mailing list