From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Ryan Yeske Newsgroups: gmane.emacs.devel Subject: Re: 22.0.98 build problem Date: Wed, 25 Apr 2007 21:16:06 -0700 (PDT) Message-ID: <20070426041606.25742142E4@owie.localdomain> References: <20070422191903.730AC142B0@owie.localdomain> <20070423194047.BE12630136@Psilocybe.Update.UU.SE> NNTP-Posting-Host: lo.gmane.org X-Trace: sea.gmane.org 1177561018 4996 80.91.229.12 (26 Apr 2007 04:16:58 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Thu, 26 Apr 2007 04:16:58 +0000 (UTC) Cc: emacs-devel@gnu.org To: rms@gnu.org Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Thu Apr 26 06:16:52 2007 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 1HgvPW-0008Qd-Oi for ged-emacs-devel@m.gmane.org; Thu, 26 Apr 2007 06:16:51 +0200 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1HgvVD-0004ht-JP for ged-emacs-devel@m.gmane.org; Thu, 26 Apr 2007 00:22:43 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1HgvVA-0004ho-0r for emacs-devel@gnu.org; Thu, 26 Apr 2007 00:22:40 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1HgvV7-0004hc-DW for emacs-devel@gnu.org; Thu, 26 Apr 2007 00:22:38 -0400 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1HgvV7-0004hZ-98 for emacs-devel@gnu.org; Thu, 26 Apr 2007 00:22:37 -0400 Original-Received: from shawmail.shawcable.com ([64.59.128.220] helo=bpd2mo1no.prod.shawcable.com) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1HgvPO-0005g2-DP; Thu, 26 Apr 2007 00:16:42 -0400 Original-Received: from bpd2mi4no.prod.shawcable.com (bpd2mi4no-qfe3.prod.shawcable.com [10.0.184.123]) by bpd2mo1no.prod.shawcable.com (Sun ONE Messaging Server 6.0 HotFix 1.01 (built Mar 15 2004)) with ESMTP id <0JH30076T7VSHB10@bpd2mo1no.prod.shawcable.com>; Wed, 25 Apr 2007 22:16:40 -0600 (MDT) Original-Received: from mail.emmett.ca ([68.146.204.233]) by bpd2mi4no.prod.shawcable.com (Sun ONE Messaging Server 6.0 HotFix 1.01 (built Mar 15 2004)) with ESMTP id <0JH300EH37VRIE20@bpd2mi4no.prod.shawcable.com>; Wed, 25 Apr 2007 22:16:40 -0600 (MDT) Original-Received: from localhost (localhost [127.0.0.1]) by mail.emmett.ca (Postfix) with ESMTP id C1AF1417A8; Wed, 25 Apr 2007 22:16:38 -0600 (MDT) Original-Received: from mail.emmett.ca ([127.0.0.1]) by localhost (sputnik.emmett.ca [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 14172-01; Wed, 25 Apr 2007 22:16:36 -0600 (MDT) Original-Received: from owie.localdomain (unknown [10.18.1.1]) by mail.emmett.ca (Postfix) with ESMTP id D8CCF41754; Wed, 25 Apr 2007 22:16:35 -0600 (MDT) Original-Received: by owie.localdomain (Postfix, from userid 1000) id 25742142E4; Wed, 25 Apr 2007 21:16:06 -0700 (PDT) In-reply-to: X-Virus-Scanned: by amavisd-new (clamav) at mail.emmett.ca X-detected-kernel: Genre and OS details not recognized. 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:70153 Archived-At: I think the problem is due to the absence of -nostdlib in the command to link. So I think the bug is in the conversion of Makefile.in into Makefile. Can you investigate what happens and how it comes about that -nostdlib is missing? That is true, if I add -nostdlib to the Makefile by hand, I can build. It is not very clear to me what needs to be changed to add -nostdlib for this platform. What is the condition? FWIW, There are two places in src/Makefile.in that I can find -nostdlib /* Versions of GCC >= 2.0 put their library, libgcc.a, in obscure places that are difficult to figure out at make time. Fortunately, these same versions allow you to pass arbitrary flags on to the linker, so there is no reason not to use it as a linker. Well, it is not quite perfect. The "-nostdlib" keeps GCC from searching for libraries in its internal directories, so we have to ask GCC explicitly where to find libgcc.a. */ #ifndef LINKER #define LINKER $(CC) -nostdlib #endif and #ifdef ORDINARY_LINK LD = $(CC) #else #ifdef COFF_ENCAPSULATE LD=$(CC) -nostdlib #else /* not ORDINARY_LINK */ #ifdef LINKER LD=LINKER #else /* not LINKER */ LD=ld #endif /* not LINKER */ #endif /* not COFF_ENCAPSULATE */ #endif /* not ORDINARY_LINK */