Re: [AMBER-Developers] compile errors

From: Scott Brozell <sbrozell.rci.rutgers.edu>
Date: Fri, 26 Feb 2010 16:51:05 -0500

Hi,

On Fri, Feb 26, 2010 at 10:37:48AM -0500, case wrote:
> On Fri, Feb 26, 2010, Scott Brozell wrote:
> >
> > While testing this past weekend with pgi i got lots of weird link errors.
>
> > /nfs/10/srb/amber/amber11/bin/nab -c matgen.nab
> > /nfs/10/srb/amber/amber11/bin/nab -o matgen matgen.o
> > /usr/local/pgi-9.0-1/linux86-64/9.0-1/lib/libpgf90.a(initpar.o): In function `__hpf_abort':initpar.c:(.text+0xc9): undefined reference to `__hpf_abortx'
>
> Here's what is happening: nab is using pgcc to link in code compiled with
> pgf90. The configure script assumes that adding "-lpgf90" to the link line
> will do it, but that is clearly not working here.
>
> It is *possible* to use pgf90 to do the link step, but there are a variety of
> reasons why I would like to keep the current setup. Probably we should
> add a test in configure to make sure that this sort of linking is possible
> with the chosen compilers, so that user gets the error message there, rather
> than deep inside the build step.

Your fix to add this option to flibs works.
What a great option from pgi.

       -pgf90libs
              Link-time option to add the pgf90 runtime libraries, allowing
              mixed-language programming.

scott

_______________________________________________
AMBER-Developers mailing list
AMBER-Developers.ambermd.org
http://lists.ambermd.org/mailman/listinfo/amber-developers
Received on Fri Feb 26 2010 - 14:00:02 PST
Custom Search