Bug#695077: eglibc: [INTL:ja] Japanease translation of the debconf templates

2012-12-03 Thread Nobuhiro Iwamatsu
Package: eglibc
Severity: wishlist
Tags: patch l10n

Hi,

I Attached is the Japanese translation of the eglibc debconf templates.
PO file reviewed by several Japanese Debian developers and users.

Could you apply this?

Best regards,
 Nobuhiro
--
Nobuhiro Iwamatsu
   iwamatsu at {nigauri.org / debian.org}
   GPG ID: 40AD1FA6


eglibc_2.13-37_ja.po
Description: Binary data


Bug#645058: libc6: sh4: multiarch broken sometime

2011-10-16 Thread Nobuhiro Iwamatsu
Hi,

2011/10/12 Aurelien Jarno aurel...@aurel32.net:
 On Wed, Oct 12, 2011 at 03:28:19PM +0900, Nobuhiro Iwamatsu wrote:
 Package: libc6
 Version: 2.13-21
 Severity: important
 User: multiarch-de...@lists.alioth.debian.org
 Usertags: multiarch
 User: debian-...@superh.org
 Usertags: sh4
 X-Debbugs-CC: debian-sup...@lists.debian.org

 Hi,

 It seems to sh4 that multi-arch has broken.
 A problem sometimes occurs by the library corresponding to multi-arch.

 For example, A problem occurs in libmpc2_0.9-4 corresponding to multiarch.
 A problem does not occur in old  libmpc2_0.9-3.


 Have you tried to use libmpc2_0.9-3 manually moving the files to the
 multiarch path

This work.

 or libmpc2_0.9-4 manually moving the files to the
 non-multiarch path?

This does not work.

I understood that this was not a problem of multiarch. Sorry.


 Besides the multiarch path, the other big difference between versions
 0.9-3 and 0.9-4 is the use of CFLAGS, which means it has been built with
 something like:

 CFLAGS   = -g -O2 -fstack-protector --param=ssp-buffer-size=4 
 -D_FORTIFY_SOURCE=2 -Wformat -Wformat-security -Werror=format-security
 CPPFLAGS =
 CXXFLAGS = -g -O2 -fstack-protector --param=ssp-buffer-size=4 
 -D_FORTIFY_SOURCE=2 -Wformat -Wformat-security -Werror=format-security
 FFLAGS   = -g -O2
 LDFLAGS  = -Wl,-z,relro

I built a package with CFLAGS as only -g - O2 . However, the problem
was not settled.
Other libraries may be related.

Best regards,
  Nobuhiro

-- 
Nobuhiro Iwamatsu
   iwamatsu at {nigauri.org / debian.org}
   GPG ID: 40AD1FA6



--
To UNSUBSCRIBE, email to debian-glibc-requ...@lists.debian.org
with a subject of unsubscribe. Trouble? Contact listmas...@lists.debian.org
Archive: 
http://lists.debian.org/cabmqnvjsopbyvghbafxyzfyoapal_hbmm+emky+xe30kkke...@mail.gmail.com



Bug#645058: libc6: sh4: multiarch broken sometime

2011-10-12 Thread Nobuhiro Iwamatsu
Package: libc6
Version: 2.13-21
Severity: important
User: multiarch-de...@lists.alioth.debian.org
Usertags: multiarch
User: debian-...@superh.org
Usertags: sh4
X-Debbugs-CC: debian-sup...@lists.debian.org

Hi,

It seems to sh4 that multi-arch has broken.
A problem sometimes occurs by the library corresponding to multi-arch.

For example, A problem occurs in libmpc2_0.9-4 corresponding to multiarch.
A problem does not occur in old  libmpc2_0.9-3.

-
$ /usr/lib/gcc/sh4-linux-gnu/4.6.1/cc1
$ dpkg -l | grep  libmpc2
ii  libmpc2  0.9-3
multiple precision complex floating-point library
$ /usr/lib/gcc/sh4-linux-gnu/4.6.1/cc1
Segmentation fault (core dumped)
$ dpkg -l | grep  libmpc2
ii  libmpc2  0.9-4
multiple precision complex floating-point library
$ gdb /usr/lib/gcc/sh4-linux-gnu/4.6.1/cc1 core
GNU gdb (GDB) 7.1-debian
Copyright (C) 2010 Free Software Foundation, Inc.
License GPLv3+: GNU GPL version 3 or later http://gnu.org/licenses/gpl.html
This is free software: you are free to change and redistribute it.
There is NO WARRANTY, to the extent permitted by law.  Type show copying
and show warranty for details.
This GDB was configured as sh4-linux-gnu.
For bug reporting instructions, please see:
http://www.gnu.org/software/gdb/bugs/...
Reading symbols from /usr/lib/gcc/sh4-linux-gnu/4.6/cc1...(no
debugging symbols found)...done.
[New Thread 19413]

