Bug#544977: coreutils: FTFBS on sh4
Package: coreutils
Version: 7.5-1
Severity: wishlist
Tags: patch
User: debian-sh4@superh.orga
Usertags: sh4
Hi,
I am now trying to run Debian on Renesas SH CPU(sh4).
coreutis FTBFS on sh4.
-----
++ UINTMAX_OFLOW=18446744073709551616
+ test 2147483647
+ cat
+ sh4-linux-gnu-gcc -std=gnu99 -c long.c
long.c:3: error: size of array 'foo' is too large
+ skip_test_ 'this test runs only on systems with glibc and long double
!= double'
+ echo './misc/seq-long-double: skipping test: this test runs only on
systems with glibc and long double != double'
+ head -1
+ echo './misc/seq-long-double: skipping test: this test runs only on
systems with glibc and long double != double'
./misc/seq-long-double: skipping test: this test runs only on systems
with glibc and long double != double
+ Exit 77
+ set +e
+ exit 77
+ exit 77
+ remove_tmp_
+ __st=77
+ cleanup_
+ :
+ cd /home/iwamatsu/build-area/coreutils/coreutils-7.5/tests
+ chmod -R u+rwx
/home/iwamatsu/build-area/coreutils/coreutils-7.5/tests/cu-seq-long-double.XJLUMgOFat
+ rm -rf
/home/iwamatsu/build-area/coreutils/coreutils-7.5/tests/cu-seq-long-double.XJLUMgOFat
+ exit 77
FAIL: tail-2/pid (exit: 1)
==========================
-----
But SuperH can evade this problem by attaching -mieee option.
I made a patch to revise to be able to build.
Would you apply it?
Best regards,
Nobuhiro
--- a/debian/rules 2009-09-04 16:11:28.000000000 +0900
+++ b/debian/rules 2009-09-04 16:12:12.000000000 +0900
@@ -22,11 +22,16 @@
# implement no optimization build option
ifneq (,$(findstring noopt,$(DEB_BUILD_OPTIONS)))
-CFLAGS = "-g -DSYSLOG_SUCCESS -DSYSLOG_FAILURE -DSYSLOG_NON_ROOT -O0"
+CFLAGS = -g -DSYSLOG_SUCCESS -DSYSLOG_FAILURE -DSYSLOG_NON_ROOT -O0
else
-CFLAGS = "-g -DSYSLOG_SUCCESS -DSYSLOG_FAILURE -DSYSLOG_NON_ROOT -O2"
+CFLAGS = -g -DSYSLOG_SUCCESS -DSYSLOG_FAILURE -DSYSLOG_NON_ROOT -O2
+endif
+LDFLAGS =
+
+# Renesas SH(sh4) need -mieee option.
+ifeq ($(DEB_HOST_ARCH_CPU),sh4)
+ CFLAGS += -mieee
endif
-LDFLAGS =
# programs to include/not include
ifeq ($(DEB_HOST_ARCH_OS),hurd)
Reply to: