tianjiao@LAPTOP-68HVI9QQ:~/tough3-build/esd-tough3$ bash ./configure.sh --eos=$EOS_NUM --no-x11 --use-mpi=0 --prefix=$HOME/tough3-serial --with-cxx-compiler=i586-mingw32msvc-g++ --with-c-compiler=i586-mingw32msvc-gcc --with-fort-compiler=x86_64-w64-mingw32-gfortran --no-x11 [Sat Jul 18 21:55:26 CST 2020] Build directories ready [Sat Jul 18 21:55:27 CST 2020] Build with C compiler: i586-mingw32msvc-gcc [Sat Jul 18 21:55:27 CST 2020] Build with C++ compiler: i586-mingw32msvc-g++ [Sat Jul 18 21:55:27 CST 2020] Build with Fortran compiler: x86_64-w64-mingw32-gfortran [Sat Jul 18 21:55:27 CST 2020] Searching for mpiexec [Sat Jul 18 21:55:27 CST 2020] Searching for mpiexec [Sat Jul 18 21:55:27 CST 2020] MPIEXEC used: /usr/local/bin/mpiexec [Sat Jul 18 21:55:27 CST 2020] Compiler Check complete [Sat Jul 18 21:55:27 CST 2020] Tool check complete Running on a Debian system... -DUSE_MPI:BOOL=FALSE -DCMAKE_CXX_COMPILER:FILEPATH=i586-mingw32msvc-g++ -DCMAKE_C_COMPILER:FILEPATH=i586-mingw32msvc-gcc -DCMAKE_Fortran_COMPILER:FILEPATH=x86_64-w64-mingw32-gfortran -DUSE_X11:BOOL=FALSE [Sat Jul 18 21:55:27 CST 2020] -- C compiler is i586-mingw32msvc-gcc -- Fortran compiler is x86_64-w64-mingw32-gfortran statusUSE_PETSC = OFF in esd-toughlib/CMakeLists.txt -- Setting build type -- Setting build type -- DEBUG -- Download TPL files in /home/tianjiao/tough3-serial/build/tpl-build/tpls/Downloads -- Install TPLs in /home/tianjiao/tough3-serial/tough3-install/tpls -- A library with BLAS API found. -- A library with BLAS API found. -- A library with LAPACK API found. -- Configuring done You have changed variables that require your cache to be deleted. Configure will be re-run and you may have to reset some variables. The following variables have changed: CMAKE_Fortran_COMPILER= x86_64-w64-mingw32-gfortran CMAKE_C_COMPILER= i586-mingw32msvc-gcc CMAKE_C_COMPILER= i586-mingw32msvc-gcc CMAKE_CXX_COMPILER= i586-mingw32msvc-g++ CMAKE_Fortran_COMPILER= x86_64-w64-mingw32-gfortran CMAKE_C_COMPILER= i586-mingw32msvc-gcc CMAKE_CXX_COMPILER= i586-mingw32msvc-g++ -- C compiler is i586-mingw32msvc-gcc -- Fortran compiler is x86_64-w64-mingw32-gfortran -- The Fortran compiler identification is GNU 9.3.0 -- Check for working Fortran compiler: /usr/bin/x86_64-w64-mingw32-gfortran -- Check for working Fortran compiler: /usr/bin/x86_64-w64-mingw32-gfortran -- works -- Detecting Fortran compiler ABI info -- Detecting Fortran compiler ABI info - failed -- Checking whether /usr/bin/x86_64-w64-mingw32-gfortran supports Fortran 90 -- Checking whether /usr/bin/x86_64-w64-mingw32-gfortran supports Fortran 90 -- yes -- The C compiler identification is GNU 4.2.1 -- Check for working C compiler: /usr/bin/i586-mingw32msvc-gcc -- Check for working C compiler: /usr/bin/i586-mingw32msvc-gcc -- works -- Detecting C compiler ABI info -- Detecting C compiler ABI info - done -- Detecting C compile features -- Detecting C compile features - done -- The CXX compiler identification is GNU 4.2.1 -- Check for working CXX compiler: /usr/bin/i586-mingw32msvc-g++ -- Check for working CXX compiler: /usr/bin/i586-mingw32msvc-g++ -- works -- Detecting CXX compiler ABI info -- Detecting CXX compiler ABI info - done -- Detecting CXX compile features -- Detecting CXX compile features - done statusUSE_PETSC = OFF in esd-toughlib/CMakeLists.txt -- Setting build type -- Setting build type -- Release -- Download TPL files in /home/tianjiao/tough3-serial/build/tpl-build/tpls/Downloads -- Install TPLs in /home/tianjiao/tough3-serial/build/tpl-build/tpls -- Looking for pthread.h -- Looking for pthread.h - not found -- Could NOT find Threads (missing: Threads_FOUND) -- A library with BLAS API not found. Please specify library location. -- Found Perl: /usr/bin/perl (found version "5.30.0") -- Could NOT find Threads (missing: Threads_FOUND) -- A library with BLAS API not found. Please specify library location. -- LAPACK requires BLAS -- A library with LAPACK API not found. Please specify library location. CMake Error at /usr/local/share/cmake-3.8/Modules/ExternalProject.cmake:2506 (add_custom_target): add_custom_target cannot create target "BLAS" because another target with the same name already exists. The existing target is a custom target created in source directory "/home/tianjiao/tough3-build/esd-toughlib/tpls". See documentation for policy CMP0002 for more details. Call Stack (most recent call first): tpls/include/Build_BLAS.cmake:35 (ExternalProject_add) tpls/CMakeLists.txt:111 (include) CMake Error at /usr/local/share/cmake-3.8/Modules/ExternalProject.cmake:2506 (add_custom_target): add_custom_target cannot create target "lapack" because another target with the same name already exists. The existing target is a custom target created in source directory "/home/tianjiao/tough3-build/esd-toughlib/tpls". See documentation for policy CMP0002 for more details. Call Stack (most recent call first): tpls/include/Build_LAPACK.cmake:27 (ExternalProject_Add) tpls/CMakeLists.txt:118 (include) -- Configuring incomplete, errors occurred! See also "/home/tianjiao/tough3-serial/build/tpl-build/CMakeFiles/CMakeOutput.log". See also "/home/tianjiao/tough3-serial/build/tpl-build/CMakeFiles/CMakeError.log". Script ERROR: Failed to configure TOUGH TPLS