Bug#545922: cln: FTFBS on sh4
Package: cln
Version: 1.3.0-2
Severity: wishlist
Tags: patch
User: debian-sh4@superh.org
Usertags: sh4
Hi,
I am now trying to run Debian on Renesas SH CPU(sh4).
cln FTBFS on sh4.
<snip>
/bin/sh ../libtool --tag=CXX --mode=compile sh4-linux-gnu-g++
-DHAVE_CONFIG_H -I. -I../autoconf -I../include -I../src -I../include
-I../src -O2 -MT cl_as_exception.lo -MD -MP -MF
..deps/cl_as_exception.Tpo -c -o cl_as_exception.lo `test -f
'base/cl_as_exception.cc' || echo './'`base/cl_as_exception.cc
libtool: compile: sh4-linux-gnu-g++ -DHAVE_CONFIG_H -I. -I../autoconf
-I../include -I../src -I../include -I../src -O2 -MT cl_as_exception.lo
-MD -MP -MF .deps/cl_as_exception.Tpo -c base/cl_as_exception.cc -fPIC
-DPIC -o .libs/cl_as_exception.o
In file included from ../include/cln/number.h:8,
from ./base/cl_N.h:6,
from base/cl_as_exception.cc:13:
.../include/cln/object.h:32:4: error: #error "Define cl_word_alignment
for your CPU!"
In file included from ../include/cln/number.h:8,
from ./base/cl_N.h:6,
from base/cl_as_exception.cc:13:
.../include/cln/object.h: In function 'bool
cln::cl_pointer_p(cln::cl_uint)':
.../include/cln/object.h:76: error: 'cl_word_alignment' was not declared
in this scope
.../include/cln/object.h: In function 'bool
cln::cl_immediate_p(cln::cl_uint)':
.../include/cln/object.h:80: error: 'cl_word_alignment' was not declared
in this scope
In file included from ./base/cl_N.h:6,
</snip>
Current cln package doesn't support sh4.
I made a patch to revise to be able to build.
Would you apply it?
Best regards,
Nobuhiro
--- include/cln/object.h.old 2009-09-09 11:54:32.000000000 +0900
+++ include/cln/object.h 2009-09-09 11:55:22.000000000 +0900
@@ -22,7 +22,7 @@
#if defined(__m68k__)
#define cl_word_alignment 2
#endif
-#if defined(__i386__) || defined(__mips__) || defined(__mipsel__) || (defined(__sparc__) && !defined(__sparc64__)) || defined(__hppa__) || defined(__arm__) || defined(__rs6000__) || defined(__m88k__) || defined(__convex__) || defined(__s390__)
+#if defined(__i386__) || defined(__mips__) || defined(__mipsel__) || (defined(__sparc__) && !defined(__sparc64__)) || defined(__hppa__) || defined(__arm__) || defined(__rs6000__) || defined(__m88k__) || defined(__convex__) || defined(__s390__) || defined(__sh__)
#define cl_word_alignment 4
#endif
#if defined(__alpha__) || defined(__ia64__) || defined(__mips64__) || defined(__powerpc64__) || defined(__sparc64__) || defined(__x86_64__)
Reply to: