Compiling with Absoft and mac OSX

Discussion on computers, ROMS installation and compiling

Moderators: arango, robertson

Post Reply
Message
Author
scully_ROMS
Posts: 3
Joined: Tue Jan 03, 2006 3:51 pm
Location: Woods Hole Oceanographic Inst.

Compiling with Absoft and mac OSX

#1 Post by scully_ROMS » Fri Mar 03, 2006 8:23 pm

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.

thaned
Posts: 5
Joined: Thu May 25, 2006 2:36 am
Location: University of Colorado, boulder

Compiling with Absoft and mac OSX

#2 Post by thaned » Mon Sep 18, 2006 9:33 pm

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

Post Reply