Build failure when some precisions are disabled
Run cmake with some disabled precisions, for instance:
cmake .. -DCHAMELEON_PREC_C=OFF -DCHAMELEON_PREC_Z=OFF
The build fails at the end:
[ 96%] Linking C executable chameleon_stesting
/usr/bin/ld: ../compute/libchameleon.a(tile.c.o): in function `CHAMELEON_Lap2Desc':
/home/philippe/dev/chameleon/control/tile.c:124: undefined reference to `CHAMELEON_cLap2Desc'
/usr/bin/ld: /home/philippe/dev/chameleon/control/tile.c:121: undefined reference to `CHAMELEON_zLap2Desc'
/usr/bin/ld: ../compute/libchameleon.a(tile.c.o): in function `CHAMELEON_Desc2Lap':
/home/philippe/dev/chameleon/control/tile.c:171: undefined reference to `CHAMELEON_cDesc2Lap'
/usr/bin/ld: /home/philippe/dev/chameleon/control/tile.c:168: undefined reference to `CHAMELEON_zDesc2Lap'
collect2: error: ld returned 1 exit status
make[2]: *** [testing/CMakeFiles/chameleon_dtesting.dir/build.make:1125: testing/chameleon_dtesting] Error 1
make[1]: *** [CMakeFiles/Makefile2:2112: testing/CMakeFiles/chameleon_dtesting.dir/all] Error 2
make[1]: *** Attente des tâches non terminées....
/usr/bin/ld: ../compute/libchameleon.a(tile.c.o): in function `CHAMELEON_Lap2Desc':
/home/philippe/dev/chameleon/control/tile.c:124: undefined reference to `CHAMELEON_cLap2Desc'
/usr/bin/ld: /home/philippe/dev/chameleon/control/tile.c:121: undefined reference to `CHAMELEON_zLap2Desc'
/usr/bin/ld: ../compute/libchameleon.a(tile.c.o): in function `CHAMELEON_Desc2Lap':
/home/philippe/dev/chameleon/control/tile.c:171: undefined reference to `CHAMELEON_cDesc2Lap'
/usr/bin/ld: /home/philippe/dev/chameleon/control/tile.c:168: undefined reference to `CHAMELEON_zDesc2Lap'
collect2: error: ld returned 1 exit status
make[2]: *** [testing/CMakeFiles/chameleon_stesting.dir/build.make:1125: testing/chameleon_stesting] Error 1
make[1]: *** [CMakeFiles/Makefile2:2068: testing/CMakeFiles/chameleon_stesting.dir/all] Error 2
make: *** [Makefile:163: all] Error 2
If you enable all precisions, the build works.