[MITgcm-support] genmake2: going with the flow

Martin Losch mlosch at awi-bremerhaven.de
Tue Sep 23 03:26:46 EDT 2003


Hi,

I am trying to keep up with your pace and want to learn how to use 
genmake2, or is that too early? I am having all sorts of problems:
1. when I specify -optfile=$TOOLSDIR/build_options/linux_ifc I still 
have to specify -fc=ifc to make things work. Is that intended?
2. with the command
 >> ../../tools/genmake2 -optfile=../../tools/build_options/linux_ifc 
-mods=../code -fc=ifc
I get makefile
 >> make depend
... (skipping the usual stuff)
../../tools/f90mkdepend >> Makefile
echo: No match
 >> make
... compile, compile, compile ...
... timer_stats.o -lPEPCF90
make: o: Command not found
make: [mitgcmuv] Error 127 (ignored)
 >>
There's no executable.

3. Apparently there no more .genmakerc. That's too bad, will that 
possibility be put back into genmake2?

4. Do you already have documentation on how to use genmake2. The -help 
option is not that help full. And simple options don't work, e.g.:
 >> ../../tools/genmake2 -mods=../code
....
 >>  make depend
make[1]: Entering directory `/home/lincl/mlosch/head/channel/build2'
../../pkg/debug/chksum_tiled.F chksum_tiled.F
make[1]: execvp: ../../pkg/debug/chksum_tiled.F: Permission denied
make[1]: *** [chksum_tiled.F] Error 127
make[1]: Leaving directory `/home/lincl/mlosch/head/channel/build2'
make: *** [depend] Error 2


If found it hard to understand genmake, but genmake2 is absolutely 
impossible for me to comprehend, so I cannot track down these things 
myself, or include, eg. a .genmakerc switch.

Martin

PS. my platform, etc.:
 >> uname -a
Linux lincl0 2.4.20-18.9bigmem #1 SMP Thu May 29 06:41:01 EDT 2003 i686 
i686 i386 GNU/Linux
 >> g77 -v
Reading specs from /usr/lib/gcc-lib/i386-redhat-linux/3.2.2/specs
Configured with: ../configure --prefix=/usr --mandir=/usr/share/man 
--infodir=/usr/share/info --enable-shared --enable-threads=posix 
--disable-checking --with-system-zlib --enable-__cxa_atexit 
--host=i386-redhat-linux
Thread model: posix
gcc version 3.2.2 20030222 (Red Hat Linux 3.2.2-5)
 >> ifc -V
Intel(R) Fortran Compiler for 32-bit applications, Version 7.1   Build 
20030813Z
Copyright (C) 1985-2003 Intel Corporation.  All rights reserved.
FOR NON-COMMERCIAL USE ONLY

GNU ld version 2.13.90.0.18 20030206
   Supported emulations:
    elf_i386
    i386linux




More information about the MITgcm-support mailing list