[fixed] Bug: Build on OSX (all recent version of Abinit)
Posted: Mon Apr 16, 2012 5:24 am
Hi,
As noted in another thread (http://forum.abinit.org/viewtopic.php?f=17&t=1609), there is a build bug in all recent versions of Abinit. The m4 macro AX_PROG_MKDIR_P from util_fixes in both the fallbacks subtree and the tests subtree incorrectly tries to assign MKDIR_P a prefix of "fallbacks_srcdir", which isn't set anywhere. This is still a problem in 6.12.3.
The incorrect assignment leads to build failures if fallbacks are required and a fail during installation of the tests.
The quick workaround for users is simply to change fallbacks_srcdir to srcdir in every instance in the configure files in each subdirectory (it appears to be a relic variable).
The proper fix for developers is to update the AX_PROG_MKDIR_P macro. Just changing fallbacks_srcdir to srcdir might work here but I don't know if this breaks something on autoreconf (or whatever process is used by the abinit devs to generate the configure.ac files and so on).
Is there a higher purpose to the existence of the fallbacks_srcdir variable?
Kane
As noted in another thread (http://forum.abinit.org/viewtopic.php?f=17&t=1609), there is a build bug in all recent versions of Abinit. The m4 macro AX_PROG_MKDIR_P from util_fixes in both the fallbacks subtree and the tests subtree incorrectly tries to assign MKDIR_P a prefix of "fallbacks_srcdir", which isn't set anywhere. This is still a problem in 6.12.3.
The incorrect assignment leads to build failures if fallbacks are required and a fail during installation of the tests.
The quick workaround for users is simply to change fallbacks_srcdir to srcdir in every instance in the configure files in each subdirectory (it appears to be a relic variable).
The proper fix for developers is to update the AX_PROG_MKDIR_P macro. Just changing fallbacks_srcdir to srcdir might work here but I don't know if this breaks something on autoreconf (or whatever process is used by the abinit devs to generate the configure.ac files and so on).
Is there a higher purpose to the existence of the fallbacks_srcdir variable?
Kane