From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: =?iso-8859-15?q?J=E9r=F4me_Marant?= Newsgroups: gmane.emacs.devel Subject: [Andreas Jochens] Bug#300368: emacs21: FTBFS (ppc64): Please add support for the ppc64 architecture Date: Sat, 19 Mar 2005 15:34:12 +0100 Message-ID: <87psxvk8m3.fsf@marant.org> NNTP-Posting-Host: main.gmane.org Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="=-=-=" X-Trace: sea.gmane.org 1111243697 30932 80.91.229.2 (19 Mar 2005 14:48:17 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Sat, 19 Mar 2005 14:48:17 +0000 (UTC) Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Sat Mar 19 15:48:17 2005 Original-Received: from lists.gnu.org ([199.232.76.165]) by ciao.gmane.org with esmtp (Exim 4.43) id 1DCfFM-00041q-Ep for ged-emacs-devel@m.gmane.org; Sat, 19 Mar 2005 15:48:12 +0100 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1DCfW4-0001V2-85 for ged-emacs-devel@m.gmane.org; Sat, 19 Mar 2005 10:05:28 -0500 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1DCfUR-0000wY-C7 for emacs-devel@gnu.org; Sat, 19 Mar 2005 10:03:47 -0500 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1DCfUI-0000sl-Ar for emacs-devel@gnu.org; Sat, 19 Mar 2005 10:03:39 -0500 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1DCfUF-0000jV-Sy for emacs-devel@gnu.org; Sat, 19 Mar 2005 10:03:36 -0500 Original-Received: from [213.228.0.62] (helo=postfix4-1.free.fr) by monty-python.gnu.org with esmtp (Exim 4.34) id 1DCf2f-0003iC-NJ for emacs-devel@gnu.org; Sat, 19 Mar 2005 09:35:06 -0500 Original-Received: from amboise (unknown [82.227.97.206]) by postfix4-1.free.fr (Postfix) with ESMTP id 1CA5E2BA5E9 for ; Sat, 19 Mar 2005 15:35:05 +0100 (CET) Original-Received: by amboise (Postfix, from userid 1000) id BC7F52C03F; Sat, 19 Mar 2005 15:34:12 +0100 (CET) Original-To: emacs-devel@gnu.org User-Agent: Gnus/5.1007 (Gnus v5.10.7) Emacs/21.3 (gnu/linux) 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 X-MailScanner-To: ged-emacs-devel@m.gmane.org Xref: news.gmane.org gmane.emacs.devel:34772 X-Report-Spam: http://spam.gmane.org/gmane.emacs.devel:34772 --=-=-= Hi, I've just received this patch porting Emacs to the ppc64 architecture. I have no idea whether this is the right way to do it; maybe someone will be able to improve it. Cheers, --=-=-= Content-Type: message/rfc822 Content-Disposition: inline X-From-Line: jerome Sat Mar 19 12:48:13 2005 Return-Path: Delivered-To: online.fr-jmarant@free.fr Received: from imap.free.fr by localhost with IMAP (fetchmail-6.2.5) for jerome@localhost (single-drop); Sat, 19 Mar 2005 12:48:13 +0100 (CET) Received: (qmail 27301 invoked from network); 19 Mar 2005 10:23:17 -0000 Received: from master.debian.org (146.82.138.7) by mrelay4-2.free.fr with SMTP; 19 Mar 2005 10:23:17 -0000 Received: from qa by master.debian.org with local (Exim 3.35 1 (Debian)) id 1DCb6l-000737-00; Sat, 19 Mar 2005 04:23:03 -0600 Received: from spohr.debian.org [128.193.0.4] by master.debian.org with esmtp (Exim 3.35 1 (Debian)) id 1DCb6l-00072s-00; Sat, 19 Mar 2005 04:23:03 -0600 Received: from debbugs by spohr.debian.org with local (Exim 3.35 1 (Debian)) id 1DCb1z-0001ca-00; Sat, 19 Mar 2005 02:18:07 -0800 X-Loop: owner@bugs.debian.org Subject: Bug#300368: emacs21: FTBFS (ppc64): Please add support for the ppc64 architecture Reply-To: Andreas Jochens , 300368@bugs.debian.org Resent-From: Andreas Jochens Resent-To: debian-bugs-dist@lists.debian.org Resent-CC: Rob Browning Resent-Date: Sat, 19 Mar 2005 10:18:02 UTC Resent-Message-Id: X-Debian-PR-Message: report 300368 X-Debian-PR-Package: emacs21 X-Debian-PR-Keywords: patch Received: via spool by submit@bugs.debian.org id=B.111122684929242 (code B ref -1); Sat, 19 Mar 2005 10:18:02 UTC Received: (at submit) by bugs.debian.org; 19 Mar 2005 10:07:29 +0000 Received: from c223012.adsl.hansenet.de (localhost.localdomain) [213.39.223.12] by spohr.debian.org with esmtp (Exim 3.35 1 (Debian)) id 1DCarf-0007ao-00; Sat, 19 Mar 2005 02:07:28 -0800 Received: from aj by localhost.localdomain with local (Exim 4.44) id 1DCarV-00072S-5p; Sat, 19 Mar 2005 11:07:17 +0100 To: Debian Bug Tracking System From: Andreas Jochens Message-Id: Date: Sat, 19 Mar 2005 11:07:17 +0100 Delivered-To: submit@bugs.debian.org Resent-Sender: Debian BTS Delivered-To: emacs21@packages.qa.debian.org Precedence: list X-Loop: emacs21@packages.qa.debian.org X-PTS-Package: emacs21 X-PTS-Keyword: bts X-Unsubscribe: echo 'unsubscribe emacs21' | mail pts@qa.debian.org X-Spam-Checker-Version: SpamAssassin 3.0.2 (2004-11-16) on amboise X-Spam-Level: X-Spam-Status: No, score=0.3 required=5.0 tests=FORGED_RCVD_HELO, UPPERCASE_25_50 autolearn=disabled version=3.0.2 Lines: 65 Xref: amboise bugs-debian:1002 MIME-Version: 1.0 Package: emacs21 Severity: wishlist Tags: patch With the attached patch, 'emacs21' can be compiled on ppc64. This patch is similar to the patch which is used by Fedora for ppc64. Regards Andreas Jochens diff -urN ../tmp-orig/emacs21-21.3+1/src/m/macppc.h ./src/m/macppc.h --- ../tmp-orig/emacs21-21.3+1/src/m/macppc.h 2001-10-23 08:43:33.000000000 +0200 +++ ./src/m/macppc.h 2005-02-09 10:51:27.925283755 +0100 @@ -95,11 +95,47 @@ #ifdef LINUX #define LINKER $(CC) -nostdlib -#define LD_SWITCH_MACHINE -Xlinker -m -Xlinker elf32ppc +#ifdef __powerpc64__ +#define LD_SWITCH_MACHINE -m64 -Xlinker -m -Xlinker elf64ppc +#else +#define LD_SWITCH_MACHINE -m32 -Xlinker -m -Xlinker elf32ppc +#endif /* s/gnu-linux.h defines this to `-z nocombreloc' which does not work here because prefix-args is not used. */ #undef LD_SWITCH_SYSTEM_TEMACS #define LD_SWITCH_MACHINE_TEMACS -Xlinker -znocombreloc + +#ifdef __powerpc64__ +/* Misc 64-bit fixups, patterned after the x86_64 file */ +#undef BITS_PER_LONG +#undef BITS_PER_EMACS_INT +#undef VALBITS +#undef PNTR_COMPARISON_TYPE +#undef MARKBIT +#undef XINT +#undef XUINT +#undef XPNTR +#undef START_FILES +#undef LIB_STANDARD +#undef EMACS_INT +#undef EMACS_UINT +#undef SPECIAL_EMACS_INT + +#define BITS_PER_LONG 64 +#define BITS_PER_EMACS_INT 64 +#define VALBITS 60 +#define PNTR_COMPARISON_TYPE unsigned long +#define MARKBIT 0x8000000000000000L + +#define XINT(a) (((long) (a) << (BITS_PER_LONG - VALBITS)) >> (BITS_PER_LONG - VALBITS)) +#define XUINT(a) ((long) (a) & VALMASK) +#define XPNTR(a) XUINT (a) +#define START_FILES pre-crt0.o /usr/lib/crt1.o /usr/lib/crti.o +#define LIB_STANDARD -lgcc -lc -lgcc /usr/lib/crtn.o +#define EMACS_INT long +#define EMACS_UINT unsigned long +#define SPECIAL_EMACS_INT +#endif #endif #if 0 /* This breaks things on PPC GNU/Linux ecept for Yellowdog, --=-=-= Content-Type: text/plain; charset=iso-8859-15 Content-Transfer-Encoding: quoted-printable --=20 J=E9r=F4me Marant --=-=-= Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Disposition: inline _______________________________________________ Emacs-devel mailing list Emacs-devel@gnu.org http://lists.gnu.org/mailman/listinfo/emacs-devel --=-=-=--