From: Karl Young <kyoung@itsa.ucsf.edu>
Newsgroups: comp.parallel.mpi
Subject: thanks
Date: Wed, 12 May 1999 13:54:01 -0700
Organization: VA MRS Unit, UCSF
Message-Id: <3739EA69.FD488C1B@itsa.ucsf.edu>
Reply-To: kyoung@itsa.ucsf.edu
Mime-Version: 1.0
Content-Type: text/plain; charset=us-ascii
Content-Transfer-Encoding: 7bit
Xref: ukc comp.parallel.mpi:5083


Hi Mathias,

  Thanks for the comments re. linking the MPI library with gcc compiled
programs. So far all I've been able to figure out is that it's the
output of the gcc linker that's apparently creating the problem in the
multprocessor environment. I.e. I can compile and link with gcc in the
normal Solaris environment, and I can compile with gcc and link with
Sun's linker in the multiprocessor environment but can't compile AND
link with gcc in the multiprocessor environment . I assume I wouldn't be
able able to compile and link in the normal Solaris environment if the
gcc linker was installed improperly (e.g. as a cross compiler).

> Hi all!
>
>> In article <37376A37.3B27E1B5@itsa.ucsf.edu>,
>>  Karl Young <kyoung@itsa.ucsf.edu> writes:
>> I'm trying to write some C++ programs with calls to the MPI library
>> on a multiprocessor Sun system (HPC 3500). Because I need to link >>
to some libraries that have been compiled with gcc I need to compile >>
my programs under gcc 2.8.1.

>              You should be able to link your program with both
>              the Sun ld and the gnu ld against your libraries.

>>  I am currently able to compile the programs but when I
>>  try to run them I get an "Exec format error". Does anybody know
>>  what the proper compiler flags to gcc are for linking to the Sun MPI
>>  library and running in the multiprocessor environment ?

>               You're using the gnu linker or the native Sun linker?
>               Check if the gcc is installed for your system (not as a
>               cross compiler). Normally you don't need any special
options
>               for the gcc (except the include and linker options for
the
>               mpi headers and libs).

>               Mathias

-- KY

Karl Young
UCSF,VA Medical Center
MRS Unit (114M)
4150 Clement Street
San Francisco, CA 94121

Email: kyoung@itsa.ucsf.edu
Phone: (415) 750-2158  lab
       (415) 750-9463  home
FAX:   (415) 668-2864

