Ocean Modeling Discussion


Search for:
It is currently Wed Jul 24, 2019 12:25 am

Post new topic Reply to topic  [ 2 posts ] 

All times are UTC

Author Message
PostPosted: Fri Mar 03, 2006 8:23 pm 

Joined: Tue Jan 03, 2006 3:51 pm
Posts: 3
Location: Woods Hole Oceanographic Inst.
I am getting an error that reads:

ar r libNLM.a
ar: no archive members specified

when I try to complile using Absoft 9.2 on a mac G5 running OSX 10.4.5

from basic google searching it sounds as if the make file is trying to build an empty archive, which works on some platforms but not Darwin. Any advice or work-arounds would be appreciated.

Reply with quote  
PostPosted: Mon Sep 18, 2006 9:33 pm 

Joined: Thu May 25, 2006 2:36 am
Posts: 5
Location: University of Colorado, boulder
I am not using Absoft and mac OSX but this may help. I got similar error (not exact though). The error was /usr/bin/ld: archive: libNLM.a has no table of contents, add one with ranlib(1) (can't load from it)

To work around this problem, you can run command "ranlib -s libNLM.a" and such. Then run "make" again.

Another work around that I used in my machine is as follows:
  1. Add "-s" after ranlib in Compilers/Darwin-xlf.mk for example, RANLIB := ranlib -s
  2. Add " $(RANLIB) $@" in the last line of the following files Adjoint/Module.mk Nonlinear/Module.mk Modules/Module.mk Utility/Module.mk

These files are doing "ar" of libNLM.a, libUTIL.a, and libMODS.a

Reply with quote  
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 2 posts ] 

All times are UTC

Who is online

Users browsing this forum: No registered users and 3 guests

You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  
Powered by phpBB® Forum Software © phpBB Group