[MITgcm-support] genmake2: going with the flow

Chris Hill cnh at mit.edu
Tue Sep 23 09:11:34 EDT 2003


Martin (and Ed),

 There is some documentation on genmake2 at

http://mitgcm.org/dev_docs/devel_HOWTO/html_onepage/

 I have also attached an options file that I made that works for
creating a Makefile without -fc etc.... for me on a linux machine. 

 Apart from the need for an options file genmake2 is meant to be
backwards compatible when used with the recent code trees. However,
we haven't tested it everywhere so it still needs some debugging.
 
 Ed - can you help Martin figure out what is broken. 
 Martin - can you 

          1. give Ed information on where you are running (OS etc..)
plus
             any other useful facts that might be clues (shell you are
using)
             weird customizations you have made etc....

          2. confirm that genmake still works?

Chris

 
 
> -----Original Message-----
> From: mitgcm-support-bounces at mitgcm.org 
> [mailto:mitgcm-support-bounces at mitgcm.org] On Behalf Of Martin Losch
> Sent: Tuesday, September 23, 2003 3:27 AM
> To: MITgcm Support
> Subject: [MITgcm-support] genmake2: going with the flow
> 
> 
> 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
> 
> _______________________________________________
> MITgcm-support mailing list
> MITgcm-support at mitgcm.org 
> http://dev.mitgcm.org/mailman/listinfo/mitgcm-> support
> 
-------------- next part --------------
A non-text attachment was scrubbed...
Name: linux+lf95+icc+gm
Type: application/octet-stream
Size: 644 bytes
Desc: not available
URL: <http://mitgcm.org/pipermail/mitgcm-support/attachments/20030923/38bbe250/attachment.obj>


More information about the MITgcm-support mailing list