linux-mips
[Top] [All Lists]

Re: ld error " linking PIC files with non-PIC files "

To: Wayne Gowcher <wgowcher@yahoo.com>
Subject: Re: ld error " linking PIC files with non-PIC files "
From: Ralf Baechle <ralf@oss.sgi.com>
Date: Wed, 14 Nov 2001 11:18:34 +1100
Cc: linux-mips@oss.sgi.com
In-reply-to: <20011113200948.75977.qmail@web11908.mail.yahoo.com>; from wgowcher@yahoo.com on Tue, Nov 13, 2001 at 12:09:48PM -0800
References: <20011026161259.54925.qmail@web11908.mail.yahoo.com> <20011113200948.75977.qmail@web11908.mail.yahoo.com>
Sender: owner-linux-mips@oss.sgi.com
User-agent: Mutt/1.2.5i
On Tue, Nov 13, 2001 at 12:09:48PM -0800, Wayne Gowcher wrote:

> I am trying to cross compile X using the redhat7.0
> distribution from the sgi mips site as my base. Most
> files compile OK, but they fail at the link stage with
> the following error :
> 
> linking PIC files with non-PIC files.
> 
> I created my cross-compile library files in
> /usr/mipsel-linux from the packages :
> glibc-2.2.2-1.mipsel.rpm &
> glibc-devel-2.2.2-1.mipsel.rpm
> are there other libraries I need ?
> 
> I found a reference on the web to a module called
> libc6-pic.o, I don't see this anywhere in my libraries
> is this what I need ?
> 
> Has anyone else seen this problem before and do they
> know how to fix it ?

Don't use non-pic code ever in userspace.  Actually it's very strange
that you hit this problem as gcc defaults to pic code so you should
try to find which of your object files or libraries are non-pic.

  Ralf

<Prev in Thread] Current Thread [Next in Thread>