From: Ralf Baechle <ralf@oss.sgi.com>
To: Wayne Gowcher <wgowcher@yahoo.com>
Cc: linux-mips@oss.sgi.com
Subject: Re: ld error " linking PIC files with non-PIC files "
Date: Wed, 14 Nov 2001 11:18:34 +1100 [thread overview]
Message-ID: <20011114111834.B10410@dea.linux-mips.net> (raw)
In-Reply-To: <20011113200948.75977.qmail@web11908.mail.yahoo.com>; from wgowcher@yahoo.com on Tue, Nov 13, 2001 at 12:09:48PM -0800
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
next prev parent reply other threads:[~2001-11-14 0:18 UTC|newest]
Thread overview: 21+ messages / expand[flat|nested] mbox.gz Atom feed top
2001-10-19 1:57 Strange behavior of serial console under 2.4.9 H . J . Lu
2001-10-19 2:11 ` Bradley D. LaRonde
2001-10-19 2:11 ` Bradley D. LaRonde
2001-10-19 2:40 ` H . J . Lu
2001-10-19 13:26 ` Maciej W. Rozycki
2001-10-19 13:54 ` Bradley D. LaRonde
2001-10-19 13:54 ` Bradley D. LaRonde
2001-10-19 15:47 ` Ralf Baechle
2001-10-26 16:12 ` Backspace on Virtual Console causes oops Wayne Gowcher
2001-10-26 17:30 ` Gleb O. Raiko
2001-10-26 18:37 ` Wayne Gowcher
2001-10-29 8:26 ` Gleb O. Raiko
2001-10-29 18:21 ` James Simmons
2001-10-26 18:05 ` Pete Popov
2001-10-26 18:11 ` James Simmons
2001-11-13 20:09 ` ld error " linking PIC files with non-PIC files " Wayne Gowcher
2001-11-14 0:18 ` Ralf Baechle [this message]
[not found] ` <000a01c170d0$e8662000$101d690a@huawei.com>
2001-11-19 9:05 ` Ralf Baechle
2001-10-19 16:53 ` Strange behavior of serial console under 2.4.9 Jun Sun
2001-10-19 17:10 ` Bradley D. LaRonde
2001-10-19 17:10 ` Bradley D. LaRonde
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20011114111834.B10410@dea.linux-mips.net \
--to=ralf@oss.sgi.com \
--cc=linux-mips@oss.sgi.com \
--cc=wgowcher@yahoo.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox