Dear NCARG talkers,
I have partially installed NCARG 4.4.1 on iMac(Intel Core Duor,
10.4.4, Xcode 2.3)
using Intel Compilers (ifort+icc, 9.1.024).
I have modified system headers to eliminate Error messages in "make
Everything".
I am afraid that the changes in these files may cause serious problem
with any system.
Does anybody know what is wrong with the following procedure ?
[Current status]
Ctrans worked as expected.
ictrans, idt, med did not work as expected.
I had a runtime error with GKS.
For example,
% ncargex cpex01
NCAR Graphics Fortran Example <cpex01>
Copying cpex01.f
Copying cpexcc.f
Compiling and linking...
ifort -O -o cpex01 cpexcc.f cpex01.f -L/usr/local/ncarg/lib -L/usr/
X11R6/lib -lncarg -lncarg_gks -lncarg_c -lXpm -lX11 -lXext
cpexcc.f(51) : (col. 14) remark: LOOP WAS VECTORIZED.
Executing <cpex01>...
GKS ERROR NUMBER -107 ISSUED FROM SUBROUTINE :
I got the meaning of -107 from a link from NCARG GKS
-107 MAXIMUM NUMBER OF ERROR MESSAGES EXCEEDED
[System headers]
1. su
2. cd /usr/include/i386
I deleted //LP64todo.. lines in
types.h
3. cd /usr/include/sys
I deleted //LP64todo.. lines in
fcntl.h resource.h signal.h stat.h
delete two lines below in fcntl.h
//#define O_SYNC /* ??? POSIX: Write according to synchronized I/
O file integrity completion */
// FS-specific fcntl()'s numbers begin at 0x00010000 and go up
4. I deleted following lines in cdefs.h except a line in the middle
as indicated
#if __DARWIN_UNIX03 && !defined(__LP64__)
#define __DARWIN_ALIAS(sym) __asm("_" __STRING(sym) "$UNIX2003")
#else
#define __DARWIN_ALIAS(sym) /*I did not delete this lines*/
#endif
5. cd /usr/X11R6/include/X11
delete a line below in Xlib.h
typedef unsigned long wchar_t;
[NCARG]
1. download and tar ncarg-4.4.1.src.tar
2. su
3. csh
4. setenv NCARG <.../ncarg-4.4.1>
5. source /opt/intel/fc/9.1.024/bin/ifortvars.csh
6. source /opt/intel/cc/9.1.024/bin/iccvars.csh
7. cd $NCARG/config
8. I have modified Darwin as follows.
----------------------- start of Darwin
#define HdfDefines -DLINUX
#define StdDefines -DSYSV -D_POSIX_SOURCE -D_XOPEN_SOURCE -DByteSwapped
#define ByteSwapped
#define Cstatic
#define Cdynamic
#define CppCommand '/usr/bin/cpp -traditional'
#define CCompiler icc -mp
#define FCompiler ifort -mp -Vaxlib
/*
#define FCompiler ifort -mp -Vaxlib -L/opt/intel/fc/9.1.024/lib
#define CcOptions -ansi -L/opt/intel/cc/9.1.024/lib
#define CtoFLibraries -lifcore -limf -lirc -lm
*/
#define CtoFLibraries "-L/opt/intel/fc/9.1.024/lib" -lifcore -limf -
lirc -lm
#define CcOptions -ansi
#define XToolLibrary -lXt -lSM -lICE
#define BuildShared NO
#define XLibrary -lXpm -lX11 -lXext
#define ArchRecLibSearch -L/usr/X11R6/lib
#define ArchRecIncSearch -I/usr/X11R6/include
FC = $(F77)
/*************** Redefine Macros from Rules
********************************/
/*
* Macro: MakeDir
*
* Description: This rule creates a directory - if a parent dir
doesn't exist
* it attempts to create it.
*/
#ifndef MakeDir
#define MakeDir(dir) @if (test ! -d dir); then ($(MKDIRHIER) dir); fi
#endif
------------------------ end of Darwin
9. I added following lines in ymake at case Darwin
case i386:
set model = $mach
set arch = $mach
set sysincs = DARWIN
set vendor = Apple
breaksw
10. cd $NCARG
11. setenv FC ifort
12. setenv CC icc
13. ./Configure -v
< F90=ifort, HDF=None>
14. make Everything >& make-output &
[End of message]
_______________________________________________
ncarg-talk mailing list
ncarg-talk_at_ucar.edu
http://mailman.ucar.edu/mailman/listinfo/ncarg-talk
Received on Thu Feb 01 2007 - 01:24:48 MST
This archive was generated by hypermail 2.2.0 : Mon Feb 12 2007 - 08:40:25 MST