[Dune] Dune on cygwin

Ganesh Diwan gcdiwan83 at gmail.com
Thu Feb 5 14:02:59 CET 2015


Yes, the foo for Hello world program runs fine:
$ ./foo
Hello world!

Ganesh

On Thu, Feb 5, 2015 at 12:55 PM, Ganesh Diwan <gcdiwan83 at gmail.com> wrote:

> Jo, Oliver-
> Complete log is:
> $ make check
> Making check in cmake
> make[1]: Entering directory
> 'C:/LocalApp/local/dune2.3.1/dune-common-2.3.1/cmake'
> Making check in modules
> make[2]: Entering directory
> 'C:/LocalApp/local/dune2.3.1/dune-common-2.3.1/cmake/modules'
> make[2]: Nothing to be done for 'check'.
> make[2]: Leaving directory
> 'C:/LocalApp/local/dune2.3.1/dune-common-2.3.1/cmake/modules'
> Making check in pkg
> make[2]: Entering directory
> 'C:/LocalApp/local/dune2.3.1/dune-common-2.3.1/cmake/pkg'
> make[2]: Nothing to be done for 'check'.
> make[2]: Leaving directory
> 'C:/LocalApp/local/dune2.3.1/dune-common-2.3.1/cmake/pkg'
> Making check in scripts
> make[2]: Entering directory
> 'C:/LocalApp/local/dune2.3.1/dune-common-2.3.1/cmake/scripts'
> make[2]: Nothing to be done for 'check'.
> make[2]: Leaving directory
> 'C:/LocalApp/local/dune2.3.1/dune-common-2.3.1/cmake/scripts'
> make[2]: Entering directory
> 'C:/LocalApp/local/dune2.3.1/dune-common-2.3.1/cmake'
> make[2]: Nothing to be done for 'check-am'.
> make[2]: Leaving directory
> 'C:/LocalApp/local/dune2.3.1/dune-common-2.3.1/cmake'
> make[1]: Leaving directory
> 'C:/LocalApp/local/dune2.3.1/dune-common-2.3.1/cmake'
> Making check in dune
> make[1]: Entering directory
> 'C:/LocalApp/local/dune2.3.1/dune-common-2.3.1/dune'
> Making check in common
> make[2]: Entering directory
> 'C:/LocalApp/local/dune2.3.1/dune-common-2.3.1/dune/common'
> Making check in .
> make[3]: Entering directory
> 'C:/LocalApp/local/dune2.3.1/dune-common-2.3.1/dune/common'
> C:/localapp/local/cygwin64/bin/sh.exe ../../libtool  --tag=CXX
> --mode=compile g++ -std=c++11 -DHAVE_CONFIG_H -I. -I../..  -I../..   -g -O2
> -Wall -MT debugallocator.lo -MD -MP -MF .deps/debugallocator.Tpo -c -o
> debugallocator.lo debugallocator.cc
> libtool: compile:  g++ -std=c++11 -DHAVE_CONFIG_H -I. -I../.. -I../.. -g
> -O2 -Wall -MT debugallocator.lo -MD -MP -MF .deps/debugallocator.Tpo -c
> debugallocator.cc -o debugallocator.o
> mv -f .deps/debugallocator.Tpo .deps/debugallocator.Plo
> C:/localapp/local/cygwin64/bin/sh.exe ../../libtool  --tag=CXX
> --mode=compile g++ -std=c++11 -DHAVE_CONFIG_H -I. -I../..  -I../..   -g -O2
> -Wall -MT fmatrixev.lo -MD -MP -MF .deps/fmatrixev.Tpo -c -o fmatrixev.lo
> fmatrixev.cc
> libtool: compile:  g++ -std=c++11 -DHAVE_CONFIG_H -I. -I../.. -I../.. -g
> -O2 -Wall -MT fmatrixev.lo -MD -MP -MF .deps/fmatrixev.Tpo -c fmatrixev.cc
> -o fmatrixev.o
> mv -f .deps/fmatrixev.Tpo .deps/fmatrixev.Plo
> C:/localapp/local/cygwin64/bin/sh.exe ../../libtool  --tag=CXX
> --mode=compile g++ -std=c++11 -DHAVE_CONFIG_H -I. -I../..  -I../..   -g -O2
> -Wall -MT dynmatrixev.lo -MD -MP -MF .deps/dynmatrixev.Tpo -c -o
> dynmatrixev.lo dynmatrixev.cc
> libtool: compile:  g++ -std=c++11 -DHAVE_CONFIG_H -I. -I../.. -I../.. -g
> -O2 -Wall -MT dynmatrixev.lo -MD -MP -MF .deps/dynmatrixev.Tpo -c
> dynmatrixev.cc -o dynmatrixev.o
> mv -f .deps/dynmatrixev.Tpo .deps/dynmatrixev.Plo
> C:/localapp/local/cygwin64/bin/sh.exe ../../libtool  --tag=CXX
> --mode=compile g++ -std=c++11 -DHAVE_CONFIG_H -I. -I../..  -I../..   -g -O2
> -Wall -MT ios_state.lo -MD -MP -MF .deps/ios_state.Tpo -c -o ios_state.lo
> ios_state.cc
> libtool: compile:  g++ -std=c++11 -DHAVE_CONFIG_H -I. -I../.. -I../.. -g
> -O2 -Wall -MT ios_state.lo -MD -MP -MF .deps/ios_state.Tpo -c ios_state.cc
> -o ios_state.o
> mv -f .deps/ios_state.Tpo .deps/ios_state.Plo
> C:/localapp/local/cygwin64/bin/sh.exe ../../libtool  --tag=CXX
> --mode=compile g++ -std=c++11 -DHAVE_CONFIG_H -I. -I../..  -I../..   -g -O2
> -Wall -MT parametertree.lo -MD -MP -MF .deps/parametertree.Tpo -c -o
> parametertree.lo parametertree.cc
> libtool: compile:  g++ -std=c++11 -DHAVE_CONFIG_H -I. -I../.. -I../.. -g
> -O2 -Wall -MT parametertree.lo -MD -MP -MF .deps/parametertree.Tpo -c
> parametertree.cc -o parametertree.o
> mv -f .deps/parametertree.Tpo .deps/parametertree.Plo
> C:/localapp/local/cygwin64/bin/sh.exe ../../libtool  --tag=CXX
> --mode=compile g++ -std=c++11 -DHAVE_CONFIG_H -I. -I../..  -I../..   -g -O2
> -Wall -MT parametertreeparser.lo -MD -MP -MF .deps/parametertreeparser.Tpo
> -c -o parametertreeparser.lo parametertreeparser.cc
> libtool: compile:  g++ -std=c++11 -DHAVE_CONFIG_H -I. -I../.. -I../.. -g
> -O2 -Wall -MT parametertreeparser.lo -MD -MP -MF
> .deps/parametertreeparser.Tpo -c parametertreeparser.cc -o
> parametertreeparser.o
> mv -f .deps/parametertreeparser.Tpo .deps/parametertreeparser.Plo
> C:/localapp/local/cygwin64/bin/sh.exe ../../libtool  --tag=CXX
> --mode=compile g++ -std=c++11 -DHAVE_CONFIG_H -I. -I../..  -I../..   -g -O2
> -Wall -MT path.lo -MD -MP -MF .deps/path.Tpo -c -o path.lo path.cc
> libtool: compile:  g++ -std=c++11 -DHAVE_CONFIG_H -I. -I../.. -I../.. -g
> -O2 -Wall -MT path.lo -MD -MP -MF .deps/path.Tpo -c path.cc -o path.o
> mv -f .deps/path.Tpo .deps/path.Plo
> C:/localapp/local/cygwin64/bin/sh.exe ../../libtool  --tag=CXX
> --mode=compile g++ -std=c++11 -DHAVE_CONFIG_H -I. -I../..  -I../..   -g -O2
> -Wall -MT exceptions.lo -MD -MP -MF .deps/exceptions.Tpo -c -o
> exceptions.lo exceptions.cc
> libtool: compile:  g++ -std=c++11 -DHAVE_CONFIG_H -I. -I../.. -I../.. -g
> -O2 -Wall -MT exceptions.lo -MD -MP -MF .deps/exceptions.Tpo -c
> exceptions.cc -o exceptions.o
> mv -f .deps/exceptions.Tpo .deps/exceptions.Plo
> C:/localapp/local/cygwin64/bin/sh.exe ../../libtool  --tag=CXX
> --mode=compile g++ -std=c++11 -DHAVE_CONFIG_H -I. -I../..  -I../..   -g -O2
> -Wall -MT stdstreams.lo -MD -MP -MF .deps/stdstreams.Tpo -c -o
> stdstreams.lo stdstreams.cc
> libtool: compile:  g++ -std=c++11 -DHAVE_CONFIG_H -I. -I../.. -I../.. -g
> -O2 -Wall -MT stdstreams.lo -MD -MP -MF .deps/stdstreams.Tpo -c
> stdstreams.cc -o stdstreams.o
> mv -f .deps/stdstreams.Tpo .deps/stdstreams.Plo
> C:/localapp/local/cygwin64/bin/sh.exe ../../libtool  --tag=CXX
> --mode=link g++ -std=c++11  -g -O2 -Wall   -o libcommon.la
> debugallocator.lo fmatrixev.lo dynmatrixev.lo ios_state.lo parametertree.lo
> parametertreeparser.lo path.lo exceptions.lo stdstreams.lo   -lm
> -LC:/LocalApp/local/MinGW64/mingw64/bin/../lib/gcc/x86_64-w64-mingw32/4.9.2
> -LC:/LocalApp/local/MinGW64/mingw64/bin/../lib/gcc
> -LC:/LocalApp/local/MinGW64/mingw64/bin/../lib/gcc/x86_64-w64-mingw32/4.9.2/../../../../x86_64-w64-mingw32/lib/../lib
> -LC:/LocalApp/local/MinGW64/mingw64/bin/../lib/gcc/x86_64-w64-mingw32/4.9.2/../../../../lib
> -LC:/LocalApp/local/MinGW64/mingw64/bin/../lib/gcc/x86_64-w64-mingw32/4.9.2/../../../../x86_64-w64-mingw32/lib
> -LC:/LocalApp/local/MinGW64/mingw64/bin/../lib/gcc/x86_64-w64-mingw32/4.9.2/../../..
> -lgfortran -lmingw32 -lmoldname -lmingwex -lmsvcrt -lquadmath -lm -lpthread
> -ladvapi32 -lshell32 -luser32 -liconv -lm
> libtool: link: rm -fr  .libs/libcommon.a .libs/libcommon.la
> libtool: link: ar cru .libs/libcommon.a  debugallocator.o fmatrixev.o
> dynmatrixev.o ios_state.o parametertree.o parametertreeparser.o path.o
> exceptions.o stdstreams.o
> libtool: link: ranlib .libs/libcommon.a
> libtool: link: ( cd ".libs" && rm -f "libcommon.la" && ln -s "../
> libcommon.la" "libcommon.la" )
> make[3]: Leaving directory
> 'C:/LocalApp/local/dune2.3.1/dune-common-2.3.1/dune/common'
> Making check in test
> make[3]: Entering directory
> 'C:/LocalApp/local/dune2.3.1/dune-common-2.3.1/dune/common/test'
> C:/LocalApp/local/MinGW64/mingw64/bin/make  arraylisttest.exe
> arraytest.exe bigunsignedinttest.exe bitsetvectortest.exe
> check_fvector_size.exe conversiontest.exe diagonalmatrixtest.exe
> dynmatrixtest.exe dynvectortest.exe eigenvaluestest.exe enumsettest.exe
> fassigntest.exe fmatrixtest.exe fvectortest.exe gcdlcmtest.exe
> iteratorfacadetest.exe iteratorfacadetest2.exe lrutest.exe
> mpicollectivecommunication.exe mpiguardtest.exe mpihelpertest.exe
> mpihelpertest2.exe nullptr-test.exe pathtest.exe parametertreetest.exe
> poolallocatortest.exe shared_ptrtest_config.exe shared_ptrtest_dune.exe
> singletontest.exe static_assert_test.exe streamtest.exe
> testdebugallocator.exe testdebugallocator_fail1.exe
> testdebugallocator_fail2.exe testdebugallocator_fail3.exe
> testdebugallocator_fail4.exe testdebugallocator_fail5.exe testfassign1.exe
> testfassign2.exe testfassign3.exe testfassign4.exe testfassign_fail1.exe
> testfassign_fail2.exe testfassign_fail3.exe testfassign_fail4.exe
> testfassign_fail5.exe testfassign_fail6.exe testfconstruct.exe
> testfloatcmp.exe tuplestest_dune.exe tuplestest_std.exe tuplestest_tr1.exe
> tupleutilitytest.exe typetraitstest.exe utilitytest.exe
> make[4]: Entering directory
> 'C:/LocalApp/local/dune2.3.1/dune-common-2.3.1/dune/common/test'
> g++ -std=c++11 -DHAVE_CONFIG_H -I. -I../../..  -I../../..   -g -O2 -Wall
> -MT arraylisttest.o -MD -MP -MF .deps/arraylisttest.Tpo -c -o
> arraylisttest.o arraylisttest.cc
> mv -f .deps/arraylisttest.Tpo .deps/arraylisttest.Po
> C:/localapp/local/cygwin64/bin/sh.exe ../../../libtool  --tag=CXX
> --mode=link g++ -std=c++11  -g -O2 -Wall   -o arraylisttest.exe
> arraylisttest.o ../../../lib/libdunecommon.la -lm
> libtool: link: g++ -std=c++11 -g -O2 -Wall -o arraylisttest.exe
> arraylisttest.o  ../../../lib/.libs/libdunecommon.a
> -LC:/LocalApp/local/MinGW64/mingw64/bin/../lib/gcc/x86_64-w64-mingw32/4.9.2
> -LC:/LocalApp/local/MinGW64/mingw64/bin/../lib/gcc
> -LC:/LocalApp/local/MinGW64/mingw64/bin/../lib/gcc/x86_64-w64-mingw32/4.9.2/../../../../x86_64-w64-mingw32/lib/../lib
> -LC:/LocalApp/local/MinGW64/mingw64/bin/../lib/gcc/x86_64-w64-mingw32/4.9.2/../../../../lib
> -LC:/LocalApp/local/MinGW64/mingw64/bin/../lib/gcc/x86_64-w64-mingw32/4.9.2/../../../../x86_64-w64-mingw32/lib
> -LC:/LocalApp/local/MinGW64/mingw64/bin/../lib/gcc/x86_64-w64-mingw32/4.9.2/../../..
> -lgfortran -lmingw32 -lmoldname -lmingwex -lmsvcrt -lquadmath -lpthread
> -liconv
> arraylisttest.o: In function `operator<< <std::char_traits<char> >':
> /usr/lib/gcc/x86_64-pc-cygwin/4.9.2/include/c++/ostream:535: undefined
> reference to `std::basic_ostream<char, std::char_traits<char> >&
> std::__ostream_insert<char, std::char_traits<char>
> >(std::basic_ostream<char, std::char_traits<char> >&, char const*, long)'
> /usr/lib/gcc/x86_64-pc-cygwin/4.9.2/include/c++/ostream:535:(.text+0x181):
> relocation truncated to fit: R_X86_64_PC32 against undefined symbol
> `std::basic_ostream<char, std::char_traits<char> >&
> std::__ostream_insert<char, std::char_traits<char>
> >(std::basic_ostream<char, std::char_traits<char> >&, char const*, long)'
> /usr/lib/gcc/x86_64-pc-cygwin/4.9.2/include/c++/ostream:535: undefined
> reference to `std::basic_ostream<char, std::char_traits<char> >&
> std::__ostream_insert<char, std::char_traits<char>
> >(std::basic_ostream<char, std::char_traits<char> >&, char const*, long)'
> /usr/lib/gcc/x86_64-pc-cygwin/4.9.2/include/c++/ostream:535:(.text+0x19a):
> relocation truncated to fit: R_X86_64_PC32 against undefined symbol
> `std::basic_ostream<char, std::char_traits<char> >&
> std::__ostream_insert<char, std::char_traits<char>
> >(std::basic_ostream<char, std::char_traits<char> >&, char const*, long)'
> /usr/lib/gcc/x86_64-pc-cygwin/4.9.2/include/c++/ostream:535: undefined
> reference to `std::basic_ostream<char, std::char_traits<char> >&
> std::__ostream_insert<char, std::char_traits<char>
> >(std::basic_ostream<char, std::char_traits<char> >&, char const*, long)'
> /usr/lib/gcc/x86_64-pc-cygwin/4.9.2/include/c++/ostream:535:(.text+0x1b3):
> relocation truncated to fit: R_X86_64_PC32 against undefined symbol
> `std::basic_ostream<char, std::char_traits<char> >&
> std::__ostream_insert<char, std::char_traits<char>
> >(std::basic_ostream<char, std::char_traits<char> >&, char const*, long)'
> /usr/lib/gcc/x86_64-pc-cygwin/4.9.2/include/c++/ostream:535: undefined
> reference to `std::basic_ostream<char, std::char_traits<char> >&
> std::__ostream_insert<char, std::char_traits<char>
> >(std::basic_ostream<char, std::char_traits<char> >&, char const*, long)'
> /usr/lib/gcc/x86_64-pc-cygwin/4.9.2/include/c++/ostream:535:(.text+0x377):
> relocation truncated to fit: R_X86_64_PC32 against undefined symbol
> `std::basic_ostream<char, std::char_traits<char> >&
> std::__ostream_insert<char, std::char_traits<char>
> >(std::basic_ostream<char, std::char_traits<char> >&, char const*, long)'
> /usr/lib/gcc/x86_64-pc-cygwin/4.9.2/include/c++/ostream:535: undefined
> reference to `std::basic_ostream<char, std::char_traits<char> >&
> std::__ostream_insert<char, std::char_traits<char>
> >(std::basic_ostream<char, std::char_traits<char> >&, char const*, long)'
> /usr/lib/gcc/x86_64-pc-cygwin/4.9.2/include/c++/ostream:535:(.text+0x390):
> relocation truncated to fit: R_X86_64_PC32 against undefined symbol
> `std::basic_ostream<char, std::char_traits<char> >&
> std::__ostream_insert<char, std::char_traits<char>
> >(std::basic_ostream<char, std::char_traits<char> >&, char const*, long)'
> arraylisttest.o:/usr/lib/gcc/x86_64-pc-cygwin/4.9.2/include/c++/ostream:535:
> more undefined references to `std::basic_ostream<char,
> std::char_traits<char> >& std::__ostream_insert<char,
> std::char_traits<char> >(std::basic_ostream<char, std::char_traits<char>
> >&, char const*, long)' follow
> arraylisttest.o: In function `operator<< <std::char_traits<char> >':
> /usr/lib/gcc/x86_64-pc-cygwin/4.9.2/include/c++/ostream:535:(.text+0x3a9):
> relocation truncated to fit: R_X86_64_PC32 against undefined symbol
> `std::basic_ostream<char, std::char_traits<char> >&
> std::__ostream_insert<char, std::char_traits<char>
> >(std::basic_ostream<char, std::char_traits<char> >&, char const*, long)'
> /usr/lib/gcc/x86_64-pc-cygwin/4.9.2/include/c++/ostream:535:(.text+0x45a):
> relocation truncated to fit: R_X86_64_PC32 against undefined symbol
> `std::basic_ostream<char, std::char_traits<char> >&
> std::__ostream_insert<char, std::char_traits<char>
> >(std::basic_ostream<char, std::char_traits<char> >&, char const*, long)'
> /usr/lib/gcc/x86_64-pc-cygwin/4.9.2/include/c++/ostream:535:(.text+0x473):
> relocation truncated to fit: R_X86_64_PC32 against undefined symbol
> `std::basic_ostream<char, std::char_traits<char> >&
> std::__ostream_insert<char, std::char_traits<char>
> >(std::basic_ostream<char, std::char_traits<char> >&, char const*, long)'
> /usr/lib/gcc/x86_64-pc-cygwin/4.9.2/include/c++/ostream:535:(.text+0x48c):
> relocation truncated to fit: R_X86_64_PC32 against undefined symbol
> `std::basic_ostream<char, std::char_traits<char> >&
> std::__ostream_insert<char, std::char_traits<char>
> >(std::basic_ostream<char, std::char_traits<char> >&, char const*, long)'
> /usr/lib/gcc/x86_64-pc-cygwin/4.9.2/include/c++/ostream:535:(.text+0x529):
> relocation truncated to fit: R_X86_64_PC32 against undefined symbol
> `std::basic_ostream<char, std::char_traits<char> >&
> std::__ostream_insert<char, std::char_traits<char>
> >(std::basic_ostream<char, std::char_traits<char> >&, char const*, long)'
> /usr/lib/gcc/x86_64-pc-cygwin/4.9.2/include/c++/ostream:535:(.text+0x542):
> additional relocation overflows omitted from the output
> /usr/lib/gcc/x86_64-pc-cygwin/4.9.2/../../../../lib/libcygwin.a(_cygwin_crt0_common.o):_cygwin_crt0_common.cc:(.data+0x0):
> undefined reference to `operator new(unsigned long)'
> collect2: error: ld returned 1 exit status
> makefile:1285: recipe for target 'arraylisttest.exe' failed
> make[4]: *** [arraylisttest.exe] Error 1
> make[4]: Leaving directory
> 'C:/LocalApp/local/dune2.3.1/dune-common-2.3.1/dune/common/test'
> makefile:2721: recipe for target 'check-am' failed
> make[3]: *** [check-am] Error 2
> make[3]: Leaving directory
> 'C:/LocalApp/local/dune2.3.1/dune-common-2.3.1/dune/common/test'
> makefile:699: recipe for target 'check-recursive' failed
> make[2]: *** [check-recursive] Error 1
> make[2]: Leaving directory
> 'C:/LocalApp/local/dune2.3.1/dune-common-2.3.1/dune/common'
> makefile:468: recipe for target 'check-recursive' failed
> make[1]: *** [check-recursive] Error 1
> make[1]: Leaving directory
> 'C:/LocalApp/local/dune2.3.1/dune-common-2.3.1/dune'
> makefile:630: recipe for target 'check-recursive' failed
> make: *** [check-recursive] Error 1
>
>
> On Wed, Feb 4, 2015 at 9:12 PM, Oliver Sander <sander at igpm.rwth-aachen.de>
> wrote:
>
>> Am 04.02.2015 um 21:36 schrieb Jö Fahlke:
>> > Am Wed,  4. Feb 2015, 19:21:24 +0000 schrieb Ganesh Diwan:
>> >> I don't think it is able to perform this test successfully, here is the
>> >> output:
>> >>
>> >> Thanks
>> >> Ganesh
>> >>
>> >>
>> /usr/lib/gcc/x86_64-pc-cygwin/4.9.2/../../../../lib/libcygwin.a(_cygwin_crt0_common.o):_cygwin_crt0_common.cc:(.data+0x0):
>> >> undefined reference to `operator new(unsigned long)'
>> >> collect2: error: ld returned 1 exit status
>> >> makefile:1285: recipe for target 'arraylisttest.exe' failed
>> >> make[4]: *** [arraylisttest.exe] Error 1
>> >> make[4]: Leaving directory
>> >
>> > We will probably need some more of the log from before that, in
>> particular
>> > how the linker was called.
>>
>> This looks very much like the error from the test for dune-geometry.
>>
>> >
>> > (This looks like the linker was trying to link without the C++ standard
>> > library.  Might be that the C-compiler was used for linking instead of
>> the
>> > C++-compiler.)
>>
>> This was the first thing that I thought, but his dune-grid config.log
>> shows that
>> g++ is called instead of gcc (which is correct).  Ganesh, please post the
>> complete
>> log for the failing arraylisttest.exe.
>>
>> Plus: Ganesh, can you build an run a simple 'Hello World' programm in c++?
>> Something like
>>
>> #include <iostream>
>> int main()
>> {
>>   std::cout << "Hello world!" << std::endl;
>> }
>>
>> Cheers,
>> Oliver
>>
>>
>> >
>> > Regards,
>> > Jö.
>> >
>>
>>
>>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.dune-project.org/pipermail/dune/attachments/20150205/fa22f8a4/attachment.htm>


More information about the Dune mailing list