[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: fPIC used to build packages



On Wednesday 10 April 2002 03:45 pm, John Schmidt wrote:
> Hi,
>
> I have installed mpich from Debian/testing.  The code I am running fails to
> load because of the R_PPC_REL24 relocation error which I suspect is due to
> mpich not being compiled with -fPIC.  I am downloading the source now (over
> a slow modem) so can't confirm my suspicions.  I built mpich on a YDL box
> myself and had to enable -fPIC in the build (along with enabling -fPIC in
> my application building process).  If in fact I see that mpich was not
> built with -fPIC, is this considered a bug on the powerpc platforms, and if
> so, who do I report it to?
>

Hi,

To follow-up  . . .

I have battled the PIC relocation error multiple times and incorrectly 
concluded that it must have been in mpich, but in reality, it was my 
incorrect linkage that was causing me grief!

It appears that I was trying to link a static library (mpi) with all my 
shared libraries (not intentially).  I had failed to actually check that the 
location I specified for mpich had shared libraries as well as static ones 
(thanks Jack for clueing me in).  Debian packages mpich with includes in 
/usr/include/mpi and the static and shared libraries in /usr/lib (there are 
other locations as well, but incomplete (/usr/lib/mpich/{include,lib,. . }, 
since the lib directory only has static libraries no shared not even in the 
lib/shared.).  When I built an rpm of mpich, I must have hacked the location 
of the shared libraries so that there was some consistency.  My application's 
configure script needs to be modified to reflect the location of the include 
file and the shared library.

Thanks to all that took the time to reply.

John Schmidt
jas@netbrick.com


-- 
To UNSUBSCRIBE, email to debian-powerpc-request@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmaster@lists.debian.org



Reply to: