I got the same problem a few weeks ago and just ended up using the old zlib spkg.
Beware that youll have several other issues later, especially with MPIR, Boehm GC... I reported a few of them at http://trac.sagemath.org/wiki/Cygwin64Port On Friday, July 26, 2013 3:24:00 PM UTC+2, Travis Scrimshaw wrote: > > Hey everyone (especially cygwin people), > I've been trying for the past 2 hours to build sage 5.11.beta3 on > cygwin64, however it continuously fails when building zlib. I've > multiple-checked that I've installed all of the dependencies (and > overkilled on some of them too), and I've installed zlib ver 1.2.8 directly > on cygwin, although sage installation doesn't seem recognize it (same > version). Any idea on how to get this to work? I've tried rebasing, > deleting the partial installation, deleting the entire build. I'm running > off a Windows Vista home premium OS. Below is the relavent portion of the > log file. Any help is greatly appreciated. > > Thank you, > Travis > > > make[2]: Leaving directory `/home/Travis/sage-5.11.beta3/spkg' > env SAGE_BUILD_TOOLCHAIN=yes make -j2 toolchain > make[2]: Entering directory `/home/Travis/sage-5.11.beta3/spkg' > make[2]: warning: -jN forced in submake: disabling jobserver mode. > make[2]: Nothing to be done for `toolchain'. > make[2]: Leaving directory `/home/Travis/sage-5.11.beta3/spkg' > make -j2 toolchain-deps > make[2]: Entering directory `/home/Travis/sage-5.11.beta3/spkg' > make[2]: warning: -jN forced in submake: disabling jobserver mode. > make -j2 /home/Travis/sage-5.11.beta3/spkg/installed/zlib-1.2.8 > make[3]: Entering directory `/home/Travis/sage-5.11.beta3/spkg' > make[3]: warning: -jN forced in submake: disabling jobserver mode. > /home/Travis/sage-5.11.beta3/spkg/pipestatus "sage-spkg ${SAGE_SPKG_OPTS} > zlib-1 .2.8 2>&1" "tee -a > /home/Travis/sage-5.11.beta3/logs/pkgs/zlib-1.2.8.log" > Found package zlib-1.2.8 in spkg/standard/zlib-1.2.8.spkg > zlib-1.2.8 > ==================================================== > Extracting package > /home/Travis/sage-5.11.beta3/spkg/standard/zlib-1.2.8.spkg > -rwxr-xr-x 1 Administrators None 532210 Jun 6 01:26 > /home/Travis/sage-5.11.beta 3/spkg/standard/zlib-1.2.8.spkg > Finished extraction > **************************************************** > Host system: > CYGWIN_NT-6.0 Travis-Notebook 1.7.22(0.268/5/3) 2013-07-22 17:06 x86_64 > Cygwin > **************************************************** > C compiler: gcc > C compiler version: > Using built-in specs. > COLLECT_GCC=gcc > COLLECT_LTO_WRAPPER=/usr/lib/gcc/x86_64-pc-cygwin/4.8.1/lto-wrapper.exe > Target: x86_64-pc-cygwin > Configured with: /usr/src/ports/gcc/gcc-4.8.1-1/src/gcc-4.8.1/configure > --srcdir =/usr/src/ports/gcc/gcc-4.8.1-1/src/gcc-4.8.1 --prefix=/usr > --exec-prefix=/usr - -bindir=/usr/bin --sbindir=/usr/sbin > --libexecdir=/usr/lib --datadir=/usr/share --localstatedir=/var > --sysconfdir=/etc --datarootdir=/usr/share --docdir=/usr/sh are/doc/gcc -C > --build=x86_64-pc-cygwin --host=x86_64-pc-cygwin --target=x86_64- pc-cygwin > --without-libiconv-prefix --without-libintl-prefix --enable-shared --e > nable-shared-libgcc --enable-static --enable-version-specific-runtime-libs > --ena ble-bootstrap --disable-__cxa_atexit --with-dwarf2 > --with-tune=generic --enable- languages=c,c++,fortran,lto,objc,obj-c++ > --enable-graphite --enable-threads=posi x --enable-libatomic > --enable-libgomp --disable-libitm --enable-libquadmath --en > able-libquadmath-support --enable-libssp --enable-libgcj-sublibs > --disable-java- awt --disable-symvers > --with-ecj-jar=/usr/share/java/ecj.jar --with-gnu-ld --wit h-gnu-as > --with-cloog-include=/usr/include/cloog-isl --without-libiconv-prefix - > -without-libintl-prefix --with-system-zlib > Thread model: posix > gcc version 4.8.1 (GCC) > **************************************************** > make[4]: Entering directory > `/home/Travis/sage-5.11.beta3/spkg/build/zlib-1.2.8/ > src' > gcc -O3 -Wall -c -o adler32.o adler32.c > gcc -O3 -Wall -c -o compress.o compress.c > gcc -O3 -Wall -c -o crc32.o crc32.c > gcc -O3 -Wall -c -o deflate.o deflate.c > gcc -O3 -Wall -c -o gzclose.o gzclose.c > gcc -O3 -Wall -c -o gzlib.o gzlib.c > gzlib.c: In function ‘gz_open’: > gzlib.c:256:9: warning: implicit declaration of function ‘lseek’ > [-Wimplicit-fun ction-declaration] > state->start = LSEEK(state->fd, 0, SEEK_CUR); > ^ > gcc -O3 -Wall -c -o gzread.o gzread.c > gzread.c: In function ‘gz_load’: > gzread.c:30:9: warning: implicit declaration of function ‘read’ > [-Wimplicit-func tion-declaration] > ret = read(state->fd, buf + *have, len - *have); > ^ > gzread.c: In function ‘gzclose_r’: > gzread.c:591:5: warning: implicit declaration of function ‘close’ > [-Wimplicit-fu nction-declaration] > ret = close(state->fd); > ^ > gcc -O3 -Wall -c -o gzwrite.o gzwrite.c > gcc -O3 -Wall -c -o infback.o infback.c > gzwrite.c: In function ‘gz_comp’: > gzwrite.c:84:9: warning: implicit declaration of function ‘write’ > [-Wimplicit-fu nction-declaration] > got = write(state->fd, strm->next_in, strm->avail_in); > ^ > gzwrite.c: In function ‘gzclose_w’: > gzwrite.c:573:5: warning: implicit declaration of function ‘close’ > [-Wimplicit-f unction-declaration] > if (close(state->fd) == -1) > ^ > gcc -O3 -Wall -c -o inffast.o inffast.c > gcc -O3 -Wall -c -o inflate.o inflate.c > gcc -O3 -Wall -c -o inftrees.o inftrees.c > gcc -O3 -Wall -c -o trees.o trees.c > gcc -O3 -Wall -c -o uncompr.o uncompr.c > gcc -O3 -Wall -c -o zutil.o zutil.c > windres --define GCC_WINDRES -o zlibrc.o win32/zlib1.rc > gcc -O3 -Wall -I. -c -o example.o test/example.c > gcc -O3 -Wall -I. -c -o minigzip.o test/minigzip.c > ar rcs libz.a adler32.o compress.o crc32.o deflate.o gzclose.o gzlib.o > gzread.o gzwrite.o infback.o inffast.o inflate.o inftrees.o trees.o > uncompr.o zutil.o > gcc -shared -Wl,--out-implib,libz.dll.a \ > -o zlib1.dll win32/zlib.def adler32.o compress.o crc32.o deflate.o > gzclose.o gzl ib.o gzread.o gzwrite.o infback.o inffast.o inflate.o > inftrees.o trees.o uncomp r.o zutil.o zlibrc.o > gcc -o minigzip.exe minigzip.o libz.a > strip minigzip.exe > Cannot export gzopen_w: symbol not defined > collect2: error: ld returned 1 exit status > Makefile:96: recipe for target `zlib1.dll' failed > make[4]: *** [zlib1.dll] Error 1 > make[4]: *** Waiting for unfinished jobs.... > make[4]: Leaving directory > `/home/Travis/sage-5.11.beta3/spkg/build/zlib-1.2.8/s rc' > Error building zlib. > real 0m7.816s > user 0m6.829s > sys 0m2.199s > ************************************************************************ > Error installing package zlib-1.2.8 > ************************************************************************ > Please email sage-devel (http://groups.google.com/group/sage-devel) > explaining the problem and including the relevant part of the log file > /home/Travis/sage-5.11.beta3/logs/pkgs/zlib-1.2.8.log > Describe your computer, operating system, etc. > If you want to try to fix the problem yourself, *don't* just cd to > /home/Travis/sage-5.11.beta3/spkg/build/zlib-1.2.8 and type 'make' or > whatever i s appropriate. > Instead, the following commands setup all environment variables > correctly and load a subshell for you to debug the error: > (cd '/home/Travis/sage-5.11.beta3/spkg/build/zlib-1.2.8' && > '/home/Travis/sage -5.11.beta3/sage' --sh) > When you are done debugging, you can type "exit" to leave the subshell. > ************************************************************************ > Makefile:478: recipe for target > `/home/Travis/sage-5.11.beta3/spkg/installed/zli b-1.2.8' failed > make[3]: *** [/home/Travis/sage-5.11.beta3/spkg/installed/zlib-1.2.8] > Error 1 > make[3]: Leaving directory `/home/Travis/sage-5.11.beta3/spkg' > Makefile:248: recipe for target `toolchain-deps' failed > make[2]: *** [toolchain-deps] Error 2 > make[2]: Leaving directory `/home/Travis/sage-5.11.beta3/spkg' > Makefile:139: recipe for target `all' failed > make[1]: *** [all] Error 2 > make[1]: Leaving directory `/home/Travis/sage-5.11.beta3/spkg' > real 2m15.845s > user 0m43.115s > sys 1m4.234s > *************************************************************** > Error building Sage. > The following package(s) may have failed to build: > package: zlib-1.2.8 > log file: /home/Travis/sage-5.11.beta3/logs/pkgs/zlib-1.2.8.log > build directory: /home/Travis/sage-5.11.beta3/spkg/build/zlib-1.2.8 > The build directory may contain configuration files and other potentially > helpful information. WARNING: if you now run 'make' again, the build > directory will, by default, be deleted. Set the environment variable > SAGE_KEEP_BUILT_SPKGS to 'yes' to prevent this. > Makefile:19: recipe for target `build' failed > make: *** [build] Error 1 > > > > -- You received this message because you are subscribed to the Google Groups "sage-devel" group. To unsubscribe from this group and stop receiving emails from it, send an email to sage-devel+unsubscr...@googlegroups.com. To post to this group, send email to sage-devel@googlegroups.com. Visit this group at http://groups.google.com/group/sage-devel. For more options, visit https://groups.google.com/groups/opt_out.