[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [bgl-discuss] Build Problems



I've had luck compiling netcdf-3.6.0-p1 on BGL using these steps:
  • ./configure CC=xlc CXX=xlC FC=xlf F90=xlf90 F90FLAGS="-O -qsuffix=cpp=f90" CPPFLAGS=-DIBMR2Fortran
  • edit 'macros.make' to add "blrts_" to all the compiler names (xlc, xlC, xlf, xlf90)
  • make
  • make install

Theron Voran <theron.voran@xxxxxxxxxxxx>



Jeff Kuehn wrote:
I've run across two problems building POP on BGL. The first problem is that the netcdf module doesn't match the current compiler:

"io_netcdf.f90", line 27.8: 1517-022 (S) Module netcdf was compiled using an incompatible version of the compiler.  Please see the -qoldmod option for information on recovery.

and the "-qoldmod" isn't documented in the manpage. Simply adding it to my compile options isn't doing the trick.

The second problem Im seeing is a little more interesting. My build will fail at a more or less random point, but if I "touch" the offending source file, the build can be restarted. Some files seem more susceptible than others and I haven't noted any particular pattern in the error messages. The behavior is repeatable. Has anyone run across this before? (apologies for appending the large screen dump)

pop_bgl/bgl> gmake
  GNUmakefile is making bgl target 'lib' in subdirectory 'compile'
gmake[1]: Entering directory `/bgl/home1/kuehn/pop_bgl/bgl/compile'
GNUmakefile_local is making target objs
gmake[2]: Entering directory `/bgl/home1/kuehn/pop_bgl/bgl/compile'
gmake[2]: `fix_64.o' is up to date.
IBM_MPI Compiling with implicit rule exit_mod.f90
/opt/ibmcmp/xlf/9.1/bin/xlf90: 1501-230 Internal compiler error; please contact your Service Representative
1501-511  Compilation failed for file exit_mod.f90.
gmake[2]: *** [exit_mod.o] Error 40
gmake[2]: Leaving directory `/bgl/home1/kuehn/pop_bgl/bgl/compile'
gmake[1]: *** [objs] Error 2
gmake[1]: Leaving directory `/bgl/home1/kuehn/pop_bgl/bgl/compile'
gmake: *** [compile.m] Error 2
pop_bgl/bgl> ls -l compile/exit_mod.f90
-rw-r--r--  1 kuehn collab 3080 2005-07-27 14:00 compile/exit_mod.f90
pop_bgl/bgl> touch compile/exit_mod.f90
pop_bgl/bgl> gmake
  GNUmakefile is making bgl target 'lib' in subdirectory 'compile'
gmake[1]: Entering directory `/bgl/home1/kuehn/pop_bgl/bgl/compile'
GNUmakefile_local is making target objs
gmake[2]: Entering directory `/bgl/home1/kuehn/pop_bgl/bgl/compile'
IBM_MPI Making depends for compiling exit_mod.f90
gmake[2]: Leaving directory `/bgl/home1/kuehn/pop_bgl/bgl/compile'
gmake[2]: Entering directory `/bgl/home1/kuehn/pop_bgl/bgl/compile'
gmake[2]: `fix_64.o' is up to date.
IBM_MPI Compiling with implicit rule exit_mod.f90
** exit_mod   === End of Compilation 1 ===
1501-510  Compilation successful for file exit_mod.f90.
IBM_MPI Compiling with implicit rule distribution.f90
** distribution   === End of Compilation 1 ===
1501-510  Compilation successful for file distribution.f90.
IBM_MPI Compiling with implicit rule broadcast.f90
** broadcast   === End of Compilation 1 ===
1501-510  Compilation successful for file broadcast.f90.
IBM_MPI Compiling with implicit rule io_types.f90
** io_types   === End of Compilation 1 ===
1501-510  Compilation successful for file io_types.f90.
IBM_MPI Compiling with implicit rule boundary.f90
"boundary.f90", line 141.7: 1514-084 (S) Identifier dist is being declared with type name distrb which has not been defined in a derived type definition.
** boundary   === End of Compilation 1 ===
1501-511  Compilation failed for file boundary.f90.
gmake[2]: *** [boundary.o] Error 1
gmake[2]: Leaving directory `/bgl/home1/kuehn/pop_bgl/bgl/compile'
gmake[1]: *** [objs] Error 2
gmake[1]: Leaving directory `/bgl/home1/kuehn/pop_bgl/bgl/compile'
gmake: *** [compile.m] Error 2
pop_bgl/bgl> gmake
  GNUmakefile is making bgl target 'lib' in subdirectory 'compile'
gmake[1]: Entering directory `/bgl/home1/kuehn/pop_bgl/bgl/compile'
GNUmakefile_local is making target objs
gmake[2]: Entering directory `/bgl/home1/kuehn/pop_bgl/bgl/compile'
gmake[2]: `fix_64.o' is up to date.
IBM_MPI Compiling with implicit rule boundary.f90
"boundary.f90", line 141.7: 1514-084 (S) Identifier dist is being declared with type name distrb which has not been defined in a derived type definition.
** boundary   === End of Compilation 1 ===
1501-511  Compilation failed for file boundary.f90.
gmake[2]: *** [boundary.o] Error 1
gmake[2]: Leaving directory `/bgl/home1/kuehn/pop_bgl/bgl/compile'
gmake[1]: *** [objs] Error 2
gmake[1]: Leaving directory `/bgl/home1/kuehn/pop_bgl/bgl/compile'
gmake: *** [compile.m] Error 2
pop_bgl/bgl> touch compile/boundary.f90
pop_bgl/bgl> gmake
  GNUmakefile is making bgl target 'lib' in subdirectory 'compile'
gmake[1]: Entering directory `/bgl/home1/kuehn/pop_bgl/bgl/compile'
GNUmakefile_local is making target objs
gmake[2]: Entering directory `/bgl/home1/kuehn/pop_bgl/bgl/compile'
IBM_MPI Making depends for compiling boundary.f90
gmake[2]: Leaving directory `/bgl/home1/kuehn/pop_bgl/bgl/compile'
gmake[2]: Entering directory `/bgl/home1/kuehn/pop_bgl/bgl/compile'
gmake[2]: `fix_64.o' is up to date.
IBM_MPI Compiling with implicit rule boundary.f90
** boundary   === End of Compilation 1 ===
1501-510  Compilation successful for file boundary.f90.
IBM_MPI Compiling with implicit rule domain.f90
"domain.f90", line 55.7: 1514-084 (S) Identifier bndy_clinic is being declared with type name bndy which has not been defined in a derived type definition.
** domain   === End of Compilation 1 ===
1501-511  Compilation failed for file domain.f90.
gmake[2]: *** [domain.o] Error 1
gmake[2]: Leaving directory `/bgl/home1/kuehn/pop_bgl/bgl/compile'
gmake[1]: *** [objs] Error 2
gmake[1]: Leaving directory `/bgl/home1/kuehn/pop_bgl/bgl/compile'
gmake: *** [compile.m] Error 2
pop_bgl/bgl> touch domain.f90
pop_bgl/bgl> gmake
  GNUmakefile is making bgl target 'lib' in subdirectory 'compile'
gmake[1]: Entering directory `/bgl/home1/kuehn/pop_bgl/bgl/compile'
GNUmakefile_local is making target objs
gmake[2]: Entering directory `/bgl/home1/kuehn/pop_bgl/bgl/compile'
gmake[2]: `fix_64.o' is up to date.
IBM_MPI Compiling with implicit rule domain.f90
"domain.f90", line 55.7: 1514-084 (S) Identifier bndy_clinic is being declared with type name bndy which has not been defined in a derived type definition.
** domain   === End of Compilation 1 ===
1501-511  Compilation failed for file domain.f90.
gmake[2]: *** [domain.o] Error 1
gmake[2]: Leaving directory `/bgl/home1/kuehn/pop_bgl/bgl/compile'
gmake[1]: *** [objs] Error 2
gmake[1]: Leaving directory `/bgl/home1/kuehn/pop_bgl/bgl/compile'
gmake: *** [compile.m] Error 2
pop_bgl/bgl> gmake
  GNUmakefile is making bgl target 'lib' in subdirectory 'compile'
gmake[1]: Entering directory `/bgl/home1/kuehn/pop_bgl/bgl/compile'
GNUmakefile_local is making target objs
gmake[2]: Entering directory `/bgl/home1/kuehn/pop_bgl/bgl/compile'
gmake[2]: `fix_64.o' is up to date.
IBM_MPI Compiling with implicit rule domain.f90
** domain   === End of Compilation 1 ===
1501-510  Compilation successful for file domain.f90.
IBM_MPI Compiling with implicit rule gather_scatter.f90
** gather_scatter   === End of Compilation 1 ===
1501-510  Compilation successful for file gather_scatter.f90.
IBM_MPI Compiling with implicit rule io_netcdf.f90
"io_netcdf.f90", line 27.8: 1517-022 (S) Module netcdf was compiled using an incompatible version of the compiler.  Please see the -qoldmod option for information on recovery.
1501-511  Compilation failed for file io_netcdf.f90.
gmake[2]: *** [io_netcdf.o] Error 1
gmake[2]: Leaving directory `/bgl/home1/kuehn/pop_bgl/bgl/compile'
gmake[1]: *** [objs] Error 2
gmake[1]: Leaving directory `/bgl/home1/kuehn/pop_bgl/bgl/compile'
gmake: *** [compile.m] Error 2

- --------------------------------------------------------------------
To add or remove yourself from this mailing list, use the 'notifyme'
command on any BGL machine. To remove: notifyme -n, to add: notifyme -y.