#1607: TestMath: undefined reference in function TestMath_CC on loewe machine -----------------------------------+---------------------------------------- Reporter: bmundim | Owner: Type: defect | Status: new Priority: major | Milestone: Component: EinsteinToolkit thorn | Version: development version Keywords: TestMath | -----------------------------------+---------------------------------------- Trying to compile ET on loewe results in the following linking error:
{{{ /home/astro/mundim/tmp/einstein_test/Cactus/configs/et/lib/libthorn_TestMath.a(math_cc.cc.o): In function `TestMath_CC': /home/astro/mundim/tmp/einstein_test/Cactus/arrangements/CactusTest/TestMath/src/math_cc.cc:178: undefined reference to `__builtin_fmaxf' /home/astro/mundim/tmp/einstein_test/Cactus/arrangements/CactusTest/TestMath/src/math_cc.cc:181: undefined reference to `__builtin_fmaxl' /home/astro/mundim/tmp/einstein_test/Cactus/arrangements/CactusTest/TestMath/src/math_cc.cc:190: undefined reference to `__builtin_fminf' /home/astro/mundim/tmp/einstein_test/Cactus/arrangements/CactusTest/TestMath/src/math_cc.cc:193: undefined reference to `__builtin_fminl' }}}
loewe.cfg does set -std=c99 to CFLAGS. Any ideas on working around this error?
#1607: TestMath: undefined reference in function TestMath_CC on loewe machine ------------------------------------+--------------------------------------- Reporter: bmundim | Owner: Type: defect | Status: new Priority: major | Milestone: Component: EinsteinToolkit thorn | Version: development version Resolution: | Keywords: TestMath ------------------------------------+---------------------------------------
Comment (by eschnett):
This is an installation problem with the Intel compiler.
Many systems have similar problems. The work-around is to add the following to CXXFLAGS: {{{ -D__builtin_fmaxf=fmaxf -D__builtin_fmaxl=fmaxl -D__builtin_fminf=fminf -D__builtin_fminl=fminl }}} See also kraken-intel12.cfg for an example.
This is a C++ problem; CFLAGS is not relevant.
#1607: TestMath: undefined reference in function TestMath_CC on loewe machine ------------------------------------+--------------------------------------- Reporter: bmundim | Owner: Type: defect | Status: new Priority: major | Milestone: Component: EinsteinToolkit thorn | Version: development version Resolution: | Keywords: TestMath ------------------------------------+---------------------------------------
Comment (by bmundim):
Thanks! I updated loewe.cfg and ran the testsuites. You said it is an installation problem with intel compilers. Do you know what needs to be done to install them correctly? I could point this out to the sys admin on loewe.
#1607: TestMath: undefined reference in function TestMath_CC on loewe machine ------------------------------------+--------------------------------------- Reporter: bmundim | Owner: Type: defect | Status: new Priority: major | Milestone: Component: EinsteinToolkit thorn | Version: development version Resolution: | Keywords: TestMath ------------------------------------+---------------------------------------
Comment (by eschnett):
No, I don't know what needs to be done. Typically, the Intel compilers have certain requirements, e.g. certain version(s) of gcc must be installed. With other versions, these errors may occur. On many HPC systems, the version of gcc is too old.
Since the Intel compilers are offered commercially, I recommend contacting Intel's user support for this. There may also be an FAQ on Intel's web site.
#1607: TestMath: undefined reference in function TestMath_CC on loewe machine ------------------------------------+--------------------------------------- Reporter: bmundim | Owner: Type: defect | Status: new Priority: major | Milestone: Component: EinsteinToolkit thorn | Version: development version Resolution: | Keywords: TestMath ------------------------------------+---------------------------------------
Comment (by eschnett):
I believe Loewe's options have been corrected. Can we close this ticket?
#1607: TestMath: undefined reference in function TestMath_CC on loewe machine ------------------------------------+--------------------------------------- Reporter: bmundim | Owner: Type: defect | Status: closed Priority: major | Milestone: Component: EinsteinToolkit thorn | Version: development version Resolution: fixed | Keywords: TestMath ------------------------------------+--------------------------------------- Changes (by bmundim):
* status: new => closed * resolution: => fixed
Comment:
Yes, I am closing this ticket! Thanks a lot for pointing out the solution!
trac@lists.einsteintoolkit.org