[gmx-developers] template.o cannot be linked under Mac OS with 4.07

Jochen Hub jochen at xray.bmc.uu.se
Fri Jan 15 10:18:04 CET 2010


Hi,

running make in the template directory gives the following errors in the 
latest 4.0 release:

cc -m64  -I/usr/include/libxml2 
-I/Users/jochen/src/git/gmx40/gromacs/build/include 
-I/Users/jochen/src/git/gmx40/gromacs/build/include/gromacs  
-I/Users/jochen/src/fftw/fftw332.64/include  -c -o template.o template.c
cc -L/Users/jochen/src/git/gmx40/gromacs/build/lib 
-L/Users/jochen/src/fftw/fftw332.64/lib -framework Accelerate -o 
template template.o -lmd -lgmx -lxml2 -lfftw3f -lm  
ld warning: in template.o, file is not of required architecture
ld warning: in /Users/jochen/src/git/gmx40/gromacs/build/lib/libmd.a, 
file is not of required architecture
ld warning: in /Users/jochen/src/git/gmx40/gromacs/build/lib/libgmx.a, 
file is not of required architecture
ld warning: in /Users/jochen/src/fftw/fftw332.64/lib/libfftw3f.a, file 
is not of required architecture
Undefined symbols:
  "_main", referenced from:
      start in crt1.10.5.o
ld: symbol(s) not found
collect2: ld returned 1 exit status
make: *** [template] Error 1

I have configured with
fftwdir=/Users/jochen/src/fftw/fftw332.64
export CPPFLAGS="-I${fftwdir}/include"
export LDFLAGS="-L${fftwdir}/lib"
export CFLAGS="-m64"
./configure --disable-shared --without-x 
--prefix=/Users/jochen/src/git/gmx40/gromacs/build

Compiling gromacs works perfectly fine, only the template does not link 
to the libs. I am missing something here, or is there an issue with the 
makefile?

Cheers,
Jochen


-- 
---------------------------------------------------
Dr. Jochen Hub
Molecular Biophysics group
Dept. of Cell & Molecular Biology
Uppsala University. Box 596, 75124 Uppsala, Sweden.
Phone: +46-18-4714451 Fax: +46-18-511755
---------------------------------------------------




More information about the gromacs.org_gmx-developers mailing list