Hi,
My machine is:
Machine Name: Power Mac G5 Quad
Number Of CPUs: 4
CPU Speed: 2.5 GHz
Memory: 16 GB
System Version: Mac OS X 10.4.11 (8S165)
Kernel Version: Darwin 8.11.0
I'm using the Pro Fortran 9.2 for compile the software called GAMESS [http://www.msg.ameslab.gov/GAMESS/]
The scripts for compilation of GAMESS don't consider the ABSOFT compiler. So I need make some changes.
My problem is when I try linker the program the message [/usr/bin/ld: gamess.o bad magic number (not a Mach-O file)] appear for all objects compiled with absoft compiler.
My most change in comp script is:
if ($TARGET == macG5) then
set OPT = '-O3'
if ($MODULE == guess) set OPT='-O0'
if ($MODULE == morokm) set OPT='-O0'
if ($MODULE == prpel) set OPT='-O1'
if ($MODULE == tdxitr) set OPT='-O1'
if ($MODULE == zheev) set OPT='-O0'
set echo
f95 -c -i8 -v -altivec -blas=altivec -m64 -cpu:g5 -cons -B19 $OPT $MODULE.f
unset echo
endif
And in lked script
if ($TARGET == macG5) then
set LDR='gcc'
set LDOPTS='-Wl,-multiply_defined -Wl,suppress' # add '-Wl,-M' for load map
if (-e /sw/lib/libatlas.a) then
set LIBRARIES='-L/sw/lib -lf77blas -latlas' # Atlas
else
set LIBRARIES='-Wl,-framework -Wl,vecLib' # Apple's BLAS library
endif
set BLAS=' '
set VECTOR=' '
set QUICHE='zunix.o'
endif
The error message is:
GAMESS will be linked into the executable image gamess.00.x.
chdir object
gcc -o ../gamess.00.x -Wl,-multiply_defined -Wl,suppress gamess.o unport.o zunix.o aldeci.o algnci.o [....] qmmm.o vbdum.o neostb.o ../ddi/libddi.a -lpthread -Wl,-framework -Wl,vecLib
/usr/bin/ld: gamess.o bad magic number (not a Mach-O file)
/usr/bin/ld: unport.o bad magic number (not a Mach-O file)
.
.
.
I search for some orientation on NET but nothing helpful in this problem.
I appreciate so much some orientation for fix this problem.
Thanks.
Thiago...