[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Bug#562796: libhdf4: Please support Renesas SuperH(sh4)

Package: libhdf4
Version: 4.2r4-7
Severity: important
Tags: patch
User: debian-sh4@superh.org
Usertags: sh4
X-Debbugs-CC: debian-superh@lists.debian.org


I am now trying to run Debian on Renesas SH(sh4) CPU.

libhdf4 FTBFS on SH4.
Because configure included in  libhdf4 is created in old autoconf.

checking for Fortran 77 libraries of gfortran...  -little
-L/usr/lib/gcc/sh4-linux-gnu/4.3.4/../../.. -lgfortranbegin -lgfortran
configure: error: in
checking for dummy main to link with Fortran 77 libraries... unknown
configure: error: linking to Fortran libraries from C fails

Old autoconf adds -little option to compile option. sh4 architecture can't
interpret this option. Therefore, this has build error.

Could you update confiugre with new autoconf?
Or please apply the patch which I attached (sh4_configure).
This is patch for quick fix.

And libhdf4 not support Renesas SuperH.
I created patch(sh4_support) for support this CPU.

Could you apply these patches?

- sh4_configure
   patch for configure. This patch revises problem -little option
- sh4_support
   This patch supports Renesas SuperH.
- debian_rules.patch
    Patch for debian/rules. This updates debian/patches1/series and

Best regards,

Nobuhiro Iwamatsu
   iwamatsu at {nigauri.org / debian.org}
   GPG ID: 40AD1FA6
--- a/debian/rules	2009-12-28 00:13:02.000000000 +0000
+++ b/debina/rules	2009-12-28 00:22:04.000000000 +0000
@@ -69,7 +69,10 @@
 	cp -a debian/patches debian/patches2
 	# add a patch to series
 	echo shared_fortran >>debian/patches1/series
+	echo sh4_configure >>debian/patches1/series
+	echo sh4_support >>debian/patches1/series
 	echo autotools >>debian/patches2/series
+	echo sh4_support >>debian/patches2/series
 	QUILT_PATCH_OPTS="-p1" QUILT_PATCHES=debian/patches1 quilt push -a --color=auto || [ $$? = 2 ]
 	mv -f .pc .pc1
 	rm -f HDF4 && ln -sf HDF4_ALT HDF4 

Attachment: sh4_configure
Description: Binary data

Attachment: sh4_support
Description: Binary data

Attachment: libhdf4_4.2r4-7_sh4.build.gz
Description: GNU Zip compressed data

Reply to: