[MITgcm-support] optfile
Martin Losch
Martin.Losch at awi.de
Tue May 20 10:09:52 EDT 2008
Elja,
the (incomplete) messages that you provide tell me that genmake2 to
trying to guess your environment and uses some defaults. These
defaults (or the guess) do not work in your case. In order to make
things work you need to know
1. your platform+operating system (what does "uname -a" give you?)
2. the compiler that is available/that you want to use (including the
path to it and to possible libraries that may be necessary, talk to
your system administrator).
Based on that information, you can choose an optfile in the tools/
build_options/ directory as a strating point (as Nikolay suggested),
copy this file to a new name and adapt it to your needs.
If you need further help, please make all of the output (stdout and
error) of "genmake2", "make depend", and "make" available.
Martin
On 20 May 2008, at 13:32, Elja Huibregtse wrote:
> Dear all,
>
> I am trying to set up the cube-sphere integration (with sea ice on
> the cs32 grid) on a supercomputer. During the genmake2-step, I get
> the output:
> - The platform appears to be: linux_ppc64,
> - Error: can't read OPTFILE="../tools/build_options/
> linux_ppc64_gfortran"
>
> Because I don't have this file, I was advised to use the following
> file as optfile:
> ==================
> FC=xlf_r
> DEFINES='-DWORDLENGTH=4'
> CPP='cpp -traditional -P'
> NOOPTFLAGS='-O0'
> MAKEDEPEND=/usr/X11R6/bin/makedepend
> FFLAGS='-O3 -qstrict -qarch=auto -qtune=auto'
> ==================
>
> Applying this file does not seem to work, because the next errors
> appear during the make-step:
> (this is only the last part of the error list):
>
> ==================
> : undefined reference to `.barrier'
> write_state.o(.text+0x214): In function `.write_state':
> : undefined reference to `.write_fld_xy_rl'
> write_state.o(.text+0x300): In function `.write_state':
> : undefined reference to `.write_fld_xy_rl'
> write_state.o(.text+0x30c): In function `.write_state':
> : undefined reference to `.barrier'
> make: *** [mitgcmuv] Error 1
> ==================
>
>
> Does someone know what goes wrong and how I have to fix it?
> Does someone have the optfile "linux_ppc64_gfortran"?
>
> Thanks a lot!
> Elja
>
> _______________________________________________
> MITgcm-support mailing list
> MITgcm-support at mitgcm.org
> http://mitgcm.org/mailman/listinfo/mitgcm-support
More information about the MITgcm-support
mailing list