Re: ncarg, Opteron, GCC-4.0

From: Mary Haley (haley AT ucar.edu)
Date: Wed May 04 2005 - 22:58:26 MDT


On Wed, 4 May 2005, Christopher Swingley wrote:

> Greetings!
>
> I'm struggling to get NCAR Graphics (4.1.4) built on a dual Opteron
> machine using the new 'gfortran' Fortran 95 compiler that's part of the
> new GCC-4.0 compiler suite. I've been able to build NCAR Graphics with
> g77-3.3.5 on the same machine, but the user wants to use Fortran 90. He
> also has the Absoft 64-bit Fortran 95 compiler (version 9.0), but I
> thought I'd have more luck with gfortran than Absoft's compiler.
>
> During the build, I get errors like this:
>
> gfortran: arblda.f: No such file or directory
> make[5]: *** [arblda.o] Error 1
>
> for these files: abblda.f cpblda.f ctabgc.f mapaci.f ppdipo.f sfsgfa.f
>
> After installing what was built, when I try the test example (ncargex
> cpex08), I get:
>
> gfortran -O -o cpex08 cpexcc.f cpex08.f -L/tmp/ncarg/lib -L/usr/X11R6/lib -lncarg -lncarg_gks -lncarg_c -lX11 -lXext
> /tmp/cceIIz7D.o(.text+0x508): In function `capsap_': : undefined reference to `cpgeti_'
> /tmp/cceIIz7D.o(.text+0x51f): In function `capsap_': : undefined reference to `cpgeti_'
>
> (there are a lot more of these sorts of linker errors).
>
> The Fortran files compile just fine, but fail to link properly. I'm a
> bit confused because the references (cpgeti_, in this case) *do* exist
> in the libraries:
>
> $ nm /tmp/ncarg/lib/libncarg.a
> (snip)
> c_cpgeti.o:
> 0000000000000000 T c_cpgeti
> U cpgeti_
> U fwrite
> U stderr
>
> Any hints here? I can forward whatever build / configuration
> information I have, if that would be helpful.
>
> Thanks,
>
> Chris

Hi Chris,

It sounds like the "Iftran" processor didn't get built. This processor
is needed in order to generate some of the Fortran code in NCAR Graphics,
and I believe all of the symbols you listed above are from Fortran
codes that should have been created by the Iftran processor.

If you can email me your "make-output" file, we should be able to
determine if the problem was with Iftran. In fact, as I type this, I
recall that some changes were made to the code for Iftran, but these
changes have not been made public yet. Again, your make-output file
should give us a clue if these latest changes will fix your problem.

Cheers,

--Mary

> Christopher S. Swingley email: cswingle AT unknown (primary)
> Intl. Arctic Research Center cswingle AT unknown (secondary)
> University of Alaska Fairbanks www.frontier.iarc.uaf.edu/~cswingle/
>
> _______________________________________________
> ncarg-talk mailing list
> ncarg-talk AT unknown
> http://mailman.ucar.edu/mailman/listinfo/ncarg-talk
>
_______________________________________________
ncarg-talk mailing list
ncarg-talk AT unknown
http://mailman.ucar.edu/mailman/listinfo/ncarg-talk



This archive was generated by hypermail 2b29 : Thu May 05 2005 - 09:52:48 MDT