Hi John,
No, we are doing dynamic linking. Blue Waters supports dynamic linking and
in our development phase, it seems to cause us fewer headaches, so we are
not concerned about advantages of static linking right now.

I'm pretty sure I was able to do this same configuration with a libmesh
development build in the spring before 0.9 came out but I'm looking into
that.

Related questions: is netcdf required? I am trying with it disabled now.
Also, why does the netcdf shared library end up in
(contrib/netcdf/v4/liblib/.libs/libnetcdf.so.7) when all other libraries
seems to be .libs or contrib/.libs?

Thanks,
Jim


On Tue, Aug 20, 2013 at 1:45 PM, John Peterson <[email protected]> wrote:

> Are you wanting to build statically on the Cray?  (That is, are you
> already configuring with --enable-static --disable-shared?)
>
> If so, this might be related to a similar problem we faced on BG/Q, and
> there is an -all-static flag that can be passed to the link mode of libtool
> that might help out.
>
> http://www.gnu.org/software/libtool/manual/html_node/Link-mode.html
>
> There currently isn't a clean way of passing such an arg to libmesh's
> configure.  What you do is:
>
> Run configure _without_ setting LDFLAGS.
>
> Then do:
>
> LDFLAGS=-all-static make
>
> Can you try that and see if it helps?  If so, I'll try to work up a patch
> that adds a --enable-all-static flag to our configure.
>
> --
> John
>
>
> On Tue, Aug 20, 2013 at 12:27 PM, Jim Fonseca <[email protected]> wrote:
>
>> Hi Minq,
>> Did you ever get this resolved? I am facing the same problem.
>> Thanks,
>> Jim
>>
>>
>> On Wed, Jul 10, 2013 at 5:55 PM, Minq Q <[email protected]> wrote:
>>
>> > Hi,
>> >
>> > I am trying to compile libmesh on Cray XE6. Using GNU compiler.
>> >
>> > Then I got an error:
>> >
>> >   CC       ncgentab.o
>> >   CCLD     ncgen3
>> > /usr/bin/ld: attempted static link of dynamic object
>> > `../liblib/.libs/libnetcdf.so'
>> >
>> > Do you know, how can fix it?
>> >
>> > Thank you,
>> > / Ming Q.
>> >
>> > ----
>> > My configure command is:
>> > CC=cc CXX=CC FC=ftn ./configure --enable-everything
>> >
>> > Result is:
>> > Library Features:
>> >   adaptive mesh refinement......... : yes
>> >   blocked matrix/vector storage.... : yes
>> >   complex variables................ : no
>> >   example suite.................... : yes
>> >   ghosted vectors.................. : yes
>> >   high-order shape functions....... : yes
>> >   id size (boundaries)............. : 2 bytes
>> >   id size (dofs)................... : 4 bytes
>> >   id size (processors)............. : 2 bytes
>> >   id size (subdomains)............. : 2 bytes
>> >   infinite elements................ : yes
>> >   Dirichlet constraints............ : yes
>> >   node constraints................. : yes
>> >   parallel mesh.................... : no
>> >   performance logging.............. : yes
>> >   periodic boundary conditions..... : yes
>> >   reference counting............... : yes
>> >   shape function 2nd derivatives... : yes
>> >   stack trace files................ : yes
>> >   variational smoother............. : yes
>> >   xdr binary I/O................... : yes
>> >   providing libMesh::CommWorld..... : yes ***LEGACY FEATURE***
>> >
>> > Optional Packages:
>> >   boost............................ : yes
>> >   cppunit.......................... : no
>> >   eigen............................ : yes
>> >   exodus........................... : yes
>> >      version....................... : v5.22
>> >   fparser.......................... : yes
>> >      build from version............ : release
>> >   glpk............................. : no
>> >   gmv.............................. : yes
>> >   gzstream......................... : yes
>> >   hdf5............................. : no
>> >   laspack.......................... : yes
>> >   libhilbert....................... : yes
>> >   metis............................ : yes
>> >   mpi.............................. : yes
>> >   nanoflann........................ : yes
>> >   nemesis.......................... : yes
>> >      version....................... : v5.22
>> >   netcdf........................... : yes
>> >      version....................... : 4
>> >   openmp........................... : yes
>> >   parmetis......................... : yes
>> >   petsc............................ : yes
>> >      version....................... : 3.3.0
>> >   sfcurves......................... : yes
>> >   slepc............................ : no
>> >   tbb.............................. : no
>> >   c++ threads...................... : no
>> >   c++ rtti ........................ : yes
>> >   tecio............................ : yes
>> >   tecplot...(vendor binaries)...... : no
>> >   tetgen........................... : yes
>> >   triangle......................... : yes
>> >   trilinos......................... : no
>> >   vtk.............................. : no
>> >
>> >
>> ------------------------------------------------------------------------------
>> > See everything from the browser to the database with AppDynamics
>> > Get end-to-end visibility with application monitoring from AppDynamics
>> > Isolate bottlenecks and diagnose root cause in seconds.
>> > Start your free trial of AppDynamics Pro today!
>> >
>> http://pubads.g.doubleclick.net/gampad/clk?id=48808831&iu=/4140/ostg.clktrk
>> > _______________________________________________
>> > Libmesh-users mailing list
>> > [email protected]
>> > https://lists.sourceforge.net/lists/listinfo/libmesh-users
>> >
>>
>>
>>
>> --
>> Jim Fonseca, PhD
>> Research Scientist
>> Network for Computational Nanotechnology
>> Purdue University
>> 765-496-6495
>> www.jimfonseca.com
>>
>> ------------------------------------------------------------------------------
>> Introducing Performance Central, a new site from SourceForge and
>> AppDynamics. Performance Central is your source for news, insights,
>> analysis and resources for efficient Application Performance Management.
>> Visit us today!
>>
>> http://pubads.g.doubleclick.net/gampad/clk?id=48897511&iu=/4140/ostg.clktrk
>>
>> _______________________________________________
>> Libmesh-users mailing list
>> [email protected]
>> https://lists.sourceforge.net/lists/listinfo/libmesh-users
>>
>
>
>
>


-- 
Jim Fonseca, PhD
Research Scientist
Network for Computational Nanotechnology
Purdue University
765-496-6495
www.jimfonseca.com
------------------------------------------------------------------------------
Introducing Performance Central, a new site from SourceForge and 
AppDynamics. Performance Central is your source for news, insights, 
analysis and resources for efficient Application Performance Management. 
Visit us today!
http://pubads.g.doubleclick.net/gampad/clk?id=48897511&iu=/4140/ostg.clktrk
_______________________________________________
Libmesh-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/libmesh-users

Reply via email to