<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD>
<META http-equiv=Content-Type content="text/html; charset=gb2312">
<META content="MSHTML 6.00.2900.2802" name=GENERATOR></HEAD>
<BODY>
<DIV>Dear Erik:</DIV>
<DIV>&nbsp;</DIV>
<DIV>The last error is just&nbsp;"configure:6705: error: cannot compute sizeof 
(int), 77"</DIV>
<DIV>&nbsp;</DIV>
<DIV>&nbsp;</DIV>
<DIV>Xie Yinghong</DIV>
<DIV>&nbsp;</DIV>
<DIV>&nbsp;</DIV>
<DIV>&gt; Find the _last_ error in config.log, and check what the compiler 
said&nbsp; <BR>&gt; about it.<BR><BR><BR>&gt; Cheers,<BR><BR>&gt; Erik<BR><BR>On 
Mar 14, 2006, at 2:11 AM, Yinghong wrote:<BR><BR>&gt;<I> Dear 
Erik:<BR></I>&gt;<I><BR></I>&gt;<I> I have carefully read through config.log 
file, and I found out some&nbsp; <BR></I>&gt;<I> possible problems for 
compilation failure, could you please help me&nbsp; <BR></I>&gt;<I> to locate 
the real reason and solution?<BR></I>&gt;<I><BR></I>&gt;<I> As I think, maybe 
this error is from xlc, but it seemed much&nbsp; <BR></I>&gt;<I> related to 
"conftest.c" file, which was reported for several times&nbsp; <BR></I>&gt;<I> as 
errors.<BR></I>&gt;<I><BR></I>&gt;<I> How should I deal it with? By the way, I 
have passed through the&nbsp; <BR></I>&gt;<I> compilation of single version. The 
following errors were from MPI&nbsp; <BR></I>&gt;<I> compilation. Of course, I 
only added a "--enable-mpi" flag when&nbsp; <BR></I>&gt;<I> compling MPI 
version, as described in the last 
email.<BR></I>&gt;<I><BR></I>&gt;<I><BR></I>&gt;<I> config.log:<BR></I>&gt;<I> 
...<BR></I>&gt;<I> ...<BR></I>&gt;<I> ...<BR></I>&gt;<I> ## ----------- 
##<BR></I>&gt;<I> ## Core tests. ##<BR></I>&gt;<I> ## ----------- 
##<BR></I>&gt;<I> ...<BR></I>&gt;<I> ...<BR></I>&gt;<I> configure:2586: checking 
for C compiler version<BR></I>&gt;<I> configure:2589: xlc --version 
&lt;/dev/null &gt;&amp;5<BR></I>&gt;<I> xlc: 1501-216 command option --version 
is not recognized - passed&nbsp; <BR></I>&gt;<I> to ld<BR></I>&gt;<I> 
...<BR></I>&gt;<I> ...<BR></I>&gt;<I> ...<BR></I>&gt;<I> configure:2806: 
checking whether we are using the GNU C compiler<BR></I>&gt;<I> configure:2830: 
xlc -c -O3 -qarch=pwr4 -qtune=pwr4 -qansialias -w - <BR></I>&gt;<I> 
I/afs/ipp-garching.mpg.de/home/x/xieyh/fftw_213/include conftest.c 
&gt;&amp;5<BR></I>&gt;<I> "conftest.c", line 20.14: 1506-275 (S) Unexpected text 
me encountered.<BR></I>&gt;<I> "conftest.c", line 20.8: 1506-045 (S) Undeclared 
identifier choke.<BR></I>&gt;<I> configure:2836: $? = 1<BR></I>&gt;<I> 
configure: failed program was:<BR></I>&gt;<I> | /* confdefs.h.&nbsp; 
*/<BR></I>&gt;<I> |<BR></I>&gt;<I> | #define PACKAGE_NAME 
"GROMACS"<BR></I>&gt;<I> | #define PACKAGE_TARNAME "gromacs"<BR></I>&gt;<I> | 
#define PACKAGE_VERSION "3.3"<BR></I>&gt;<I> | #define PACKAGE_STRING "GROMACS 
3.3"<BR></I>&gt;<I> | #define PACKAGE_BUGREPORT "<A 
href="http://www.gromacs.org/mailman/listinfo/gmx-users">gmx-users at 
gromacs.org</A>"<BR></I>&gt;<I> | #define PACKAGE "gromacs"<BR></I>&gt;<I> | 
#define VERSION "3.3"<BR></I>&gt;<I> | #define GMX_SOFTWARE_SQRT<BR></I>&gt;<I> 
| #define BUILD_TIME "Mon Mar 13 08:13:33 NFT 2006"<BR></I>&gt;<I> | #define 
BUILD_USER "<A href="http://www.gromacs.org/mailman/listinfo/gmx-users">xieyh at 
psi24</A>"<BR></I>&gt;<I> | #define BUILD_MACHINE "AIX 2 
0010594A4C00"<BR></I>&gt;<I> | /* end confdefs.h.&nbsp; */<BR></I>&gt;<I> 
|<BR></I>&gt;<I> | int<BR></I>&gt;<I> | main ()<BR></I>&gt;<I> | 
{<BR></I>&gt;<I> | #ifndef __GNUC__<BR></I>&gt;<I> 
|&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; choke me<BR></I>&gt;<I> | 
#endif<BR></I>&gt;<I> |<BR></I>&gt;<I> |&nbsp;&nbsp; ;<BR></I>&gt;<I> 
|&nbsp;&nbsp; return 0;<BR></I>&gt;<I> | }<BR></I>&gt;<I><BR></I>&gt;<I> 
configure:2889: xlc -c -g -I/afs/ipp-garching.mpg.de/home/x/xieyh/ 
<BR></I>&gt;<I> fftw_213/include conftest.c &gt;&amp;5<BR></I>&gt;<I> 
configure:2895: $? = 0<BR></I>&gt;<I> configure:2899: test 
-z<BR></I>&gt;<I>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 
|| test ! -s conftest.err<BR></I>&gt;<I> ...<BR></I>&gt;<I> ...<BR></I>&gt;<I> 
configure:3061: xlc -c -O3 -qarch=pwr4 -qtune=pwr4 -qansialias -w - 
<BR></I>&gt;<I> I/afs/ipp-garching.mpg.de/home/x/xieyh/fftw_213/include 
conftest.c &gt;&amp;5<BR></I>&gt;<I> "conftest.c", line 2.3: 1506-166 (S) 
Definition of function choke&nbsp; <BR></I>&gt;<I> requires 
parentheses.<BR></I>&gt;<I> "conftest.c", line 2.9: 1506-046 (S) Syntax 
error.<BR></I>&gt;<I> configure:3067: $? = 1<BR></I>&gt;<I> configure: failed 
program was:<BR></I>&gt;<I> | #ifndef __cplusplus<BR></I>&gt;<I> |&nbsp;&nbsp; 
choke me<BR></I>&gt;<I> | #endif<BR></I>&gt;<I> ...<BR></I>&gt;<I> 
...<BR></I>&gt;<I> configure:4775: mpcc -E 
-I/afs/ipp-garching.mpg.de/home/x/xieyh/ <BR></I>&gt;<I> fftw_213/include 
conftest.c<BR></I>&gt;<I> "conftest.c", line 18.10: 1506-296 (S) #include 
file&nbsp; <BR></I>&gt;<I> &lt;ac_nonexistent.h&gt; not found.<BR></I>&gt;<I> 
...<BR></I>&gt;<I> ...<BR></I>&gt;<I> | #include &lt;stdio.h&gt;<BR></I>&gt;<I> 
| #include &lt;stdlib.h&gt;<BR></I>&gt;<I> | #ifdef 
F77_DUMMY_MAIN<BR></I>&gt;<I> |<BR></I>&gt;<I> | #&nbsp; ifdef 
__cplusplus<BR></I>&gt;<I> |&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; extern 
"C"<BR></I>&gt;<I> | #&nbsp; endif<BR></I>&gt;<I> |&nbsp;&nbsp;&nbsp; int 
F77_DUMMY_MAIN() { return 1; }<BR></I>&gt;<I> |<BR></I>&gt;<I> | 
#endif<BR></I>&gt;<I> | int<BR></I>&gt;<I> | main ()<BR></I>&gt;<I> | 
{<BR></I>&gt;<I> |<BR></I>&gt;<I> |&nbsp;&nbsp; FILE *f = fopen ("conftest.val", 
"w");<BR></I>&gt;<I> |&nbsp;&nbsp; if (! f)<BR></I>&gt;<I> 
|&nbsp;&nbsp;&nbsp;&nbsp; exit (1);<BR></I>&gt;<I> |&nbsp;&nbsp; if (((long) 
(sizeof (int))) &lt; 0)<BR></I>&gt;<I> |&nbsp;&nbsp;&nbsp;&nbsp; 
{<BR></I>&gt;<I> |&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; long i = longval 
();<BR></I>&gt;<I> |&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; if (i != ((long) 
(sizeof (int))))<BR></I>&gt;<I> |&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; exit 
(1);<BR></I>&gt;<I> |&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; fprintf (f, "%ld\n", 
i);<BR></I>&gt;<I> |&nbsp;&nbsp;&nbsp;&nbsp; }<BR></I>&gt;<I> |&nbsp;&nbsp; 
else<BR></I>&gt;<I> |&nbsp;&nbsp;&nbsp;&nbsp; {<BR></I>&gt;<I> 
|&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; unsigned long i = ulongval 
();<BR></I>&gt;<I> |&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; if (i != ((long) 
(sizeof (int))))<BR></I>&gt;<I> |&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; exit 
(1);<BR></I>&gt;<I> |&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; fprintf (f, "%lu\n", 
i);<BR></I>&gt;<I> |&nbsp;&nbsp;&nbsp;&nbsp; }<BR></I>&gt;<I> |&nbsp;&nbsp; exit 
(ferror (f) || fclose (f) != 0);<BR></I>&gt;<I> |<BR></I>&gt;<I> |&nbsp;&nbsp; 
;<BR></I>&gt;<I> |&nbsp;&nbsp; return 0;<BR></I>&gt;<I> | }<BR></I>&gt;<I> 
configure:6705: error: cannot compute sizeof (int), 77<BR></I>&gt;<I> See 
`config.log' for more 
details.<BR></I>&gt;<I><BR></I>&gt;<I><BR></I>&gt;<I><BR></I>&gt;<I> Xie 
Yinghong<BR></I>&gt;<I><BR></I>&gt;<I><BR></I>&gt;&gt;<I> 
Hi,<BR></I>&gt;&gt;<I><BR></I>&gt;&gt;<I> Check config.log for the actual error. 
You might also want to make<BR></I>&gt;&gt;<I> sure that you can compile a small 
MPI test program.<BR></I>&gt;&gt;<I><BR></I>&gt;&gt;<I> 
Cheers,<BR></I>&gt;&gt;<I><BR></I>&gt;&gt;<I> 
Erik<BR></I>&gt;&gt;<I><BR></I>&gt;&gt;<I> On Mar 13, 2006, at 8:52 PM, Yinghong 
wrote:<BR></I>&gt;&gt;<I><BR></I>&gt;&gt;&gt;<I> Dear 
users:<BR></I>&gt;&gt;&gt;<I><BR></I>&gt;&gt;&gt;<I> I have successfully 
installed fftw2.1.3 and single version<BR></I>&gt;&gt;&gt;<I> Gromacs3.3 on IBM 
powerpc Aix5.2.0.0 with the following<BR></I>&gt;&gt;&gt;<I> environmental 
variables:<BR></I>&gt;&gt;&gt;<I><BR></I>&gt;&gt;&gt;<I> setenv CC 
xlc<BR></I>&gt;&gt;&gt;<I> setenv MPICC mpcc<BR></I>&gt;&gt;&gt;<I> setenv F77 
xlf<BR></I>&gt;&gt;&gt;<I> setenv CXX xlC<BR></I>&gt;&gt;&gt;<I> setenv CPPFLAGS 
-I.../fftw_213/include<BR></I>&gt;&gt;&gt;<I> setenv LDFLAGS 
-L.../fftw_213/lib<BR></I>&gt;&gt;&gt;<I> setenv CFLAGS "-O3 -qarch=pwr4 
-qtune=pwr4 -qansialias -w"<BR></I>&gt;&gt;&gt;<I> setenv FFLAGS "-O3 
-qarch=pwr4 -qtune=pwr4 -qansialias -qstrict -w"<BR></I>&gt;&gt;&gt;<I> Now, I 
would like to compile the parallel version of Gromacs3.3,<BR></I>&gt;&gt;&gt;<I> 
and I did it as the follows:<BR></I>&gt;&gt;&gt;<I> 1. make 
disclean;<BR></I>&gt;&gt;&gt;<I> 2. ./configure --prefix=$HOME/gromacs33 
--exec-prefix=$HOME/<BR></I>&gt;&gt;&gt;<I> gromacs33 --enable-float 
--disable-fortran --disable-largefile --<BR></I>&gt;&gt;&gt;<I> without-x 
--disable-<BR></I>&gt;&gt;&gt;<I> vectorized-sqrt --with-fft=fftw2 --enable-mpi 
--program-suffix=_mpi<BR></I>&gt;&gt;&gt;<I><BR></I>&gt;&gt;&gt;<I> It is worthy 
noting that the all parameters for ./configure are the<BR></I>&gt;&gt;&gt;<I> 
same as perviously successful single version, except that 
"--enable-<BR></I>&gt;&gt;&gt;<I> mpi --program-suffix=_mpi" is added in 
compiling MPI version.<BR></I>&gt;&gt;&gt;<I> However, compilation can not pass 
because of the following reason.<BR></I>&gt;&gt;&gt;<I> If anybody encountered 
such an error, could you give me some<BR></I>&gt;&gt;&gt;<I> suggestion? How to 
deal with it? Any help will be extermely<BR></I>&gt;&gt;&gt;<I> 
appreciately.<BR></I>&gt;&gt;&gt;<I><BR></I>&gt;&gt;&gt;<I> 
...<BR></I>&gt;&gt;&gt;<I> ...<BR></I>&gt;&gt;&gt;<I> checking for style of 
include used by make... GNU<BR></I>&gt;&gt;&gt;<I> checking dependency style of 
xlc... none<BR></I>&gt;&gt;&gt;<I> checking for mpxlc... 
mpcc<BR></I>&gt;&gt;&gt;<I> checking whether the MPI cc command works... 
yes<BR></I>&gt;&gt;&gt;<I> checking how to run the C preprocessor... mpcc 
-E<BR></I>&gt;&gt;&gt;<I> 
******************************************<BR></I>&gt;&gt;&gt;<I> * Using CFLAGS 
from environment variable *<BR></I>&gt;&gt;&gt;<I> 
******************************************<BR></I>&gt;&gt;&gt;<I> checking 
whether byte ordering is bigendian... yes<BR></I>&gt;&gt;&gt;<I> checking for 
egrep... grep -E<BR></I>&gt;&gt;&gt;<I> checking for ANSI C header files... 
no<BR></I>&gt;&gt;&gt;<I> checking for sys/types.h... yes<BR></I>&gt;&gt;&gt;<I> 
checking for sys/stat.h... yes<BR></I>&gt;&gt;&gt;<I> checking for stdlib.h... 
yes<BR></I>&gt;&gt;&gt;<I> checking for string.h... yes<BR></I>&gt;&gt;&gt;<I> 
checking for memory.h... yes<BR></I>&gt;&gt;&gt;<I> checking for strings.h... 
yes<BR></I>&gt;&gt;&gt;<I> checking for inttypes.h... yes<BR></I>&gt;&gt;&gt;<I> 
checking for stdint.h... yes<BR></I>&gt;&gt;&gt;<I> checking for unistd.h... 
yes<BR></I>&gt;&gt;&gt;<I> checking for int... yes<BR></I>&gt;&gt;&gt;<I> 
checking size of int... configure: error: cannot compute 
sizeof<BR></I>&gt;&gt;&gt;<I> (int), 77<BR></I>&gt;&gt;&gt;<I> See `config.log' 
for more details.<BR></I>&gt;<I><BR></I>&gt;<I><BR></I>&gt;<I> 
_______________________________________________<BR></I>&gt;<I> gmx-users mailing 
list&nbsp;&nbsp;&nbsp; <A 
href="http://www.gromacs.org/mailman/listinfo/gmx-users">gmx-users at 
gromacs.org</A><BR></I>&gt;<I> <A 
href="http://www.gromacs.org/mailman/listinfo/gmx-users">http://www.gromacs.org/mailman/listinfo/gmx-users</A><BR></I>&gt;<I> 
Please don't post (un)subscribe requests to the list. Use the<BR></I>&gt;<I> www 
interface or send it to <A 
href="http://www.gromacs.org/mailman/listinfo/gmx-users">gmx-users-request at 
gromacs.org.</A><BR></I>&gt;<I> Can't post? Read <A 
href="http://www.gromacs.org/mailing_lists/users.php">http://www.gromacs.org/mailing_lists/users.php</A><BR></I></DIV></BODY></HTML>