http://gcc.gnu.org/bugzilla/show_bug.cgi?id=40947

--- Comment #17 from ro at CeBiTec dot Uni-Bielefeld.DE <ro at CeBiTec dot 
Uni-Bielefeld.DE> 2011-08-03 15:42:46 UTC ---
>> > Invalid flag usage: Wl,-rpath, -Wx,-option must appear after 
>> > -_SYSTYPE_SVR4 
>
>> What I do see is that if you add some -W option to ld, you get exactly
>> the message you observe.  E.g.
>
> That's stating the obvious... it is essentially what the error message is
> complaining ('flags must be ordered in some way")

Not really: there's no documented -_SYSTYPE_SVR4 flag, and ld doesn't
accept such a flag at all.  The error message is sort of nonsensical.

>> Do you happen to have some environment variable set to -W<something>?
>> Though I have found no hint that ld would check for this, it's a
>> possibility.
>
> No I don't - just tried export |grep W . In any case, 4.6.1 does not show this
> problem, so it seems to be fixed in 4.6.1 somehow; and it is *not*
> full/relative path related.

Still really strange: I've never seen such a ld message before, building
gcc or otherwise.

Anyway, great that it works for you now.

    Rainer

Reply via email to