[gmx-developers] More errors compiling latest CVS

David spoel at xray.bmc.uu.se
Tue Jul 19 22:47:46 CEST 2005


On Tue, 2005-07-19 at 15:52 -0400, Jim Kress wrote:
> I received the following errors while compiling the latest code from the CVS
> repository:
> 
>  mpicc -DHAVE_CONFIG_H -I. -I. -I../../../src -I/usr/X11R6/include
> -I../../../include -O3 -fomit-frame-pointer -finline-functions -Wall
> -Wno-unused -malign-double -funroll-all-loops -MT dgebd2.lo -MD -MP -MF
> .deps/dgebd2.Tpo -c dgebd2.c -o dgebd2.o
> dgebd2.c: In function `dgebd2_':
> dgebd2.c:17: parse error before `int'
> dgebd2.c:21: `i' undeclared (first use in this function)
> dgebd2.c:21: (Each undeclared identifier is reported only once
> dgebd2.c:21: for each function it appears in.)
> dgebd2.c:22: `i1' undeclared (first use in this function)
> dgebd2.c:23: `i2' undeclared (first use in this function)
> dgebd2.c:24: `i3' undeclared (first use in this function)
> make[4]: *** [dgebd2.lo] Error 1
> make[4]: Leaving directory `/root/gromacs_CVS/gmx/src/gmxlib/gmx_lapack'
> make[3]: *** [all-recursive] Error 1
> make[3]: Leaving directory `/root/gromacs_CVS/gmx/src/gmxlib'
> make[2]: *** [all-recursive] Error 1
> make[2]: Leaving directory `/root/gromacs_CVS/gmx/src'
> make[1]: *** [all] Error 2
> make[1]: Leaving directory `/root/gromacs_CVS/gmx/src'
> make: *** [all-recursive] Error 1
> 
> Anyone got any suggestions how to fix this?  Should I expect to encounter
> these kinds of errors when using the latest CVS extract?

Well, I've never seen this error before, but looking at the code, it is
not completely standard C:
void
F77_FUNC(dgebd2,DGEBD2)(int *m,
        int *n,
        double *a,
        int *lda,
        double *d,
        double *e,
        double *tauq,
        double *taup,
        double *work,
        int *info)
{

  *info = 0;
  int i,i1,i2,i3;

If you swap around those last two lines it should work.

What hardware and compiler are you using?

This particular piece of code was automatically translated from Fortran
to C. There is also a way around, if you have native BLAS and LAPACK
libraries.


> 
> Thanks.
> 
> 
> Jim
> 
> _______________________________________________
> gmx-developers mailing list
> gmx-developers at gromacs.org
> http://www.gromacs.org/mailman/listinfo/gmx-developers
> Please don't post (un)subscribe requests to the list. Use the 
> www interface or send it to gmx-developers-request at gromacs.org.
-- 
David.
________________________________________________________________________
David van der Spoel, PhD, Assoc. Prof., Molecular Biophysics group,
Dept. of Cell and Molecular Biology, Uppsala University.
Husargatan 3, Box 596,          75124 Uppsala, Sweden
phone:  46 18 471 4205          fax: 46 18 511 755
spoel at xray.bmc.uu.se    spoel at gromacs.org   http://xray.bmc.uu.se/~spoel
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++




More information about the gromacs.org_gmx-developers mailing list