emacs-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Problems with EDE (was: CEDET merge)


From: Sascha Wilde
Subject: Problems with EDE (was: CEDET merge)
Date: Wed, 07 Oct 2009 11:34:29 +0200
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/23.1.50 (gnu/linux)

Chong Yidong <address@hidden> wrote:
> Sascha Wilde <address@hidden> 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 <stdio.h>
   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)




reply via email to

[Prev in Thread] Current Thread [Next in Thread]