Macports application of gromacs on Powerbook G4 and Leopard

Bonner, Carl E. cebonner at nsu.edu
Mon Dec 17 14:46:11 PST 2007


All,

I have a Powerbook G4 running Leopard that I want to install and run the
gromacs application under Macports.   I am trying to set up gromacs on a G4
powerbook 1.25 GB RAM, 60 MB Drive,   I have upgraded to OS X 10.5.  I am
using the Darwinports installer. As instructed, I have installed XCode
tools, X11 SDK.  I got xmgrace to work, however, gwyddion, rasmol and
gromacs error on compilation.  For gromacs,  I get the following error:

 --->  Building gromacs with target all
> Error: Target org.macports.build returned: shell command " cd
> "/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports
> .org_release_ports_science_gromacs/work/gromacs-3.3.1" && make all " returned
error 2
> Command output: nb_kernel010_ppc_altivec.c:145: error: 'Vvdw6' undeclared
(first use in this function)
> nb_kernel010_ppc_altivec.c:146: error: 'Vvdw12' undeclared (first use in this
function)
> nb_kernel010_ppc_altivec.c:150: error: 'fs' undeclared (first use in this
function)
> nb_kernel010_ppc_altivec.c:159: error: 'tmp1' undeclared (first use in this
function)
> nb_kernel010_ppc_altivec.c:159: error: 'tmp2' undeclared (first use in this
function)
> nb_kernel010_ppc_altivec.c:159: error: 'tmp3' undeclared (first use in this
function)
> nb_kernel010_ppc_altivec.c:159: error: 'tmp4' undeclared (first use in this
function)
> nb_kernel010_ppc_altivec.c: In function 'nb_kernel010nf_ppc_altivec':
> nb_kernel010_ppc_altivec.c:293: error: 'vector' undeclared (first use in this
function)
> nb_kernel010_ppc_altivec.c:293: error: syntax error before 'float'
> nb_kernel010_ppc_altivec.c:312: error: 'nul' undeclared (first use in this
function)
> nb_kernel010_ppc_altivec.c:331: error: 'shvec' undeclared (first use in this
function)
> nb_kernel010_ppc_altivec.c:334: error: 'ix' undeclared (first use in this
function)
> nb_kernel010_ppc_altivec.c:335: error: 'Vvdwtot' undeclared (first use in this
function)
> nb_kernel010_ppc_altivec.c:339: error: 'iy' undeclared (first use in this
function)
> nb_kernel010_ppc_altivec.c:339: error: 'iz' undeclared (first use in this
function)
> nb_kernel010_ppc_altivec.c:353: error: 'dx' undeclared (first use in this
function)
> nb_kernel010_ppc_altivec.c:353: error: 'dy' undeclared (first use in this
function)
> nb_kernel010_ppc_altivec.c:353: error: 'dz' undeclared (first use in this
function)
> nb_kernel010_ppc_altivec.c:357: error: 'rsq' undeclared (first use in this
function)
> nb_kernel010_ppc_altivec.c:360: error: 'rinvsq' undeclared (first use in this
function)
> nb_kernel010_ppc_altivec.c:361: error: 'rinvsix' undeclared (first use in this
function)
> nb_kernel010_ppc_altivec.c:367: error: 'c6' undeclared (first use in this
function)
> nb_kernel010_ppc_altivec.c:367: error: 'c12' undeclared (first use in this
function)
> make[5]: *** [nb_kernel010_ppc_altivec.lo] Error 1
> make[4]: *** [all-recursive] Error 1
> make[3]: *** [all-recursive] Error 1
> make[2]: *** [all-recursive] Error 1
> make[1]: *** [all] Error 2
> make: *** [all-recursive] Error 1


The response I got back from the Gromacs help site was:
This may mean that you have to change some compiler flags, since Leopard
comes with a new version of gcc. Previously one had to use -faltive.
Maybe you can read the gcc manual (man gcc) and the rerun
make CFLAGS="-faltivec"
or similar new flags. But I cannot find the right options right now.

Has anyone had a similar experience? How did you address this.  I am a
novice to Macports.

Is this the case that I need to compile with altivec? If so, how do I change
the CFLAGS ?




-- 
Carl E. Bonner, Jr.,
Norfolk State University, 700 Park Avenue, Norfolk, VA 23504
(757) 823-2097 (voice) (757) 823-0033 (fax),
http://vigyan.nsu.edu/~cmr/cebonner.htm

-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.macosforge.org/pipermail/macports-users/attachments/20071217/a9e7dc3e/attachment.html


More information about the macports-users mailing list