Recursive variables in serial tests Makefile
I'm building SION 1.7.6 and got these message from the regression tests:
cd build; make -f RealMakefile test
......
++++++++++ Test Serial ++++++++++++++++++++++++
make[5]: Entering directory '/gpfs/fs1/SHARE/Utils/SION/1.7.6/PGI-20.4_CUDA-10.2.89.0_440.33.01_OpenMPI-4.0.4rc1/distro/build-linux-pgi-openmpi-64/build/test/serial'
pgcc -c -c99 -m64 -g -D_SION_LINUX -D_LARGEFILE64_SOURCE -D_FILE_OFFSET_BITS=64 -D__USE_LARGEFILE64 -D__USE_FILE_OFFSET64 -g -I. -I../../lib -I../../parlib -D_SION_LINUX test_seropn_1.c
Makefile:16: *** Recursive variable 'CXXFLAGS' references itself (eventually). Stop.
make[5]: Leaving directory '/gpfs/fs1/SHARE/Utils/SION/1.7.6/PGI-20.4_CUDA-10.2.89.0_440.33.01_OpenMPI-4.0.4rc1/distro/build-linux-pgi-openmpi-64/build/test/serial'
RealMakefile:92: recipe for target 'all-test-ser' failed
make[4]: [all-test-ser] Error 2 (ignored)
++++++++++ TEST Serial ++++++++++++++++++++++++
make[5]: Entering directory '/gpfs/fs1/SHARE/Utils/SION/1.7.6/PGI-20.4_CUDA-10.2.89.0_440.33.01_OpenMPI-4.0.4rc1/distro/build-linux-pgi-openmpi-64/build/test/serial'
Makefile:16: *** Recursive variable 'CXXFLAGS' references itself (eventually). Stop.
make[5]: Leaving directory '/gpfs/fs1/SHARE/Utils/SION/1.7.6/PGI-20.4_CUDA-10.2.89.0_440.33.01_OpenMPI-4.0.4rc1/distro/build-linux-pgi-openmpi-64/build/test/serial'
RealMakefile:332: recipe for target 'test-ser' failed
make[4]: [test-ser] Error 2 (ignored)
The line in question in this
16 CXXFLAGS = $(CXXFLAGS) -I../../cppinterface
17 FFLAGS += -g
and I think the preferred syntax would be
16 CXXFLAGS += -I../../cppinterface
17 FFLAGS += -g
similar in structure to the line below it.
Reported by Carl Ponder via e-mail cponder@nvidia.com