I am trying to compile a large f77/c program. It uses the cray pointer extension.
It uses a header file to define the common block of cray pointers (all integers). In one file, it imports the header and initializes an array contained in the common block. In that same file is a routine (that assigns default values) which also imports the same header file.
Whenever I compile, I get the “incompatible size of common block…” error.
If I move the array initialization into the routine, I do not get that error on compilation. However, when the executable is built I get a warning that the common block has two different sizes.
I can get the program to compile and link on my 32 bit machine at home. The problem is on my 64 bit at work.
Even when I get the executable to build successfully (with no warning or error), I get a segmentation fault — I’m sure it’s related.
Any suggestions would be marvelous. Thanks