On Thu, 2008-01-31 at 16:01 -0800, Adam Moody wrote:
> Here is some more info.  The build works if I do either of:
> 
> (1)  Build with PGI v7.1-3 instead of PGI v7.0-3
> (2)  Or, drop the "-g" option in CXXFLAGS, i.e.,
> change:
>     CXXFLAGS="-Msignextend -g -O2"
> to just:
>     CXXFLAGS="-Msignextend -O2"
> 
> I'd still like to know if there is a better fix (I need a 7.0-3 build 
> and would prefer to have -g set).  Anyone know a better fix?
> Thanks again,

I haven't seen that problem, but if you want to build with pgi and -g
you need to patch the configure script like this.

It's where it tests for building f90 modules,
without it it build the module with -g, the main program with -g and
fails the link due to missing symbols.

diff -ru site/configure amd64_ubuntu606-pgi/configure
--- site/configure      2007-10-20 03:06:03.000000000 +0200
+++ amd64_ubuntu606-pgi/configure       2007-11-29 13:57:46.000000000
+0100
@@ -37286,7 +37286,7 @@
 # 2 is actions to do if success
 # 3 is actions to do if fail
 echo "configure:37288: $FC $FCFLAGS $FCFLAGS_f90 conftest.f90
${flag}subdir $LDFLAGS $LIBS" >&5
-$FC $FCFLAGS $FCFLAGS_f90 conftest.f90 ${flag}subdir $LDFLAGS $LIBS
1>&5 2>&1
+$FC $FCFLAGS $FCFLAGS_f90 conftest.f90 ${flag}subdir
subdir/conftest-module.o $LDFLAGS $LIBS 1>&5 2>&1
 ompi_status=$?

 # 1 is the message


-- 
Ake Sandgren, HPC2N, Umea University, S-90187 Umea, Sweden
Internet: a...@hpc2n.umu.se   Phone: +46 90 7866134 Fax: +46 90 7866126
Mobile: +46 70 7716134 WWW: http://www.hpc2n.umu.se

Reply via email to