[Dune] [#739] Linking Alberta lib with new dune 2.0

Dune flyspray at dune-project.org
Sat Feb 13 06:05:41 CET 2010


THIS IS AN AUTOMATED MESSAGE, DO NOT REPLY.

A new Flyspray task has been opened.  Details are below. 

User who did this - Chensong Zhang (zhangcs) 

Attached to Project - Dune
Summary - Linking Alberta lib with new dune 2.0
Task Type - Bug Report
Category - Alberta
Status - Unconfirmed
Assigned To - 
Operating System - Unspecified / All
Severity - Low
Priority - Normal
Reported Version - 1.2
Due in Version - Undecided
Due Date - Undecided
Details - I recently changed to dune-grid release 2.0. And I use Alberta-2.0.1 with it. I compile Alberta and then Dune with gcc-4.4.1 on my Macbook Snow Leopard. 

I compile a code which compiles ok previously. I had the following error: 

============= 

CC -c testdriver.c
CC -o testdriver testdriver.o semi_lagrangian_inner_product.o  /Users/zhangcs/Packages/dune/dune-grid/dune/grid/.libs/libgrid.a /Users/zhangcs/Packages/dune/dune-common/dune/common/.libs/libcommon.a -L/usr/share/libpsurface/lib -lpsurface -L/Users/zhangcs/Packages/alberta-2.0.1/lib -lalberta_2d -lalberta_util -lstdc++
ld: warning: in /Users/zhangcs/Packages/alberta-2.0.1/lib/libalberta_2d.dylib, file is not of required architecture
ld: warning: in /Users/zhangcs/Packages/alberta-2.0.1/lib/libalberta_util.dylib, file is not of required architecture
Undefined symbols:
  "_get_fe_space", referenced from:
      Dune::Alberta::HierarchyDofNumbering<2>::createDofSpace(Dune::Alberta::MeshPointer<2> const&, std::basic_string<char, std::char_traits<char>, std::allocator<char> > const&, int const (&) [4], bool)in semi_lagrangian_inner_product.o
  "_get_dof_int_vec", referenced from:
      Dune::Alberta::DofVectorProvider<int>::get(fe_space const*, std::basic_string<char, std::char_traits<char>, std::allocator<char> > const&)in semi_lagrangian_inner_product.o
  "_alberta_alloc", referenced from:
      signed char* Dune::Alberta::memAlloc<signed char>(unsigned long)in semi_lagrangian_inner_product.o
  "_get_dof_uchar_vec", referenced from:
      Dune::Alberta::DofVectorProvider<unsigned char>::get(fe_space const*, std::basic_string<char, std::char_traits<char>, std::allocator<char> > const&)in semi_lagrangian_inner_product.o
  "_fill_macro_info", referenced from:
      Dune::Alberta::ElementInfo<2>::ElementInfo(Dune::Alberta::MeshPointer<2> const&, Dune::Alberta::MacroElement<2> const&, unsigned long)in semi_lagrangian_inner_product.o
  "_funcName", referenced from:
      double (*Dune::Alberta::memReAlloc<double [2]>(double (*) [2], unsigned long, unsigned long)) [2]in semi_lagrangian_inner_product.o
      int* Dune::Alberta::memReAlloc<int>(int*, unsigned long, unsigned long)in semi_lagrangian_inner_product.o
      signed char* Dune::Alberta::memReAlloc<signed char>(signed char*, unsigned long, unsigned long)in semi_lagrangian_inner_product.o
      signed char* Dune::Alberta::memAlloc<signed char>(unsigned long)in semi_lagrangian_inner_product.o
      Dune::Alberta::DofVectorPointer<unsigned char>::operator unsigned char*() constin semi_lagrangian_inner_product.o
      Dune::Alberta::DofVectorPointer<double [2]>::operator double (*) [2]() constin semi_lagrangian_inner_product.o
      Dune::Alberta::DofVectorPointer<int>::operator int*() constin semi_lagrangian_inner_product.o
  "_print_error_funcname", referenced from:
      Dune::Alberta::DofVectorPointer<unsigned char>::operator unsigned char*() constin semi_lagrangian_inner_product.o
      Dune::Alberta::DofVectorPointer<double [2]>::operator double (*) [2]() constin semi_lagrangian_inner_product.o
      Dune::Alberta::DofVectorPointer<int>::operator int*() constin semi_lagrangian_inner_product.o
  "_write_macro_data", referenced from:
      Dune::Alberta::MacroData<2>::write(std::basic_string<char, std::char_traits<char>, std::allocator<char> > const&, bool) constin semi_lagrangian_inner_product.o
  "_write_macro_data_xdr", referenced from:
      Dune::Alberta::MacroData<2>::write(std::basic_string<char, std::char_traits<char>, std::allocator<char> > const&, bool) constin semi_lagrangian_inner_product.o
  "_dof_free_bit", referenced from:
      void Dune::Alberta::DofVectorPointer<unsigned char>::forEach<Dune::AlbertaGridLevelProvider<2>::CalcMaxLevel>(Dune::AlbertaGridLevelProvider<2>::CalcMaxLevel&) constin semi_lagrangian_inner_product.o
      void Dune::Alberta::DofVectorPointer<int>::forEach<Dune::AlbertaGridHierarchicIndexSet<2, 2>::InitEntityNumber>(Dune::AlbertaGridHierarchicIndexSet<2, 2>::InitEntityNumber&) constin semi_lagrangian_inner_product.o
  "_check_and_get_mesh", referenced from:
      void Dune::Alberta::MeshPointer<2>::create<Dune::Alberta::DuneBoundaryProjection<2>, Dune::GridFactory<Dune::AlbertaGrid<2, 2> >::ProjectionFactory>(Dune::Alberta::MacroData<2> const&, std::basic_string<char, std::char_traits<char>, std::allocator<char> > const&, Dune::Alberta::ProjectionFactoryInterface<Dune::Alberta::DuneBoundaryProjection<2>, Dune::GridFactory<Dune::AlbertaGrid<2, 2> >::ProjectionFactory> const&)in semi_lagrangian_inner_product.o
  "_free_dof_int_vec", referenced from:
      Dune::Alberta::DofVectorProvider<int>::free(dof_int_vec*)   in semi_lagrangian_inner_product.o
  "_get_dof_real_d_vec", referenced from:
      Dune::Alberta::DofVectorProvider<double [2]>::get(fe_space const*, std::basic_string<char, std::char_traits<char>, std::allocator<char> > const&)in semi_lagrangian_inner_product.o
  "_print_error_msg_exit", referenced from:
      Dune::Alberta::DofVectorPointer<unsigned char>::operator unsigned char*() constin semi_lagrangian_inner_product.o
      Dune::Alberta::DofVectorPointer<double [2]>::operator double (*) [2]() constin semi_lagrangian_inner_product.o
      Dune::Alberta::DofVectorPointer<int>::operator int*() constin semi_lagrangian_inner_product.o
  "_alloc_macro_data", referenced from:
      Dune::Alberta::MacroData<2>::create()      in semi_lagrangian_inner_product.o
  "_free_macro_data", referenced from:
      Dune::Alberta::MacroData<2>::release()      in semi_lagrangian_inner_product.o
  "_alberta_realloc", referenced from:
      double (*Dune::Alberta::memReAlloc<double [2]>(double (*) [2], unsigned long, unsigned long)) [2]in semi_lagrangian_inner_product.o
      int* Dune::Alberta::memReAlloc<int>(int*, unsigned long, unsigned long)in semi_lagrangian_inner_product.o
      signed char* Dune::Alberta::memReAlloc<signed char>(signed char*, unsigned long, unsigned long)in semi_lagrangian_inner_product.o
  "Dune::Alberta::MeshPointer<2>::Library<2>::projectionFactory", referenced from:
      void Dune::Alberta::MeshPointer<2>::create<Dune::Alberta::DuneBoundaryProjection<2>, Dune::GridFactory<Dune::AlbertaGrid<2, 2> >::ProjectionFactory>(Dune::Alberta::MacroData<2> const&, std::basic_string<char, std::char_traits<char>, std::allocator<char> > const&, Dune::Alberta::ProjectionFactoryInterface<Dune::Alberta::DuneBoundaryProjection<2>, Dune::GridFactory<Dune::AlbertaGrid<2, 2> >::ProjectionFactory> const&)in semi_lagrangian_inner_product.o
      void Dune::Alberta::MeshPointer<2>::create<Dune::Alberta::DuneBoundaryProjection<2>, Dune::GridFactory<Dune::AlbertaGrid<2, 2> >::ProjectionFactory>(Dune::Alberta::MacroData<2> const&, std::basic_string<char, std::char_traits<char>, std::allocator<char> > const&, Dune::Alberta::ProjectionFactoryInterface<Dune::Alberta::DuneBoundaryProjection<2>, Dune::GridFactory<Dune::AlbertaGrid<2, 2> >::ProjectionFactory> const&)in semi_lagrangian_inner_product.o
      node_projection* Dune::Alberta::MeshPointer<2>::initNodeProjection<Dune::Alberta::ProjectionFactoryInterface<Dune::Alberta::DuneBoundaryProjection<2>, Dune::GridFactory<Dune::AlbertaGrid<2, 2> >::ProjectionFactory> >(mesh*, macro_el*, int)in semi_lagrangian_inner_product.o
  "_free_dof_real_d_vec", referenced from:
      Dune::Alberta::DofVectorProvider<double [2]>::free(dof_real_d_vec*)in semi_lagrangian_inner_product.o
  "_compute_neigh_fast", referenced from:
      Dune::Alberta::MacroData<2>::finalize()      in semi_lagrangian_inner_product.o
  "_fill_elinfo", referenced from:
      Dune::Alberta::ElementInfo<2>::child(int) constin semi_lagrangian_inner_product.o
  "_free_mesh", referenced from:
      Dune::Alberta::MeshPointer<2>::release()       in semi_lagrangian_inner_product.o
  "_free_fe_space", referenced from:
      Dune::Alberta::HierarchyDofNumbering<2>::freeDofSpace(fe_space const*)   in semi_lagrangian_inner_product.o
  "_free_dof_uchar_vec", referenced from:
      Dune::Alberta::DofVectorProvider<unsigned char>::free(dof_uchar_vec*)in semi_lagrangian_inner_product.o
  "Dune::Alberta::MeshPointer<2>::Library<2>::boundaryCount", referenced from:
      void Dune::Alberta::MeshPointer<2>::create<Dune::Alberta::DuneBoundaryProjection<2>, Dune::GridFactory<Dune::AlbertaGrid<2, 2> >::ProjectionFactory>(Dune::Alberta::MacroData<2> const&, std::basic_string<char, std::char_traits<char>, std::allocator<char> > const&, Dune::Alberta::ProjectionFactoryInterface<Dune::Alberta::DuneBoundaryProjection<2>, Dune::GridFactory<Dune::AlbertaGrid<2, 2> >::ProjectionFactory> const&)in semi_lagrangian_inner_product.o
      node_projection* Dune::Alberta::MeshPointer<2>::initNodeProjection<Dune::Alberta::ProjectionFactoryInterface<Dune::Alberta::DuneBoundaryProjection<2>, Dune::GridFactory<Dune::AlbertaGrid<2, 2> >::ProjectionFactory> >(mesh*, macro_el*, int)in semi_lagrangian_inner_product.o
      node_projection* Dune::Alberta::MeshPointer<2>::initNodeProjection<Dune::Alberta::ProjectionFactoryInterface<Dune::Alberta::DuneBoundaryProjection<2>, Dune::GridFactory<Dune::AlbertaGrid<2, 2> >::ProjectionFactory> >(mesh*, macro_el*, int)in semi_lagrangian_inner_product.o
ld: symbol(s) not found
collect2: ld returned 1 exit status
make: *** [all] Error 1

More information can be found at the following URL:
http://www.dune-project.org/flyspray/index.php?do=details&task_id=739

You are receiving this message because you have requested it from the Flyspray bugtracking system.  If you did not expect this message or don't want to receive mails in future, you can change your notification settings at the URL shown above.




More information about the Dune mailing list