[Dune] Dune on cygwin

Oliver Sander sander at igpm.rwth-aachen.de
Wed Feb 4 15:18:47 CET 2015


Am 04.02.2015 um 13:11 schrieb Ganesh Diwan:
> Sorry, got a bounce from mailing list due to long message body. Attached!
> 
> On Wed, Feb 4, 2015 at 12:06 PM, Ganesh Diwan <gcdiwan83 at gmail.com> wrote:
> 
>> Here are the contents of the dune-grid config.log file

I have extracted and attached the relevant part of the log.  dune-grid fails to link
against dune-geometry, apparently because a few symbols from the standard library
are missing.

I am not a build system guru.  Could one of the dunecontrol/AutoTools gurus please
have a look?

Thanks,
Oliver



configure:32149: Searching for dune-geometry...
configure:32209: checking for dune-geometry installation or source tree
configure:32309: result: found in /cygdrive/c/LocalApp/local/dune2.3.1/dune-geometry-2.3.1
configure:32327: checking dune/geometry/quadraturerules.hh usability
configure:32327: g++ -std=c++11 -c -g -O2 -Wall   -I/cygdrive/c/LocalApp/local/dune2.3.1/dune-common-2.3.1  -I/cygdrive/c/LocalApp/local/dune2.3.1/dune-common-2.3.1
-I/cygdrive/c/LocalApp/local/dune2.3.1/dune-common-2.3.1 -I/cygdrive/c/LocalApp/local/dune2.3.1/dune-geometry-2.3.1 conftest.cpp >&5
configure:32327: $? = 0
configure:32327: result: yes
configure:32327: checking dune/geometry/quadraturerules.hh presence
configure:32327: g++ -E -std=c++11   -I/cygdrive/c/LocalApp/local/dune2.3.1/dune-common-2.3.1  -I/cygdrive/c/LocalApp/local/dune2.3.1/dune-common-2.3.1
-I/cygdrive/c/LocalApp/local/dune2.3.1/dune-common-2.3.1 -I/cygdrive/c/LocalApp/local/dune2.3.1/dune-geometry-2.3.1 conftest.cpp
configure:32327: $? = 0
configure:32327: result: yes
configure:32327: checking for dune/geometry/quadraturerules.hh
configure:32327: result: yes
configure:32358: checking for libdunegeometry
configure:32404: ./libtool --tag=CXX --mode=link g++ -std=c++11    -o conftest.exe -g -O2 -Wall   -I/cygdrive/c/LocalApp/local/dune2.3.1/dune-common-2.3.1
-I/cygdrive/c/LocalApp/local/dune2.3.1/dune-common-2.3.1 -I/cygdrive/c/LocalApp/local/dune2.3.1/dune-common-2.3.1 -I/cygdrive/c/LocalApp/local/dune2.3.1/dune-geometry-2.3.1      conftest.cpp
/cygdrive/c/LocalApp/local/dune2.3.1/dune-geometry-2.3.1/lib/libdunegeometry.la /cygdrive/c/LocalApp/local/dune2.3.1/dune-common-2.3.1/lib/libdunecommon.la   >&5
libtool: link: g++ -std=c++11 -o conftest.exe -g -O2 -Wall -I/cygdrive/c/LocalApp/local/dune2.3.1/dune-common-2.3.1 -I/cygdrive/c/LocalApp/local/dune2.3.1/dune-common-2.3.1
-I/cygdrive/c/LocalApp/local/dune2.3.1/dune-common-2.3.1 -I/cygdrive/c/LocalApp/local/dune2.3.1/dune-geometry-2.3.1 conftest.cpp
/cygdrive/c/LocalApp/local/dune2.3.1/dune-geometry-2.3.1/lib/.libs/libdunegeometry.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/../../..
/cygdrive/c/LocalApp/local/dune2.3.1/dune-common-2.3.1/lib/.libs/libdunecommon.a -lgfortran -lmingw32 -lmoldname -lmingwex -lmsvcrt -lquadmath -lpthread -liconv
/tmp/cczfeoEE.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$_ZN4DunelsERSoRKNS_12GeometryTypeE[_ZN4DunelsERSoRKNS_12GeometryTypeE]+0x2b): 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$_ZN4DunelsERSoRKNS_12GeometryTypeE[_ZN4DunelsERSoRKNS_12GeometryTypeE]+0x82): 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$_ZN4DunelsERSoRKNS_12GeometryTypeE[_ZN4DunelsERSoRKNS_12GeometryTypeE]+0xa4): 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$_ZN4DunelsERSoRKNS_12GeometryTypeE[_ZN4DunelsERSoRKNS_12GeometryTypeE]+0xc4): 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$_ZN4DunelsERSoRKNS_12GeometryTypeE[_ZN4DunelsERSoRKNS_12GeometryTypeE]+0xe4): 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)'
/tmp/cczfeoEE.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
/tmp/cczfeoEE.o: In function `operator<< <std::char_traits<char> >':
/usr/lib/gcc/x86_64-pc-cygwin/4.9.2/include/c++/ostream:535:(.text$_ZN4DunelsERSoRKNS_12GeometryTypeE[_ZN4DunelsERSoRKNS_12GeometryTypeE]+0x101): 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$_ZN4DunelsERSoRKNS_12GeometryTypeE[_ZN4DunelsERSoRKNS_12GeometryTypeE]+0x12f): 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$_ZN4DunelsERSoRKNS_12GeometryTypeE[_ZN4DunelsERSoRKNS_12GeometryTypeE]+0x146): 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)'
/tmp/cczfeoEE.o: In function `char* std::string::_S_construct<char*>(char*, char*, std::allocator<char> const&, std::forward_iterator_tag)':
/usr/lib/gcc/x86_64-pc-cygwin/4.9.2/include/c++/bits/basic_string.tcc:138: undefined reference to `std::string::_Rep::_S_create(unsigned long, unsigned long, std::allocator<char> const&)'
/usr/lib/gcc/x86_64-pc-cygwin/4.9.2/include/c++/bits/basic_string.tcc:138:(.text$_ZNSs12_S_constructIPcEES0_T_S1_RKSaIcESt20forward_iterator_tag[_ZNSs12_S_constructIPcEES0_T_S1_RKSaIcESt20forward_iterator_tag]+0x39):
relocation truncated to fit: R_X86_64_PC32 against undefined symbol `std::string::_Rep::_S_create(unsigned long, unsigned long, std::allocator<char> const&)'
/tmp/cczfeoEE.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$_ZN4Dune12GeometryTypeC1ENS0_9BasicTypeEj[_ZN4Dune12GeometryTypeC1ENS0_9BasicTypeEj]+0x225): 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$_ZN4Dune12GeometryTypeC1ENS0_9BasicTypeEj[_ZN4Dune12GeometryTypeC1ENS0_9BasicTypeEj]+0x23a): additional relocation overflows omitted
from the output
/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: 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: 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)'
/tmp/cczfeoEE.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
/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
configure:32404: $? = 1
configure: failed program was:
| /* confdefs.h */
| #define PACKAGE_NAME "dune-grid"
| #define PACKAGE_TARNAME "dune-grid"
| #define PACKAGE_VERSION "2.3.1"
| #define PACKAGE_STRING "dune-grid 2.3.1"
| #define PACKAGE_BUGREPORT "dune-devel at dune-project.org"
| #define PACKAGE_URL ""
| #define PACKAGE "dune-grid"
| #define VERSION "2.3.1"
| #define DUNE_GRID_VERSION "2.3.1"
| #define DUNE_GRID_VERSION_MAJOR 2
| #define DUNE_GRID_VERSION_MINOR 3
| #define DUNE_GRID_VERSION_REVISION 1
| #define STDC_HEADERS 1
| #define HAVE_SYS_TYPES_H 1
| #define HAVE_SYS_STAT_H 1
| #define HAVE_STDLIB_H 1
| #define HAVE_STRING_H 1
| #define HAVE_MEMORY_H 1
| #define HAVE_STRINGS_H 1
| #define HAVE_INTTYPES_H 1
| #define HAVE_STDINT_H 1
| #define HAVE_UNISTD_H 1
| #define HAVE_DLFCN_H 1
| #define LT_OBJDIR ".libs/"
| #define FC_FUNC(name,NAME) name ## _
| #define FC_FUNC_(name,NAME) name ## _
| #define HAVE_STATIC_ASSERT 1
| #define HAVE_NULLPTR 1
| #define HAVE_TYPE_TRAITS 1
| #define HAVE_TR1_TYPE_TRAITS 1
| #define HAVE_TUPLE 1
| #define HAVE_TR1_TUPLE 1
| #define HAVE_ARRAY 1
| #define HAVE_INTEGRAL_CONSTANT 1
| #define HAVE_STD_HASH 1
| #define HAVE_TR1_HASH 1
| #define HAVE_MEMORY 1
| #define HAVE_TR1_MEMORY 1
| #define SHARED_PTR_NAMESPACE std
| #define SHARED_PTR_HEADER <memory>
| #define HAVE_VARIADIC_TEMPLATES 1
| #define HAVE_RVALUE_REFERENCES 1
| #define HAVE_INITIALIZER_LIST 1
| #define HAVE_STD_CONDITIONAL 1
| #define HAVE_CONSTEXPR 1
| #define HAVE_MAKE_SHARED 1
| #define HAS_ATTRIBUTE_DEPRECATED 1
| #define HAS_ATTRIBUTE_DEPRECATED_MSG 1
| #define HAS_ATTRIBUTE_UNUSED 1
| #define HAVE_CXA_DEMANGLE 1
| #define DUNE_MINIMAL_DEBUG_LEVEL 4
| #define HAVE_SYS_MMAN_H 1
| #define HAVE_MPROTECT 1
| #define HAVE_MALLOC_H 1
| #define HAVE_STRING_H 1
| #define HAVE_LIBM 1
| #define HAVE_SQRT 1
| #define HAVE_STRCHR 1
| #define HAVE_DUNE_COMMON 1
| #define DUNE_COMMON_VERSION "2.3.1"
| #define DUNE_COMMON_VERSION_MAJOR 2
| #define DUNE_COMMON_VERSION_MINOR 3
| #define DUNE_COMMON_VERSION_REVISION 1
| /* end confdefs.h.  */
| #include<dune/geometry/quadraturerules.hh>
| #ifdef F77_DUMMY_MAIN
|
| #  ifdef __cplusplus
|      extern "C"
| #  endif
|    int F77_DUMMY_MAIN() { return 1; }
|
| #endif
| #ifdef FC_DUMMY_MAIN
| #ifndef FC_DUMMY_MAIN_EQ_F77
| #  ifdef __cplusplus
|      extern "C"
| #  endif
|    int FC_DUMMY_MAIN() { return 1; }
| #endif
| #endif
| int
| main ()
| {
|   Dune::GeometryType gt;
|   gt.makeQuadrilateral();
|   (Dune::QuadratureRules<double, 2>::rule(gt, 2).size());
|   ;
|   return 0;
| }
configure:32413: result: no


-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 473 bytes
Desc: OpenPGP digital signature
URL: <https://lists.dune-project.org/pipermail/dune/attachments/20150204/364bff04/attachment.sig>


More information about the Dune mailing list