Project

General

Profile

Bug #235

XDR_INT_SIZE #defined after first usage in src/gmxlib/libxdrf.c

Added by Mark Abraham about 11 years ago. Updated about 11 years ago.

Status:
Closed
Priority:
Normal
Assignee:
Erik Lindahl
Category:
mdrun
Target version:
Affected version - extra info:
Affected version:
Difficulty:
uncategorized
Close

Description

I observed a problem when compiling GROMACS 4.0 versions with C and FORTRAN generic kernels on an SGI Altix 3700B (IA-64 chips) using Intel 10.1.018 icc and ifort. I found that when the only difference in the configure line was --enable-fortran and the only environment change was to load in an intel-fc module, that the C-only build worked fine, but the --enable-fortran build broke when compiling src/gmxlib/libxdrf.c, viz:

../../../src/gmxlib/libxdrf.c(112): error: identifier "XDR_INT_SIZE" is undefined
cnt += XDR_INT_SIZE;
^

../../../src/gmxlib/libxdrf.c(140): error: identifier "XDR_INT_SIZE" is undefined
cnt += XDR_INT_SIZE;

XDR_INT_SIZE is #defined on line 1156, so moving it earlier in the file will solve the problem.

Curiously, both C and FORTRAN compilation used the same libtool and icc command (given below), so I'm not sure how a different system header (or some such) could have been included, such that XDR_INT_SIZE was defined for C and not for FORTRAN!

icc -DHAVE_CONFIG_H -I. -I../../src -I../../../src/gmxlib -I/usr/include/libxml2 -I../../../include -DGMXLIBDIR=\"/home/224/mxa224/progs/share/top\" -O3 -I/opt
/fftw-3.1.1/intel-9.1/include -MT libxdrf.lo -MD -MP -MF .deps/libxdrf.Tpo -c ../../../src/gmxlib/libxdrf.c -o libxdrf.o

History

#1 Updated by Berk Hess about 11 years ago

I already fixed this for 4.0.1 some time ago.

But I guess you probably do not want to use fortran on ia64,
since it will not be faster.

Berk

Also available in: Atom PDF