From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Ken Brown Newsgroups: gmane.emacs.bugs Subject: bug#14821: Build broken on 64-bit Cygwin starting with bzr revision 113315 Date: Tue, 09 Jul 2013 08:33:03 -0400 Message-ID: <51DC02FF.60003@cornell.edu> References: <51DADF18.5050006@cornell.edu> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Trace: ger.gmane.org 1373373252 14701 80.91.229.3 (9 Jul 2013 12:34:12 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Tue, 9 Jul 2013 12:34:12 +0000 (UTC) Cc: Paul Eggert To: 14821@debbugs.gnu.org Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Tue Jul 09 14:34:12 2013 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by plane.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1UwX7T-00070H-2e for geb-bug-gnu-emacs@m.gmane.org; Tue, 09 Jul 2013 14:34:11 +0200 Original-Received: from localhost ([::1]:38405 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1UwX7S-0006gz-Iv for geb-bug-gnu-emacs@m.gmane.org; Tue, 09 Jul 2013 08:34:10 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:58903) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1UwX7N-0006gg-6P for bug-gnu-emacs@gnu.org; Tue, 09 Jul 2013 08:34:07 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1UwX7L-0005Vc-9f for bug-gnu-emacs@gnu.org; Tue, 09 Jul 2013 08:34:05 -0400 Original-Received: from debbugs.gnu.org ([140.186.70.43]:47399) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1UwX7L-0005VS-5Z for bug-gnu-emacs@gnu.org; Tue, 09 Jul 2013 08:34:03 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.80) (envelope-from ) id 1UwX7K-0003MH-G4 for bug-gnu-emacs@gnu.org; Tue, 09 Jul 2013 08:34:02 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Ken Brown Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Tue, 09 Jul 2013 12:34:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 14821 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: Original-Received: via spool by 14821-submit@debbugs.gnu.org id=B14821.137337320312831 (code B ref 14821); Tue, 09 Jul 2013 12:34:02 +0000 Original-Received: (at 14821) by debbugs.gnu.org; 9 Jul 2013 12:33:23 +0000 Original-Received: from localhost ([127.0.0.1]:41715 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1UwX6g-0003Kp-4P for submit@debbugs.gnu.org; Tue, 09 Jul 2013 08:33:23 -0400 Original-Received: from limerock03.mail.cornell.edu ([128.84.12.34]:41834) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1UwX6d-0003KT-0w for 14821@debbugs.gnu.org; Tue, 09 Jul 2013 08:33:20 -0400 X-CornellRouted: This message has been Routed already. Original-Received: from authusersmtp.mail.cornell.edu (granite3.serverfarm.cornell.edu [10.16.197.8]) by limerock03.mail.cornell.edu (8.14.4/8.14.4_cu) with ESMTP id r69CX5L3002591; Tue, 9 Jul 2013 08:33:06 -0400 Original-Received: from [192.168.1.6] (cpe-67-249-194-47.twcny.res.rr.com [67.249.194.47]) (authenticated bits=0) by authusersmtp.mail.cornell.edu (8.14.4/8.12.10) with ESMTP id r69CX4T9008450 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NOT); Tue, 9 Jul 2013 08:33:05 -0400 User-Agent: Mozilla/5.0 (Windows NT 6.1; WOW64; rv:17.0) Gecko/20130509 Thunderbird/17.0.6 In-Reply-To: <51DADF18.5050006@cornell.edu> X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.15 Precedence: list X-detected-operating-system: by eggs.gnu.org: GNU/Linux 3.x X-Received-From: 140.186.70.43 X-BeenThere: bug-gnu-emacs@gnu.org List-Id: "Bug reports for GNU Emacs, the Swiss army knife of text editors" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Original-Sender: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.bugs:76126 Archived-At: On 7/8/2013 11:47 AM, Ken Brown wrote: > Starting with bzr revision 113315, the build on 64-bit Cygwin fails as > follows: > > gcc -std=gnu99 -Demacs -I. -I/c/src/emacs/64testt/src -I../lib > -I/c/src/emacs/64testt/src/../lib -D_REENTRANT -I/usr/include/gtk-3.0 > -I/usr/include/atk-1.0 -I/usr/include/at-spi2-atk/2.0 > -I/usr/include/pango-1.0 -I/usr/include/gio-unix-2.0/ > -I/usr/include/cairo -I/usr/include/gdk-pixbuf-2.0 > -I/usr/include/glib-2.0 -I/usr/lib/glib-2.0/include > -I/usr/include/harfbuzz -I/usr/include/freetype2 -I/usr/include/pixman-1 > -I/usr/include/libpng15 -DGDK_DISABLE_DEPRECATION_WARNINGS > -DGLIB_DISABLE_DEPRECATION_WARNINGS -I/usr/include/freetype2 > -D_REENTRANT -I/usr/include/librsvg-2.0 -I/usr/include/glib-2.0 > -I/usr/lib/glib-2.0/include -I/usr/include/gdk-pixbuf-2.0 > -I/usr/include/cairo -I/usr/include/libpng15 -I/usr/include/pixman-1 > -I/usr/include/freetype2 -fopenmp -I/usr/include/ImageMagick > -I/usr/include/libxml2 -I/usr/include/dbus-1.0 > -I/usr/lib/dbus-1.0/include -D_REENTRANT -I/usr/include/glib-2.0 > -I/usr/lib/glib-2.0/include -D_REENTRANT -I/usr/include/gconf/2 > -I/usr/include/dbus-1.0 -I/usr/lib/dbus-1.0/include > -I/usr/include/glib-2.0 -I/usr/lib/glib-2.0/include > -I/usr/include/glib-2.0 -I/usr/lib/glib-2.0/include > -I/usr/include/freetype2 -MMD -MF deps/.d -MP > -I/usr/include/p11-kit-1 -D_REENTRANT -I/usr/include/glib-2.0 > -I/usr/lib/glib-2.0/include -O0 -ggdb \ > -o temacs vm-limit.o dispnew.o frame.o scroll.o xdisp.o menu.o > xmenu.o window.o charset.o coding.o category.o ccl.o character.o > chartab.o bidi.o cm.o term.o terminal.o xfaces.o xterm.o xfns.o > xselect.o xrdb.o xsmfns.o xsettings.o gtkutil.o emacsgtkfixed.o > dbusbind.o emacs.o keyboard.o macros.o keymap.o sysdep.o buffer.o > filelock.o insdel.o marker.o minibuf.o fileio.o dired.o cmds.o > casetab.o casefiddle.o indent.o search.o regex.o undo.o alloc.o data.o > doc.o editfns.o callint.o eval.o floatfns.o fns.o font.o print.o > lread.o syntax.o unexcw.o bytecode.o process.o gnutls.o callproc.o > region-cache.o sound.o atimer.o doprnt.o intervals.o textprop.o > composite.o xml.o gfilenotify.o profiler.o sheap.o cygw32.o xfont.o > ftfont.o xftfont.o ftxfont.o fontset.o fringe.o image.o xgselect.o > terminfo.o gmalloc.o lastfile.o ../lib/libgnu.a -ltiff -ljpeg > -lpng -lz -lm -lgif -lXpm -lgtk-3 -latk-bridge-2.0 -lgdk-3 -latk-1.0 > -lXinerama -lXi -lXrandr -lXcursor -lXcomposite -lXdamage > -lpangocairo-1.0 -lgdk_pixbuf-2.0 -lcairo-gobject -lgio-2.0 -lXfixes > -lpangoft2-1.0 -lharfbuzz -lpango-1.0 -lcairo -lpixman-1 -lfontconfig > -lexpat -lfreetype -lbz2 -lxcb-shm -lxcb-render -lXrender -lXext -lX11 > -lxcb -lXau -lXdmcp -lpng15 -lm -lz -lgmodule-2.0 -lgobject-2.0 -lffi > -lglib-2.0 -lintl -liconv -lpcre -lSM -lICE -lX11 -lXrender -lXft > -lXrender -lfontconfig -lexpat -lfreetype -lz -lbz2 -lX11 -lxcb -lXau > -lXdmcp -lrsvg-2 -lgio-2.0 -lgdk_pixbuf-2.0 -lcairo -lgmodule-2.0 > -lgobject-2.0 -lffi -lpixman-1 -lfontconfig -lexpat -lfreetype -lbz2 > -lpng15 -lm -lz -lxcb-shm -lxcb-render -lXrender -lXext -lglib-2.0 > -lintl -liconv -lpcre -lX11 -lxcb -lXau -lXdmcp -lMagickWand > -lMagickCore -ldbus-1 -lpthread -lrt -lXrandr -lXext > -lXrender -lX11 -lxcb -lXau -lXdmcp -lXinerama -lXext -lX11 -lxcb > -lXau -lXdmcp -lxml2 -lz -liconv -lm -lncurses -lgio-2.0 -lz > -lgmodule-2.0 -lgobject-2.0 -lffi -lglib-2.0 -lintl -liconv -lpcre > -lgconf-2 -ldbus-1 -lpthread -lrt -lgio-2.0 -lz -lgmodule-2.0 > -lgobject-2.0 -lffi -lglib-2.0 -lintl -liconv -lpcre -lgobject-2.0 > -lffi -lglib-2.0 -lintl -liconv -lpcre -lfreetype -lz -lbz2 > -lfontconfig -lexpat -lfreetype -lz -lbz2 -lgnutls -lnettle > -lhogweed -lgmp -lintl -liconv -ltasn1 -lp11-kit -lz -lpthread > -lgio-2.0 -lz -lgmodule-2.0 -lgobject-2.0 -lffi -lglib-2.0 -lintl > -liconv -lpcre > ../lib/libgnu.a(pipe2.o): In function `rpl_pipe2': > /c/src/emacs/64testt/lib/pipe2.c:144: undefined reference to `setmode' > > > I think the issue here is that pipe2.c shouldn't be compiled on Cygwin. Sorry, that was a stupid guess, made without even looking at pipe2.c. But the point is that setmode shouldn't be used on Cygwin (and wasn't prior to revision 113315). The following patch allows the build to complete, but I don't know if it's the right fix: === modified file 'lib/pipe2.c' --- lib/pipe2.c 2013-07-07 18:00:14 +0000 +++ lib/pipe2.c 2013-07-09 12:20:47 +0000 @@ -138,7 +138,7 @@ goto fail; } -# if O_BINARY +# if O_BINARY && !defined (CYGWIN) if (flags & O_BINARY) { setmode (fd[1], O_BINARY); Ken