[Dune] [#916] aclocal files from non-standard directories are not considered by dune-autogen

Dune flyspray at dune-project.org
Sat Jun 11 14:09:42 CEST 2011


THIS IS AN AUTOMATED MESSAGE, DO NOT REPLY.

The following task has a new comment added:

FS#916 - aclocal files from non-standard directories are not considered by dune-autogen
User who did this - Elias Pipping (pipping)

----------
I have the dune (2.1.0) modules common,grid,istl,localfunctions installed to ${DUNEDIR} which is not below ${HOME}. I'm building  below ${HOME}, namely ${HOME}/dune-grid-how-2.1.0.

I've created an empty ./stamp-vc so that dune-autogen can be run.

I first expected this to work:
                                
andorra% PATH=${DUNEDIR}/bin/:$PATH dunecontrol autogen
--- going to build dune-grid-howto  ---
--- calling autogen for dune-grid-howto ---
--> dunedoxynize...
--> libtoolize...
Remember to add `AC_PROG_LIBTOOL' to `configure.ac'.
You should add the contents of `/usr/share/aclocal/libtool.m4' to `aclocal.m4'.
--> writing dependencies.m4
    for dune-grid-howto 2.1.0 dune at dune-project.org
        requires  dune-common >= 2.1  dune-grid >= 2.1  dune-istl >= 2.1 
--> aclocal...
configure.ac:5: error: m4_defn: undefined macro: _m4_divert_diversion
configure.ac:5: the top level
autom4te: /usr/bin/m4 failed with exit status: 1
aclocal: autom4te failed with exit status: 1
--- Failed to build dune-grid-howto ---
Terminating dunecontrol due to previous errors!
andorra% 

Then this:

andorra% ACLOCAL_FLAGS=-I${DUNEDIR}/share/aclocal PATH=${DUNEDIR}/bin/:$PATH dunecontrol autogen
--- going to build dune-grid-howto  ---
--- calling autogen for dune-grid-howto ---
--> dunedoxynize...
--> libtoolize...
Remember to add `AC_PROG_LIBTOOL' to `configure.ac'.
--> writing dependencies.m4
    for dune-grid-howto 2.1.0 dune at dune-project.org
        requires  dune-common >= 2.1  dune-grid >= 2.1  dune-istl >= 2.1 
--> aclocal...
configure.ac:45: warning: DUNE_SYNC_FC_F77 is m4_require'd but not m4_defun'd
/home/cocktail/pipping/RAID/dune-2.1.0/share/aclocal/dune_all.m4:10: DUNE_CHECK_ALL is expanded from...
configure.ac:45: the top level

Error: Could not find dune-common/am!
Usage: dune-autogen DUNE_MODULE_PATH_LIST [options]
  --ac=, --acversion=VERSION   use a specific VERSION of autoconf
  --am=, --amversion=VERSION   use a specific VERSION of automake
  -h,    --help                you already found this :-)
--- Failed to build dune-grid-howto ---
Terminating dunecontrol due to previous errors!
andorra% 

In both situations, dunecontrol export yields

DUNE_CONTROL_PATH=${HOME}/dune-grid-howto-2.1.0/dune.module
(I've reverted the expansion of $HOME manually in the above output)

If I adjust DUNE_CONTROL_PATH like this:

andorra% mod=( common grid istl localfunctions ); for ((i=1; i<=${#mod[@]}; ++i)); do mod[i]=${DUNEDIR}/lib/dunecontrol/dune-${mod[i]}/dune.module; done; DUNE_CONTROL_PATH=$(IFS=:; echo "${mod[*]}"):${PWD}/dune.module 

then dunecontrol export yields

export DUNE_CONTROL_PATH=${DUNEDIR}/dune.module:${DUNEDIR}/dune.module:${DUNEDIR}/dune.module:${DUNEDIR}/dune.module:${HOME}/dune-grid-howto-2.1.0/dune.module
(again, I've reverted expansion of DUNEDIR and HOME manually in the above)

With DUNE_CONTROL_PATH set as above, PATH set so that dunecontrol is found, and even ACLOCAL_FLAGS set as above, dunecontrol still fails in the following way:

andorra% mod=( common grid istl localfunctions ); for ((i=1; i<=${#mod[@]}; ++i)); do mod[i]=${DUNEDIR}/lib/dunecontrol/dune-${mod[i]}/dune.module; done; DUNE_CONTROL_PATH=$(IFS=:; echo "${mod[*]}"):${PWD}/dune.module PATH=${DUNEDIR}/bin/:$PATH ACLOCAL_FLAGS=-I${DUNEDIR}/share/aclocal dunecontrol autogen 
--- going to build dune-grid-howto  ---
--- calling autogen for dune-grid-howto ---
Found am directory /home/cocktail/pipping/RAID/dune-2.1.0/share/dune-common/am
Found am directory /home/cocktail/pipping/RAID/dune-2.1.0/share/dune-common/am
Found am directory /home/cocktail/pipping/RAID/dune-2.1.0/share/dune-common/am
Found am directory /home/cocktail/pipping/RAID/dune-2.1.0/share/dune-common/am
Found am directory /home/cocktail/pipping/RAID/dune-2.1.0/share/dune-common/am
--> dunedoxynize...
--> libtoolize...
Remember to add `AC_PROG_LIBTOOL' to `configure.ac'.
--> writing dependencies.m4
    for dune-grid-howto 2.1.0 dune at dune-project.org
        requires  dune-common >= 2.1  dune-grid >= 2.1  dune-istl >= 2.1 
--> aclocal...
configure.ac:45: warning: DUNE_SYNC_FC_F77 is m4_require'd but not m4_defun'd
/home/cocktail/pipping/RAID/dune-2.1.0/share/aclocal/dune_all.m4:10: DUNE_CHECK_ALL is expanded from...
configure.ac:45: the top level
--> linking dune-common/am...
rm: cannot remove `am': Is a directory
--- Failed to build dune-grid-howto ---
Terminating dunecontrol due to previous errors!
andorra% 

PS: /home/cocktail/pipping/RAID/dune-2.1.0 is what DUNEDIR expands to. Since ~/RAID is a symlink to /home/cocktail2/${USER}, though, ${DUNEDIR} is not actually below ${HOME}.
----------

More information can be found at the following URL:
http://www.dune-project.org/flyspray/index.php?do=details&task_id=916#comment2604

You are receiving this message because you have requested it from the Flyspray bugtracking system.  If you did not expect this message or don't want to receive mails in future, you can change your notification settings at the URL shown above.




More information about the Dune mailing list