Bug#542995: Bug #542995: trilinos: FTBFS: aclocal.m4:14: error: this file was generated for autoconf 2.61.

2009-10-21 Thread Daniel Moerner
Hi,

I decided to try fixing this bug, since it just looked like trilinos was
missing a Build-Depend on automake1.10 instead of automake. However,
there are two more problems:

1. trilinos still build-depends on python-numeric. This was removed from
Debian last month. [1] It also build-depends on python-numpy, which is
the suggested alternative. However, I'm not sure if just removing the
build-depends is enough, because trilinos won't build from source.

2. When the following patch is applied:

diff -u trilinos-9.0.3.dfsg/debian/control
trilinos-9.0.3.dfsg/debian/control
--- trilinos-9.0.3.dfsg/debian/control
+++ trilinos-9.0.3.dfsg/debian/control
@@ -3,7 +3,7 @@
 Priority: extra
 Maintainer: Debian Scientific Computing Team
pkg-scicomp-de...@lists.alioth.debian.org
 Uploaders: Christophe Prud'homme prudh...@debian.org
-Build-Depends: cdbs, quilt, debhelper (= 7), automake, autoconf,
gfortran, libopenmpi-dev, libsuperlu3-dev, libsuitesparse-dev,
python-dev, swig1.3, python-numpy, python-numeric, libexpat1-dev,
libxml2-dev
+Build-Depends: cdbs, quilt, debhelper (= 7), automake1.10, autoconf,
gfortran, libopenmpi-dev, libsuperlu3-dev, libsuitesparse-dev,
python-dev, swig1.3, python-numpy, libexpat1-dev, libxml2-dev
 Standards-Version: 3.8.1
 Homepage: http://trilinos.sandia.gov/
 Vcs-Svn: svn://svn.debian.org/svn/pkg-scicomp/trilinos/trunk/

The following error is produced:

make[4]: Entering directory
`/build/dmr-trilinos_9.0.3.dfsg-1.1-amd64-CFM9Lj/trilinos-9.0.3.dfsg/packages/teuchos'

cd .  /bin/bash
/build/dmr-trilinos_9.0.3.dfsg-1.1-amd64-CFM9Lj/trilinos-9.0.3.dfsg/packages/teuchos/config/missing
--run aclocal-1.10 -I config
/usr/bin/m4:configure.ac:562: bad expression in eval: m4_Cursor + 0 + 1

/usr/bin/m4:configure.ac:562: bad expression in eval:   ()

/usr/bin/m4:configure.ac:570: bad expression in eval: 1  ()

/usr/bin/m4:configure.ac:577: bad expression in eval: 2  ()

autom4te: /usr/bin/m4 failed with exit status: 1

aclocal-1.10: autom4te failed with exit status: 1

WARNING: `aclocal-1.10' is needed, and you do not seem to have it handy
on your
 system.  You might have modified some files without having the

 proper tools for further handling them.  Check the `README'
file,
 it often tells you about the needed prerequirements for
installing
 this package.  You may also peek at any GNU archive site, in
case
 some other package would contain this missing `aclocal-1.10'
program.
make[4]: *** [aclocal.m4] Error 1

make[3]: *** [all-recursive] Error 1

make[2]: *** [all-recursive] Error 1

make[4]: Leaving directory
`/build/dmr-trilinos_9.0.3.dfsg-1.1-amd64-CFM9Lj/trilinos-9.0.3.dfsg/packages/teuchos'

make[3]: Leaving directory
`/build/dmr-trilinos_9.0.3.dfsg-1.1-amd64-CFM9Lj/trilinos-9.0.3.dfsg/packages'

make[1]: *** [all] Error 2

make: *** [debian/stamp-makefile-build] Error 2

make[2]: Leaving directory
`/build/dmr-trilinos_9.0.3.dfsg-1.1-amd64-CFM9Lj/trilinos-9.0.3.dfsg'

make[1]: Leaving directory
`/build/dmr-trilinos_9.0.3.dfsg-1.1-amd64-CFM9Lj/trilinos-9.0.3.dfsg'

dpkg-buildpackage: error: debian/rules build gave error exit status 2


I see no obvious source for this error. Line 562, 570, and 570 of
configure.ac are just macros testing for options on the configure call;
line 555 has the exact same macro but doesn't error out. The macro
doesn't even involve any comparison, to my eye.

Here are the relevant lines in the file:

551 #
552 #  --enable-teuchos-boost
553 #
554
555 TAC_ARG_ENABLE_FEATURE_SUB( teuchos, boost, [Enable support for some
of boost], TEUCHOS_BOOST, no)
556 AM_CONDITIONAL(HAVE_TEUCHOS_BOOST, [test X$ac_cv_use_teuchos_boost
!= Xno])
557
558 #
559 # --enable-teuchos-comm_timers
560 #
561
562 TAC_ARG_ENABLE_FEATURE_SUB( teuchos, comm_timers, [Enable timers for
Teuchos::Comm related software],
563 TEUCHOS_COMM_TIMERS, yes )
564 #AM_CONDITIONAL(HAVE_TEUCHOS_COMM_TIMERS, [test
X$ac_cv_use_teuchos_comm_timers != Xno])

