Dear developers,

I have some questions in compiling and runing libMesh,

1, How can I configure a debugging version of libmesh? It seems there is not 
such an option when configure -h,  I added "--with-debugging=yes" to the 
configure command as I did for PETSc, it seems that this can generate a debug 
verion of libmesh, but I am not sure.

2, It outputs an error when I install libmesh: "attempted static link with 
libstdc++.so", how can I link this lib correctly?
It seems that adding "--enable-shared" does not work.
Currently I just delete libstdc++.so and add "-lstdc++", but too many objects 
need to link with this lib, can I handle this by changing something in 
configure or Makefile? 

3, I configure with the following options, for the particularity of our 
machine, I deleted libstdc++.so and add "-lstdc++", and remove "-lgcc_s" when 
linking, the ex2 in examples/systems_of_equations outputs error:
***Memory allocation for gkmcore failed.

This error occurs in Build_square(); I have debug it with gdb, as shown in the 
attached file "gdb_output.txt".

My configure options are:
./configure \
    CC=mpicc FC=mpif90 CXX=mpiCC AR=swar RANLIB=swranlib \
    
--prefix=/home/export/online1/systest/swsiat/luoli/libmesh-0.9.3/install-debug \
    --enable-shared \
    --enable-blocked-storage \
    --enable-perflog \
    --enable-parmesh \
    --with-debugging=yes \
    --with-dof-id-bytes=8 \
    --host=alpha \
    --disable-gzstreams \
    --disable-tetgen \
    --disable-eigen \
    --disable-fparser \
    --disable-libHilbert \
    --disable-nanoflann \
    --disable-sfcurves \
    --disable-gmv \
    --disable-nemesis \
    --disable-laspack \
    --disable-triangle \
    --disable-tbb

The attached are some related files in libmesh.

Thank you very much!


--
Li Luo






--
Li Luo
https://sites.google.com/site/rolyliluo/
Shenzhen Institutes of Advanced Technology
Address: 1068 Xueyuan Avenue, Shenzhen University Town, Shenzhen, P.R.China
Tel: +86-15899753087
li....@siat.ac.cn




Breakpoint 1, _Vector_base<std::basic_string<char, std::char_traits<char>, 
std::allocator<char> >, std::allocator<std::basic_string<char, 
std::char_traits<char>, std::allocator<char> > > >::__base_dtor 
(this=0x50405ce990)
    at 
/home/export/online1/systest/swsiat/luoli/libmesh-0.9.3/install-debug/examples/systems_of_equations/ex2/systems_of_equations_ex2.C:119
119                                            20, 20,
(gdb) l
114       // 2D grid on the square [-1,1]^2.  We instruct the mesh generator
115       // to build a mesh of 8x8 \p Quad9 elements in 2D.  Building these
116       // higher-order elements allows us to use higher-order
117       // approximation, as in example 3.
118       MeshTools::Generation::build_square (mesh,
119                                            20, 20,
120                                            0., 1.,
121                                            0., 1.,
122                                            QUAD4);
123     
(gdb) s
_Vector_base<std::basic_string<char, std::char_traits<char>, 
std::allocator<char> >, std::allocator<std::basic_string<char, 
std::char_traits<char>, std::allocator<char> > > >::_M_deallocate 
(this=0x50405ce990, __p=0x0, __n=0)
    at 
/home/export/online1/systest/swsiat/luoli/libmesh-0.9.3/install-debug/examples/systems_of_equations/ex2/systems_of_equations_ex2.C:132
132       // Declare the system and its variables.
(gdb) bt
#0  _Vector_base<std::basic_string<char, std::char_traits<char>, 
std::allocator<char> >, std::allocator<std::basic_string<char, 
std::char_traits<char>, std::allocator<char> > > >::_M_deallocate 
(this=0x50405ce990, __p=0x0, __n=0)
    at 
/home/export/online1/systest/swsiat/luoli/libmesh-0.9.3/install-debug/examples/systems_of_equations/ex2/systems_of_equations_ex2.C:132
#1  0x0000004ff04277bc in _Vector_base<std::basic_string<char, 
std::char_traits<char>, std::allocator<char> >, 
std::allocator<std::basic_string<char, std::char_traits<char>, 
std::allocator<char> > > >::__base_dtor (this=0x50405ce990)
    at 
/home/export/online1/systest/swsiat/luoli/libmesh-0.9.3/install-debug/examples/systems_of_equations/ex2/systems_of_equations_ex2.C:119
#2  0x0000004ff042fb24 in .BB10__ZNSt6vectorISsSaISsEED1Ev (this=0x50405ce990)
    at 
/home/export/online1/systest/swsiat/luoli/libmesh-0.9.3/install-debug/examples/systems_of_equations/ex2/systems_of_equations_ex2.C:272
Segmentation fault
------------------------------------------------------------------------------
Mobile security can be enabling, not merely restricting. Employees who
bring their own devices (BYOD) to work are irked by the imposition of MDM
restrictions. Mobile Device Manager Plus allows you to control only the
apps on BYO-devices by containerizing them, leaving personal data untouched!
https://ad.doubleclick.net/ddm/clk/304595813;131938128;j
_______________________________________________
Libmesh-users mailing list
Libmesh-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/libmesh-users

Reply via email to