spack: Error building automake

On a Fedora 25 system, spack install automake fails with an error during the build phase. The build log ends with:

<snip>
checking that generated files are newer than configure... done
configure: creating ./config.status
config.status: creating Makefile
config.status: creating t/wrap/aclocal-1.15
config.status: creating t/wrap/automake-1.15
config.status: linking <$HOME>/spack/var/spack/stage/automake-1.15-bhojsqx6uunp35vog7p2v7nmgcvypb36/automake-1.15/GNUmakefile to GNUmakefile
==> 'make' '-j8'
  GEN      bin/automake
  GEN      bin/aclocal
  GEN      t/ax/cc-no-c-o
  GEN      doc/aclocal.1
  GEN      runtest
  GEN      doc/automake.1
  GEN      t/ax/shell-no-trail-bslash
  GEN      lib/Automake/Config.pm
  GEN      t/ax/test-defs.sh
  GEN      doc/aclocal-1.15.1
  GEN      doc/automake-1.15.1
help2man: can't get `--help' info from automake-1.15
Try `--no-discard-stderr' if option outputs to stderr
Makefile:3687: recipe for target 'doc/automake-1.15.1' failed
make: *** [doc/automake-1.15.1] Error 2
make: *** Waiting for unfinished jobs....

About this issue

  • Original URL
  • State: closed
  • Created 10 years ago
  • Comments: 18 (10 by maintainers)

Most upvoted comments

I ran into this some months ago on a newly configured Centos 7 machine. I fixed it with

yum install perl-Thread-Queue

refer to this

Ubuntu-17.10 (so yeah, admittedly I’m running not-yet-released software) gives this error too, even after installing perl-Thread-Queue (or on Ubuntu libthread-queue-any-perl and adding a dependency on perl.

@erikzenker On Arch it appears to be a different issue. For me I got the same error message and managed to fix it by modifying the source code of automake and escape all curly braces in regex expressions. Here is a patch for the fix.

We can add a perl-thread-queue package to Spack. But if we add a Perl dependency to Automake, we’ll need @hartzell’s magic to avoid some nasty shebang length issues.