From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: "Eric M. Ludlam" Newsgroups: gmane.emacs.devel Subject: Re: Problems with EDE Date: Tue, 13 Oct 2009 21:56:29 -0400 Message-ID: <1255485389.6961.532.camel@projectile.siege-engine.com> References: <87hbun9jbs.fsf@stupidchicken.com> <1254397096.16450.84.camel@projectile.siege-engine.com> <1254575261.6961.23.camel@projectile.siege-engine.com> <873a5wbed3.fsf@stupidchicken.com> <1254933167.6961.298.camel@projectile.siege-engine.com> <87ocoibqln.fsf@stupidchicken.com> <87r5tesk6l.fsf@stupidchicken.com> <1255003484.6961.360.camel@projectile.siege-engine.com> <87iqeqht64.fsf@stupidchicken.com> Reply-To: eric@siege-engine.com NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain Content-Transfer-Encoding: 7bit X-Trace: ger.gmane.org 1255485377 6101 80.91.229.12 (14 Oct 2009 01:56:17 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Wed, 14 Oct 2009 01:56:17 +0000 (UTC) Cc: Sascha Wilde , emacs-devel@gnu.org To: Chong Yidong Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Wed Oct 14 03:56:07 2009 Return-path: Envelope-to: ged-emacs-devel@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by lo.gmane.org with esmtp (Exim 4.50) id 1Mxt5y-0000AC-7n for ged-emacs-devel@m.gmane.org; Wed, 14 Oct 2009 03:56:06 +0200 Original-Received: from localhost ([127.0.0.1]:39410 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Mxt5x-0005IN-28 for ged-emacs-devel@m.gmane.org; Tue, 13 Oct 2009 21:56:05 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1Mxt5q-0005GW-Hb for emacs-devel@gnu.org; Tue, 13 Oct 2009 21:55:58 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1Mxt5o-0005Ea-Q7 for emacs-devel@gnu.org; Tue, 13 Oct 2009 21:55:57 -0400 Original-Received: from [199.232.76.173] (port=43769 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Mxt5o-0005ES-M2 for emacs-devel@gnu.org; Tue, 13 Oct 2009 21:55:56 -0400 Original-Received: from static-71-184-83-10.bstnma.fios.verizon.net ([71.184.83.10]:60283 helo=projectile.siege-engine.com) by monty-python.gnu.org with esmtps (TLS-1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.60) (envelope-from ) id 1Mxt5o-0004uD-AH for emacs-devel@gnu.org; Tue, 13 Oct 2009 21:55:56 -0400 Original-Received: from projectile.siege-engine.com (localhost [127.0.0.1]) by projectile.siege-engine.com (8.14.3/8.14.3/Debian-6) with ESMTP id n9E1uUkU008373; Tue, 13 Oct 2009 21:56:30 -0400 Original-Received: (from zappo@localhost) by projectile.siege-engine.com (8.14.3/8.14.3/Submit) id n9E1uT0D008372; Tue, 13 Oct 2009 21:56:29 -0400 X-Authentication-Warning: projectile.siege-engine.com: zappo set sender to eric@siege-engine.com using -f In-Reply-To: <87iqeqht64.fsf@stupidchicken.com> X-Mailer: Evolution 2.26.1 X-detected-operating-system: by monty-python.gnu.org: GNU/Linux 2.6 (newer, 3) X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.devel:116125 Archived-At: Thanks, I finally applied this to my repository as well (plus modifications also mentioned on this thread.) Eric On Thu, 2009-10-08 at 10:11 -0400, Chong Yidong wrote: > "Eric M. Ludlam" writes: > > > I wrote it in 1999, and at the time, that is what worked for me. > > > > EDE actually will use a range of different linkers, and the ld one was > > the first match. If you use: > > > > M-x customize-target RET > > > > you can select a new linker, such as a g++ linker, or the gfortran > > linker. Looking in ede-proj-obj.el (ede/proj/obj.el ?) it is hopefully > > obvious how to add new linkers here. I think my test suite I use uses c > > ++ instead, and thus gets a different linker. I apparently need to add > > a new test. ;) > > I see. I added a new ede-gcc-linker, and the Make project now compiles > properly. Here's a patch for your source tree: > > *** cedet/ede/ede-proj-obj.el.~1.15.~ 2009-08-18 19:56:57.000000000 -0400 > --- cedet/ede/ede-proj-obj.el 2009-10-08 10:10:29.000000000 -0400 > *************** > *** 48,58 **** > ;; fortran or pascal can be added here > )) > (availablelinkers :initform (ede-g++-linker > ! ;; Add more linker thingies here. > ! ede-ld-linker > ede-gfortran-linker > )) > ! (sourcetype :initform (ede-source-c > ede-source-c++ > ede-source-f77 > ede-source-f90 > --- 48,59 ---- > ;; fortran or pascal can be added here > )) > (availablelinkers :initform (ede-g++-linker > ! ede-gcc-linker > ede-gfortran-linker > + ede-ld-linker > + ;; Add more linker thingies here. > )) > ! (sourcetype :initform (ede-source-c > ede-source-c++ > ede-source-f77 > ede-source-f90 > *************** > *** 109,114 **** > --- 110,125 ---- > :uselinker t) > "Compiler for C sourcecode.") > > + (defvar ede-gcc-linker > + (ede-linker > + "ede-gcc-linker" > + :name "gcc" > + :sourcetype '(ede-source-c) > + :variables '(("C_LINK" . "$(CC) $(CFLAGS) $(LDFLAGS) -L.")) > + :commands '("$(C_LINK) -o $@ $^") > + :objectextention "") > + "Linker for C sourcecode.") > + > (defvar ede-source-c++ > (ede-sourcecode "ede-source-c++" > :name "C++"