From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 30015 invoked by alias); 16 Apr 2013 08:39:04 -0000 Mailing-List: contact java-patches-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Id: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: java-patches-owner@gcc.gnu.org Received: (qmail 29996 invoked by uid 89); 16 Apr 2013 08:39:04 -0000 X-Spam-SWARE-Status: No, score=-6.6 required=5.0 tests=AWL,BAYES_00,KHOP_RCVD_UNTRUST,RCVD_IN_DNSWL_HI,RP_MATCHES_RCVD,SPF_HELO_PASS,TW_GC autolearn=ham version=3.3.1 X-Spam-User: qpsmtpd, 2 recipients Received: from mx1.redhat.com (HELO mx1.redhat.com) (209.132.183.28) by sourceware.org (qpsmtpd/0.84/v0.84-167-ge50287c) with ESMTP; Tue, 16 Apr 2013 08:39:04 +0000 Received: from int-mx10.intmail.prod.int.phx2.redhat.com (int-mx10.intmail.prod.int.phx2.redhat.com [10.5.11.23]) by mx1.redhat.com (8.14.4/8.14.4) with ESMTP id r3G8d2Ec025877 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=OK); Tue, 16 Apr 2013 04:39:03 -0400 Received: from zalov.cz (vpn-57-214.rdu2.redhat.com [10.10.57.214]) by int-mx10.intmail.prod.int.phx2.redhat.com (8.14.4/8.14.4) with ESMTP id r3G8d1dp015364 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO); Tue, 16 Apr 2013 04:39:02 -0400 Received: from zalov.cz (localhost [127.0.0.1]) by zalov.cz (8.14.5/8.14.5) with ESMTP id r3G8cxJG004423; Tue, 16 Apr 2013 10:39:00 +0200 Received: (from jakub@localhost) by zalov.cz (8.14.5/8.14.5/Submit) id r3G8cvbc004422; Tue, 16 Apr 2013 10:38:57 +0200 Date: Tue, 16 Apr 2013 08:39:00 -0000 From: Jakub Jelinek To: Andreas Schwab Cc: java-patches@gcc.gnu.org, gcc-patches@gcc.gnu.org Subject: Re: [PATCH] Fix linking with -findirect-dispatch Message-ID: <20130416083855.GM12880@tucnak.redhat.com> Reply-To: Jakub Jelinek References: MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.5.21 (2010-09-15) X-SW-Source: 2013-q2/txt/msg00021.txt.bz2 On Tue, Apr 16, 2013 at 10:35:29AM +0200, Andreas Schwab wrote: > Linking with -findirect-dispatch fails with this error: > > x86_64-linux-gcj -o ecjx -findirect-dispatch --main=org.eclipse.jdt.internal.compiler.batch.GCCMain ../../../gcc/libjava/../ecj.jar ecjx.o > /usr/lib64/gcc/x86_64-suse-linux/4.7/../../../../x86_64-suse-linux/bin/ld: /tmp/ccppO92n.o: undefined reference to symbol '_Jv_MonitorExit' > /usr/lib64/gcc/x86_64-suse-linux/4.7/../../../../x86_64-suse-linux/bin/ld: note: '_Jv_MonitorExit' is defined in DSO /usr/lib64/libgcj.so.13 so try adding it to the linker command line > > Andreas. > > * configure.ac (LIBGCJ_SPEC_LGCJ_BC): Append -lgcj. > (libgcj_spec_lgcj_bc_override): Likewise. > * configure: Regenerate. That doesn't look right, if -findirect-dispatch now newly needs _Jv_MonitorExit (when has that been added?), then the symbol should be added to libgcj_bc.so. Jakub