<div dir="ltr"><div>Commenting out the Fortran part did help but cmake appears to have the problem with config.h file in my build-cmake folder. I think the option of CMAKE_LEGACY_CYGWIN_WIN32=1 is irrelevant as I used<br></div>64 bit Cygwin installation. Description of the error below-<br><div><br>$ ./bin/dunecontrol --use-cmake all<br>--- going to build dune-common  ---<br>No build directory provided. Defaulting to the sub directory build-cmake<br>--- calling all for dune-common ---<br>--- calling vcsetup for dune-common ---<br>--- calling autogen for dune-common ---<br>Skipping dune-autogen because of CMake<br>--- calling configure for dune-common ---<br> cmake -DCMAKE_MODULE_PATH=""  -DCMAKE_DISABLE_FIND_PACKAGE_MPI=TRUE  "/cygdrive/c/LocalApp/local/dune2.3.1/dune-common-2.3.1"<br>CMake Warning at /usr/share/cmake-2.8.11.2/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.11.2/Modules/CMakeSystemSpecificInformation.cmake:36 (include)<br>  CMakeLists.txt:2 (project)<br><br><br>CMake Warning at cmake/modules/DuneDoc.cmake:27 (message):<br>   Need latex to create documentation!<br>Call Stack (most recent call first):<br>  cmake/modules/DuneMacros.cmake:625 (include)<br>  CMakeLists.txt:17 (dune_project)<br><br><br>-- Could NOT find Doxygen (missing:  DOXYGEN_EXECUTABLE)<br>-- Performing tests specific to dune-common from file /cygdrive/c/LocalApp/local/dune2.3.1/dune-common-2.3.1/cmake/modules/DuneCommonMacros.cmake.<br>-- Could NOT find GMP (missing:  GMP_HEADER_WORKS GMPXX_LIB_WORKS)<br>-- Could NOT find Boost<br>-- Using scripts from /cygdrive/c/LocalApp/local/dune2.3.1/dune-common-2.3.1/cmake/scripts for creating doxygen stuff.<br>-- Not adding custom target for config.h generation<br>--<br>-- The following OPTIONAL packages have been found:<br><br> * PkgConfig<br> * Threads<br><br>-- The following OPTIONAL packages have not been found:<br><br> * LATEX<br> * Doxygen<br> * GMP<br> * Inkscape<br> * Boost<br><br>-- Configuring done<br>-- Generating done<br>-- Build files have been written to: /cygdrive/c/LocalApp/local/dune2.3.1/dune-common-2.3.1/build-cmake<br>--- calling make for dune-common ---<br>make<br>[  0%] Building CXX object dune/common/CMakeFiles/dunecommon.dir/debugallocator.cc.o<br>/cygdrive/c/LocalApp/local/dune2.3.1/dune-common-2.3.1/dune/common/debugallocator.cc:4:20: fatal error: /cygdrive/c/LocalApp/local/dune2.3.1/dune-common-2.3.1/build-cmake/config.h: Permission denied<br> #include "config.h"<br>                    ^<br>compilation terminated.<br>dune/common/CMakeFiles/dunecommon.dir/build.make:57: recipe for target 'dune/common/CMakeFiles/dunecommon.dir/debugallocator.cc.o' failed<br>make[2]: *** [dune/common/CMakeFiles/dunecommon.dir/debugallocator.cc.o] Error 1<br>CMakeFiles/Makefile2:6945: recipe for target 'dune/common/CMakeFiles/dunecommon.dir/all' failed<br>make[1]: *** [dune/common/CMakeFiles/dunecommon.dir/all] Error 2<br>Makefile:146: recipe for target 'all' failed<br>make: *** [all] Error 2<br>--- Failed to build dune-common ---<br>Terminating dunecontrol due to previous errors!<br><br></div></div><div class="gmail_extra"><br><div class="gmail_quote">On Fri, Feb 6, 2015 at 7:51 AM, Christoph Grüninger <span dir="ltr"><<a href="mailto:christoph.grueninger@iws.uni-stuttgart.de" target="_blank">christoph.grueninger@iws.uni-stuttgart.de</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Hi Ganesh,<br>
great match, I don't know much about Cygwin and Fortran. My ideas are:<br>
<br>
- Update the file in dune-common cmake/modules/LanguageSupport.cmake to<br>
the latest version. If you use Git, updating the releases/2.3 is enough<br>
as I just backported the file update. If you use the tarball, download<br>
the file from [1] and replace it in your dune-common.<br>
<br>
- Try disabling Fortan. Maybe this can be done with a CMake flag, but I<br>
am not aware of the actual flag. Simply comment the relevant lines (all<br>
these lines should have a # at the beginning of the line):<br>
<br>
# optional Fortran support<br>
  include(LanguageSupport)<br>
  workaround_9220(Fortran Fortran_Works)<br>
  if(Fortran_Works)<br>
    enable_language(Fortran OPTIONAL)<br>
  endif(Fortran_Works)<br>
<br>
in dune-common's file cmake/modules/DuneMacros.cmake. This will also<br>
disable some linear solver libraries, but should be good enough to work<br>
with Dune anyway.<br>
<br>
Bye<br>
Christoph<br>
<br>
[1]<br>
> <a href="http://cgit.dune-project.org/repositories/dune-common/plain/cmake/modules/LanguageSupport.cmake?h=releases/2.3" target="_blank">http://cgit.dune-project.org/repositories/dune-common/plain/cmake/modules/LanguageSupport.cmake?h=releases/2.3</a><br>
<div class="HOEnZb"><div class="h5"><br>
<br>
<br>
--<br>
GDB does hate your application, expresses its contempt through the<br>
design of its command-line interface.   -- Tom Tromey, FOSDEM 2014<br>
<br>
</div></div></blockquote></div><br></div>