[FLASH-USERS] Problem linking libma28 in Cellular

Petros Tzeferacos petros.tzeferacos at flash.uchicago.edu
Tue Jul 16 20:07:59 EDT 2013


Great news! From what I'm seeing in the hdf5 sources they compile with -cru
by default but run the ranlib comand on top of that. I'm not 100% sure
though, this is "grepped" information.

Take care,
-- Petros




On Tue, Jul 16, 2013 at 6:55 PM, Kevin Moore <kmoore at physics.ucsb.edu>wrote:

> Both suggestions worked, thanks Petros!
>
> Any idea why this issue only came up with ma28? It looks like the only
> other library it was explicitly linking was hdf5, so I'm assuming I built
> that with ar -rs or something else that prevented this from popping up.
>
>
> On Jul 16, 2013, at 4:20 PM, Petros Tzeferacos wrote:
>
> Hey Kevin,
>
> could you try running ranlib on libma28.a and the recompile? This is a
> somewhat frequent problem on OSX from what I saw online. For a more
> permanent solution you can also modify the makefile to explicitly request
> the creation of the table of contents: In lib/ma28/source/Makefile add an s
> after the r.
>
> # command for generating a library
> MKLIB = ar -r
> becomes,
> MKLIB = ar -rs
>
> Let us know how this goes!
>
> Best,
> -- Petros
>
>
>
>
> On Tue, Jul 16, 2013 at 5:30 PM, Kevin Moore <kmoore at physics.ucsb.edu>wrote:
>
>> I tried that and am still getting the same error. It looks
>> like {FLASH_DIR}/lib/ma28/build.csh was already getting called at the end
>> of "./setup Cellular -auto" as well. I've attached the output of
>> ./build.csh below.
>>
>> rm -f ../object/libma28.a Ma28.o
>> /Users/Kevin/mpich-install/bin/mpif90 -ggdb -c -O2 -fdefault-real-8
>> -fdefault-double-8 -Wuninitialized  -c Ma28.F90
>> ar -r ../object/libma28.a Ma28.o
>> ar: creating archive ../object/libma28.a
>>
>> -Kevin
>>
>> On Jul 16, 2013, at 3:22 PM, Sean Couch wrote:
>>
>> Kevin,
>>
>> Go to {FLASH_DIR}/lib/ma28 and run the "build.csh" script there.  Then
>> try re-linking the FLASH application in your object directory.
>>
>> Sean
>>
>>
>>
>> --------------------------------------------------------
>> Sean M. Couch, Ph.D.
>> Hubble Fellow
>> Flash Center for Computational Science
>> Department of Astronomy & Astrophysics
>> The University of Chicago
>> 5747 S Ellis Ave, Jo 315
>> Chicago, IL  60637
>> (773) 702-3899
>> www.flash.uchicago.edu/~smc
>>
>>
>>
>> On Jul 16, 2013, at 3:09 PM, Kevin Moore <kmoore at physics.ucsb.edu> wrote:
>>
>> Hi all,
>>
>> I'm new to flash (version 4.0.1), and have successfully run the Sedov and
>> Sod simulations on my Mac so far. Right now, I'm trying to run the Cellular
>> simulation and am running into problems in the final linking step when I
>> try to compile it.
>>
>> I try:
>> ./setup Cellular -auto
>> cd object
>> make
>>
>> and it compiles for several minutes before failing on the final large
>> linking step with:
>> ld: in ../lib/ma28/object//libma28.a, archive has no table of contents
>> for architecture x86_64
>> collect2: ld returned 1 exit status
>> make: *** [flash4] Error 1
>>
>> I'm not familiar with this type of error, and didn't find anything on the
>> mailing list about it in the last few years of posts.
>>
>> I built my mpi compilers with the standard xcode gcc:
>> /Users/Kevin/mpich-install/bin/mpif90 -v
>> mpif90 for MPICH version 3.0.4
>> Using built-in specs.
>> COLLECT_GCC=gfortran
>>
>> COLLECT_LTO_WRAPPER=/usr/local/gfortran/libexec/gcc/x86_64-apple-darwin10.3.0/4.5.1/lto-wrapper
>> Target: x86_64-apple-darwin10.3.0
>> Configured with: ../gcc-4_5-branch/configure --prefix=/usr/local/gfortran
>> --enable-languages=c,c++,fortran
>> --with-gmp=/Users/fx/devel/gcc/ibin45/../irun45 --enable-bootstrap
>> --with-included-gettext --with-arch=nocona --with-tune=generic
>> Thread model: posix
>>
>> uname -a gives:
>> Darwin kmoore.physics.ucsb.edu 11.4.2 Darwin Kernel Version 11.4.2: Thu
>> Aug 23 16:25:48 PDT 2012; root:xnu-1699.32.7~1/RELEASE_X86_64 x86_64 i386
>>
>> Thanks in advance for any help on this issue.
>>
>> -Kevin
>>
>>
>>
>>
>
>
> --
> /* ************************************************* *
>      Petros Tzeferacos, PhD
>
>      Research Scientist & Code Group leader,
>      Flash Center for Computational Science,
>      Department of Astronomy & Astrophysics,
>      University of Chicago.
>      5747 S. Ellis Ave, Jones Lab. room 317
>      Chicago, IL 60637
>      Tel. 773-834-3236
>      petros.tzeferacos at flash.uchicago.edu
>  * ************************************************* */
>
>
>


-- 
/* ************************************************* *
     Petros Tzeferacos, PhD

     Research Scientist & Code Group leader,
     Flash Center for Computational Science,
     Department of Astronomy & Astrophysics,
     University of Chicago.
     5747 S. Ellis Ave, Jones Lab. room 317
     Chicago, IL 60637
     Tel. 773-834-3236
     petros.tzeferacos at flash.uchicago.edu
 * ************************************************* */
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://flash.rochester.edu/pipermail/flash-users/attachments/20130716/6d7c36fe/attachment.htm>


More information about the flash-users mailing list