warning: Can't read pathname for load map: Input/output error.
Reading symbols from /usr/lib/sh4-linux-gnu/libmpc.so.2...(no
debugging symbols found)...done.
Loaded symbols for /usr/lib/sh4-linux-gnu/libmpc.so.2
Reading symbols from /usr/lib/sh4-linux-gnu/libmpfr.so.4...Reading
symbols from /usr/lib/debug/usr/lib/sh4-linux-gnu/libmpfr.so.4.1.0...done.
done.
Loaded symbols for /usr/lib/sh4-linux-gnu/libmpfr.so.4
Reading symbols from /usr/lib/sh4-linux-gnu/libgmp.so.10...(no
debugging symbols found)...done.
Loaded symbols for /usr/lib/sh4-linux-gnu/libgmp.so.10
Reading symbols from /lib/sh4-linux-gnu/libdl.so.2...(no debugging
symbols found)...done.
Loaded symbols for /lib/sh4-linux-gnu/libdl.so.2
Reading symbols from /usr/lib/libz.so.1...(no debugging symbols found)...done.
Loaded symbols for /usr/lib/libz.so.1
Reading symbols from /lib/sh4-linux-gnu/libc.so.6...(no debugging
symbols found)...done.
Loaded symbols for /lib/sh4-linux-gnu/libc.so.6
Reading symbols from /lib/ld-linux.so.2...(no debugging symbols found)...done.
Loaded symbols for /lib/ld-linux.so.2
Got object file from memory but can't read symbols: File format not recognized.
Core was generated by `/usr/lib/gcc/sh4-linux-gnu/4.6.1/cc1'.
Program terminated with signal 11, Segmentation fault.
#0  0x in ?? ()
(gdb) info sharedlibrary
FromTo  Syms Read   Shared Object Library
0x295adfa0  0x295bbdc0  Yes (*) /usr/lib/sh4-linux-gnu/libmpc.so.2
0x295d73a0  0x2965b740  Yes /usr/lib/sh4-linux-gnu/libmpfr.so.4
0x296788e0  0x296c8840  Yes (*) /usr/lib/sh4-linux-gnu/libgmp.so.10
0x296e2be0  0x296e3da0  Yes (*) /lib/sh4-linux-gnu/libdl.so.2
0x296f7ac0  0x297056a0  Yes (*) /usr/lib/libz.so.1
0x29730d20  0x29837800  Yes (*) /lib/sh4-linux-gnu/libc.so.6
0x29556900  0x2956eea8  Yes (*) /lib/ld-linux.so.2
(*): Shared library is missing debugging information.
(gdb) where
#0  0x in ?? ()
#1  0x296e299c in ?? () from /lib/sh4-linux-gnu/libdl.so.2
Backtrace stopped: previous frame identical to this frame (corrupt stack?)
-

It seems that the allocation is not operating normally.

Best regards,
 Nobuhiro

-- 
Nobuhiro Iwamatsu
   iwamatsu at {nigauri.org / debian.org}
   GPG ID: 40AD1FA6



-- 
Nobuhiro Iwamatsu
   iwamatsu at {nigauri.org / debian.org}
   GPG ID: 40AD1FA6



--
To UNSUBSCRIBE, email to debian-glibc-requ...@lists.debian.org
with a subject of unsubscribe. Trouble? Contact listmas...@lists.debian.org
Archive: 
http://lists.debian.org/cabmqnv++xy2xuovoth4vepzbdi9worx2akoayvbupcxn+ob...@mail.gmail.com



Re: Re: stlport5.2: FTBFS on armel: #error Weird WCHAR_MIN or WCHAR_MAX macro value.

2011-02-13 Thread Nobuhiro Iwamatsu
Hi,

 I'm thinking it's more likely a glibc bug, as I fail to see an apparent reason
 why WCHAR_MIN/MAX are defined different on each of these platforms. It
 probably has to be reassigned to eglibc, but I'm cross-posting this to the
 eglibc maintainers first.

I think too.
wchar_t is not handled in cpp. WCHAR_MAX becomes -1.

I updated patch of local-eabi-wchar.diff.
# This header was included by #444580.

Best regards,
  Nobuhiro

-- 
Nobuhiro Iwamatsu
   iwamatsu at {nigauri.org / debian.org}
   GPG ID: 40AD1FA6
http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=444580

Unlike other architectures, on Arm EABI, wchar_t is unsigned int.
thus the default glibc definitions are incorrect:

#define __WCHAR_MIN (-2147483647 - 1)
#define __WCHAR_MAX (2147483647)

This causes miscompilation of atleast libidn, and possibly other
packages that use gnulib tests that check the correctness of wchar_t.
The attached adds a eabi specific bits.h.

---
 ports/sysdeps/arm/eabi/bits/wchar.h |   26 ++
 1 file changed, 26 insertions(+)

--- /dev/null
+++ b/ports/sysdeps/arm/eabi/bits/wchar.h
@@ -0,0 +1,26 @@
+/* wchar_t type related definitions.
+   Copyright (C) 2000 Free Software Foundation, Inc.
+   This file is part of the GNU C Library.
+
+   The GNU C Library is free software; you can redistribute it and/or
+   modify it under the terms of the GNU Lesser General Public
+   License as published by the Free Software Foundation; either
+   version 2.1 of the License, or (at your option) any later version.
+
+   The GNU C Library is distributed in the hope that it will be useful,
+   but WITHOUT ANY WARRANTY; without even the implied warranty of
+   MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
+   Lesser General Public License for more details.
+
+   You should have received a copy of the GNU Lesser General Public
+   License along with the GNU C Library; if not, write to the Free
+   Software Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA
+   02111-1307 USA.  */
+
+#ifndef _BITS_WCHAR_H
+#define _BITS_WCHAR_H	1
+
+#define __WCHAR_MIN	( 0 )
+#define __WCHAR_MAX	( 4294967295 )
+
+#endif	/* bits/wchar.h */


Bug#612540: eglibc: quilt/patch does not support --unified-reject-files option

2011-02-08 Thread Nobuhiro Iwamatsu
Package: eglibc
Version: 2.13-0exp1
Severity: important

Hi,

From patch 2.6.1, --unified-reject-files option was removed.
But eglibc is using this in debian/quiltrc.
  
http://git.debian.org/?p=collab-maint/patch.git;a=commit;h=8aaa621c20a4b1828586609fcea797804afe1025

When this was set, eglibc FTBFS.

-
touch /home/iwamatsu/build-area/eglibc/eglibc-2.13/stamp-dir/info
Applying patches...
Applying patch locale/check-unknown-symbols.diff
patch: unrecognized option '--unified-reject-files'
patch: Try `patch --help' for more information.
Patch locale/check-unknown-symbols.diff does not apply (enforce with -f)
make: *** [/home/iwamatsu/build-area/eglibc/eglibc-2.13/stamp-dir/patch] Error 1
-

Please remove this.

Best regards,
  Nobuhiro

-- System Information:
Debian Release: 6.0
  APT prefers unstable
  APT policy: (500, 'unstable'), (1, 'experimental')
Architecture: amd64 (x86_64)

Kernel: Linux 2.6.32-5-amd64 (SMP w/2 CPU cores)
Locale: LANG=ja_JP.UTF-8, LC_CTYPE=ja_JP.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/bash



-- 
To UNSUBSCRIBE, email to debian-glibc-requ...@lists.debian.org
with a subject of unsubscribe. Trouble? Contact listmas...@lists.debian.org
Archive: http://lists.debian.org/20110209004909.10136.50323.reportbug@chimagu



Bug#612540: Acknowledgement (eglibc: quilt/patch does not support --unified-reject-files option)

2011-02-08 Thread Nobuhiro Iwamatsu
tags 612540 patch
thanks

Hi,

I attached the patch which revised this bug.

This change from --unified-reject-files to --reject-format=unified.

Best regards,
  Nobuhiro
-- 
Nobuhiro Iwamatsu
   iwamatsu at {nigauri.org / debian.org}
   GPG ID: 40AD1FA6
diff --git a/debian/quiltrc b/debian/quiltrc
index 504225b..5880eca 100644
--- a/debian/quiltrc
+++ b/debian/quiltrc
@@ -1,4 +1,4 @@
 QUILT_PATCHES=debian/patches
-QUILT_PATCH_OPTS=--unified-reject-files
+QUILT_PATCH_OPTS=--reject-format=unified
 QUILT_DIFF_ARGS=--no-timestamps --no-index
 QUILT_REFRESH_ARGS=-pab --no-timestamps --no-index --diffstat


Bug#604752: eglibc: [INTL:ja] Japanease translation of the debconf templates

2010-11-23 Thread Nobuhiro Iwamatsu
Package: eglibc
Severity: wishlist
Tags: l10n patch

Hi,

Please include the attached japanese debconf translation.
PO file reviewed by several Japanese Debian developers and users.

Best regards,
  Nobuhiro

-- 
Nobuhiro Iwamatsu
  iwamatsu at {nigauri.org / debian.org}
  GPG ID: 40AD1FA6
