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.
Compiling with Absoft and mac OSX
-
- Posts: 3
- Joined: Tue Jan 03, 2006 3:51 pm
- Location: Woods Hole Oceanographic Inst.
Compiling with Absoft and mac OSX
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:
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:
- Add "-s" after ranlib in Compilers/Darwin-xlf.mk for example, RANLIB := ranlib -s
- Add " $(RANLIB) $@" in the last line of the following files Adjoint/Module.mk Nonlinear/Module.mk Modules/Module.mk Utility/Module.mk