From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from lists.gentoo.org ([140.105.134.102] helo=robin.gentoo.org) by nuthatch.gentoo.org with esmtp (Exim 4.60) (envelope-from ) id 1FxhtM-0006Sx-HV for garchives@archives.gentoo.org; Tue, 04 Jul 2006 10:12:29 +0000 Received: from robin.gentoo.org (localhost [127.0.0.1]) by robin.gentoo.org (8.13.7/8.13.6) with SMTP id k64ABPVL017893; Tue, 4 Jul 2006 10:11:25 GMT Received: from mail.net-conex.com (pops.net-conex.com [204.244.176.3]) by robin.gentoo.org (8.13.7/8.13.6) with ESMTP id k64A8q2x025153 for ; Tue, 4 Jul 2006 10:08:53 GMT Received: from curie.orbis-terrarum.net (S01060050da688d47.vc.shawcable.net [24.80.100.253]) by mail.net-conex.com (8.13.4/8.12.11) with ESMTP id k64A8pub001231 for ; Tue, 4 Jul 2006 03:08:51 -0700 Received: (qmail 5764 invoked by uid 10000); 4 Jul 2006 03:08:53 -0700 Date: Tue, 4 Jul 2006 03:08:53 -0700 From: "Robin H. Johnson" To: gentoo-dev@lists.gentoo.org Subject: [gentoo-dev] Test request: linux-mod support for arches with 64-bit kernel/32-bit userland Message-ID: <20060704100853.GH10574@curie-int.vc.shawcable.net> Mail-Followup-To: gentoo-dev@lists.gentoo.org Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-Id: Gentoo Linux mail X-BeenThere: gentoo-dev@gentoo.org Reply-to: gentoo-dev@lists.gentoo.org Mime-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="82evfD9Ogz2JrdWZ" Content-Disposition: inline User-Agent: Mutt/1.5.11 X-Archives-Salt: 9366e2cf-48e8-46ae-a312-cd39386bea18 X-Archives-Hash: 32174bd2b5891ad39c3831df6eb2bed7 --82evfD9Ogz2JrdWZ Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable This is a testing request aimed at all arches that have differing kernel/userspace bit counts. My short list so far is: - ppc64 - 64/32 (tested myself, but more testing needed) - sparc64 - 64/32 - mips64 - 64/32 [1] Other possibles (they should be theoretically capable of it, but the profile is marked broken, or doesn't exist in Gentoo presently): - s390x - 64/31 - amd64 - 64/32 (the profile is marked as broken) - superh - 64/32 - hppa - 64/32 Additionally, I'd like some testing under pure 32, pure 64, and multilib systems, just to be 100% certain it doesn't break existing functionality. I have tested x86 myself, and had reports that pure ppc64 work fine. This patch uses multilib.eclass to bring linux-mod support much further forward in allowing kernel modules in the portage tree to be built on 64/32 split systems. It would be nice to have this in 2006.1 (I suspect catalyst/genkernel could probably benefit greatly from it). There's two parts to it: 1. get-KERNEL_CC support and usage in linux-mod.eclass 2. Profile changes: Each user needs to define KERNEL_ABI, and then CHOST_*, CFLAGS_*, LDFLAGS_* for the value of KERNEL_ABI. For a platform with a biarch compiler, you'd use CFLAGS_xxxx64=3D"-m64" (or 32), and LDFLAGS_xxxx64=3D"-m TARGETNAME". For a platform with two separate compilers (kgcc64), but a single binutils, use the same LDFLAGS, but instead of CFLAGS, do CHOST_xxxx64=3D"......." instead. Example for ppc64 with 32-bit userland. +KERNEL_ABI=3D"ppc64" +LDFLAGS_ppc64=3D"-m elf64ppc" +CHOST_ppc64=3D"powerpc64-unknown-linux-gnu" Now the bug with the patch: Bug 133382: http://bugs.gentoo.org/show_bug.cgi?id=3D133382 Test cases (some of them may not compile if built into your kernel): sys-block/iscsitarget-0.4.13 net-wireless/zd1211-80 x11-base/x11-drm-20060608 sys-fs/cowloop-2.15-r1 sys-fs/fuse Notes. 1. Mips: with your triple ABI stuff, you might want to look very closely at this. --=20 Robin Hugh Johnson E-Mail : robbat2@gentoo.org GnuPG FP : 11AC BA4F 4778 E3F6 E4ED F38E B27B 944E 3488 4E85 --82evfD9Ogz2JrdWZ Content-Type: application/pgp-signature Content-Disposition: inline -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.4 (GNU/Linux) Comment: Robbat2 @ Orbis-Terrarum Networks iD8DBQFEqj40PpIsIjIzwiwRApCgAJ9S5cMAQJL6PaBFX5Io/Kqakx3CjgCg+KJA wOQCDS9d1Ga9TRUfYRKEiJQ= =oamj -----END PGP SIGNATURE----- --82evfD9Ogz2JrdWZ-- -- gentoo-dev@gentoo.org mailing list