Building Shared libraries (mpich/gm)

Craig Tierney <[email protected]>
Newsgroups gmane.network.myrinet.general
Message-ID <[email protected]>
Has anyone tried (successfully) to build mpich
as a shared library for alpha linux?  I couldn't find 
anything that indicated I needed to do something special
with gm.  I build mpich-1.2..5 after building
gm-1.4 with the additional option --enable-sharedlib.

There is a problem with the mpif77 script.  I had
to hand edit that as the tag @MPILIBNAME did
not get replaced with 'mpich'.   I figure it is
not processed right at installation but I haven't
checked into that yet.

I am able to link the codes but when I try to run
it I get a segmentation fault before any of the
code is actually executed (maybe in the dynamic linking
stage).

Kernel version 2.2.18
gm-1.4 was built as:  --enable-new-features
mpich-1.2..5 was built as: 
./configure -nodevdebug -cflags=-I/usr/local/gm/include -opt=-O2  \
-device=ch_gm -noromio -c ++=ccc --lib="-L/usr/local/gm/lib -lgm" \
-arch=LINUX -fc=fort -cc=ccc -rsh=ssh -gm-can-register \
-memory -shared-memory-support --enable-sharedlib --prefix=/usr/local/mpich

My ld version is 2.9.1
My ldd version is 2.1.1
My gcc version is egcs-2.91.66
My glibc version is 2.1.1

Running executables against the static libaries generated by the same
process works fine.

The error I get when I run the program is below.  The extra text
besides the SIGSEGV line is from a tombstone report.
--------------
Program received signal SIGSEGV, Segmentation fault.
warning: Hit heuristic-fence-post without finding
warning: enclosing function for address 0x2000000ea34
warning: Hit heuristic-fence-post without finding
warning: enclosing function for address 0x2000000eae4
This warning occurs if you are debugging a function without any symbols
(for example, in a stripped executable).  In that case, you may wish to
increase the size of the search with the `set heuristic-fence-post' command.

Otherwise, you told GDB there was a function where there isn't one, or
(more likely) you have encountered a bug in GDB.
#0  0x2000000ea34 in ?? ()
0x2000000ea34 in ?? ()
--------------------

Although I know it isn't the issue, I have made sure that LD_LIBRARY_PATH
is set correctly on all nodes to /usr/local/mpich/lib/shared.

Thanks,
Craig

-- 
Craig Tierney ([email protected])
phone: 303-497-3112
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.