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: Thu, 08 Oct 2009 08:04:44 -0400 Message-ID: <1255003484.6961.360.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> 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 1255003496 12151 80.91.229.12 (8 Oct 2009 12:04:56 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Thu, 8 Oct 2009 12:04:56 +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 Thu Oct 08 14:04:46 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 1Mvrjh-0001YO-Df for ged-emacs-devel@m.gmane.org; Thu, 08 Oct 2009 14:04:45 +0200 Original-Received: from localhost ([127.0.0.1]:51515 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Mvrjg-0008Bl-VX for ged-emacs-devel@m.gmane.org; Thu, 08 Oct 2009 08:04:45 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1Mvrja-0008BM-ED for emacs-devel@gnu.org; Thu, 08 Oct 2009 08:04:38 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1MvrjY-0008Ax-Lb for emacs-devel@gnu.org; Thu, 08 Oct 2009 08:04:37 -0400 Original-Received: from [199.232.76.173] (port=33626 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1MvrjY-0008Au-JT for emacs-devel@gnu.org; Thu, 08 Oct 2009 08:04:36 -0400 Original-Received: from static-71-184-83-10.bstnma.fios.verizon.net ([71.184.83.10]:60557 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 1MvrjV-0006UD-U6 for emacs-devel@gnu.org; Thu, 08 Oct 2009 08:04:34 -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 n98C4iLl009195; Thu, 8 Oct 2009 08:04:45 -0400 Original-Received: (from zappo@localhost) by projectile.siege-engine.com (8.14.3/8.14.3/Submit) id n98C4iYW009194; Thu, 8 Oct 2009 08:04:44 -0400 X-Authentication-Warning: projectile.siege-engine.com: zappo set sender to eric@siege-engine.com using -f In-Reply-To: <87r5tesk6l.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:115983 Archived-At: On Wed, 2009-10-07 at 22:17 -0400, Chong Yidong wrote: > Chong Yidong writes: > > > The target is now printed correctly, but there is a different > > compilation error; I'll investigate further. > > It seems the error occurs in upstream CEDET as well. Following Sascha's > "Make" project recipe, I get > > make -f /home/cyd/tmp/Makefile all > gcc -c hello.c > ld -L. -o hello hello.o > ld: warning: cannot find entry symbol _start; defaulting to 0000000008048074 > hello.o: In function `main': > hello.c:(.text+0x19): undefined reference to `puts' > make: *** [hello] Error 1 > > Why is EDE using ld rather than gcc to perform linking? 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. ;) Eric