# Kenshi Muto km...@debian.org, 2007
# GOTO Masanori go...@debian.org, -2007
# Nobuhiro Iwamatsu iwama...@debian.org, 2010
#
#Translators, if you are not familiar with the PO format, gettext
#documentation is worth reading, especially sections dedicated to
#this format, e.g. by running:
# info -n '(gettext)PO Files'
# info -n '(gettext)Header Entry'
#
#Some information specific to po-debconf are available at
#/usr/share/doc/po-debconf/README-trans
# or http://www.debian.org/intl/l10n/po-debconf/README-trans
#
#Developers do not need to manually edit POT or PO files.
#
msgid 
msgstr 
Project-Id-Version: glibc 2.11.2-7\n
Report-Msgid-Bugs-To: gl...@packages.debian.org\n
POT-Creation-Date: 2009-03-08 15:23+0100\n
PO-Revision-Date: 2010-11-21 17:14+0900\n
Last-Translator: Nobuhiro Iwamatsu iwama...@debian.org\n
Language-Team: Japanese debian-japan...@lists.debian.org\n
MIME-Version: 1.0\n
Content-Type: text/plain; charset=UTF-8\n
Content-Transfer-Encoding: 8bit\n

#. Type: multiselect
#. Choices
#: ../debhelper.in/locales.templates:1001
msgid All locales
msgstr すべてのロケール

#. Type: multiselect
#. Description
#: ../debhelper.in/locales.templates:1002
msgid Locales to be generated:
msgstr 生成するロケールの選択:

#. Type: multiselect
#. Description
#: ../debhelper.in/locales.templates:1002
msgid Locales are a framework to switch between multiple languages and allow users to use their language, country, characters, collation order, etc.
msgstr ロケールとは、複数の言語を切り替え、ユーザが自身の言語・国・文字・並べ替え順序などを使えるように許可するための仕組みです。

#. Type: multiselect
#. Description
#: ../debhelper.in/locales.templates:1002
msgid Please choose which locales to generate. UTF-8 locales should be chosen by default, particularly for new installations. Other character sets may be useful for backwards compatibility with older systems and software.
msgstr 生成したいロケールを選択してください。UTF-8 ロケールは、特に新規にインストールしたものであれば、デフォルトで選択されているはずです。その他の文字セットは、より古いシステムおよびソフトウェアとの後方互換性のために役立つでしょう。

#. Type: select
#. Choices
#: ../debhelper.in/locales.templates:2001
msgid None
msgstr なし

#. Type: select
#. Description
#: ../debhelper.in/locales.templates:2002
msgid Default locale for the system environment:
msgstr システム標準の環境変数として設定するデフォルトロケール:

#. Type: select
#. Description
#: ../debhelper.in/locales.templates:2002
msgid Many packages in Debian use locales to display text in the correct language for the user. You can choose a default locale for the system from the generated locales.
msgstr ユーザに正しい言語でテキストを表示するため、Debian では多くのパッケージがロケールを使用します。生成したロケールの中からシステムでのデフォルトロケールを選択できます。

#. Type: select
#. Description
#: ../debhelper.in/locales.templates:2002
msgid This will select the default language for the entire system. If this system is a multi-user system where not all users are able to speak the default language, they will experience difficulties.
msgstr これはシステム全体のデフォルトロケールを選ぶことになります。このシステムがマルチユーザシステムで、すべてのユーザがデフォルトの言語を話すことができるというわけではない場合は、そういった人々は困難を感じることになってしまいます。

#. Type: boolean
#. Description
#: ../debhelper.in/libc.templates:1001
msgid Do you want to upgrade glibc now?
msgstr glibc を今更新しますか?

#. Type: boolean
#. Description
#: ../debhelper.in/libc.templates:1001
msgid Running services and programs that are using NSS need to be restarted, otherwise they might not be able to do lookup or authentication any more. The installation process is able to restart some services (such as ssh or telnetd), but other programs cannot be restarted automatically. One such program that needs manual stopping and restart after the glibc upgrade by yourself is xdm - because automatic restart might disconnect your active X11 sessions.
msgstr NSS を利用している実行中のサービスおよびプログラムは、再起動する必要があります。さもないと、ルックアップおよび認証がもう利用できないことになります。インストール手続きではいくつかのサービス (ssh や telnetd など) を再起動することができますが、その他のプログラムは自動では再起動されません。手動での停止および glibc の更新のあとにあなた自身で再起動する必要のあるそのようなプログラムの 1 つとしては、xdm があります。というのも、自動再起動はあなたのアクティブな X11 のセッションを閉じてしまうことになるからです。

#. Type: boolean
#. Description
#: ../debhelper.in/libc.templates:1001
msgid This script detected the following installed services which must be stopped before the upgrade: ${services}
msgstr スクリプトは、更新前に停止されなければならない以下のインストールされたサービスを検出しました: ${services}

#. Type: boolean
#. Description
#: ../debhelper.in/libc.templates:1001
msgid If you want to interrupt the upgrade now and continue later, please answer No to the question below.
msgstr 更新を今中止して後日続行したいのであれば、以下の質問で「いいえ」と答えてください。

#. Type: string
#. Description
#: ../debhelper.in/libc.templates:2001
msgid Services to restart for GNU libc library upgrade:
msgstr GNU libc ライブラリの更新で再起動するサービス:

#. Type: string
#. Description
#: ../debhelper.in/libc.templates:2001
msgid Running services and programs that are using NSS need

Bug#565369: eglibc: Please add __set_fpscr prototype

2010-01-15 Thread Nobuhiro Iwamatsu
Hi, Thomas.

2010/1/15 Thomas Schwinge tho...@schwinge.name:


 FYI: This has been submitted upstream already (but not yet applied, I
 think): http://sourceware.org/ml/libc-alpha/2009-12/msg7.html



I didnt check ML of glibc-alpha. Thank you.
I confirmed that Upstream didn’t yet apply it.
# Gentoo already applied this patch to glibc. (Patch submitter is
Gentoo Developer.)
But this patch is not enough. We cannot use _FPU_SETCW in C++ on SH.
I will confirm this in upstream.

Best regards,
  Nobuhiro

-- 
Nobuhiro Iwamatsu
   iwamatsu at {nigauri.org / debian.org}
   GPG ID: 40AD1FA6



--
To UNSUBSCRIBE, email to debian-glibc-requ...@lists.debian.org
with a subject of unsubscribe. Trouble? Contact listmas...@lists.debian.org



Bug#565369: eglibc: Please add __set_fpscr prototype

2010-01-14 Thread Nobuhiro Iwamatsu
Source: eglibc
Version: 2.10.2-5
Severity: important
Tags: patch
User: debian-...@superh.org
Usertags: sh4
X-Debbugs-CC: debian-sup...@lists.debian.org

Hi,

