TACC/perfexpert

autogen.sh fails with GNU automake 1.15

ginomcevoy opened this issue · 0 comments

autogen / autoreconf fail to setup the Makefiles due to a warning (GNU automake 1.15):

$ autogen.sh
....
common/Makefile.am: installing 'config/depcomp'
automake: warnings are treated as errors
tools/macpo/Makefile.am:30: warning: source file '$(GTEST_SRC)/gtest-all.cc' is in a subdirectory,
tools/macpo/Makefile.am:30: but option 'subdir-objects' is disabled
...
autoreconf: automake failed with exit status: 1

Attempts to configure fail because Makefile.in is missing:

config.status: creating tools/Makefile
config.status: error: cannot find input file: `tools/perfexpert/Makefile.in'

I managed to fix this error by adding "subdirs-objects" parameter to AM_INIT_AUTOMAKE in configure.ac.

Possibly related to this (or a different bug) is a failure to build macpo due to unresolved variable names:

make[2]: Entering directory '/home/giacomo/hpc/src/perfexpert/tools/macpo'
Makefile:894: ../../contrib/gtest/src/.deps/gtest-all.Plo: No such file or directory
Makefile:895: ../../contrib/gtest/src/.deps/gtest_main.Plo: No such file or directory
Makefile:896: inst/.deps/aligncheck.Po: No such file or directory
Makefile:897: inst/.deps/analysis_profile.Po: No such file or directory
giacomo@giacomo:~/hpc/src/perfexpert/tools/macpo$ ls
$(GTEST_SRC)   $(srcdir)    Makefile.am  analyze   inst      libset       tests
$(MINST_BASE)  $(utestdir)  Makefile.in  common    libmacpo  macpo.sh
$(itestdir)    Makefile     README.md    examples  libmrt    macpo.sh.in

Copying the object files manually to the right folders solved this issue.