{"action":"created","issue":{"url":"https://api.github.com/repos/ValeevGroup/tiledarray/issues/68","labels_url":"https://api.github.com/repos/ValeevGroup/tiledarray/issues/68/labels{/name}","comments_url":"https://api.github.com/repos/ValeevGroup/tiledarray/issues/68/comments","events_url":"https://api.github.com/repos/ValeevGroup/tiledarray/issues/68/events","html_url":"https://github.com/ValeevGroup/tiledarray/issues/68","id":125841211,"number":68,"title":"madness doesn't compile due to not finding BLAS function using toolchain files","user":{"login":"pchong90","id":3442099,"avatar_url":"https://avatars.githubusercontent.com/u/3442099?v=3","gravatar_id":"","url":"https://api.github.com/users/pchong90","html_url":"https://github.com/pchong90","followers_url":"https://api.github.com/users/pchong90/followers","following_url":"https://api.github.com/users/pchong90/following{/other_user}","gists_url":"https://api.github.com/users/pchong90/gists{/gist_id}","starred_url":"https://api.github.com/users/pchong90/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/pchong90/subscriptions","organizations_url":"https://api.github.com/users/pchong90/orgs","repos_url":"https://api.github.com/users/pchong90/repos","events_url":"https://api.github.com/users/pchong90/events{/privacy}","received_events_url":"https://api.github.com/users/pchong90/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":5,"created_at":"2016-01-10T19:56:12Z","updated_at":"2016-01-10T20:49:25Z","closed_at":null,"body":"I tried both blueridge-intel.cmake and intel-mpi-mkl-tbb.cmake. They are giving the same error.\r\n```\r\n-- Found Threads: TRUE\r\n-- Found MPI_C: /opt/apps/intel15_3/impi/5.0/intel64/lib/libmpifort.so;/opt/apps/intel15_3/impi/5.0/intel64/lib/release_mt/libmpi.so;/opt/apps/intel15_3/impi/5.0/intel64/lib/libmpigi.a;/usr/lib64/libdl.so;/usr/lib64/librt.so;/usr/lib64/libpthread.so\r\n-- Found MPI_CXX: /opt/apps/intel15_3/impi/5.0/intel64/lib/libmpicxx.so;/opt/apps/intel15_3/impi/5.0/intel64/lib/libmpifort.so;/opt/apps/intel15_3/impi/5.0/intel64/lib/release_mt/libmpi.so;/opt/apps/intel15_3/impi/5.0/intel64/lib/libmpigi.a;/usr/lib64/libdl.so;/usr/lib64/librt.so;/usr/lib64/libpthread.so\r\n-- Could NOT find ACML (missing:  ACML_LIBRARIES)\r\n-- Looking for sgemm_\r\n-- Looking for sgemm_ - not found\r\n-- Looking for sgemm\r\n-- Looking for sgemm - not found\r\n-- Looking for sgemm__\r\n-- Looking for sgemm__ - not found\r\n-- Looking for SGEMM\r\n-- Looking for SGEMM - not found\r\n-- Looking for SGEMM_\r\n-- Looking for SGEMM_ - not found\r\nCMake Error at external/lapack.cmake:58 (message):\r\n  Uable to link against BLAS function.  Specify the BLAS library in\r\n  LAPACK_LIBRARIES.\r\nCall Stack (most recent call first):\r\n  CMakeLists.txt:475 (include)\r\n\r\n\r\n-- Configuring incomplete, errors occurred!\r\nSee also \"/home/pchong90/Development/build/tiledarray_intel_release/external/build/madness/CMakeFiles/CMakeOutput.log\".\r\nSee also \"/home/pchong90/Development/build/tiledarray_intel_release/external/build/madness/CMakeFiles/CMakeError.log\".\r\nCMake Error at external/madness.cmake:265 (message):\r\n  The MADNESS cmake configuration failed.\r\nCall Stack (most recent call first):\r\n  CMakeLists.txt:211 (include)\r\n\r\n\r\n-- Configuring incomplete, errors occurred!\r\n```\r\n\r\nCMakeError.log\r\n```\r\n179 Determining if the function sgemm_ exists failed with the following output:\r\n180 Change Dir: /home/pchong90/Development/build/tiledarray_intel_release/external/build/madness/CMakeFiles/CMakeTmp\r\n181\r\n182 Run Build Command:\"/usr/bin/gmake\" \"cmTryCompileExec4189553775/fast\"\r\n183 /usr/bin/gmake -f CMakeFiles/cmTryCompileExec4189553775.dir/build.make CMakeFiles/cmTryCompileExec4189553775.dir/bu    ild\r\n184 gmake[1]: Entering directory `/home/pchong90/Development/build/tiledarray_intel_release/external/build/madness/CMak    eFiles/CMakeTmp'\r\n185 /opt/apps/cmake/3.1.3/bin/cmake -E cmake_progress_report /home/pchong90/Development/build/tiledarray_intel_release/    external/build/madness/CMakeFiles/CMakeTmp/CMakeFiles 1\r\n186 Building C object CMakeFiles/cmTryCompileExec4189553775.dir/CheckFunctionExists.c.o\r\n187 /opt/apps/intel/15.3/bin/intel64/icc   -std=c99 -gcc-name=/opt/apps/gcc/4.9.2/bin/gcc -DCHECK_FUNCTION_EXISTS=sgemm    _   -o CMakeFiles/cmTryCompileExec4189553775.dir/CheckFunctionExists.c.o   -c /opt/apps/cmake/3.1.3/share/cmake-3.1    /Modules/CheckFunctionExists.c\r\n188 Linking C executable cmTryCompileExec4189553775\r\n189 /opt/apps/cmake/3.1.3/bin/cmake -E cmake_link_script CMakeFiles/cmTryCompileExec4189553775.dir/link.txt --verbose=1\r\n190 /opt/apps/intel/15.3/bin/intel64/icc  -std=c99 -gcc-name=/opt/apps/gcc/4.9.2/bin/gcc -DCHECK_FUNCTION_EXISTS=sgemm_       CMakeFiles/cmTryCompileExec4189553775.dir/CheckFunctionExists.c.o  -o cmTryCompileExec4189553775 -rdynamic -lpth    read\r\n191 CMakeFiles/cmTryCompileExec4189553775.dir/CheckFunctionExists.c.o: In function `main':\r\n192 CheckFunctionExists.c:(.text+0x32): undefined reference to `sgemm_'\r\n193 gmake[1]: *** [cmTryCompileExec4189553775] Error 1\r\n194 gmake[1]: Leaving directory `/home/pchong90/Development/build/tiledarray_intel_release/external/build/madness/CMake    Files/CMakeTmp'\r\n195 gmake: *** [cmTryCompileExec4189553775/fast] Error 2\r\n196\r\n197\r\n198 Determining if the function sgemm exists failed with the following output:\r\n199 Change Dir: /home/pchong90/Development/build/tiledarray_intel_release/external/build/madness/CMakeFiles/CMakeTmp\r\n200\r\n201 Run Build Command:\"/usr/bin/gmake\" \"cmTryCompileExec147123858/fast\"\r\n202 /usr/bin/gmake -f CMakeFiles/cmTryCompileExec147123858.dir/build.make CMakeFiles/cmTryCompileExec147123858.dir/buil    d\r\n203 gmake[1]: Entering directory `/home/pchong90/Development/build/tiledarray_intel_release/external/build/madness/CMak    eFiles/CMakeTmp'\r\n204 /opt/apps/cmake/3.1.3/bin/cmake -E cmake_progress_report /home/pchong90/Development/build/tiledarray_intel_release/    external/build/madness/CMakeFiles/CMakeTmp/CMakeFiles 1\r\n205 Building C object CMakeFiles/cmTryCompileExec147123858.dir/CheckFunctionExists.c.o\r\n206 /opt/apps/intel/15.3/bin/intel64/icc   -std=c99 -gcc-name=/opt/apps/gcc/4.9.2/bin/gcc -DCHECK_FUNCTION_EXISTS=sgemm       -o CMakeFiles/cmTryCompileExec147123858.dir/CheckFunctionExists.c.o   -c /opt/apps/cmake/3.1.3/share/cmake-3.1/M    odules/CheckFunctionExists.c\r\n207 Linking C executable cmTryCompileExec147123858\r\n208 /opt/apps/cmake/3.1.3/bin/cmake -E cmake_link_script CMakeFiles/cmTryCompileExec147123858.dir/link.txt --verbose=1\r\n209 /opt/apps/intel/15.3/bin/intel64/icc  -std=c99 -gcc-name=/opt/apps/gcc/4.9.2/bin/gcc -DCHECK_FUNCTION_EXISTS=sgemm       CMakeFiles/cmTryCompileExec147123858.dir/CheckFunctionExists.c.o  -o cmTryCompileExec147123858 -rdynamic -lpthrea    d\r\n210 CMakeFiles/cmTryCompileExec147123858.dir/CheckFunctionExists.c.o: In function `main':\r\n211 CheckFunctionExists.c:(.text+0x32): undefined reference to `sgemm'\r\n212 gmake[1]: *** [cmTryCompileExec147123858] Error 1\r\n213 gmake[1]: Leaving directory `/home/pchong90/Development/build/tiledarray_intel_release/external/build/madness/CMake    Files/CMakeTmp'\r\n214 gmake: *** [cmTryCompileExec147123858/fast] Error 2\r\n\r\n217 Determining if the function sgemm__ exists failed with the following output:\r\n218 Change Dir: /home/pchong90/Development/build/tiledarray_intel_release/external/build/madness/CMakeFiles/CMakeTmp\r\n219\r\n220 Run Build Command:\"/usr/bin/gmake\" \"cmTryCompileExec2591891790/fast\"\r\n221 /usr/bin/gmake -f CMakeFiles/cmTryCompileExec2591891790.dir/build.make CMakeFiles/cmTryCompileExec2591891790.dir/bu    ild\r\n222 gmake[1]: Entering directory `/home/pchong90/Development/build/tiledarray_intel_release/external/build/madness/CMak    eFiles/CMakeTmp'\r\n223 /opt/apps/cmake/3.1.3/bin/cmake -E cmake_progress_report /home/pchong90/Development/build/tiledarray_intel_release/    external/build/madness/CMakeFiles/CMakeTmp/CMakeFiles 1\r\n224 Building C object CMakeFiles/cmTryCompileExec2591891790.dir/CheckFunctionExists.c.o\r\n225 /opt/apps/intel/15.3/bin/intel64/icc   -std=c99 -gcc-name=/opt/apps/gcc/4.9.2/bin/gcc -DCHECK_FUNCTION_EXISTS=sgemm    __   -o CMakeFiles/cmTryCompileExec2591891790.dir/CheckFunctionExists.c.o   -c /opt/apps/cmake/3.1.3/share/cmake-3.    1/Modules/CheckFunctionExists.c\r\n226 Linking C executable cmTryCompileExec2591891790\r\n227 /opt/apps/cmake/3.1.3/bin/cmake -E cmake_link_script CMakeFiles/cmTryCompileExec2591891790.dir/link.txt --verbose=1\r\n228 /opt/apps/intel/15.3/bin/intel64/icc  -std=c99 -gcc-name=/opt/apps/gcc/4.9.2/bin/gcc -DCHECK_FUNCTION_EXISTS=sgemm_    _   CMakeFiles/cmTryCompileExec2591891790.dir/CheckFunctionExists.c.o  -o cmTryCompileExec2591891790 -rdynamic -lpt    hread\r\n229 CMakeFiles/cmTryCompileExec2591891790.dir/CheckFunctionExists.c.o: In function `main':\r\n230 CheckFunctionExists.c:(.text+0x32): undefined reference to `sgemm__'\r\n231 gmake[1]: *** [cmTryCompileExec2591891790] Error 1\r\n232 gmake[1]: Leaving directory `/home/pchong90/Development/build/tiledarray_intel_release/external/build/madness/CMake    Files/CMakeTmp'\r\n233 gmake: *** [cmTryCompileExec2591891790/fast] Error 2\r\n234\r\n235\r\n236 Determining if the function SGEMM exists failed with the following output:\r\n237 Change Dir: /home/pchong90/Development/build/tiledarray_intel_release/external/build/madness/CMakeFiles/CMakeTmp\r\n238\r\n239 Run Build Command:\"/usr/bin/gmake\" \"cmTryCompileExec3573315187/fast\"\r\n240 /usr/bin/gmake -f CMakeFiles/cmTryCompileExec3573315187.dir/build.make CMakeFiles/cmTryCompileExec3573315187.dir/bu    ild\r\n241 gmake[1]: Entering directory `/home/pchong90/Development/build/tiledarray_intel_release/external/build/madness/CMak    eFiles/CMakeTmp'\r\n242 /opt/apps/cmake/3.1.3/bin/cmake -E cmake_progress_report /home/pchong90/Development/build/tiledarray_intel_release/    external/build/madness/CMakeFiles/CMakeTmp/CMakeFiles 1\r\n243 Building C object CMakeFiles/cmTryCompileExec3573315187.dir/CheckFunctionExists.c.o\r\n244 /opt/apps/intel/15.3/bin/intel64/icc   -std=c99 -gcc-name=/opt/apps/gcc/4.9.2/bin/gcc -DCHECK_FUNCTION_EXISTS=SGEMM       -o CMakeFiles/cmTryCompileExec3573315187.dir/CheckFunctionExists.c.o   -c /opt/apps/cmake/3.1.3/share/cmake-3.1/    Modules/CheckFunctionExists.c\r\n245 Linking C executable cmTryCompileExec3573315187\r\n246 /opt/apps/cmake/3.1.3/bin/cmake -E cmake_link_script CMakeFiles/cmTryCompileExec3573315187.dir/link.txt --verbose=1\r\n247 /opt/apps/intel/15.3/bin/intel64/icc  -std=c99 -gcc-name=/opt/apps/gcc/4.9.2/bin/gcc -DCHECK_FUNCTION_EXISTS=SGEMM       CMakeFiles/cmTryCompileExec3573315187.dir/CheckFunctionExists.c.o  -o cmTryCompileExec3573315187 -rdynamic -lpthr    ead\r\n248 CMakeFiles/cmTryCompileExec3573315187.dir/CheckFunctionExists.c.o: In function `main':\r\n249 CheckFunctionExists.c:(.text+0x32): undefined reference to `SGEMM'\r\n250 gmake[1]: *** [cmTryCompileExec3573315187] Error 1\r\n251 gmake[1]: Leaving directory `/home/pchong90/Development/build/tiledarray_intel_release/external/build/madness/CMake    Files/CMakeTmp'\r\n252 gmake: *** [cmTryCompileExec3573315187/fast] Error 2\r\n\r\n255 Determining if the function SGEMM_ exists failed with the following output:\r\n256 Change Dir: /home/pchong90/Development/build/tiledarray_intel_release/external/build/madness/CMakeFiles/CMakeTmp\r\n257\r\n258 Run Build Command:\"/usr/bin/gmake\" \"cmTryCompileExec2234682603/fast\"\r\n259 /usr/bin/gmake -f CMakeFiles/cmTryCompileExec2234682603.dir/build.make CMakeFiles/cmTryCompileExec2234682603.dir/bu    ild\r\n260 gmake[1]: Entering directory `/home/pchong90/Development/build/tiledarray_intel_release/external/build/madness/CMak    eFiles/CMakeTmp'\r\n261 /opt/apps/cmake/3.1.3/bin/cmake -E cmake_progress_report /home/pchong90/Development/build/tiledarray_intel_release/    external/build/madness/CMakeFiles/CMakeTmp/CMakeFiles 1\r\n262 Building C object CMakeFiles/cmTryCompileExec2234682603.dir/CheckFunctionExists.c.o\r\n263 /opt/apps/intel/15.3/bin/intel64/icc   -std=c99 -gcc-name=/opt/apps/gcc/4.9.2/bin/gcc -DCHECK_FUNCTION_EXISTS=SGEMM    _   -o CMakeFiles/cmTryCompileExec2234682603.dir/CheckFunctionExists.c.o   -c /opt/apps/cmake/3.1.3/share/cmake-3.1    /Modules/CheckFunctionExists.c\r\n264 Linking C executable cmTryCompileExec2234682603\r\n265 /opt/apps/cmake/3.1.3/bin/cmake -E cmake_link_script CMakeFiles/cmTryCompileExec2234682603.dir/link.txt --verbose=1\r\n266 /opt/apps/intel/15.3/bin/intel64/icc  -std=c99 -gcc-name=/opt/apps/gcc/4.9.2/bin/gcc -DCHECK_FUNCTION_EXISTS=SGEMM_       CMakeFiles/cmTryCompileExec2234682603.dir/CheckFunctionExists.c.o  -o cmTryCompileExec2234682603 -rdynamic -lpth    read\r\n267 CMakeFiles/cmTryCompileExec2234682603.dir/CheckFunctionExists.c.o: In function `main':\r\n268 CheckFunctionExists.c:(.text+0x32): undefined reference to `SGEMM_'\r\n269 gmake[1]: *** [cmTryCompileExec2234682603] Error 1\r\n270 gmake[1]: Leaving directory `/home/pchong90/Development/build/tiledarray_intel_release/external/build/madness/CMake    Files/CMakeTmp'\r\n271 gmake: *** [cmTryCompileExec2234682603/fast] Error 2\r\n272\r\n```"},"comment":{"url":"https://api.github.com/repos/ValeevGroup/tiledarray/issues/comments/170392864","html_url":"https://github.com/ValeevGroup/tiledarray/issues/68#issuecomment-170392864","issue_url":"https://api.github.com/repos/ValeevGroup/tiledarray/issues/68","id":170392864,"user":{"login":"pchong90","id":3442099,"avatar_url":"https://avatars.githubusercontent.com/u/3442099?v=3","gravatar_id":"","url":"https://api.github.com/users/pchong90","html_url":"https://github.com/pchong90","followers_url":"https://api.github.com/users/pchong90/followers","following_url":"https://api.github.com/users/pchong90/following{/other_user}","gists_url":"https://api.github.com/users/pchong90/gists{/gist_id}","starred_url":"https://api.github.com/users/pchong90/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/pchong90/subscriptions","organizations_url":"https://api.github.com/users/pchong90/orgs","repos_url":"https://api.github.com/users/pchong90/repos","events_url":"https://api.github.com/users/pchong90/events{/privacy}","received_events_url":"https://api.github.com/users/pchong90/received_events","type":"User","site_admin":false},"created_at":"2016-01-10T20:49:25Z","updated_at":"2016-01-10T20:49:25Z","body":"I understand. I got empty result If I print `MKL_LIBRARY` in madness.cmake file. It seems like some information is not passed to madness correctly. I tried your solution, I got this error\r\n```\r\n-- ** Configuring MADNESS\r\nCMake Error: The source directory \"/home/pchong90/Development/build/tiledarray_intel_release/external/build/madness/-ldl\" does not exist.\r\nSpecify --help for usage, or press the help button on the CMake GUI.\r\nCMake Error at external/madness.cmake:269 (message):\r\n  The MADNESS cmake configuration failed.\r\nCall Stack (most recent call first):\r\n  CMakeLists.txt:211 (include)\r\n```\r\n\r\n"}}