When we compile a  program that used _FPU_SETCW in sh4 in C++, we
become the error.
Because .
1.Current eglibc does not have prototype of __set_fpscr.
2. _FPU_SETCW is macro, and __set_fpscr function in libgcc.a is called.
When user use _FPU_SETCW in C++, user has build error. Because
extern C is not set to  __set_fpscr.

This is sh4 specific.

test program:
-
$ cat f.c
#include fpu_control.h
int main(void)
{
_FPU_SETCW(0);
return 0;
}
-

build log: (failed)
-
$ g++ -o f f.c -Wl,-t
/usr/bin/ld: mode shlelf_linux
/usr/lib/gcc/sh4-linux-gnu/4.4.2/../../../crt1.o
/usr/lib/gcc/sh4-linux-gnu/4.4.2/../../../crti.o
/usr/lib/gcc/sh4-linux-gnu/4.4.2/crtbegin.o
/tmp/ccZX5ufD.o
-lstdc++ (/usr/lib/gcc/sh4-linux-gnu/4.4.2/libstdc++.so)
-lm (/usr/lib/gcc/sh4-linux-gnu/4.4.2/../../../libm.so)
libgcc_s.so.1 (/usr/lib/gcc/sh4-linux-gnu/4.4.2/libgcc_s.so.1)
/lib/libc.so.6
(/usr/lib/libc_nonshared.a)elf-init.oS
/lib/ld-linux.so.2
libgcc_s.so.1 (/usr/lib/gcc/sh4-linux-gnu/4.4.2/libgcc_s.so.1)
/usr/lib/gcc/sh4-linux-gnu/4.4.2/crtend.o
/usr/lib/gcc/sh4-linux-gnu/4.4.2/../../../crtn.o
/tmp/ccZX5ufD.o: In function `main':
f.c:(.text+0x24): undefined reference to `__set_fpscr(unsigned long)'
/usr/bin/ld: link errors found, deleting executable `f'
collect2: ld returned 1 exit status
-

build log: (success. After applied the patch which I attached.)
-
$ g++ -o f f.c -Wl,-t
/usr/bin/ld: mode shlelf_linux
/usr/lib/gcc/sh4-linux-gnu/4.4.2/../../../crt1.o
/usr/lib/gcc/sh4-linux-gnu/4.4.2/../../../crti.o
/usr/lib/gcc/sh4-linux-gnu/4.4.2/crtbegin.o
/tmp/ccu0OHaQ.o
-lstdc++ (/usr/lib/gcc/sh4-linux-gnu/4.4.2/libstdc++.so)
-lm (/usr/lib/gcc/sh4-linux-gnu/4.4.2/../../../libm.so)
libgcc_s.so.1 (/usr/lib/gcc/sh4-linux-gnu/4.4.2/libgcc_s.so.1)
(/usr/lib/gcc/sh4-linux-gnu/4.4.2/libgcc.a)_set_fpscr.o
/lib/libc.so.6
(/usr/lib/libc_nonshared.a)elf-init.oS
/lib/ld-linux.so.2
libgcc_s.so.1 (/usr/lib/gcc/sh4-linux-gnu/4.4.2/libgcc_s.so.1)
/usr/lib/gcc/sh4-linux-gnu/4.4.2/crtend.o
/usr/lib/gcc/sh4-linux-gnu/4.4.2/../../../crtn.o
-

I made a patch to solve this problem. Could you apply this patch?
I apply extern C to only __set_fpscr with patch. Should I apply
the whole file in this?

Best regards,
 Nobuhiro

-- 
Nobuhiro Iwamatsu
   iwamatsu at {nigauri.org / debian.org}
   GPG ID: 40AD1FA6
--- a/sysdeps/sh/sh4/fpu/fpu_control.h  2006-08-17 10:18:26.0 +0900
+++ b/sysdeps/sh/sh4/fpu/fpu_control.h  2010-01-15 15:31:04.0 +0900
@@ -45,6 +45,14 @@
 #define _FPU_GETCW(cw) __asm__ (sts fpscr,%0 : =r (cw))
 
 #if defined __GNUC__
+/* Allow the use in C++ code.  */
+#ifdef __cplusplus
+extern C {
+#endif
+extern void __set_fpscr(unsigned long);
+#ifdef __cplusplus
+}
+#endif  /* C++ */
 #define _FPU_SETCW(cw) __set_fpscr ((cw))
 #else
 #define _FPU_SETCW(cw) __asm__ (lds %0,fpscr : : r (cw))


Bug#552407: eglibc: sh: build timeout in /localedata/tst_wcstod.out

2009-11-13 Thread Nobuhiro Iwamatsu
Hi,

On Fri, 13 Nov 2009 10:31:22 +0100
Aurelien Jarno aurel...@aurel32.net wrote:

 On Fri, Nov 13, 2009 at 02:24:04PM +0900, Nobuhiro Iwamatsu wrote:
  tags 552407 + patch
  thanks
  
  Hi,
 
 Hi,
 
  This problem is revised with the patch which I attached.
  Could you apply it?
  
 
 I have applied the upstream version instead, which contains your patch,
 and the same change to sub_ddmmss. It will be in the next upload.
 
I checked upstream, too.
Thank you.

Nobuhiro




-- 
Nobuhiro Iwamatsu / Debian Developer
GPG ID: 3170EBE9 / 40AD1FA6



-- 
To UNSUBSCRIBE, email to debian-glibc-requ...@lists.debian.org
with a subject of unsubscribe. Trouble? Contact listmas...@lists.debian.org



Bug#552407: eglibc: sh: build timeout in /localedata/tst_wcstod.out

2009-11-12 Thread Nobuhiro Iwamatsu
tags 552407 + patch
thanks

Hi,

This problem is revised with the patch which I attached.
Could you apply it?

Best regards,
  Nobuhiro

2009/10/26 Nobuhiro Iwamatsu iwama...@nigauri.org:
 Package: eglibc
 Version: 2.10.1-2
 Severity: important
 User: debian-...@superh.org
 Usertags: sh4
 X-Debbugs-CC: debian-sup...@lists.debian.org

 Hi,

 I am now trying to run Debian on Renesas SH CPU(sh4).
 eglibc 2.10.1-1 and 2.10.1-2 FTBFS on sh4.

 http://buildd.debian-ports.org/fetch.php?pkg=eglibcarch=sh4ver=2.10.1-2stamp=1256516165file=logas=raw

 -
 ..
 gcc-4.4 -nostdlib -nostartfiles -o
 /build/buildd-eglibc_2.10.1-2-sh4-YBvR9S/eglibc-2.10.1/build-tree/sh4-libc/localedata/tst_wcstod
  -Wl,-dynamic-linker=/lib/ld-linux.so.2   -Wl,-z,combreloc
 -Wl,-z,relro -Wl,--hash-style=both
 /build/buildd-eglibc_2.10.1-2-sh4-YBvR9S/eglibc-2.10.1/build-tree/sh4-libc/csu/crt1.o
 /build/buildd-eglibc_2.10.1-2-sh4-YBvR9S/eglibc-2.10.1/build-tree/sh4-libc/csu/crti.o
 `gcc-4.4 --print-file-name=crtbegin.o`
 /build/buildd-eglibc_2.10.1-2-sh4-YBvR9S/eglibc-2.10.1/build-tree/sh4-libc/localedata/tst_wcstod.o
  -Wl,-rpath-link=/build/buildd-eglibc_2.10.1-2-sh4-YBvR9S/eglibc-2.10.1/build-tree/sh4-libc:/build/buildd-eglibc_2.10.1-2-sh4-YBvR9S/eglibc-2.10.1/build-tree/sh4-libc/math:/build/buildd-eglibc_2.10.1-2-sh4-YBvR9S/eglibc-2.10.1/build-tree/sh4-libc/elf:/build/buildd-eglibc_2.10.1-2-sh4-YBvR9S/eglibc-2.10.1/build-tree/sh4-libc/dlfcn:/build/buildd-eglibc_2.10.1-2-sh4-YBvR9S/eglibc-2.10.1/build-tree/sh4-libc/nss:/build/buildd-eglibc_2.10.1-2-sh4-YBvR9S/eglibc-2.10.1/build-tree/sh4-libc/nis:/build/buildd-eglibc_2.10.1-2-sh4-YBvR9S/eglibc-2.10.1/build-tree/sh4-libc/rt:/build/buildd-eglibc_2.10.1-2-sh4-YBvR9S/eglibc-2.10.1/build-tree/sh4-libc/resolv:/build/buildd-eglibc_2.10.1-2-sh4-YBvR9S/eglibc-2.10.1/build-tree/sh4-libc/crypt:/build/buildd-eglibc_2.10.1-2-sh4-YBvR9S/eglibc-2.10.1/build-tree/sh4-libc/nptl
 /build/buildd-eglibc_2.10.1-2-sh4-YBvR9S/eglibc-2.10.1/build-tree/sh4-libc/libc.so.6
 /build/buildd-eglibc_2.10.1-2-sh4-YBvR9S/eglibc-2.10.1/build-tree/sh4-libc/libc_nonshared.a
 -lgcc -Wl,--as-needed -lgcc_s  -Wl,--no-as-needed `gcc-4.4
 --print-file-name=crtend.o`
 /build/buildd-eglibc_2.10.1-2-sh4-YBvR9S/eglibc-2.10.1/build-tree/sh4-libc/csu/crtn.o
 GCONV_PATH=/build/buildd-eglibc_2.10.1-2-sh4-YBvR9S/eglibc-2.10.1/build-tree/sh4-libc/iconvdata
 LC_ALL=C 
 LOCPATH=/build/buildd-eglibc_2.10.1-2-sh4-YBvR9S/eglibc-2.10.1/build-tree/sh4-libc/localedata
   
 /build/buildd-eglibc_2.10.1-2-sh4-YBvR9S/eglibc-2.10.1/build-tree/sh4-libc/elf/ld-linux.so.2
 --library-path 
 /build/buildd-eglibc_2.10.1-2-sh4-YBvR9S/eglibc-2.10.1/build-tree/sh4-libc:/build/buildd-eglibc_2.10.1-2-sh4-YBvR9S/eglibc-2.10.1/build-tree/sh4-libc/math:/build/buildd-eglibc_2.10.1-2-sh4-YBvR9S/eglibc-2.10.1/build-tree/sh4-libc/elf:/build/buildd-eglibc_2.10.1-2-sh4-YBvR9S/eglibc-2.10.1/build-tree/sh4-libc/dlfcn:/build/buildd-eglibc_2.10.1-2-sh4-YBvR9S/eglibc-2.10.1/build-tree/sh4-libc/nss:/build/buildd-eglibc_2.10.1-2-sh4-YBvR9S/eglibc-2.10.1/build-tree/sh4-libc/nis:/build/buildd-eglibc_2.10.1-2-sh4-YBvR9S/eglibc-2.10.1/build-tree/sh4-libc/rt:/build/buildd-eglibc_2.10.1-2-sh4-YBvR9S/eglibc-2.10.1/build-tree/sh4-libc/resolv:/build/buildd-eglibc_2.10.1-2-sh4-YBvR9S/eglibc-2.10.1/build-tree/sh4-libc/crypt:/build/buildd-eglibc_2.10.1-2-sh4-YBvR9S/eglibc-2.10.1/build-tree/sh4-libc/nptl
 /build/buildd-eglibc_2.10.1-2-sh4-YBvR9S/eglibc-2.10.1/build-tree/sh4-libc/localedata/tst_wcstod
   
 /build/buildd-eglibc_2.10.1-2-sh4-YBvR9S/eglibc-2.10.1/build-tree/sh4-libc/localedata/tst_wcstod.out
 make: *** wait: No child processes.  Stop.
 -

 I tested by gcc-4.3_4.3.4-5  and gcc-4.4_4.4.1-6. But both have the
 same problem.
 And I set 3000 to stalled_pkg_timeout of value in .sbuildrc.

--- a/stdlib/longlong.h.orig	2009-11-11 17:49:42.0 +0900
+++ b/stdlib/longlong.h	2009-11-11 17:49:57.0 +0900
@@ -918,7 +918,7 @@
 	or r1,%0			\
 	: =r (q), =z (r)		\
 	: 1 (n1), r (n0), rm (d), r (__udiv_qrnnd_16)		\
-	: r1, r2, r4, r5, r6, pr);\
+	: r1, r2, r4, r5, r6, pr, t);\
   } while (0)
 
 #define UDIV_TIME 80


Bug#552407: eglibc: sh: build timeout in /localedata/tst_wcstod.out

2009-10-25 Thread Nobuhiro Iwamatsu
Package: eglibc
Version: 2.10.1-2
Severity: important
User: debian-...@superh.org
Usertags: sh4
X-Debbugs-CC: debian-sup...@lists.debian.org

Hi,

I am now trying to run Debian on Renesas SH CPU(sh4).
eglibc 2.10.1-1 and 2.10.1-2 FTBFS on sh4.

http://buildd.debian-ports.org/fetch.php?pkg=eglibcarch=sh4ver=2.10.1-2stamp=1256516165file=logas=raw

-
..
gcc-4.4 -nostdlib -nostartfiles -o
/build/buildd-eglibc_2.10.1-2-sh4-YBvR9S/eglibc-2.10.1/build-tree/sh4-libc/localedata/tst_wcstod
 -Wl,-dynamic-linker=/lib/ld-linux.so.2   -Wl,-z,combreloc
-Wl,-z,relro -Wl,--hash-style=both
/build/buildd-eglibc_2.10.1-2-sh4-YBvR9S/eglibc-2.10.1/build-tree/sh4-libc/csu/crt1.o
/build/buildd-eglibc_2.10.1-2-sh4-YBvR9S/eglibc-2.10.1/build-tree/sh4-libc/csu/crti.o
`gcc-4.4 --print-file-name=crtbegin.o`
/build/buildd-eglibc_2.10.1-2-sh4-YBvR9S/eglibc-2.10.1/build-tree/sh4-libc/localedata/tst_wcstod.o
 
-Wl,-rpath-link=/build/buildd-eglibc_2.10.1-2-sh4-YBvR9S/eglibc-2.10.1/build-tree/sh4-libc:/build/buildd-eglibc_2.10.1-2-sh4-YBvR9S/eglibc-2.10.1/build-tree/sh4-libc/math:/build/buildd-eglibc_2.10.1-2-sh4-YBvR9S/eglibc-2.10.1/build-tree/sh4-libc/elf:/build/buildd-eglibc_2.10.1-2-sh4-YBvR9S/eglibc-2.10.1/build-tree/sh4-libc/dlfcn:/build/buildd-eglibc_2.10.1-2-sh4-YBvR9S/eglibc-2.10.1/build-tree/sh4-libc/nss:/build/buildd-eglibc_2.10.1-2-sh4-YBvR9S/eglibc-2.10.1/build-tree/sh4-libc/nis:/build/buildd-eglibc_2.10.1-2-sh4-YBvR9S/eglibc-2.10.1/build-tree/sh4-libc/rt:/build/buildd-eglibc_2.10.1-2-sh4-YBvR9S/eglibc-2.10.1/build-tree/sh4-libc/resolv:/build/buildd-eglibc_2.10.1-2-sh4-YBvR9S/eglibc-2.10.1/build-tree/sh4-libc/crypt:/build/buildd-eglibc_2.10.1-2-sh4-YBvR9S/eglibc-2.10.1/build-tree/sh4-libc/nptl
/build/buildd-eglibc_2.10.1-2-sh4-YBvR9S/eglibc-2.10.1/build-tree/sh4-libc/libc.so.6
/build/buildd-eglibc_2.10.1-2-sh4-YBvR9S/eglibc-2.10.1/build-tree/sh4-libc/libc_nonshared.a
-lgcc -Wl,--as-needed -lgcc_s  -Wl,--no-as-needed `gcc-4.4
--print-file-name=crtend.o`
/build/buildd-eglibc_2.10.1-2-sh4-YBvR9S/eglibc-2.10.1/build-tree/sh4-libc/csu/crtn.o
GCONV_PATH=/build/buildd-eglibc_2.10.1-2-sh4-YBvR9S/eglibc-2.10.1/build-tree/sh4-libc/iconvdata
LC_ALL=C 
LOCPATH=/build/buildd-eglibc_2.10.1-2-sh4-YBvR9S/eglibc-2.10.1/build-tree/sh4-libc/localedata
   
/build/buildd-eglibc_2.10.1-2-sh4-YBvR9S/eglibc-2.10.1/build-tree/sh4-libc/elf/ld-linux.so.2
--library-path 
/build/buildd-eglibc_2.10.1-2-sh4-YBvR9S/eglibc-2.10.1/build-tree/sh4-libc:/build/buildd-eglibc_2.10.1-2-sh4-YBvR9S/eglibc-2.10.1/build-tree/sh4-libc/math:/build/buildd-eglibc_2.10.1-2-sh4-YBvR9S/eglibc-2.10.1/build-tree/sh4-libc/elf:/build/buildd-eglibc_2.10.1-2-sh4-YBvR9S/eglibc-2.10.1/build-tree/sh4-libc/dlfcn:/build/buildd-eglibc_2.10.1-2-sh4-YBvR9S/eglibc-2.10.1/build-tree/sh4-libc/nss:/build/buildd-eglibc_2.10.1-2-sh4-YBvR9S/eglibc-2.10.1/build-tree/sh4-libc/nis:/build/buildd-eglibc_2.10.1-2-sh4-YBvR9S/eglibc-2.10.1/build-tree/sh4-libc/rt:/build/buildd-eglibc_2.10.1-2-sh4-YBvR9S/eglibc-2.10.1/build-tree/sh4-libc/resolv:/build/buildd-eglibc_2.10.1-2-sh4-YBvR9S/eglibc-2.10.1/build-tree/sh4-libc/crypt:/build/buildd-eglibc_2.10.1-2-sh4-YBvR9S/eglibc-2.10.1/build-tree/sh4-libc/nptl
/build/buildd-eglibc_2.10.1-2-sh4-YBvR9S/eglibc-2.10.1/build-tree/sh4-libc/localedata/tst_wcstod
  /build/buildd-eglibc_2.10.1-2-sh4-YBvR9S/eglibc-2.10.1/build-tree/sh4-libc/localedata/tst_wcstod.out
make: *** wait: No child processes.  Stop.
-

I tested by gcc-4.3_4.3.4-5  and gcc-4.4_4.4.1-6. But both have the
same problem.
And I set 3000 to stalled_pkg_timeout of value in .sbuildrc.


ii  gcc-4.4   4.4.1-6The
GNU C compiler
ii  gcc-4.3   4.3.4-5The
GNU C compiler
ii  binutils  2.20-1+sh4 The
GNU assembler, linker and binary utiliti
ii  libc-bin  2.9-27 GNU C
Library: Binaries
ii  libc-dev-bin  2.9-27 GNU C
Library: Development binaries
ii  libc6 2.9-27 GNU C
Library: Shared libraries
ii  libc6-dev 2.9-27 GNU C
Library: Development Libraries and Hea
ii  linux-libc-dev2.6.30-6+sh4   Linux
support headers for userspace developm


Let me know if you want more info.

Best regards,
  Nobuhiro


-- 
Nobuhiro Iwamatsu



--
To UNSUBSCRIBE, email to debian-glibc-requ...@lists.debian.org
with a subject of unsubscribe. Trouble? Contact listmas...@lists.debian.org



Bug#536199: eglibc: Please add sysdeps/sh4.mk

2009-07-08 Thread Nobuhiro Iwamatsu
Package: eglibc
Version: 2.9-18
Severity: wishlist
Tags: patch
X-Debbugs-CC: debian-sup...@lists.debian.org

Hi,

When built the sh4 architecture with current eglibc versio,
NTPL does not enable.
And Renesas SH enabled -ffinte-math-only, but some software
need glibc built in -mieee.
Therefore, I added -mieee to CFLAGS.

Would you please apply it?

Best regards,
 Nobuhiro

-- System Information:
Debian Release: squeeze/sid
  APT prefers unstable
  APT policy: (500, 'unstable')
Architecture: amd64 (x86_64)

Kernel: Linux 2.6.29-1-amd64 (SMP w/4 CPU cores)
Locale: LANG=ja_JP.UTF-8, LC_CTYPE=ja_JP.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/bash
--- /dev/null	2009-06-28 20:39:19.899845890 +0900
+++ ./debian/sysdeps/sh4.mk	2009-07-07 10:36:26.0 +0900
@@ -0,0 +1,3 @@
+libc_add-ons = ports nptl $(add-ons)
+# Renesas SH enabled -ffinte-math-only. Some software need -mieee.
+extra_cflags = -mieee


Bug#532385: eglibc: FTBFS: build fail on Renesas SH

2009-06-08 Thread Nobuhiro Iwamatsu
Package: eglibc
Version: 2.9-13
Severity: wishlist
Tags: patch
X-Debbugs-CC: debian-sup...@lists.debian.org

Hi,

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

Current source code can not build package.
because the change of the linux kernel header is not reflected to eglibc.

-
snip
In file included from ../sysdeps/unix/sysv/linux/sh/sys/procfs.h:31,
 from ../nptl/../nptl_db/thread_db.h:29,
 from ../nptl/descr.h:33,
 from ../nptl/sysdeps/sh/tls.h:87,
 from ../include/tls.h:6,
 from ../sysdeps/unix/sysv/linux/sh/sysdep.h:27,
 from ../sysdeps/unix/sysv/linux/sh/sh4/sysdep.h:4,
 from stdin:1:
snip
-

I made a patch to support SH.
Would you please apply it?

Best regards,
 Nobuhiro

-- System Information:
Debian Release: squeeze/sid
  APT prefers unstable
  APT policy: (500, 'unstable')
Architecture: amd64 (x86_64)

Kernel: Linux 2.6.29-1-amd64 (SMP w/4 CPU cores)
Locale: LANG=ja_JP.UTF-8, LC_CTYPE=ja_JP.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/bash


-- 
Nobuhiro Iwamatsu
diff -urN -Xx a/sysdeps/unix/sysv/linux/sh/sys/procfs.h b/sysdeps/unix/sysv/linux/sh/sys/procfs.h
--- a/sysdeps/unix/sysv/linux/sh/sys/procfs.h	2009-05-22 11:04:22.0 +0900
+++ b/sysdeps/unix/sysv/linux/sh/sys/procfs.h	2009-05-22 12:48:23.0 +0900
@@ -1,4 +1,4 @@
-/* Copyright (C) 1996, 1997, 1999, 2004 Free Software Foundation, Inc.
+/* Copyright (C) 1996, 1997, 1999, 2004, 2009 Free Software Foundation, Inc.
This file is part of the GNU C Library.
 
The GNU C Library is free software; you can redistribute it and/or
@@ -24,12 +24,9 @@
used on Linux.  */
 
 #include features.h
-#include signal.h
 #include sys/time.h
 #include sys/types.h
-#include sys/ucontext.h
 #include sys/user.h
-#include asm/elf.h
 
 __BEGIN_DECLS
 
diff -urN -Xx a/sysdeps/unix/sysv/linux/sh/sys/user.h b/sysdeps/unix/sysv/linux/sh/sys/user.h
--- a/sysdeps/unix/sysv/linux/sh/sys/user.h	2009-05-22 11:04:22.0 +0900
+++ bsysdeps/unix/sysv/linux/sh/sys/user.h	2009-05-22 12:48:23.0 +0900
@@ -19,10 +19,51 @@
 #ifndef _SYS_USER_H
 #define _SYS_USER_H	1
 
-#include features.h
+#include asm/ptrace.h
 
-#include asm/user.h
+/* asm/ptrace.h polutes the namespace.  */
+#undef PTRACE_GETREGS
+#undef PTRACE_SETREGS
+#undef PTRACE_GETFPREGS
+#undef PTRACE_SETFPREGS
+#undef PTRACE_GETFDPIC
+#undef PTRACE_GETFDPIC_EXEC
+#undef PTRACE_GETFDPIC_INTERP
+#undef	PTRACE_GETDSPREGS
+#undef	PTRACE_SETDSPREGS
 
-#undef start_thread
+typedef unsigned long elf_greg_t;
+
+#define ELF_NGREG (sizeof (struct pt_regs) / sizeof (elf_greg_t))
+typedef elf_greg_t elf_gregset_t[ELF_NGREG];
+
+struct user_fpu_struct
+  {
+unsigned long fp_regs[16];
+unsigned long xfp_regs[16];
+unsigned long fpscr;
+unsigned long fpul;
+  };
+typedef struct user_fpu_struct elf_fpregset_t;
+
+struct user
+  {
+struct pt_regs		regs;		/* entire machine state */
+struct user_fpu_struct	fpu;		/* Math Co-processor
+		   registers  */
+intu_fpvalid;	/* True if math co-processor
+		   being used */
+size_t			u_tsize;	/* text size (pages) */
+size_t			u_dsize;	/* data size (pages) */
+size_t			u_ssize;	/* stack size (pages) */
+unsigned long		start_code;	/* text starting address */
+unsigned long		start_data;	/* data starting address */
+unsigned long		start_stack;	/* stack starting address */
+long int			signal;		/* signal causing core dump */
+unsigned long		u_ar0;		/* help gdb find registers */
+struct user_fpu_struct	*u_fpstate;	/* Math Co-processor pointer */
+unsigned long		magic;		/* identifies a core file */
+char			u_comm[32];	/* user command name */
+  };
 
 #endif  /* sys/user.h */


Bug#429256: linux-kernel-headers: Support SH4 target

2007-06-16 Thread Nobuhiro Iwamatsu

Subject: linux-kernel-headers: Support SH4 target
Package: linux-kernel-headers
Version: 2.6.18-7
Severity: wishlist
Tags: patch

Could you please apply the following patch?
This patch is to support SH4 target.

regards,
Nobuhiro

-- System Information:
Debian Release: lenny/sid
 APT prefers unstable
 APT policy: (500, 'unstable')
Architecture: i386 (i686)

Kernel: Linux 2.6.20.3 (SMP w/2 CPU cores; PREEMPT)
Locale: LANG=ja_JP.UTF-8, LC_CTYPE=ja_JP.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/bash

-- no debconf information


--
Nobuhiro Iwamatsu
[EMAIL PROTECTED]
[EMAIL PROTECTED]
GPG ID : 3170EBE9
diff -urN a/autoconfs/autoconf-sh4.h b/autoconfs/autoconf-sh4.h
--- a/autoconfs/autoconf-sh4.h	1970-01-01 00:00:00.0 +
+++ b/autoconfs/autoconf-sh4.h	2007-06-16 01:31:48.0 +
@@ -0,0 +1,866 @@
+/*
+ * Automatically generated C config: don't edit
+ * Linux kernel version: 2.6.13-rc3
+ * Fri Jul 22 13:49:57 2005
+ */
+#define AUTOCONF_INCLUDED
+#define CONFIG_SUPERH 1
+#define CONFIG_UID16 1
+#define CONFIG_RWSEM_GENERIC_SPINLOCK 1
+#define CONFIG_GENERIC_HARDIRQS 1
+#define CONFIG_GENERIC_IRQ_PROBE 1
+#define CONFIG_GENERIC_CALIBRATE_DELAY 1
+
+/*
+ * Code maturity level options
+ */
+#define CONFIG_EXPERIMENTAL 1
+#define CONFIG_CLEAN_COMPILE 1
+#define CONFIG_BROKEN_ON_SMP 1
+#define CONFIG_INIT_ENV_ARG_LIMIT 32
+
+/*
+ * General setup
+ */
+#define CONFIG_LOCALVERSION 
+#define CONFIG_SWAP 1
+#define CONFIG_SYSVIPC 1
+#undef CONFIG_POSIX_MQUEUE
+#undef CONFIG_BSD_PROCESS_ACCT
+#define CONFIG_SYSCTL 1
+#undef CONFIG_AUDIT
+#define CONFIG_HOTPLUG 1
+#define CONFIG_KOBJECT_UEVENT 1
+#undef CONFIG_IKCONFIG
+#define CONFIG_EMBEDDED 1
+#define CONFIG_KALLSYMS 1
+#undef CONFIG_KALLSYMS_EXTRA_PASS
+#define CONFIG_PRINTK 1
+#define CONFIG_BUG 1
+#define CONFIG_BASE_FULL 1
+#define CONFIG_FUTEX 1
+#define CONFIG_EPOLL 1
+#undef CONFIG_CC_OPTIMIZE_FOR_SIZE
+#define CONFIG_SHMEM 1
+#define CONFIG_CC_ALIGN_FUNCTIONS 0
+#define CONFIG_CC_ALIGN_LABELS 0
+#define CONFIG_CC_ALIGN_LOOPS 0
+#define CONFIG_CC_ALIGN_JUMPS 0
+#undef CONFIG_TINY_SHMEM
+#define CONFIG_BASE_SMALL 0
+
+/*
+ * Loadable module support
+ */
+#define CONFIG_MODULES 1
+#undef CONFIG_MODULE_UNLOAD
+#define CONFIG_OBSOLETE_MODPARM 1
+#undef CONFIG_MODVERSIONS
+#undef CONFIG_MODULE_SRCVERSION_ALL
+#undef CONFIG_KMOD
+
+/*
+ * System type
+ */
+#undef CONFIG_SH_SOLUTION_ENGINE
+#undef CONFIG_SH_7751_SOLUTION_ENGINE
+#undef CONFIG_SH_7300_SOLUTION_ENGINE
+#undef CONFIG_SH_73180_SOLUTION_ENGINE
+#undef CONFIG_SH_7751_SYSTEMH
+#undef CONFIG_SH_STB1_HARP
+#undef CONFIG_SH_STB1_OVERDRIVE
+#undef CONFIG_SH_HP620
+#undef CONFIG_SH_HP680
+#undef CONFIG_SH_HP690
+#undef CONFIG_SH_CQREEK
+#undef CONFIG_SH_DMIDA
+#undef CONFIG_SH_EC3104
+#undef CONFIG_SH_SATURN
+#undef CONFIG_SH_DREAMCAST
+#undef CONFIG_SH_CAT68701
+#undef CONFIG_SH_BIGSUR
+#undef CONFIG_SH_SH2000
+#undef CONFIG_SH_ADX
+#undef CONFIG_SH_MPC1211
+#undef CONFIG_SH_SH03
+#undef CONFIG_SH_SECUREEDGE5410
+#undef CONFIG_SH_HS7751RVOIP
+#define CONFIG_SH_RTS7751R2D 1
+#undef CONFIG_SH_EDOSK7705
+#undef CONFIG_SH_SH4202_MICRODEV
+#undef CONFIG_SH_UNKNOWN
+#undef CONFIG_CPU_SH2
+#undef CONFIG_CPU_SH3
+#define CONFIG_CPU_SH4 1
+#undef CONFIG_CPU_SUBTYPE_SH7604
+#undef CONFIG_CPU_SUBTYPE_SH7300
+#undef CONFIG_CPU_SUBTYPE_SH7705
+#undef CONFIG_CPU_SUBTYPE_SH7707
+#undef CONFIG_CPU_SUBTYPE_SH7708
+#undef CONFIG_CPU_SUBTYPE_SH7709
+#undef CONFIG_CPU_SUBTYPE_SH7750
+#define CONFIG_CPU_SUBTYPE_SH7751 1
+#undef CONFIG_CPU_SUBTYPE_SH7760
+#undef CONFIG_CPU_SUBTYPE_SH73180
+#undef CONFIG_CPU_SUBTYPE_ST40STB1
+#undef CONFIG_CPU_SUBTYPE_ST40GX1
+#undef CONFIG_CPU_SUBTYPE_SH4_202
+#define CONFIG_MMU 1
+#define CONFIG_CMDLINE_BOOL 1
+#define CONFIG_CMDLINE mem=64M console=ttySC0,115200 root=/dev/hda1
+#define CONFIG_MEMORY_START 0x0c00
+#define CONFIG_MEMORY_SIZE 0x0400
+#define CONFIG_MEMORY_SET 1
+#undef CONFIG_MEMORY_OVERRIDE
+#define CONFIG_SH_RTC 1
+#define CONFIG_SH_FPU 1
+#define CONFIG_SELECT_MEMORY_MODEL 1
+#define CONFIG_FLATMEM_MANUAL 1
+#undef CONFIG_DISCONTIGMEM_MANUAL
+#undef CONFIG_SPARSEMEM_MANUAL
+#define CONFIG_FLATMEM 1
+#define CONFIG_FLAT_NODE_MEM_MAP 1
+#define CONFIG_ZERO_PAGE_OFFSET 0x0001
+#define CONFIG_BOOT_LINK_OFFSET 0x0080
+#define CONFIG_CPU_LITTLE_ENDIAN 1
+#undef CONFIG_PREEMPT
+#undef CONFIG_UBC_WAKEUP
+#undef CONFIG_SH_WRITETHROUGH
+#undef CONFIG_SH_OCRAM
+#undef CONFIG_SH_STORE_QUEUES
+#undef CONFIG_SMP
+#define CONFIG_RTS7751R2D_REV11 1
+#define CONFIG_SH_PCLK_CALC 1
+#define CONFIG_SH_PCLK_FREQ 6000
+
+/*
+ * CPU Frequency scaling
+ */
+#undef CONFIG_CPU_FREQ
+
+/*
+ * DMA support
+ */
+#define CONFIG_SH_DMA 1
+#define CONFIG_NR_ONCHIP_DMA_CHANNELS 8
+#undef CONFIG_NR_DMA_CHANNELS_BOOL
+
+/*
+ * Companion Chips
+ */
+#define CONFIG_VOYAGERGX 1
+#undef CONFIG_HD6446X_SERIES
+#define CONFIG_HEARTBEAT 1
+#define CONFIG_RTC_9701JE 1
+
+/*
+ * Bus options (PCI, PCMCIA, EISA, MCA, ISA)
+ */
+#define CONFIG_PCI 1