You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Getting some warnings about the subdir-objects setting.
This setting causes object files to be always placed in the same build dir as their source, instead of the build dir of the Makefile.am that is using them. (This is the same directory unless the Makefile.am includes source files from other directories, as happens in several places in bes.) This is documented here: https://www.gnu.org/software/automake/manual/html_node/Program-and-Library-Variables.html
IIRC this is a result of changes in automake defaults. In olden times, subdir-objects was on by default, but now it is off by default.
This is fixed by adding subdir-objects to the list of options for AM_INIT_AUTOMAKE in configure.ac.
functions/unit-tests/Makefile.am:140: warning: source file '../RangeFunction.cc' is in a subdirectory,
functions/unit-tests/Makefile.am:140: but option 'subdir-objects' is disabled
automake: warning: possible forward-incompatibility.
automake: At least a source file is in a subdirectory, but the 'subdir-objects'
automake: automake option hasn't been enabled. For now, the corresponding output
automake: object file(s) will be placed in the top-level directory. However,
automake: this behaviour will change in future Automake versions: they will
automake: unconditionally cause object files to be placed in the same subdirectory
automake: of the corresponding sources.
automake: You are advised to start using 'subdir-objects' option throughout your
automake: project, to avoid future incompatibilities.
functions/unit-tests/Makefile.am:132: warning: source file '../scale_util.cc' is in a subdirectory,
functions/unit-tests/Makefile.am:132: but option 'subdir-objects' is disabled
functions/unit-tests/Makefile.am:136: warning: source file '../scale_util.cc' is in a subdirectory,
functions/unit-tests/Makefile.am:136: but option 'subdir-objects' is disabled
modules/dmrpp_module/Makefile.am:78: warning: source file '$(srcdir)/../hdf5_handler/h5common.cc' is in a subdirectory,
modules/dmrpp_module/Makefile.am:78: but option 'subdir-objects' is disabled
modules/dmrpp_module/unit-tests/Makefile.am:127: warning: source file '$(top_srcdir)/modules/read_test_baseline.cc' is in a subdirectory,
modules/dmrpp_module/unit-tests/Makefile.am:127: but option 'subdir-objects' is disabled
modules/dmrpp_module/unit-tests/Makefile.am:130: warning: source file '$(top_srcdir)/modules/read_test_baseline.cc' is in a subdirectory,
modules/dmrpp_module/unit-tests/Makefile.am:130: but option 'subdir-objects' is disabled
The text was updated successfully, but these errors were encountered:
Getting some warnings about the subdir-objects setting.
This setting causes object files to be always placed in the same build dir as their source, instead of the build dir of the Makefile.am that is using them. (This is the same directory unless the Makefile.am includes source files from other directories, as happens in several places in bes.) This is documented here: https://www.gnu.org/software/automake/manual/html_node/Program-and-Library-Variables.html
IIRC this is a result of changes in automake defaults. In olden times, subdir-objects was on by default, but now it is off by default.
This is fixed by adding subdir-objects to the list of options for AM_INIT_AUTOMAKE in configure.ac.
The text was updated successfully, but these errors were encountered: