Skip to content

#926 cannot compile test-ug in dune/grid/test directoy

Metadata

Property Value
Reported by Nagaiah (nagaiah.chamakuri@gmail.com)
Reported at Jun 2, 2011 14:40
Type Bug Report
Version Git (pre2.4) [autotools]
Operating System Linux
Last edited by Oliver Sander (oliver.sander@tu-dresden.de)
Last edited at Jun 3, 2011 08:57
Closed by Oliver Sander (oliver.sander@tu-dresden.de)
Closed at Jun 3, 2011 08:57
Closed in version Unknown
Resolution Not a bug
Comment

Description

Cannot compile the test-ug program in dune/grid/test directory. (I cannot compile any of my programs using UG grid as well. But they compile well with YASP grid) This problem triggers with the shared_ptr in uggridfactory.cc. This problem occurs only on Debian Linux. With Opensuse 11.4 version it works well.

Does anybody has any idea for solving this problem? Thank you in advance.

svn info dune-grid

Pfad: dune-grid URL: https://svn.dune-project.org/svn/dune-grid/trunk Basis des Projektarchivs: https://svn.dune-project.org/svn/dune-grid UUID des Projektarchivs: f82f27de-4411-0410-b156-930a902cda50 Revision: 7637 Knotentyp: Verzeichnis Plan: normal Letzter Autor: graeser Letzte geänderte Rev: 7636 Letztes Änderungsdatum: 2011-05-31 17:28:03 +0200 (Di, 31. Mai 2011)

g++ --v

Using built-in specs. Target: x86_64-linux-gnu Configured with: ../src/configure -v --with-pkgversion='Debian 4.3.2-1.1' --with-bugurl=file:///usr/share/doc/gcc-4.3/README.Bugs --enable-languages=c,c++,fortran,objc,obj-c++ --prefix=/usr --enable-shared --with-system-zlib --libexecdir=/usr/lib --without-included-gettext --enable-threads=posix --enable-nls --with-gxx-include-dir=/usr/include/c++/4.3 --program-suffix=-4.3 --enable-clocale=gnu --enable-libstdcxx-debug --enable-objc-gc --enable-mpfr --enable-cld --enable-checking=release --build=x86_64-linux-gnu --host=x86_64-linux-gnu --target=x86_64-linux-gnu Thread model: posix gcc version 4.3.2 (Debian 4.3.2-1.1)

Error: ../../../dune/grid/.libs/libgrid.a(libuggrid_la-uggridfactory.o): In function `std::vector<std::shared_ptr<Dune::BoundarySegment<3, 3> >, std::allocator<std::shared_ptr<Dune::BoundarySegment<3, 3> > > >::_M_fill_insert(__gnu_cxx::__normal_iterator<std::shared_ptr<Dune::BoundarySegment<3, 3> >*, std::vector<std::shared_ptr<Dune::BoundarySegment<3, 3> >, std::allocator<std::shared_ptr<Dune::BoundarySegment<3, 3> > > > >, unsigned long, std::shared_ptr<Dune::BoundarySegment<3, 3> > const&)':

uggridfactory.cc:(.text.ZNSt6vectorISt10shared_ptrIN4Dune15BoundarySegmentILi3ELi3EEEESaIS4_EE14_M_fill_insertEN9__gnu_cxx17__normal_iteratorIPS4_S6_EEmRKS4[std::vector<std::shared_ptr<Dune::BoundarySegment<3, 3> >, std::allocator<std::shared_ptr<Dune::BoundarySegment<3, 3> > > >::_M_fill_insert(__gnu_cxx::__normal_iterator<std::shared_ptr<Dune::BoundarySegment<3, 3> >*, std::vector<std::shared_ptr<Dune::BoundarySegment<3, 3> >, std::allocator<std::shared_ptr<Dune::BoundarySegment<3, 3> > > > >, unsigned long, std::shared_ptr<Dune::BoundarySegment<3, 3> > const&)]+0xb47): relocation truncated to fit: R_X86_64_32 against undefined symbol pthread_cancel' ../../../dune/grid/.libs/libgrid.a(libuggrid_la-uggridfactory.o): In function std::vector<std::shared_ptr<Dune::BoundarySegment<2, 2> >, std::allocator<std::shared_ptr<Dune::BoundarySegment<2, 2> > > >::_M_fill_insert(__gnu_cxx::__normal_iterator<std::shared_ptr<Dune::BoundarySegment<2, 2> >*, std::vector<std::shared_ptr<Dune::BoundarySegment<2, 2> >, std::allocator<std::shared_ptr<Dune::BoundarySegment<2, 2> > > > >, unsigned long, std::shared_ptr<Dune::BoundarySegment<2, 2> > const&)':

uggridfactory.cc:(.text.ZNSt6vectorISt10shared_ptrIN4Dune15BoundarySegmentILi2ELi2EEEESaIS4_EE14_M_fill_insertEN9__gnu_cxx17__normal_iteratorIPS4_S6_EEmRKS4[std::vector<std::shared_ptr<Dune::BoundarySegment<2, 2> >, std::allocator<std::shared_ptr<Dune::BoundarySegment<2, 2> > > >::_M_fill_insert(__gnu_cxx::__normal_iterator<std::shared_ptr<Dune::BoundarySegment<2, 2> >*, std::vector<std::shared_ptr<Dune::BoundarySegment<2, 2> >, std::allocator<std::shared_ptr<Dune::BoundarySegment<2, 2> > > > >, unsigned long, std::shared_ptr<Dune::BoundarySegment<2, 2> > const&)]+0xb47): relocation truncated to fit: R_X86_64_32 against undefined symbol `pthread_cancel' collect2: ld returned 1 exit status make: *** [test-ug] Fehler 1