Hi All,<br><br> I am trying to compiling Petsc-3.3 using VC2008. The command I am using under cygwin command window is<br><br>./config/configure.py --with-cc='cl' --with-fc=0 --with-cxx='cl' --with-debugging=0 --download-f2cblaslapack --download-metis --with-sowing=0 --with-c2html -CFLAGS='-MD -wd4996' -CXXFLAGS='-MD -wd4996'<br>
<br> f2cblaslapack is compiled fine. But the metis step has some errors (extracted from configure.log). BTW, I am using Cygwin's cmake. <br><br>===========================================================================================<br>
Error running configure on METIS: Could not execute "cd /cygdrive/c/Library/Petsc/petsc-3.3/externalpackages/metis-5.0.2-p3/arch-mswin-c-opt && /usr/bin/cmake .. -DCMAKE_INSTALL_PREFIX=/cygdrive/c/Library/Petsc/petsc-3.3/arch-mswin-c-opt -DCMAKE_VERBOSE_MAKEFILE=1 -DGKLIB_PATH=../GKlib -DCMAKE_C_COMPILER="/cygdrive/c/Library/Petsc/petsc-3.3/bin/win32fe/win32fe cl" -DCMAKE_C_FLAGS:STRING="-MD -wd4996 -O2 " -DMETIS_USE_DOUBLEPRECISION=1":<br>
-- The C compiler identification is unknown<br>-- The CXX compiler identification is MSVC<br>-- Check for working C compiler: /cygdrive/c/Library/Petsc/petsc-3.3/bin/win32fe/win32fe cl<br>-- Check for working C compiler: /cygdrive/c/Library/Petsc/petsc-3.3/bin/win32fe/win32fe cl -- broken<br>
-- Configuring incomplete, errors occurred!<br>CMake Warning at /usr/share/cmake-2.8.7/Modules/Platform/CYGWIN.cmake:15 (message):<br> CMake no longer defines WIN32 on Cygwin!<br><br> (1) If you are just trying to build this project, ignore this warning or<br>
quiet it by setting CMAKE_LEGACY_CYGWIN_WIN32=0 in your environment or in<br> the CMake cache. If later configuration or build errors occur then this<br> project may have been written under the assumption that Cygwin is WIN32.<br>
In that case, set CMAKE_LEGACY_CYGWIN_WIN32=1 instead.<br><br> (2) If you are developing this project, add the line<br><br> set(CMAKE_LEGACY_CYGWIN_WIN32 0) # Remove when CMake >= 2.8.4 is required<br><br> at the top of your top-level CMakeLists.txt file or set the minimum<br>
required version of CMake to 2.8.4 or higher. Then teach your project to<br> build on Cygwin without WIN32.<br>Call Stack (most recent call first):<br> /usr/share/cmake-2.8.7/Modules/CMakeSystemSpecificInformation.cmake:36 (INCLUDE)<br>
CMakeLists.txt:2 (project)<br><br><br>CMake Error: your C compiler: "/cygdrive/c/Library/Petsc/petsc-3.3/bin/win32fe/win32fe cl" was not found. Please set CMAKE_C_COMPILER to a valid compiler path or name.<br>
CMake Error: Internal CMake error, TryCompile configure of cmake failed<br>CMake Error at /usr/share/cmake-2.8.7/Modules/CMakeTestCCompiler.cmake:52 (MESSAGE):<br> The C compiler "/cygdrive/c/Library/Petsc/petsc-3.3/bin/win32fe/win32fe cl"<br>
is not able to compile a simple test program.<br><br> It fails with the following output:<br><br> <br><br> <br><br> CMake will not be able to correctly generate this project.<br>Call Stack (most recent call first):<br>
CMakeLists.txt:2 (project)<br><br><br>CMake Error: your C compiler: "/cygdrive/c/Library/Petsc/petsc-3.3/bin/win32fe/win32fe cl" was not found. Please set CMAKE_C_COMPILER to a valid compiler path or name.<br>
*******************************************************************************<br> File "./config/configure.py", line 311, in petsc_configure<br> framework.configure(out = sys.stdout)<br> File "/cygdrive/c/Library/Petsc/petsc-3.3/config/BuildSystem/config/framework.py", line 933, in configure<br>
child.configure()<br> File "/cygdrive/c/Library/Petsc/petsc-3.3/config/BuildSystem/config/package.py", line 526, in configure<br> self.executeTest(self.configureLibrary)<br> File "/cygdrive/c/Library/Petsc/petsc-3.3/config/BuildSystem/config/base.py", line 115, in executeTest<br>
ret = apply(test, args,kargs)<br> File "/cygdrive/c/Library/Petsc/petsc-3.3/config/BuildSystem/config/package.py", line 453, in configureLibrary<br> for location, directory, lib, incl in self.generateGuesses():<br>
File "/cygdrive/c/Library/Petsc/petsc-3.3/config/BuildSystem/config/package.py", line 229, in generateGuesses<br> d = self.checkDownload(1)<br> File "/cygdrive/c/Library/Petsc/petsc-3.3/config/BuildSystem/config/package.py", line 320, in checkDownload<br>
return self.getInstallDir()<br> File "/cygdrive/c/Library/Petsc/petsc-3.3/config/BuildSystem/config/package.py", line 184, in getInstallDir<br> return os.path.abspath(self.Install())<br> File "/cygdrive/c/Library/Petsc/petsc-3.3/config/PETSc/packages/metis.py", line 76, in Install<br>
raise RuntimeError('Error running configure on METIS: '+str(e))<br><br><br> <br><br>Mengda<br>