<html><head></head><body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; ">Both suggestions worked, thanks Petros! <div><br></div><div>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.<div><br></div><div><br><div><div><div>On Jul 16, 2013, at 4:20 PM, Petros Tzeferacos wrote:</div><br class="Apple-interchange-newline"><blockquote type="cite"><div dir="ltr"><div><div>Hey Kevin,<br><br></div>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. <br>
<br># command for generating a library<br>
MKLIB = ar -r <br>becomes,<br>MKLIB = ar -rs <br><br></div><div>Let us know how this goes!<br></div><div><br>Best,<br></div><div>-- Petros<br></div><div><br><br></div></div><div class="gmail_extra"><br><br><div class="gmail_quote">
On Tue, Jul 16, 2013 at 5:30 PM, Kevin Moore <span dir="ltr"><<a href="mailto:kmoore@physics.ucsb.edu" target="_blank">kmoore@physics.ucsb.edu</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<div style="word-wrap:break-word">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.<div>
<br></div><div><div>rm -f ../object/libma28.a Ma28.o</div><div>/Users/Kevin/mpich-install/bin/mpif90 -ggdb -c -O2 -fdefault-real-8 -fdefault-double-8 -Wuninitialized -c Ma28.F90</div><div>ar -r ../object/libma28.a Ma28.o</div>
<div>ar: creating archive ../object/libma28.a</div><span class="HOEnZb"><font color="#888888"><div><br></div><div>-Kevin</div></font></span><div><div class="h5"><div><br><div><div>On Jul 16, 2013, at 3:22 PM, Sean Couch wrote:</div>
<br><blockquote type="cite"><div style="word-wrap:break-word">Kevin,<div><br></div><div>Go to {FLASH_DIR}/lib/ma28 and run the "build.csh" script there. Then try re-linking the FLASH application in your object directory.</div>
<div><br></div><div>Sean</div><div><br></div><div><br><div>
<div style="word-wrap:break-word"><div><br>--------------------------------------------------------</div><div>Sean M. Couch, Ph.D.</div><div>Hubble Fellow</div><div>Flash Center for Computational Science</div><div>Department of Astronomy & Astrophysics</div>
<div>The University of Chicago</div><div>5747 S Ellis Ave, Jo 315</div><div>Chicago, IL 60637</div><div>(773) 702-3899</div><div><a href="http://www.flash.uchicago.edu/~smc" target="_blank">www.flash.uchicago.edu/~smc</a></div>
<div><br></div></div><br>
</div>
<br><div><div>On Jul 16, 2013, at 3:09 PM, Kevin Moore <<a href="mailto:kmoore@physics.ucsb.edu" target="_blank">kmoore@physics.ucsb.edu</a>> wrote:</div><br><blockquote type="cite">Hi all,<br><br>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.<br>
<br>I try:<br>./setup Cellular -auto<br>cd object<br>make<br><br>and it compiles for several minutes before failing on the final large linking step with:<br>ld: in ../lib/ma28/object//libma28.a, archive has no table of contents for architecture x86_64<br>
collect2: ld returned 1 exit status<br>make: *** [flash4] Error 1<br><br>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.<br><br>I built my mpi compilers with the standard xcode gcc: /Users/Kevin/mpich-install/bin/mpif90 -v<br>
mpif90 for MPICH version 3.0.4<br>Using built-in specs.<br>COLLECT_GCC=gfortran<br>COLLECT_LTO_WRAPPER=/usr/local/gfortran/libexec/gcc/x86_64-apple-darwin10.3.0/4.5.1/lto-wrapper<br>Target: x86_64-apple-darwin10.3.0<br>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<br>
Thread model: posix<br><br>uname -a gives:<br>Darwin <a href="http://kmoore.physics.ucsb.edu/" target="_blank">kmoore.physics.ucsb.edu</a> 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<br>
<br>Thanks in advance for any help on this issue.<br><br>-Kevin</blockquote></div><br></div></div></blockquote></div><br></div></div></div></div></div></blockquote></div><br><br clear="all"><br>-- <br><div dir="ltr">/* ************************************************* *<br>
Petros Tzeferacos, PhD <br> <br> Research Scientist & Code Group leader,<br> Flash Center for Computational Science, <br> Department of Astronomy & Astrophysics,<br>
University of Chicago. <br> 5747 S. Ellis Ave, Jones Lab. room 317<br> Chicago, IL 60637 <br> Tel. 773-834-3236 <br> <a href="mailto:petros.tzeferacos@flash.uchicago.edu" target="_blank">petros.tzeferacos@flash.uchicago.edu</a> <br>
* ************************************************* */<br></div>
</div>
</blockquote></div><br></div></div></div></body></html>