From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 14756 invoked by alias); 3 Aug 2011 15:43:31 -0000 Received: (qmail 14714 invoked by uid 22791); 3 Aug 2011 15:43:30 -0000 X-SWARE-Spam-Status: No, hits=-2.9 required=5.0 tests=ALL_TRUSTED,AWL,BAYES_00 X-Spam-Check-By: sourceware.org Received: from localhost (HELO gcc.gnu.org) (127.0.0.1) by sourceware.org (qpsmtpd/0.43rc1) with ESMTP; Wed, 03 Aug 2011 15:43:17 +0000 From: "ro at CeBiTec dot Uni-Bielefeld.DE" To: java-prs@gcc.gnu.org Subject: [Bug libgcj/40947] Invalid flag usage: Wl,-rpath, -Wx,-option must appear after -_SYSTYPE_SVR4 X-Bugzilla-Reason: CC X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: libgcj X-Bugzilla-Keywords: X-Bugzilla-Severity: normal X-Bugzilla-Who: ro at CeBiTec dot Uni-Bielefeld.DE X-Bugzilla-Status: UNCONFIRMED X-Bugzilla-Priority: P3 X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org X-Bugzilla-Target-Milestone: --- X-Bugzilla-Changed-Fields: Message-ID: In-Reply-To: References: X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/ Auto-Submitted: auto-generated Content-Type: text/plain; charset="UTF-8" MIME-Version: 1.0 Date: Wed, 03 Aug 2011 15:43:00 -0000 Mailing-List: contact java-prs-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Id: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: java-prs-owner@gcc.gnu.org X-SW-Source: 2011-q3/txt/msg00013.txt.bz2 http://gcc.gnu.org/bugzilla/show_bug.cgi?id=40947 --- Comment #17 from 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? >> 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