We need the below patch to compile properly, please include in linux-headers Reproducible: Always Steps to Reproduce: emerge gpm emerge kbd # emerge info Portage 2.0.51.22-r2 (default-linux/sh, gcc-3.4.3, glibc-2.3.4.20041102-r2, 2.6.12-sh sh4) ================================================================= System uname: 2.6.12-sh sh4 Gentoo Base System version 1.6.13 ccache version 2.3 [enabled] dev-lang/python: 2.3.5 sys-apps/sandbox: 1.2.11 sys-devel/autoconf: 2.13, 2.59-r6 sys-devel/automake: 1.4_p6, 1.5, 1.6.3, 1.7.9-r1, 1.8.5-r3, 1.9.5 sys-devel/binutils: 2.15.92.0.2-r10 sys-devel/libtool: 1.5.18-r1 virtual/os-headers: 2.6.11-r2 ACCEPT_KEYWORDS="sh" AUTOCLEAN="yes" CBUILD="sh4-unknown-linux-gnu" CFLAGS="-O2" CHOST="sh4-unknown-linux-gnu" CONFIG_PROTECT="/etc /usr/kde/2/share/config /usr/kde/3/share/config /usr/share/config /var/qmail/control" CONFIG_PROTECT_MASK="/etc/gconf /etc/terminfo /etc/env.d" CXXFLAGS="-O2" DISTDIR="/usr/portage/distfiles" FEATURES="autoconfig ccache distlocks sfperms strict" GENTOO_MIRRORS="http://distfiles.gentoo.org http://distro.ibiblio.org/pub/Linux/distributions/gentoo" PKGDIR="/usr/portage/packages" PORTAGE_TMPDIR="/var/tmp" PORTDIR="/usr/portage" PORTDIR_OVERLAY="/usr/local/portage" SYNC="rsync://rsync.gentoo.org/gentoo-portage" USE="sh acl berkdb bitmap-fonts crypt fortran gdbm gpm guile ipv6 ncurses nls pam perl png python readline ruby ssl tcpd truetype-fonts type1-fonts zlib userland_GNU kernel_linux elibc_glibc" Unset: ASFLAGS, CTARGET, LANG, LC_ALL, LDFLAGS, LINGUAS, MAKEOPTS
Created attachment 64168 [details, diff] linux-2.6.11-sh-headers.patch
the ANSI change we use in asm/types.h for other arches should be ok for sh too rather than the 2nd hunk in the patch
Same comment here -- try doing what we do for other arches for types.h (you'll still need to do the __extension__ hunk as you have it) but the __s64 typedef should remain in a #ifdef __GNUC__. If that works let us know and we'll get this added in.
all right. We only need to remove "&& !defined(__STRICT_ANSI__)" instead of 2nd hunk. Please add for asm-sh too.
Fixed in CVS, reopen if there are any issues. Thanks!