[gmx-users] gromacs3.3.1 compilation error in SGI

raja raja_28 at fastmail.us
Fri Apr 7 14:15:12 CEST 2006


Hi users,
       This is another error occured while compiling in SGI
#######################################################################################
   ^

cc-1241 cc: ERROR File = gmx_chi.c, Line = 1086
  A declaration cannot appear after an executable statement in a block.

    int        ndih,nactdih,nf;
    ^

cc-1241 cc: ERROR File = gmx_chi.c, Line = 1087
  A declaration cannot appear after an executable statement in a block.

    real       **dih,*trans_frac,*aver_angle,*time;
    ^

cc-1241 cc: ERROR File = gmx_chi.c, Line = 1088
  A declaration cannot appear after an executable statement in a block.

    int        i,j,**chi_lookup,*xity; 
    ^

cc-1241 cc: ERROR File = gmx_chi.c, Line = 1090
  A declaration cannot appear after an executable statement in a block.

    t_filenm  fnm[] = {
    ^

cc-1241 cc: ERROR File = gmx_chi.c, Line = 1106
  A declaration cannot appear after an executable statement in a block.

    int     npargs;
    ^

cc-1241 cc: ERROR File = gmx_chi.c, Line = 1107
  A declaration cannot appear after an executable statement in a block.

    t_pargs *ppa;
    ^

20 errors detected in the compilation of "gmx_chi.c".
*** Error code 1 (bu21)
*** Error code 1 (bu21)
*** Error code 1 (bu21)
*** Error code 1 (bu21)
You have new mail
########################################################################################

Please help me !

With thanks !

B.Nataraj










On Fri, 7 Apr 2006 13:15:12 +0200, "Erik Lindahl" <lindahl at sbc.su.se>
said:
> Hi Raja,
> 
> Don't remove the asterisk - that is what makes it a pointer. The  
> declaration should be
> 
> char *   pc;
> 
> Cheers,
> 
> Erik
> 
> 
> On Apr 7, 2006, at 12:43 PM, raja wrote:
> 
> > Dear Mr.Lindhal and Mr.Goel,
> >         Based on your previous mail , I did these modification in
> >         gmx_fft_fftw3.c
> >
> > ######################################################################
> > int
> > gmx_fft_init_1d_real(gmx_fft_t *   pfft,
> >                      int           nx)
> > {
> >     gmx_fft_t              fft;
> >     real            *p1,*p2,*up1,*up2;
> >     char                 pc;
> >     pc = &(pc[8]);
> >     int                   i,j,k;
> >
> >     if(pfft==NULL)
> >     {
> > ###################################################################### 
> > ##
> >
> > But I got these errors...
> >
> > ############################### ERROR  
> > ##################################
> >
> > cc -DHAVE_CONFIG_H -I. -I. -I../../src -I../../include
> > -DGMXLIBDIR=\"/usr/local
> > /gromacs/share/top\" -I/usr/local/include -r12000 -mips4 -O3
> > -OPT:IEEE_arithmeti
> > c=3 -OPT:rsqrt=ON -SWP:loop_overhead -INLINE:=ON -LNO:opt=1
> > -LNO:ou_further=3 -O
> > PT:Olimit=0:roundoff=3:alias=typed -woff 1174 -D__INLINE_INTRINSICS -c
> > gmx_fft_f
> > ftw3.c -Wp,-MDupdate,.deps/gmx_fft_fftw3.TPlo -o gmx_fft_fftw3.o
> > cc-1138 cc: ERROR File = gmx_fft_fftw3.c, Line = 151
> >   Expression must have pointer-to-object type.
> >
> >       pc = &(pc[8]);
> >                 ^
> >
> > cc-1551 cc: WARNING File = gmx_fft_fftw3.c, Line = 151
> >   The variable "pc" is used before its value is set.
> >
> >       pc = &(pc[8]);
> >              ^
> >
> > cc-1241 cc: ERROR File = gmx_fft_fftw3.c, Line = 152
> >   A declaration cannot appear after an executable statement in a  
> > block.
> >
> >       int                   i,j,k;
> >       ^
> >
> > cc-1515 cc: ERROR File = gmx_fft_fftw3.c, Line = 186
> >   A value of type "void *" cannot be assigned to an entity of type
> >   "char".
> >
> >       pc = (void *)p1;
> >          ^
> >
> > cc-1515 cc: ERROR File = gmx_fft_fftw3.c, Line = 190
> >   A value of type "void *" cannot be assigned to an entity of type
> >   "char".
> >
> >       pc = (void *)p2;
> >          ^
> >
> > 4 errors detected in the compilation of "gmx_fft_fftw3.c".
> > *** Error code 1 (bu21)
> > *** Error code 1 (bu21)
> > *** Error code 1 (bu21)
> > *** Error code 1 (bu21)
> >
> > ###################################################################### 
> > ###########
> >
> > Did I do any thing wrong in modification ?
> >
> >
> > Thanks !
> > B.Nataraj
> >
> >
> >
> > On Fri, 7 Apr 2006 11:37:21 +0200, "Erik Lindahl" <lindahl at sbc.su.se>
> > said:
> >> Hi,
> >>
> >> It says in the error message - here's the full path:
> >>
> >> gromacs-3.3.1/src/mdlib/gmx_fft_fftw3.c.
> >>
> >> Cheers,
> >>
> >> Erik
> >>
> >>
> >> On Apr 7, 2006, at 11:15 AM, raja wrote:
> >>
> >>> Dear Mr. Erick and Mr. spoel,
> >>>       Sorry , I am not a programmer, so please let me know which  
> >>> file
> >>>       under the folder "src" I have to incorporate
> >>> this change you are suggested.
> >>>
> >>> With thanks !
> >>> B.Nataraj
> >>> On Fri, 07 Apr 2006 10:47:43 +0200, "David van der Spoel"
> >>> <spoel at xray.bmc.uu.se> said:
> >>>> Erik Lindahl wrote:
> >>>>> Hi Raja,
> >>>>>
> >>>>> Try changing the "void" on line 150 to "char". gcc doesn't  
> >>>>> complain
> >>>>> about this casting even with full warnings, so we missed one
> >>>>> instance.
> >>>>>
> >>>> Maybe you'd rather need
> >>>>
> >>>> pc = (void *)(pc + 8)
> >>>>
> >>>> or even better
> >>>>
> >>>> pc = &(pc[8])
> >>>>
> >>>>> Erik
> >>>>>
> >>>>>
> >>>>> On Apr 7, 2006, at 10:36 AM, raja wrote:
> >>>>>
> >>>>>> Dear all,
> >>>>>> I just tried to install groamcs3.3.1, with a hope to overcome the
> >>>>>> earlier bug I posted for 3.3 version
> >>>>>> (http://www.gromacs.org/pipermail/gmx-users/2006-April/
> >>>>>> 020850.html) .But
> >>>>>> an other error occured in groamcs3.3.1 in SGI compilation..
> >>>>>> Error
> >>>>>> ################################################################# 
> >>>>>> ##
> >>>>>> ########
> >>>>>>
> >>>>>>  -I../../src  -I../../include
> >>>>>>  -DGMXLIBDIR=\"/usr/local/gromacs/share/top\" -I/usr/local/ 
> >>>>>> include
> >>>>>>  -r12000 -mips4 -O3 -OPT:IEEE_arithmetic=3 -OPT:rsqrt=ON
> >>>>>>  -SWP:loop_overhead -INLINE:=ON -LNO:opt=1 -LNO:ou_further=3
> >>>>>>  -OPT:Olimit=0:roundoff=3:alias=typed -woff 1174 -
> >>>>>> D__INLINE_INTRINSICS
> >>>>>>  -c -o qm_gaussian.lo qm_gaussian.c
> >>>>>>  cc -DHAVE_CONFIG_H -I. -I. -I../../src -I../../include
> >>>>>>  -DGMXLIBDIR=\"/usr/local/gromacs/share/top\" -I/usr/local/ 
> >>>>>> include
> >>>>>>  -r12000 -mips4 -O3 -OPT:IEEE_arithmetic=3 -OPT:rsqrt=ON
> >>>>>>  -SWP:loop_overhead -INLINE:=ON -LNO:opt=1 -LNO:ou_further=3
> >>>>>>  -OPT:Olimit=0:roundoff=3:alias=typed -woff 1174 -
> >>>>>> D__INLINE_INTRINSICS
> >>>>>>  -c qm_gaussian.c -Wp,-MDupdate,.deps/qm_gaussian.TPlo -o
> >>>>>> qm_gaussian.o
> >>>>>>         source='gmx_fft_fftw3.c' object='gmx_fft_fftw3.lo'
> >>>>>> libtool=yes \
> >>>>>>         DEPDIR=.deps depmode=sgi /bin/sh ../../config/depcomp \
> >>>>>>         /bin/sh ../../libtool --tag=CC --mode=compile cc -
> >>>>>> DHAVE_CONFIG_H
> >>>>>>          -I. -I. -I../../src  -I../../include
> >>>>>>         -DGMXLIBDIR=\"/usr/local/gromacs/share/top\"
> >>>>>>         -I/usr/local/include   -r12000 -mips4 -O3 -
> >>>>>> OPT:IEEE_arithmetic=3
> >>>>>>         -OPT:rsqrt=ON -SWP:loop_overhead -INLINE:=ON -LNO:opt=1
> >>>>>>         -LNO:ou_further=3 -OPT:Olimit=0:roundoff=3:alias=typed -
> >>>>>> woff
> >>>>>>         1174 -D__INLINE_INTRINSICS -c -o gmx_fft_fftw3.lo
> >>>>>>         gmx_fft_fftw3.c
> >>>>>>  cc -DHAVE_CONFIG_H -I. -I. -I../../src -I../../include
> >>>>>>  -DGMXLIBDIR=\"/usr/local/gromacs/share/top\" -I/usr/local/ 
> >>>>>> include
> >>>>>>  -r12000 -mips4 -O3 -OPT:IEEE_arithmetic=3 -OPT:rsqrt=ON
> >>>>>>  -SWP:loop_overhead -INLINE:=ON -LNO:opt=1 -LNO:ou_further=3
> >>>>>>  -OPT:Olimit=0:roundoff=3:alias=typed -woff 1174 -
> >>>>>> D__INLINE_INTRINSICS
> >>>>>>  -c gmx_fft_fftw3.c -Wp,-MDupdate,.deps/gmx_fft_fftw3.TPlo -o
> >>>>>>  gmx_fft_fftw3.o
> >>>>>> cc-3316 cc: ERROR File = gmx_fft_fftw3.c, Line = 186
> >>>>>>   The expression must be a pointer to a complete object type.
> >>>>>>
> >>>>>>       pc += 8;
> >>>>>>       ^
> >>>>>>
> >>>>>> cc-3316 cc: ERROR File = gmx_fft_fftw3.c, Line = 190
> >>>>>>   The expression must be a pointer to a complete object type.
> >>>>>>
> >>>>>>       pc += 8;
> >>>>>>       ^
> >>>>>>
> >>>>>> 2 errors detected in the compilation of "gmx_fft_fftw3.c".
> >>>>>> *** Error code 1 (bu21)
> >>>>>> *** Error code 1 (bu21)
> >>>>>> *** Error code 1 (bu21)
> >>>>>> *** Error code 1 (bu21)
> >>>>>> ################################################################# 
> >>>>>> ##
> >>>>>> ##########
> >>>>>>
> >>>>>>
> >>>>>> I am desparate to compile in SGI , Please help me.
> >>>>>>
> >>>>>> With thanks !
> >>>>>> B.Nataraj
> >>>>>> --  raja
> >>>>>>   raja_28 at fastmail.us
> >>>>>>
> >>>>>> --http://www.fastmail.fm - Access all of your messages and  
> >>>>>> folders
> >>>>>>                           wherever you are
> >>>>>>
> >>>>>> _______________________________________________
> >>>>>> gmx-users mailing list    gmx-users at gromacs.org
> >>>>>> http://www.gromacs.org/mailman/listinfo/gmx-users
> >>>>>> Please don't post (un)subscribe requests to the list. Use the
> >>>>>> www interface or send it to gmx-users-request at gromacs.org.
> >>>>>> Can't post? Read http://www.gromacs.org/mailing_lists/users.php
> >>>>>>
> >>>>>
> >>>>> _______________________________________________
> >>>>> gmx-users mailing list    gmx-users at gromacs.org
> >>>>> http://www.gromacs.org/mailman/listinfo/gmx-users
> >>>>> Please don't post (un)subscribe requests to the list. Use thewww
> >>>>> interface or send it to gmx-users-request at gromacs.org.
> >>>>> Can't post? Read http://www.gromacs.org/mailing_lists/users.php
> >>>>
> >>>>
> >>>> -- 
> >>>> 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:// 
> >>>> folding.bmc.uu.se
> >>>> +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
> >>>> +++++
> >>>> _______________________________________________
> >>>> gmx-users mailing list    gmx-users at gromacs.org
> >>>> http://www.gromacs.org/mailman/listinfo/gmx-users
> >>>> Please don't post (un)subscribe requests to the list. Use the
> >>>> www interface or send it to gmx-users-request at gromacs.org.
> >>>> Can't post? Read http://www.gromacs.org/mailing_lists/users.php
> >>> -- 
> >>>   raja
> >>>   raja_28 at fastmail.us
> >>>
> >>> -- 
> >>> http://www.fastmail.fm - Access your email from home and the web
> >>>
> >>> _______________________________________________
> >>> gmx-users mailing list    gmx-users at gromacs.org
> >>> http://www.gromacs.org/mailman/listinfo/gmx-users
> >>> Please don't post (un)subscribe requests to the list. Use the
> >>> www interface or send it to gmx-users-request at gromacs.org.
> >>> Can't post? Read http://www.gromacs.org/mailing_lists/users.php
> >>>
> >>
> >> _______________________________________________
> >> gmx-users mailing list    gmx-users at gromacs.org
> >> http://www.gromacs.org/mailman/listinfo/gmx-users
> >> Please don't post (un)subscribe requests to the list. Use the
> >> www interface or send it to gmx-users-request at gromacs.org.
> >> Can't post? Read http://www.gromacs.org/mailing_lists/users.php
> > -- 
> >   raja
> >   raja_28 at fastmail.us
> >
> > -- 
> > http://www.fastmail.fm - Faster than the air-speed velocity of an
> >                           unladen european swallow
> >
> > _______________________________________________
> > gmx-users mailing list    gmx-users at gromacs.org
> > http://www.gromacs.org/mailman/listinfo/gmx-users
> > Please don't post (un)subscribe requests to the list. Use the
> > www interface or send it to gmx-users-request at gromacs.org.
> > Can't post? Read http://www.gromacs.org/mailing_lists/users.php
> >
> 
> _______________________________________________
> gmx-users mailing list    gmx-users at gromacs.org
> http://www.gromacs.org/mailman/listinfo/gmx-users
> Please don't post (un)subscribe requests to the list. Use the 
> www interface or send it to gmx-users-request at gromacs.org.
> Can't post? Read http://www.gromacs.org/mailing_lists/users.php
-- 
  raja
  raja_28 at fastmail.us

-- 
http://www.fastmail.fm - Send your email first class




More information about the gromacs.org_gmx-users mailing list