Open MPI logo

Open MPI User's Mailing List Archives

  |   Home   |   Support   |   FAQ   |   all Open MPI User's mailing list

Subject: Re: [OMPI users] PGI Fortran pthread support
From: Orion Poplawski (orion_at_[hidden])
Date: 2009-04-14 10:53:48


Prentice Bisbal wrote:
> Orion,
>
> I have no trouble getting thread support during configure with PGI 8.0-3

I'm mixing the pgf and gcc compilers which causes the trouble.

Here is the config.log entry for the F77 test:

configure:65969: checking if F77 compiler and POSIX threads work as is
configure:66066: gcc -DNDEBUG -O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2
-fexceptions -fstack-protector --param=ssp-buffer-size=4 -m64
-mtune=generic -fPIC -finline-functions -fno-strict-aliasing -I. -c
conftest.c
conftest.c: In function 'pthreadtest_':
conftest.c:12: warning: null argument where non-null required (argument 3)
conftest.c:14: warning: null argument where non-null required (argument 1)
conftest.c:16: warning: null argument where non-null required (argument 1)
conftest.c:16: warning: null argument where non-null required (argument 3)
configure:66073: $? = 0
configure:66083: pgf95 -fastsse -fPIC conftestf.f conftest.o -o conftest
-Wl,-z,noexecstack -lnsl -lutil -lm
conftestf.f:
conftest.o:(.data.DW.ref.__gcc_personality_v0[DW.ref.__gcc_personality_v0]+0x0):
undefined reference to `__gcc_personality_v0'

Looks like I need link to -lgcc_eh some how.

-- 
Orion Poplawski
Technical Manager                     303-415-9701 x222
NWRA/CoRA Division                    FAX: 303-415-9702
3380 Mitchell Lane                  orion_at_[hidden]
Boulder, CO 80301              http://www.cora.nwra.com