[gmx-users] Compilation problems for 3.2.1
Ross Nobes
r.nobes at fle.fujitsu.com
Tue Mar 2 11:46:01 CET 2004
Hi,
I have been compiling 3.2.1 on a Fujitsu PRIMEPOWER machine, where the C
compiler is rather unforgiving! There are two problems related to incorrect
array initialization for files in the src/tools directory. (These can also
be seen by compiling with gcc using the flag -pedantic as shown below.)
PROBLEM 1:
gmx_sgangle.c: In function `gmx_sgangle':
gmx_sgangle.c:397: initializer element is not computable at load time
gmx_sgangle.c:397: (near initialization for `pa[0].u.v')
gmx_sgangle.c:397: initializer element is not computable at load time
gmx_sgangle.c:397: (near initialization for `pa[0].u')
gmx_sgangle.c:398: initializer element is not computable at load time
gmx_sgangle.c:398: (near initialization for `pa[0]')
This can be fixed by adding the 'static' attribute to bOne:
395 static bool bOne = TRUE;
Is this a reasonable fix please?
---
PROBLEM 2:
make_edi.c:467: initializer element is not computable at load time
make_edi.c:467: (near initialization for `pa[0].option')
make_edi.c:468: initializer element is not computable at load time
make_edi.c:468: (near initialization for `pa[0]')
make_edi.c:469: initializer element is not computable at load time
make_edi.c:469: (near initialization for `pa[1].option')
make_edi.c:470: initializer element is not computable at load time
make_edi.c:470: (near initialization for `pa[1]')
...
make_edi.c:491: initializer element is not computable at load time
make_edi.c:491: (near initialization for `pa[12].option')
make_edi.c:492: initializer element is not computable at load time
make_edi.c:492: (near initialization for `pa[12]')
This problem is (for someone with my knowledge of C at least) a bit more
complicated! Can anyone suggest a fix for this please?
Cheers,
Ross
--
Ross Nobes
Manager, Physical and Life Sciences Research Group
Fujitsu Laboratories of Europe
Hayes Park Central, Hayes End Road
Hayes, Middlesex UB4 8FE, UK
Phone +44 (0) 77 7195 6113
Fax +44 (0) 20 8606 4539
E-mail R.Nobes at fle.fujitsu.com
-------------- next part --------------
An embedded and charset-unspecified text was scrubbed...
Name: InterScan_Disclaimer.txt
URL: <http://maillist.sys.kth.se/pipermail/gromacs.org_gmx-users/attachments/20040302/df5ca994/attachment.txt>
More information about the gromacs.org_gmx-users
mailing list