From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Rob Browning Newsgroups: gmane.linux.debian.devel.bugs.general,gmane.emacs.bugs Subject: Bug#620795: emacs23: Makefile generation with cpp mangles multiarch include paths (impending FTBFS) Date: Wed, 13 Apr 2011 22:56:03 -0500 Message-ID: <87sjtl4hbg.fsf@raven.defaultvalue.org> References: <20110404090605.9635.62532.reportbug@virgil.dodds.net> Reply-To: Rob Browning , 620795@bugs.debian.org NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: dough.gmane.org 1302753977 31276 80.91.229.12 (14 Apr 2011 04:06:17 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Thu, 14 Apr 2011 04:06:17 +0000 (UTC) Cc: Steve Langasek , 620795@bugs.debian.org, 620795-forwarded@bugs.debian.org To: bug-gnu-emacs@gnu.org Original-X-From: bounce-debian-bugs-dist=glddb-debian-bugs-dist=m.gmane.org@lists.debian.org Thu Apr 14 06:06:12 2011 Return-path: Envelope-to: glddb-debian-bugs-dist@m.gmane.org Original-Received: from liszt.debian.org ([82.195.75.100]) by lo.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1QADoq-0003uU-Ko for glddb-debian-bugs-dist@m.gmane.org; Thu, 14 Apr 2011 06:06:12 +0200 Original-Received: from localhost (localhost [127.0.0.1]) by liszt.debian.org (Postfix) with QMQP id 683C62D0ECA; Thu, 14 Apr 2011 04:06:12 +0000 (UTC) Old-Return-Path: Original-Received: from localhost (localhost [127.0.0.1]) by liszt.debian.org (Postfix) with ESMTP id 488CD2D0E81 for ; Thu, 14 Apr 2011 04:06:12 +0000 (UTC) X-Virus-Scanned: at lists.debian.org with policy bank bug X-Spam-Flag: NO X-Spam-Score: -6.599 X-Spam-Level: X-Spam-Status: No, score=-6.599 tagged_above=-10000 required=5.3 tests=[BAYES_00=-2.599, RCVD_IN_DNSWL_MED=-4] autolearn=ham Original-Received: from liszt.debian.org ([127.0.0.1]) by localhost (lists.debian.org [127.0.0.1]) (amavisd-new, port 2525) with ESMTP id XK9HJ9fDrd-4 for ; Thu, 14 Apr 2011 04:06:06 +0000 (UTC) Original-Received: from busoni.debian.org (busoni.debian.org [140.211.15.34]) (using TLSv1 with cipher AES256-SHA (256/256 bits)) (Client did not present a certificate) by liszt.debian.org (Postfix) with ESMTPS id 893D613A4E9E; Thu, 14 Apr 2011 04:06:06 +0000 (UTC) Original-Received: from debbugs by busoni.debian.org with local (Exim 4.72) (envelope-from ) id 1QADoh-0003LC-6s; Thu, 14 Apr 2011 04:06:03 +0000 X-Loop: owner@bugs.debian.org Resent-From: Rob Browning Resent-To: debian-bugs-dist@lists.debian.org X-Loop: owner@bugs.debian.org Resent-Date: Thu, 14 Apr 2011 04:06:01 +0000 Resent-Message-ID: X-Debian-PR-Message: followup 620795 X-Debian-PR-Package: emacs23 X-Debian-PR-Keywords: X-Debian-PR-Source: emacs23 Original-Received: via spool by 620795-submit@bugs.debian.org id=B620795.130275374012270 (code B ref 620795); Thu, 14 Apr 2011 04:06:01 +0000 Original-Received: (at 620795) by bugs.debian.org; 14 Apr 2011 04:02:20 +0000 X-Spam-Bayes: score:0.0000 Tokens: new, 0; hammy, 151; neutral, 142; spammy, 0. spammytokens: hammytokens:0.000-+--H*u:Gnus, 0.000-+--H*u:linux, 0.000-+--H*UA:linux, 0.000-+--H*UA:gnu, 0.000-+--H*u:gnu Original-Received: from defaultvalue.org ([70.85.129.156] ident=postfix) by busoni.debian.org with esmtp (Exim 4.72) (envelope-from ) id 1QADl5-0003Bb-SB; Thu, 14 Apr 2011 04:02:19 +0000 Original-Received: from omen.defaultvalue.org (localhost [127.0.0.1]) by defaultvalue.org (Postfix) with ESMTP id 0591B90D35; Wed, 13 Apr 2011 22:57:30 -0500 (CDT) Original-Received: from raven.defaultvalue.org (raven.defaultvalue.org [192.168.1.7]) by omen.defaultvalue.org (Postfix) with ESMTP id 0D6D85057E; Wed, 13 Apr 2011 22:56:04 -0500 (CDT) Original-Received: by raven.defaultvalue.org (Postfix, from userid 1000) id B32AF7BA6C9; Wed, 13 Apr 2011 22:56:03 -0500 (CDT) In-Reply-To: <20110404090605.9635.62532.reportbug@virgil.dodds.net> (Steve Langasek's message of "Mon, 04 Apr 2011 02:06:05 -0700") User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/23.3 (gnu/linux) X-Greylist: delayed 373 seconds by postgrey-1.32 at busoni; Thu, 14 Apr 2011 04:02:19 UTC X-CrossAssassin-Score: 2 X-Debian-Message: from BTS X-Mailing-List: archive/latest/737181 X-Loop: debian-bugs-dist@lists.debian.org List-Id: List-Post: List-Help: List-Subscribe: List-Unsubscribe: Precedence: list Resent-Sender: debian-bugs-dist-request@lists.debian.org Xref: news.gmane.org gmane.linux.debian.devel.bugs.general:818173 gmane.emacs.bugs:45805 Archived-At: (If possible, please preserve the 620795-forwarded address in any replies.) Debian is likely to migrate to multiarch, and it appears that the transition will probably break the Emacs build process. The problem is that Emacs uses cpp to process the Makefiles, and with multiarch, include paths will include strings like "i386" that cpp will replace with nonsensical values. i.e. -I/usr/lib/i386-linux-gnu/glib-2.0 -> -I/usr/lib/1-linux-gnu/glib-2.0 Steve Langasek writes: > Having begun to convert libraries over to multiarch in Ubuntu, we've found > emacs23 among the packages which fails to build. This is because the > two-stage, autoconf+cpp generation of src/Makefile and lib-src/Makefile > results in strings like "-I/usr/lib/i386-linux-gnu/glib-2.0" being seen as > input to cpp... which has "i386" as a macro defined to "1". So unless these > macros are undefined, the path that winds up in the Makefile is broken and > results in a build failure. > > The attached patch partially addresses this by undefining any macros that > happen to exist for the portion of the architecture triplet. Only > architectures for which Ubuntu currently builds are handled here, however; > for Debian either a more comprehensive list or a generic fix is needed. > It's possible that passing -fdirectives-only to cpp would solve this, but I > haven't tested. Please see http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=620795 for additional information. Thanks -- Rob Browning rlb @defaultvalue.org and @debian.org GPG as of 2002-11-03 14DD 432F AE39 534D B592 F9A0 25C8 D377 8C7E 73A4