The right one is: ./configure --enable-all-static --enable-static --disable-shared
But "make test" may not work in your environment (because you probably need to interact with the queue, etc.). Derek On Wed, Jun 29, 2016 at 4:53 PM 张江 <zhangjiang.d...@gmail.com> wrote: > Hi, > > I am trying to build libmesh on BG/Q Vesta in Argonne National Lib. The > environment is +mpiwrapper-gcc. > But there is always an error using ./configure --enable-static: > > /bgsys/drivers/toolchain/V1R2M4_base/gnu-linux/lib/gcc/powerpc64-bgq-linux/4.4.7/../../../../powerpc64-bgq-linux/bin/ld: > attempted static link of dynamic object `../liblib/.libs/libnetcdf.so’ > > When I change it to ./configure --enable-static --disable-shared, the > error changes to. > > /bgsys/drivers/toolchain/V1R2M4_base/gnu-linux/lib/gcc/powerpc64-bgq-linux/4.4.7/../../../../powerpc64-bgq-linux/bin/ld: > attempted static link of dynamic object > `/bgsys/drivers/V1R2M4/ppc64/comm/lib/libmpichf90-gcc.so' > > And with ./configure --enable-all-static --enable-static --disable-shared, > there is no error in the following make and make install. But make test > failed in > > libmesh-1.0.0/examples/run_common.sh: line 50: 18697 Illegal instruction > (core dumped) $LIBMESH_RUN ./$executable $options $LIBMESH_OPTIONS > FAIL: run.sh > ==================================================== > 1 of 1 test failed > Please report to libmesh-users@lists.sourceforge.net > ==================================================== > > This result is the same as that in > https://sourceforge.net/p/libmesh/mailman/libmesh-users/thread/CADg5ZvzooX-oy_VqWfdXiG1NzHCH2kt20ZTPg7=dor5dfwd...@mail.gmail.com/ > < > https://sourceforge.net/p/libmesh/mailman/libmesh-users/thread/CADg5ZvzooX-oy_VqWfdXiG1NzHCH2kt20ZTPg7=dor5dfwd...@mail.gmail.com/ > >. > So How can I solve this problem? Really appreciate for your response. > > > Best regards, > > ------------------------------------------------------------------------------ > Attend Shape: An AT&T Tech Expo July 15-16. Meet us at AT&T Park in San > Francisco, CA to explore cutting-edge tech and listen to tech luminaries > present their vision of the future. This family event has something for > everyone, including kids. Get more information and register today. > http://sdm.link/attshape > _______________________________________________ > Libmesh-users mailing list > Libmesh-users@lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/libmesh-users > ------------------------------------------------------------------------------ Attend Shape: An AT&T Tech Expo July 15-16. Meet us at AT&T Park in San Francisco, CA to explore cutting-edge tech and listen to tech luminaries present their vision of the future. This family event has something for everyone, including kids. Get more information and register today. http://sdm.link/attshape _______________________________________________ Libmesh-users mailing list Libmesh-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/libmesh-users