From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Sascha Wilde Newsgroups: gmane.emacs.devel Subject: Problems with EDE (was: CEDET merge) Date: Wed, 07 Oct 2009 11:34:29 +0200 Message-ID: References: <87hbun9jbs.fsf@stupidchicken.com> <1254397096.16450.84.camel@projectile.siege-engine.com> <1254575261.6961.23.camel@projectile.siege-engine.com> <873a5wbed3.fsf@stupidchicken.com> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: ger.gmane.org 1254907854 18402 80.91.229.12 (7 Oct 2009 09:30:54 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Wed, 7 Oct 2009 09:30:54 +0000 (UTC) Cc: emacs-devel@gnu.org, eric@siege-engine.com To: Chong Yidong Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Wed Oct 07 11:30:44 2009 Return-path: Envelope-to: ged-emacs-devel@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by lo.gmane.org with esmtp (Exim 4.50) id 1MvSr5-0006I5-NQ for ged-emacs-devel@m.gmane.org; Wed, 07 Oct 2009 11:30:44 +0200 Original-Received: from localhost ([127.0.0.1]:34691 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1MvSr4-0004lF-P2 for ged-emacs-devel@m.gmane.org; Wed, 07 Oct 2009 05:30:42 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1MvSqs-0004hf-PA for emacs-devel@gnu.org; Wed, 07 Oct 2009 05:30:31 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1MvSql-0004cj-FH for emacs-devel@gnu.org; Wed, 07 Oct 2009 05:30:25 -0400 Original-Received: from [199.232.76.173] (port=45933 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1MvSql-0004cT-0h for emacs-devel@gnu.org; Wed, 07 Oct 2009 05:30:23 -0400 Original-Received: from mail2.sha-bang.de ([78.47.120.114]:40283 helo=mail.sha-bang.de) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1MvSqk-0005Rd-Ae for emacs-devel@gnu.org; Wed, 07 Oct 2009 05:30:22 -0400 Original-Received: from kenny.sha-bang.local (xdslt058.osnanet.de [82.149.185.58]) by mail.sha-bang.de (Postfix) with ESMTPSA id 6277754E; Wed, 7 Oct 2009 11:30:21 +0200 (CEST) Original-Received: from wilde by kenny.sha-bang.local with local (Sha Bang MUA v.0711184.68) ID 1MvSuj-00069G-Ei; Wed, 07 Oct 2009 11:34:29 +0200 In-Reply-To: <873a5wbed3.fsf@stupidchicken.com> (Chong Yidong's message of "Tue, 06 Oct 2009 13:51:04 -0400") User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/23.1.50 (gnu/linux) X-detected-operating-system: by monty-python.gnu.org: Genre and OS details not recognized. X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.devel:115952 Archived-At: Chong Yidong wrote: > Sascha Wilde writes: >> However I still witness a bunch problems with my simple test cases. [...] > Please, report them here. Summary: Problems with EDE automake projects: - necessary compiler detection is missing from generated configure.ac - AUTHORS, NEWS, README, Changelog are regenerated on every build Details for reproduction: - emacs -Q - M-x global-ede-mode RET - M-x semantic-mode RET - M-x make-directory RET /tmp/cedet-test1 RET - C-x C-f /tmp/cedet-test1/test.c RET - [In the buffer:] #include int main () { puts("Hello EDE!"); } - C-x C-s - M-x ede-new RET Project Type: Automake Name: edetest - C-c . t Name: hello Type: program Add test.c to hello? (y or n) y - C-c . c I had to create the AUTHORS file for you. Ok? (y or n) y [Same question for NEWS, README, Changelog, all answerde `y'] Now I get compilation output: -*- mode: compilation; default-directory: "/tmp/cedet-test1/" -*- Compilation started at Wed Oct 7 11:19:19 aclocal;automake --add-missing;autoreconf;./configure; configure.ac:4: installing `./install-sh' configure.ac:4: installing `./missing' Makefile.am: installing `./INSTALL' Makefile.am: installing `./COPYING' using GNU General Public License v3 file Makefile.am: Consider adding the COPYING file to the version control system Makefile.am: for your code, to avoid questions about which license your project uses. configure.ac:5: required file `config.h.in' not found Makefile.am: installing `./depcomp' /usr/share/automake-1.11/am/depend2.am: am__fastdepCC does not appear in AM_CONDITIONAL /usr/share/automake-1.11/am/depend2.am: The usual way to define `am__fastdepCC' is to add `AC_PROG_CC' /usr/share/automake-1.11/am/depend2.am: to `configure.ac' and run `aclocal' and `autoconf' again. /usr/share/automake-1.11/am/depend2.am: AMDEP does not appear in AM_CONDITIONAL /usr/share/automake-1.11/am/depend2.am: The usual way to define `AMDEP' is to add one of the compiler tests /usr/share/automake-1.11/am/depend2.am: AC_PROG_CC, AC_PROG_CXX, AC_PROG_CXX, AC_PROG_OBJC, /usr/share/automake-1.11/am/depend2.am: AM_PROG_AS, AM_PROG_GCJ, AM_PROG_UPC /usr/share/automake-1.11/am/depend2.am: to `configure.ac' and run `aclocal' and `autoconf' again. Makefile.am: C source seen but `CC' is undefined Makefile.am: The usual way to define `CC' is to add `AC_PROG_CC' Makefile.am: to `configure.ac' and run `autoconf' again. /usr/share/automake-1.11/am/depend2.am: am__fastdepCC does not appear in AM_CONDITIONAL /usr/share/automake-1.11/am/depend2.am: The usual way to define `am__fastdepCC' is to add `AC_PROG_CC' /usr/share/automake-1.11/am/depend2.am: to `configure.ac' and run `aclocal' and `autoconf' again. /usr/share/automake-1.11/am/depend2.am: AMDEP does not appear in AM_CONDITIONAL /usr/share/automake-1.11/am/depend2.am: The usual way to define `AMDEP' is to add one of the compiler tests /usr/share/automake-1.11/am/depend2.am: AC_PROG_CC, AC_PROG_CXX, AC_PROG_CXX, AC_PROG_OBJC, /usr/share/automake-1.11/am/depend2.am: AM_PROG_AS, AM_PROG_GCJ, AM_PROG_UPC /usr/share/automake-1.11/am/depend2.am: to `configure.ac' and run `aclocal' and `autoconf' again. Makefile.am: C source seen but `CC' is undefined Makefile.am: The usual way to define `CC' is to add `AC_PROG_CC' Makefile.am: to `configure.ac' and run `autoconf' again. autoreconf: automake failed with exit status: 1 checking for a BSD-compatible install... /usr/bin/install -c checking whether build environment is sane... yes checking for a thread-safe mkdir -p... /bin/mkdir -p checking for gawk... gawk checking whether make sets $(MAKE)... yes configure: creating ./config.status config.status: error: cannot find input file: `Makefile.in' Compilation exited abnormally with code 1 at Wed Oct 7 11:19:30 As the error messages show: there is AC_PROG_CC or any equivalent missing from the generated configure.ac. After adding it manually: - C-x b test.c RET - C-c . c Asks again for all files AUTHORS, NEWS, README and Changelog if they should be created despite the fact that they are already there. Even more: it readds and thereby duplicates the automatic generated entries (for AUTHORS and NEWS). Answering no to any of there "create foo" questions immediately terminates the whole ede build process, which IMO is a bug, too. The actually build runs now successfully. -- Sascha Wilde "Liebet eure Feinde, vielleicht schadet das ihrem Ruf" (Stanislaw Jerzy Lec)