Package: m2c
Version: 0.6-10.2
Severity: wishlist
Tags: patch

When building 'm2c' on ppc64/unstable, I get the following error:

dh_testdir
# Add here commands to compile the package.
./configure +cc=gcc `dpkg-architecture -qDEB_BUILD_GNU_CPU`
./configure: file `config/powerpc64-gcc.h' does not exist.
Good bye.
make: *** [build-stamp] Error 1

With the attached patch 'm2c' can be compiled on ppc64.

Regards
Andreas Jochens

diff -urN ../tmp-orig/m2c-0.6/config/powerpc64-gcc.h ./config/powerpc64-gcc.h
--- ../tmp-orig/m2c-0.6/config/powerpc64-gcc.h  1970-01-01 00:00:00.000000000 
+0000
+++ ./config/powerpc64-gcc.h    2006-04-06 06:40:13.000000000 +0000
@@ -0,0 +1,35 @@
+/* The file is used for tunning Modula-2 translator on 64-bit
+   power GCC compiler.
+   Copyright (C) 1993-1997 (see more details in file COPYING).
+
+   This file is part of Modula-2 translator.  */
+
+#include "power64.h"
+#include "gcc.h"
+
+
+/* If the following macros is defined than it is used for making more
+   precise size of type with mode TYPE_MODE (see commentaries in m2-icode.h)
+   after standard method of size calculation. */
+
+/*#define MAKING_MORE_PRECISE_SIZE_BY_TYPE_MODE(size,type_mode) */
+
+/* If the following macros is defined than it is used for making more
+   precise size of type given as ICODE_PTR (see commentaries in m2-icode.h)
+   after standard method of size calculation and after call of
+   previous macros (if it is defined). */
+
+/*#define MAKING_MORE_PRECISE_SIZE_BY_TYPE(size,icode_ptr) */
+
+/* If the following macros is defined than it is used for making more
+   precise alignment of type with mode TYPE_MODE (see commentaries in
+   m2-icode.h) after standard method of alignment calculation. */
+
+/*#define MAKING_MORE_PRECISE_ALIGN_BY_TYPE_MODE(align,type_mode) */
+
+/* If the following macros is defined than it is used for making more
+   precise alignment of type given as ICODE_PTR (see commentaries in
+   m2-icode.h) after standard method of alignment calculation and after call of
+   previous macros (if it is defined). */
+
+/*#define MAKING_MORE_PRECISE_ALIGN_BY_TYPE(align,icode_ptr) */


-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]

Reply via email to