delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2009/11/22/17:16:56

X-Recipient: archive-cygwin AT delorie DOT com
X-SWARE-Spam-Status: No, hits=0.3 required=5.0 tests=AWL,BAYES_00,SPF_NEUTRAL,URIBL_BLACK
X-Spam-Check-By: sourceware.org
Message-ID: <4B09B81C.5010806@cornell.edu>
Date: Sun, 22 Nov 2009 17:15:56 -0500
From: Ken Brown <kbrown AT cornell DOT edu>
User-Agent: Thunderbird 2.0.0.23 (Windows/20090812)
MIME-Version: 1.0
To: cygwin AT cygwin DOT com
Subject: Problem with autoconf autodepend
X-IsSubscribed: yes
Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm
List-Id: <cygwin.cygwin.com>
List-Subscribe: <mailto:cygwin-subscribe AT cygwin DOT com>
List-Archive: <http://sourceware.org/ml/cygwin/>
List-Post: <mailto:cygwin AT cygwin DOT com>
List-Help: <mailto:cygwin-help AT cygwin DOT com>, <http://sourceware.org/ml/#faqs>
Sender: cygwin-owner AT cygwin DOT com
Mail-Followup-To: cygwin AT cygwin DOT com
Delivered-To: mailing list cygwin AT cygwin DOT com

The build of emacs from cvs source recently started failing because the 
build system added autodepend support.  The associated configure test 
succeeds, but the feature itself doesn't work reliably.  The simple 
workaround is to configure with --disable-autodepend, but I thought I 
should report this in case it indicates a cygwin problem and/or an 
autoconf problem.  Of course, I'd also like to know if it's an emacs 
problem so I can report it to them.

Here's the relevant excerpt from configure.in:

    if test $HAVE_GNU_MAKE = yes; then
       AC_MSG_CHECKING([whether gcc understands -MMD -MF])
       SAVE_CFLAGS="$CFLAGS"
       CFLAGS="$CFLAGS -MMD -MF deps.d"
       AC_TRY_COMPILE([], [], , ac_enable_autodepend=no)
       CFLAGS="$SAVE_CFLAGS"
       test -f deps.d || ac_enable_autodepend=no
       rm -rf deps.d
       AC_MSG_RESULT([$ac_enable_autodepend])
    fi
    if test $ac_enable_autodepend = yes; then
       AC_DEFINE(AUTO_DEPEND, 1, [Generate dependencies with gcc.])
    fi

And here's the build failure:

gcc -c -Demacs -DHAVE_CONFIG_H  -I. -I/tmp/emacs/src 
-I/usr/include/gtk-2.0 -I/usr/lib/gtk-2.0/include -I/usr/include/atk-1.0 
-I/usr/include/cairo -I/usr/include/pango-1.0 -I/usr/include/glib-2.0 
-I/usr/lib/glib-2.0/include -I/usr/include/pixman-1 
-I/usr/include/freetype2 -I/usr/include/libpng12 
-I/usr/include/freetype2     -g -O2 -Wdeclaration-after-statement 
-Wno-pointer-sign   -MMD -MF deps/ecrt0.d /tmp/emacs/src/ecrt0.c
/tmp/emacs/src/ecrt0.c:106: fatal error: opening dependency file 
deps/ecrt0.d: No such file or directory

Ken

--
Problem reports:       http://cygwin.com/problems.html
FAQ:                   http://cygwin.com/faq/
Documentation:         http://cygwin.com/docs.html
Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019