[Dune] Dune on cygwin

Ganesh Diwan gcdiwan83 at gmail.com
Wed Feb 4 12:50:24 CET 2015


Hi Oliver

I could update my Cygwin installation with pkg-config. After this I type
following in my Cygwin terminal

./dune-common-2.3.1/bin/dunecontrol all

I see the Dune issue following warnings:

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!

However, I ignore them and let Dune proceed but I receive following at the
end:

checking ALUGrid version >= 1.52... no
checking alugrid_serial.h usability... no
checking alugrid_serial.h presence... no
checking for alugrid_serial.h... no
configure: WARNING: alugrid_serial.h not found in /include
configure: error: could not find required module dune-geometry
--- Failed to build dune-grid ---
Terminating dunecontrol due to previous errors!


As you must have noticed, I have clipped this message. I am not sure why
Dune is not able to find dune-geometry although dune-common/ and
dune-geometry/ are in the same main directory (/dune/).
Though Dune only issues only a warning about ALUGrid, I tried issuing
./configure in ALUGrid-1.52/ directory but I get following:

checking for a BSD-compatible install... /usr/bin/install -c
checking whether build environment is sane... yes
checking for a thread-safe mkdir -p... /usr/bin/mkdir -p
checking for gawk... gawk
checking whether make sets $(MAKE)... yes
checking for style of include used by make... GNU
checking for g++... g++
checking whether the C++ compiler works... yes
checking for C++ compiler default output file name... a.exe
checking for suffix of executables... .exe
checking whether we are cross compiling... no
checking for suffix of object files... o
checking whether we are using the GNU C++ compiler... yes
checking whether g++ accepts -g... yes
checking dependency style of g++... gcc3
checking how to run the C++ preprocessor... g++ -E
checking whether ln -s works... yes
checking for ranlib... ranlib
checking build system type... x86_64-unknown-cygwin
checking host system type... x86_64-unknown-cygwin
checking how to print strings... printf
checking for gcc... gcc
checking whether we are using the GNU C compiler... yes
checking whether gcc accepts -g... yes
checking for gcc option to accept ISO C89... none needed
checking dependency style of gcc... gcc3
checking for a sed that does not truncate output... /usr/bin/sed
checking for grep that handles long lines and -e... /usr/bin/grep
checking for egrep... /usr/bin/grep -E
checking for fgrep... /usr/bin/grep -F
checking for ld used by gcc... /usr/x86_64-pc-cygwin/bin/ld.exe
checking if the linker (/usr/x86_64-pc-cygwin/bin/ld.exe) is GNU ld... yes
checking for BSD- or MS-compatible name lister (nm)... /usr/bin/nm -B
checking the name lister (/usr/bin/nm -B) interface... BSD nm
checking the maximum length of command line arguments... 8192
checking whether the shell understands some XSI constructs... yes
checking whether the shell understands "+="... yes
checking how to convert x86_64-unknown-cygwin file names to
x86_64-unknown-cygwin format... func_convert_file_noop
checking how to convert x86_64-unknown-cygwin file names to toolchain
format... func_convert_file_noop
checking for /usr/x86_64-pc-cygwin/bin/ld.exe option to reload object
files... -r
checking for objdump... objdump
checking how to recognize dependent libraries... file_magic ^x86 archive
import|^x86 DLL
checking for dlltool... dlltool
checking how to associate runtime and link libraries...
func_cygming_dll_for_implib
checking for ar... ar
checking for archiver @FILE support... @
checking for strip... strip
checking for ranlib... (cached) ranlib
checking command to parse /usr/bin/nm -B output from gcc object... ok
checking for sysroot... no
checking for mt... no
checking if : is a manifest tool... no
checking how to run the C preprocessor... gcc -E
checking for ANSI C header files... yes
checking for sys/types.h... yes
checking for sys/stat.h... yes
checking for stdlib.h... yes
checking for string.h... yes
checking for memory.h... yes
checking for strings.h... yes
checking for inttypes.h... yes
checking for stdint.h... yes
checking for unistd.h... yes
checking for dlfcn.h... yes
checking for objdir... .libs
checking if gcc supports -fno-rtti -fno-exceptions... ./configure: line
8743: diff: command not found
no
checking for gcc option to produce PIC... -DDLL_EXPORT -DPIC
checking if gcc PIC flag -DDLL_EXPORT -DPIC works... yes
checking if gcc static flag -static works... yes
checking if gcc supports -c -o file.o... yes
checking if gcc supports -c -o file.o... (cached) yes
checking whether the gcc linker (/usr/x86_64-pc-cygwin/bin/ld.exe) supports
shared libraries... yes
checking dynamic linker characteristics... Win32 ld.exe
checking how to hardcode library paths into programs... immediate
checking whether stripping libraries is possible... yes
checking if libtool supports shared libraries... yes
checking whether to build shared libraries... no
checking whether to build static libraries... yes
checking how to run the C++ preprocessor... g++ -E
checking for ld used by g++... /usr/x86_64-pc-cygwin/bin/ld.exe
checking if the linker (/usr/x86_64-pc-cygwin/bin/ld.exe) is GNU ld... yes
checking whether the g++ linker (/usr/x86_64-pc-cygwin/bin/ld.exe) supports
shared libraries... yes
checking for g++ option to produce PIC... -DDLL_EXPORT -DPIC
checking if g++ PIC flag -DDLL_EXPORT -DPIC works... yes
checking if g++ static flag -static works... yes
checking if g++ supports -c -o file.o... yes
checking if g++ supports -c -o file.o... (cached) yes
checking whether the g++ linker (/usr/x86_64-pc-cygwin/bin/ld.exe) supports
shared libraries... yes
checking dynamic linker characteristics... Win32 ld.exe
checking how to hardcode library paths into programs... immediate
checking for size_t... yes
checking whether struct tm is in sys/time.h or time.h... time.h
checking for stdlib.h... (cached) yes
checking for GNU libc compatible malloc... yes
checking for mpicc... no
checking for hcc... no
checking for mpcc... no
checking for mpcc_r... no
checking for mpxlc... no
checking for cmpicc... no
checking for mpic++... no
checking for mpicxx... no
checking for mpiCC... no
checking for mpCC... no
checking for hcp... no
checking for mpxlC... no
checking for mpxlC_r... no
checking for cmpic++... no
checking for MPI_Finalize... no
checking alugrid_serial.h usability... no
checking alugrid_serial.h presence... no
checking for alugrid_serial.h... no
configure: WARNING: alugrid_serial.h could not be found or compiled!
checking for which type of run mode ALUGrid can be used... none
checking iostream usability... yes
checking iostream presence... yes
checking for iostream... yes
checking stack usability... yes
checking stack presence... yes
checking for stack... yes
checking map usability... yes
checking map presence... yes
checking for map... yes
checking for pow in -lm... yes
checking for sqrt... yes
checking for strchr... yes
checking for misc/examples/Makefile.am... no
configure: creating ./config.status
config.status: creating Makefile
config.status: creating src/serial/Makefile
config.status: creating src/parallel/Makefile
config.status: creating src/duneinterface/Makefile
config.status: creating src/alu2d/Makefile
config.status: creating src/Makefile
config.status: creating misc/Makefile
config.status: creating misc/macrogrids/Makefile
config.status: creating misc/versioncheck/Makefile
config.status: creating alugrid.pc
config.status: creating config.h
config.status: executing depfiles commands
config.status: executing libtool commands

ALUGrid is not ready to compile for computations!

The following components where found:
-------------------------------------

METIS............: no
ParMETIS.........: no
MPI..............: no (run again with ./configure CXX=g++ .... or use 'gcc
-show' to obtain CXXFLAGS and LDFLAGS)

-------------------------------------

See ./configure --help and config.log for reasons why a component wasn't
found

What am I doing wrong? Is there a hope :) ?

Thank you
Ganesh Diwan

On Wed, Feb 4, 2015 at 5:43 AM, Oliver Sander <sander at igpm.rwth-aachen.de>
wrote:

> Hi Ganesh,
>
> >  Sorry but I do not have it installed on my PC. I access Dune from the
> > department server and do not know how it was installed there.
> > It would have been helpful if there is a way to get Dune working on
> > Windows PC. I tried installing it via Cygwin but got held up due to
> missing
> > pkg-config.
>
> that doesn't really sound a like a difficult problem.  pkg-config is a
> little
> unix program that helps to detect what is installed on your machine.  Do
> you
> have it installed?  What is the precise error message?
>
> Cheers,
> Oliver
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.dune-project.org/pipermail/dune/attachments/20150204/c6c8ac68/attachment.htm>


More information about the Dune mailing list