Build failure with icc 2018u3 on SL7.6 system
lalsuite fails to build inspawgfile.c and HoughMismatch.c from master on a Xeon Gold system running SL7.6 with icc 2018u3 unless I manually remove -Werror from lalapps/src/findchirp/Makefile and lalapps/src/pulsar/Hough/Makefile. And after building, make check fails as indicated below.
$ git config --get remote.origin.url git@git.ligo.org:lscsoft/lalsuite.git $ git show commit 5be8b4b25c7f9c21cf78edb13a1073937f3e7983 (HEAD -> master, origin/master, origin/HEAD) Merge: a946128ea2 92995270fd $ cat /etc/redhat-release Scientific Linux release 7.6 (Nitrogen) $ lscpu | grep name Model name: Intel(R) Xeon(R) Gold 6136 CPU @ 3.00GHz $ icc -v icc version 18.0.3 (gcc version 4.8.5 compatibility) # The following all succeed, $ ./00boot $ env CC=icc ./configure
However, the following fails,
$ make -j make[1]: Entering directory `/dev/shm/anderson/lalsuite/lalapps/src/findchirp' CC inspawgfile.o inspawgfile.c(309): error #279: controlling expression is constant CHECKVAL( npt, 0, 2147483647 ); ^ inspawgfile.c(310): error #279: controlling expression is constant CHECKVAL( dt, 0, LAL_REAL4_MAX ); ^ ... compilation aborted for inspawgfile.c (code 2) make[1]: *** [inspawgfile.o] Error 2 make[1]: Leaving directory `/dev/shm/anderson/lalsuite/lalapps/src/findchirp'
and also,
make[8]: Entering directory `/dev/shm/anderson/lalsuite/lalapps/src/pulsar/Hough' CC HoughMismatch.o HoughMismatch.c(205): error #279: controlling expression is constant SUB( LALRngMedBias( &status, &normalizeThr, uvar_blocksRngMed ), &status ); ^ HoughMismatch.c(249): error #279: controlling expression is constant SUB( LALReadSFTfiles ( &status, &inputSFTs, uvar_f0 - sftBand, uvar_f0 + sftBand, nfSizeCylinder + uvar_blocksRngMed , tempDir), &status); ^
After remove -Werror "make -j check" fails at,
FAIL: VectorMathTests.sh $ cat lal/test/vectorops/test-suite.log ================================================= LAL 6.20.2.1: test/vectorops/test-suite.log ================================================= # TOTAL: 2 # PASS: 1 # SKIP: 0 # XFAIL: 0 # FAIL: 1 # XPASS: 0 # ERROR: 0 .. contents:: :depth: 2 FAIL: VectorMathTests ===================== ./VectorMathTests.sh: compiler supports GEN SSE SSE2 SSE3 SSSE3 SSE4.1 SSE4.2 AVX ./VectorMathTests.sh: machine supports GEN SSE SSE2 SSE3 SSSE3 SSE4.1 SSE4.2 AVX AVX2 ========== testing SSE instruction set ========== XLAL Error - main (VectorMathTest.c:319): LogREAL4: relative error (3.10614e-07) exceeds tolerance (2e-07) XLAL Error - main (VectorMathTest.c:319): Failed to reach specified tolerance FAIL VectorMathTests.sh (exit status: 1)
Edited by Stuart Anderson