[AMBER] AmberTools1.5 install problems on Mac OS X 10.7.2

From: Frank Barry <frank.james.barry.gmail.com>
Date: Tue, 8 Nov 2011 15:30:58 -0500

I am having problems installing AmberTools1.5 on a new Mac.

$ uname -a
Darwin franks-mac-pro 11.2.0 Darwin Kernel Version 11.2.0: Tue Aug  9
20:54:00 PDT 2011; root:xnu-1699.24.8~1/RELEASE_X86_64 x86_64

I am following the "amberonmac" blog instructions here
http://amberonmac.blogspot.com/2011/04/building-ambertools-15-on-105x-or-106x.html

I have the latest Xcode (4.2) and MacPorts (2.0.3).

I run into "ld: symbol(s) not found for architecture x86_64" problems
using my standard gcc (4.2.1) and gcc45 (4.5.3) from MacPorts, see
full commands below.

I found this related post http://archive.ambermd.org/201005/0652.html
but I don't get as far as having a config.h generated.
Any tips?

Thanks in advance,
Frank



$ ./configure -macAccelerate gnu
Obtaining the gnu suite version:
      gcc -v
The version is 4.2.1
Testing the gcc compiler:
     gcc  -D_FILE_OFFSET_BITS=64 -D_LARGEFILE_SOURCE  -o testp testp.c
OK
Validating the C++ compiler version:
     g++ -v
The version is 4.2.1
OK
Testing the gfortran compiler:
     gfortran  -O0 -o testp testp.f
OK
Testing mixed C/Fortran compilation:
     gcc  -D_FILE_OFFSET_BITS=64 -D_LARGEFILE_SOURCE  -c -o testp.c.o testp.c
     gfortran  -O0 -c -o testp.f.o testp.f
     gcc  -D_FILE_OFFSET_BITS=64 -D_LARGEFILE_SOURCE -o testp
testp.c.o testp.f.o -lgfortran -framework Accelerate
ld: warning: ignoring file testp.f.o, file was built for i386 which is
not the architecture being linked (x86_64)
Undefined symbols for architecture x86_64:
  "_hello_", referenced from:
      _main in testp.c.o
ld: symbol(s) not found for architecture x86_64
collect2: ld returned 1 exit status
./configure: line 1397: ./testp: No such file or directory
Error: Unable to compile mixed C/Fortran code.
    Please check your compiler settings and configure flags.



## And using MacPorts gcc 4.5.3

$ ./configure-tmp gnu

Obtaining the gnu suite version:
      gcc-mp-4.5 -v
The version is 4.5.3

Testing the gcc-mp-4.5 compiler:
     gcc-mp-4.5 -D_FILE_OFFSET_BITS=64 -D_LARGEFILE_SOURCE -o testp testp.c
OK

Testing the gfortran compiler:
     gfortran -O0 -o testp testp.f
OK

Testing mixed C/Fortran compilation:
     gcc-mp-4.5 -D_FILE_OFFSET_BITS=64 -D_LARGEFILE_SOURCE -c -o
testp.c.o testp.c
     gfortran -O0 -c -o testp.f.o testp.f
     gcc-mp-4.5 -D_FILE_OFFSET_BITS=64 -D_LARGEFILE_SOURCE -o testp
testp.c.o testp.f.o -lgfortran
ld: warning: ignoring file testp.f.o, file was built for i386 which is
not the architecture being linked (x86_64)
Undefined symbols for architecture x86_64:
  "_hello_", referenced from:
      _main in testp.c.o
ld: symbol(s) not found for architecture x86_64
collect2: ld returned 1 exit status
./configure-tmp: line 1399: ./testp: No such file or directory
Error: Unable to compile mixed C/Fortran code.
    Please check your compiler settings and configure flags.

_______________________________________________
AMBER mailing list
AMBER.ambermd.org
http://lists.ambermd.org/mailman/listinfo/amber
Received on Tue Nov 08 2011 - 13:00:02 PST
Custom Search