Cross compiler issues with gcc-4.4.4

Heinz Wiesinger
Sat Jun 12 01:46:00 GMT 2010

On Friday 11 June 2010 01:03:58 Heinz Wiesinger wrote:
> Hi!
> I'm trying to build a cross compiler that compiles x86_64 code on a i486
> host, both Linux. I've done this a couple of times before and it always
> worked without any issues. However, starting with gcc-4.4.4 I get warnings
> like
> > warning: visibility attribute not supported in this configuration;
> > ignored
> or errors like
> > relocation R_X86_64_PC32 against symbol
> > `QPalette::color(QPalette::ColorGroup, QPalette::ColorRole) const' can
> > not be used when making a shared object; recompile with -fPIC
> I'm definite this is not a source code issue. The same code compiles fine
> without warnings on a native x86_64 gcc-4.4.4, as well as on a gcc-4.4.3
> x86_64 cross compiler.
> I have attached the script I am using to build my gcc (a Slackware Linux
> package build script). The script is written for gcc-4.4.3 and works fine
> there. I use exactly the same script for 4.4.4 (with a version change) and
> I get above errors.
> Did something change between 4.4.3 and 4.4.4 that I need to take into
> account here? Or is this a bug?

I have no idea what I did, but after some recompiles with the same options it 
suddenly worked. Very strange :/

-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 198 bytes
Desc: This is a digitally signed message part.
URL: <>

More information about the Gcc-help mailing list