And the macro itself:

AC_DEFUN([TAC_ARG_ENABLE_FEATURE_SUB],
[
AC_ARG_ENABLE([$1-$2],
AC_HELP_STRING([--enable-$1-$2],[$3 (default is [$5])]),
ac_cv_use_$1_$2=$enableval, ac_cv_use_$1_$2=$5)

AC_MSG_CHECKING(whether to use [$1-$2])

if test X$ac_cv_use_$1_$2 != Xno; then
  AC_MSG_RESULT(yes)
  AC_DEFINE([HAVE_$4],,[Define if want to build $1-$2])
else
  AC_MSG_RESULT(no)
fi
])

That's as far as I was able to get on this bug.

Regards,
Daniel

[1] http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=546570



signature.asc
Description: OpenPGP digital signature


Bug#542995: trilinos: FTBFS: aclocal.m4:14: error: this file was generated for autoconf 2.61.

2009-08-22 Thread Lucas Nussbaum
Package: trilinos
Version: 9.0.3.dfsg-1
Severity: serious
User: debian...@lists.debian.org
Usertags: qa-ftbfs-20090822 qa-ftbfs
Justification: FTBFS on amd64

Hi,

During a rebuild of all packages in sid, your package failed to build on
amd64.

Relevant part:
 /usr/bin/make  -C ./  
 make[1]: Entering directory 
 `/build/user-trilinos_9.0.3.dfsg-1-amd64-S9TOjM/trilinos-9.0.3.dfsg'
 cd .  /bin/bash 
 /build/user-trilinos_9.0.3.dfsg-1-amd64-S9TOjM/trilinos-9.0.3.dfsg/missing 
 --run autoheader
 aclocal.m4:14: error: this file was generated for autoconf 2.61.
 You have another version of autoconf.  If you want to use that,
 you should regenerate the build system entirely.
 aclocal.m4:14: the top level
 autom4te: /usr/bin/m4 failed with exit status: 63
 autoheader: '/usr/bin/autom4te' failed with exit status: 63
 WARNING: `autoheader' is missing on your system.  You should only need it if
  you modified `acconfig.h' or `configure.ac'.  You might want
  to install the `Autoconf' and `GNU m4' packages.  Grab them
  from any GNU archive site.
 rm -f stamp-h1
 touch Trilinos_config.h.in
 cd .  /bin/bash ./config.status Trilinos_config.h
 config.status: creating Trilinos_config.h
 config.status: Trilinos_config.h is unchanged
 /usr/bin/make  all-recursive
 make[2]: Entering directory 
 `/build/user-trilinos_9.0.3.dfsg-1-amd64-S9TOjM/trilinos-9.0.3.dfsg'
 Making all in packages
 make[3]: Entering directory 
 `/build/user-trilinos_9.0.3.dfsg-1-amd64-S9TOjM/trilinos-9.0.3.dfsg/packages'
 Making all in teuchos
 make[4]: Entering directory 
 `/build/user-trilinos_9.0.3.dfsg-1-amd64-S9TOjM/trilinos-9.0.3.dfsg/packages/teuchos'
 cd .  /bin/bash 
 /build/user-trilinos_9.0.3.dfsg-1-amd64-S9TOjM/trilinos-9.0.3.dfsg/packages/teuchos/config/missing
  --run aclocal-1.10 -I config
 /build/user-trilinos_9.0.3.dfsg-1-amd64-S9TOjM/trilinos-9.0.3.dfsg/packages/teuchos/config/missing:
  line 46: aclocal-1.10: command not found
 WARNING: `aclocal-1.10' is needed, and you do not seem to have it handy on 
 your
  system.  You might have modified some files without having the
  proper tools for further handling them.  Check the `README' file,
  it often tells you about the needed prerequirements for installing
  this package.  You may also peek at any GNU archive site, in case
  some other package would contain this missing `aclocal-1.10' program.
 make[4]: *** [aclocal.m4] Error 1

The full build log is available from:
   
http://people.debian.org/~lucas/logs/2009/08/22/trilinos_9.0.3.dfsg-1_lsid64.buildlog

A list of current common problems and possible solutions is available at 
http://wiki.debian.org/qa.debian.org/FTBFS . You're welcome to contribute!

About the archive rebuild: The rebuild was done on about 50 AMD64 nodes
of the Grid'5000 platform, using a clean chroot.  Internet was not
accessible from the build systems.

-- 
| Lucas Nussbaum
| lu...@lucas-nussbaum.net   http://www.lucas-nussbaum.net/ |
| jabber: lu...@nussbaum.fr GPG: 1024D/023B3F4F |



-- 
To UNSUBSCRIBE, email to debian-bugs-rc-requ...@lists.debian.org
with a subject of unsubscribe. Trouble? Contact listmas...@lists.debian.org