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