From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 6729 invoked by alias); 3 Aug 2011 11:38:36 -0000 Received: (qmail 6608 invoked by uid 22791); 3 Aug 2011 11:38:35 -0000 X-SWARE-Spam-Status: No, hits=-2.7 required=5.0 tests=ALL_TRUSTED,AWL,BAYES_00,TW_GC,TW_LG,TW_LR 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 11:38:24 +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 11:38: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/msg00011.txt.bz2 http://gcc.gnu.org/bugzilla/show_bug.cgi?id=40947 --- Comment #15 from ro at CeBiTec dot Uni-Bielefeld.DE 2011-08-03 11:37:17 UTC --- > last part of output: > ------------------- > libtool: link: /home/htl10/tmp-build/gcc-446-obj/gcc/gcj > -B/home/htl10/tmp-build/gcc-446-obj/alphaev68-dec-osf5.1a/libjava/ > -B/home/htl10/tmp-build/gcc-446-obj/gcc/ -mieee -g -O2 -o .libs/jv-convert > --main=gnu.gcj.convert.Convert -shared-libgcc > -L/home/htl10/tmp-build/gcc-446-obj/alphaev68-dec-osf5.1a/libjava/.libs > -L/home/htl10/tmp-build/gcc-446-obj/alphaev68-dec-osf5.1a/libjava > ./.libs/libgcj.so -lpthread -lrt -Wl,-rpath -Wl,/usr/local/lib > /bin/ld: > Invalid flag usage: Wl,-rpath, -Wx,-option must appear after -_SYSTYPE_SVR4 I've no idea what's going on there: modulo pathname and target triplet differences, I have exactly the same gcj command line to link jv-convert. Could you please manually invoke that command with -v added, so I can see how exactly collect2 resp. ld is called? What I do see is that if you add some -W option to ld, you get exactly the message you observe. E.g. ld -G 8 -O3 -S -call_shared -o .libs/jv-convert /usr/lib/cmplrs/cc/crt0.o -L.libs -L. -L../../gcc -L/usr/lib/cmplrs/cc gnu.gcj.convert.Convertmain.o ./.libs/libgcj.so -lpthread -lrt -rpath /vol/gcc/lib -lgcc_s -lgcc -lgcj -lm -liconv -lpthread -lrt -lgcc_s -lgcc -lc -lgcc_s -lgcc -Wno-unused ld: Invalid flag usage: Wno-unused, -Wx,-option must appear after -_SYSTYPE_SVR4 ld: Usage: ld [options] file [...] 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. Rainer