[MITgcm-support] IBM
Ed Hill
ed at eh3.com
Fri May 7 11:07:17 EDT 2004
On Fri, 2004-05-07 at 10:50, Patrick Heimbach wrote:
> Martin,
>
> not sure whether this helps.
> On blackforest we have
> /usr/bin/cc -> /usr/vac/bin/xlc
> and also
> /usr/local/bin/gcc -> /usr/vac/bin/xlc
> So I'm guessing your machine doesn't have the cc softlink.
>
> Re. CC in optfile, there seems to be a problem
> indeed with genmake2
> (e.g. no line similar to
> CC = ${CC}
> )
Hi folks,
Our handling of the C compiler within genmake2 could use some
improvement and I'll get right on it.
In the mean time, you can specify the C compiler by setting the
environment variable "CC" and heres an example (in bash):
[amos ~]: mkdir MITgcm/verification/exp0/build
[amos build]: cd MITgcm/verification/exp0/build
[amos build]: ../../../tools/genmake2 -mods=../code
...
[amos build]: make depend
...
[amos build]: make tim.o
cc -c tim.c
[amos build]: rm -f tim.o
[amos build]: export CC=gcc
[amos build]: make tim.o
gcc -c tim.c
that shows how both the default "cc" and the "gcc" compilers are used.
For the [t]csh shell, just substitute
$ setenv CC gcc
for the "export..." statement.
Ed
--
Edward H. Hill III, PhD
office: MIT Dept. of EAPS; Rm 54-1424; 77 Massachusetts Ave.
Cambridge, MA 02139-4307
emails: eh3 at mit.edu ed at eh3.com
URLs: http://web.mit.edu/eh3/ http://eh3.com/
phone: 617-253-0098
fax: 617-253-4464
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 189 bytes
Desc: This is a digitally signed message part
URL: <http://mitgcm.org/pipermail/mitgcm-support/attachments/20040507/59035d90/attachment.sig>
More information about the MITgcm-support
mailing list