[Dune] Dune on cygwin
Ganesh Diwan
gcdiwan83 at gmail.com
Thu Feb 5 19:22:08 CET 2015
Following the addition of cmake to Cygwin, I tried running
./dune-common/bin/dunecontrol --use-cmake all
and the result is:
./dune-common-2.3.1/bin/dunecontrol --use-cmake all
WARNING: could not find module dune-alugrid,
module is also unknown to pkg-config.
Maybe you need to adjust PKG_CONFIG_PATH!
dune-alugrid is suggested by dune-fem
Skipping dune-alugrid!
WARNING: could not find module dune-spgrid,
module is also unknown to pkg-config.
Maybe you need to adjust PKG_CONFIG_PATH!
dune-spgrid is suggested by dune-fem
Skipping dune-spgrid!
--- going to build dune-common dune-geometry dune-grid dune-istl
dune-localfunctions dune-fem dune-fem-howto dune-grid-dev-howto
dune-grid-howto ---
No build directory provided. Defaulting to the sub directory build-cmake
--- calling all for dune-common ---
--- calling vcsetup for dune-common ---
--- calling autogen for dune-common ---
Skipping dune-autogen because of CMake
--- calling configure for dune-common ---
cmake -DCMAKE_MODULE_PATH="" -DCMAKE_DISABLE_FIND_PACKAGE_MPI=TRUE
"/cygdrive/c/LocalApp/local/dune2.3.1/dune-common-2.3.1"
CMake Warning at /usr/share/cmake-2.8.11.2/Modules/Platform/CYGWIN.cmake:15
(message):
CMake no longer defines WIN32 on Cygwin!
(1) If you are just trying to build this project, ignore this warning or
quiet it by setting CMAKE_LEGACY_CYGWIN_WIN32=0 in your environment or in
the CMake cache. If later configuration or build errors occur then this
project may have been written under the assumption that Cygwin is WIN32.
In that case, set CMAKE_LEGACY_CYGWIN_WIN32=1 instead.
(2) If you are developing this project, add the line
set(CMAKE_LEGACY_CYGWIN_WIN32 0) # Remove when CMake >= 2.8.4 is
required
at the top of your top-level CMakeLists.txt file or set the minimum
required version of CMake to 2.8.4 or higher. Then teach your project to
build on Cygwin without WIN32.
Call Stack (most recent call first):
/usr/share/cmake-2.8.11.2/Modules/CMakeSystemSpecificInformation.cmake:36
(include)
CMakeLists.txt:2 (project)
CMake Error at
/usr/share/cmake-2.8.11.2/Modules/FortranCInterface.cmake:288 (message):
The Fortran compiler:
/usr/bin/gfortran.exe
and the CXX compiler:
/usr/bin/c++.exe
failed to compile a simple test project using both languages. The output
was:
Change Dir:
/cygdrive/c/LocalApp/local/dune2.3.1/dune-common-2.3.1/build-cmake/CMakeFiles/FortranCInterface/VerifyCXX
Run Build
Command:/cygdrive/c/LocalApp/local/MinGW64/mingw64/bin/make.exe
/usr/bin/cmake.exe
-H/usr/share/cmake-2.8.11.2/Modules/FortranCInterface/Verify
-B/cygdrive/c/LocalApp/local/dune2.3.1/dune-common-2.3.1/build-cmake/CMakeFiles/FortranCInterface/VerifyCXX
--check-build-system CMakeFiles/Makefile.cmake 0
/usr/bin/cmake.exe -E cmake_progress_start
/cygdrive/c/LocalApp/local/dune2.3.1/dune-common-2.3.1/build-cmake/CMakeFiles/FortranCInterface/VerifyCXX/CMakeFiles
/cygdrive/c/LocalApp/local/dune2.3.1/dune-common-2.3.1/build-cmake/CMakeFiles/FortranCInterface/VerifyCXX/CMakeFiles/progress.marks
C:/LocalApp/local/MinGW64/mingw64/bin/make -f CMakeFiles/Makefile2 all
make[1]: Entering directory
'C:/LocalApp/local/dune2.3.1/dune-common-2.3.1/build-cmake/CMakeFiles/FortranCInterface/VerifyCXX'
C:/LocalApp/local/MinGW64/mingw64/bin/make -f
CMakeFiles/VerifyFortran.dir/build.make CMakeFiles/VerifyFortran.dir/depend
make[2]: Entering directory
'C:/LocalApp/local/dune2.3.1/dune-common-2.3.1/build-cmake/CMakeFiles/FortranCInterface/VerifyCXX'
cd
/cygdrive/c/LocalApp/local/dune2.3.1/dune-common-2.3.1/build-cmake/CMakeFiles/FortranCInterface/VerifyCXX
&& /usr/bin/cmake.exe -E cmake_depends "Unix Makefiles"
/usr/share/cmake-2.8.11.2/Modules/FortranCInterface/Verify
/usr/share/cmake-2.8.11.2/Modules/FortranCInterface/Verify
/cygdrive/c/LocalApp/local/dune2.3.1/dune-common-2.3.1/build-cmake/CMakeFiles/FortranCInterface/VerifyCXX
/cygdrive/c/LocalApp/local/dune2.3.1/dune-common-2.3.1/build-cmake/CMakeFiles/FortranCInterface/VerifyCXX
/cygdrive/c/LocalApp/local/dune2.3.1/dune-common-2.3.1/build-cmake/CMakeFiles/FortranCInterface/VerifyCXX/CMakeFiles/VerifyFortran.dir/DependInfo.cmake
Scanning dependencies of target VerifyFortran
make[2]: Leaving directory
'C:/LocalApp/local/dune2.3.1/dune-common-2.3.1/build-cmake/CMakeFiles/FortranCInterface/VerifyCXX'
C:/LocalApp/local/MinGW64/mingw64/bin/make -f
CMakeFiles/VerifyFortran.dir/build.make
CMakeFiles/VerifyFortran.dir/requires
make[2]: Entering directory
'C:/LocalApp/local/dune2.3.1/dune-common-2.3.1/build-cmake/CMakeFiles/FortranCInterface/VerifyCXX'
make[2]: Nothing to be done for 'CMakeFiles/VerifyFortran.dir/requires'.
make[2]: Leaving directory
'C:/LocalApp/local/dune2.3.1/dune-common-2.3.1/build-cmake/CMakeFiles/FortranCInterface/VerifyCXX'
C:/LocalApp/local/MinGW64/mingw64/bin/make -f
CMakeFiles/VerifyFortran.dir/build.make CMakeFiles/VerifyFortran.dir/build
make[2]: Entering directory
'C:/LocalApp/local/dune2.3.1/dune-common-2.3.1/build-cmake/CMakeFiles/FortranCInterface/VerifyCXX'
make[2]: Leaving directory
'C:/LocalApp/local/dune2.3.1/dune-common-2.3.1/build-cmake/CMakeFiles/FortranCInterface/VerifyCXX'
make[2]: *** No rule to make target
'/usr/share/cmake-2.8.11.2/Modules/FortranCInterface/Verify/VerifyFortran.f',
needed by 'CMakeFiles/VerifyFortran.dir/VerifyFortran.f.o'. Stop.
CMakeFiles/Makefile2:66: recipe for target
'CMakeFiles/VerifyFortran.dir/all' failed
make[1]: Leaving directory
'C:/LocalApp/local/dune2.3.1/dune-common-2.3.1/build-cmake/CMakeFiles/FortranCInterface/VerifyCXX'
make[1]: *** [CMakeFiles/VerifyFortran.dir/all] Error 2
makefile:78: recipe for target 'all' failed
make: *** [all] Error 2
Call Stack (most recent call first):
cmake/modules/DuneMacros.cmake:612 (FortranCInterface_VERIFY)
CMakeLists.txt:17 (dune_project)
-- Configuring incomplete, errors occurred!
--- Failed to build dune-common ---
Terminating dunecontrol due to previous errors!
I am not sure why /usr/bin/gfortran.exe and /usr/bin/c++ are not able to
compile the programs.
Ganesh
On Thu, Feb 5, 2015 at 2:07 PM, Ganesh Diwan <gcdiwan83 at gmail.com> wrote:
> Thanks
> I just updated my Cygwin installation with Cmake. I see that Cmake is
> going to be default build system for newer Dune versions.
> I will try this and update you with my progress
>
> Ganesh
>
> On Thu, Feb 5, 2015 at 2:03 PM, Christoph GrĂ¼ninger <
> christoph.grueninger at iws.uni-stuttgart.de> wrote:
>
>> Hi Ganesh,
>> Cygwin provides a own CMake package, maybe you try that, I don't know.
>>
>> Christoph
>>
>> --
>> GDB does hate your application, expresses its contempt through the
>> design of its command-line interface. -- Tom Tromey, FOSDEM 2014
>>
>>
>> _______________________________________________
>> Dune mailing list
>> Dune at dune-project.org
>> http://lists.dune-project.org/mailman/listinfo/dune
>>
>>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.dune-project.org/pipermail/dune/attachments/20150205/77455442/attachment.htm>
More information about the Dune
mailing list