This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug target/36622] 4.3.1 failed to compile gcse.c file.
- From: "Ralf dot Wildenhues at gmx dot de" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 2 Jul 2008 16:46:40 -0000
- Subject: [Bug target/36622] 4.3.1 failed to compile gcse.c file.
- References: <bug-36622-15556@http.gcc.gnu.org/bugzilla/>
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
------- Comment #21 from Ralf dot Wildenhues at gmx dot de 2008-07-02 16:46 -------
Subject: Re: 4.3.1 failed to compile gcse.c file.
* imam dot toufique at intel dot com wrote on Wed, Jul 02, 2008 at 06:17:59PM
CEST:
> well... when libstdc and other shared libs are built, are they all built
> position independent?
Yes.
> the whole idea here to make sure that we must build
> position independent libstdc.so and other shared libs.
But you need not take care of that. It's done without you passing
-fPIC. The build machinery will do that for those objects that end up
in shared libraries.
> Moreover, I have tested with the -fPIC options in 4.3.2 pre-release and the
> build works OK.
That doesn't make it recommended practice.
> also, I am getting an error from 'ld' that it can't find symbol '-lc' . I am
> not sure if this gcc related or binutils related. any ideas? Please see
> comment #18 for more info.
I assume that is an independent issue. But still you should first try
to build without -fPIC.
Cheers,
Ralf
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=36622