From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from sovereign.org (sovereign.org [66.93.224.192]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (Client CN "lux.homenet", Issuer "lux.homenet" (not verified)) by ozlabs.org (Postfix) with ESMTP id 2C7AD2BDA0 for ; Thu, 14 Oct 2004 11:56:12 +1000 (EST) From: Jim Freeman Date: Wed, 13 Oct 2004 19:55:41 -0600 To: Dan Kegel Message-ID: <20041014015541.GC16252@sovereign.org> References: <416BF876.4020606@kegel.com> Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="1yeeQ81UyVL57Vl7" In-Reply-To: <416BF876.4020606@kegel.com> Cc: Stephen Warren , crossgcc , linuxppc-embedded@ozlabs.org Subject: Re: FW: NPTL support on PPC32 (MPC5200) ? List-Id: Linux on Embedded PowerPC Developers Mail List List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , --1yeeQ81UyVL57Vl7 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline The attached script (wrapper/setup to crosstool.sh) gets me a toolchain sufficient to build the default-config ppc kernel (2.6.8.1, NPTL, gcc-3.4.2, glibc-2.3.3). It tweaks the patch Dan references below for a ppc-ism, then adds a patch (thanks Google!) to mask an issue that gcc-3.4.2 has with inline functions calling setjmp() ( see http://mirrors.mathematik.uni-bielefeld.de/pub/linux/suse/ftp.suse.com/pub/projects/powerpc/ftp.linuxppc64.org/pub/people/janis/old/README.20040130 ) The toolchain build fails near the end while linking build-glibc/elf/sln with undefined references to `_Unwind_Resume' and `__gcc_personality_v0' (which Google hints is/was a popular problem, but I don't have time to track it down). In any case, 'sln' isn't needed for kernel building, so it's good enough for me for now. ...jfree ======== On Tue, Oct 12, 2004 at 08:29:58AM -0700, Dan Kegel wrote: > Hi Stephen, > to build NPTL, you need to apply > contrib/crosstool-0.28-rc34-nptl_fixes.patch > Then see demo-x86_64-nptl.sh > > Enough people need this that I've been intending for two weeks to merge it > asap, > but I haven't gotten around to it. > > That patch was only tested for x86, but ppc32 shouldn't be any > harder, right? :-) > - Dan > > Stephen Warren wrote: > >Hi. I'm attempting to use your crosstool to build a NPTL capable GLIBC > >and toolchain for a 32-bit PowerPC target. ... > >Thanks for any pointers at all! > > > >------------------------------------------------------------------------ > > > >Subject: NPTL support on PPC32 (MPC5200) ? > >From: "Stephen Warren" ... > >My question is - can anybody tell me, or point me at a website that > >definitively tells me: > > > >1) Is NPTL available on PPC at all? I assume so, since I found one of > >the original announcement of NPTL, which mentions performance on a large > >SMP PPC system. ... --1yeeQ81UyVL57Vl7 Content-Type: text/plain; charset=us-ascii Content-Disposition: attachment; filename=xgcc-booke #!/bin/bash set -x # http://kegel.com/crosstool/ # http://sources.redhat.com/ml/binutils/2003-10/msg00448.html # http://sources.redhat.com/ml/crossgcc/2004-03/msg00162.html # http://sources.redhat.com/ml/binutils/2001-10/msg00186.html ## http://mirrors.mathematik.uni-bielefeld.de/pub/linux/suse/ftp.suse.com/pub/projects/powerpc/ftp.linuxppc64.org/pub/people/janis/old/README.20040130 ## http://mirrors.mathematik.uni-bielefeld.de/pub/linux/suse/ftp.suse.com/pub/projects/powerpc/ftp.linuxppc64.org/pub/people/janis/old/glibc.patch.20040121 ; [ ! -f crosstool-0.28-rc37.tar.gz ] && \ wget http://kegel.com/crosstool/crosstool-0.28-rc37.tar.gz || true tar xzf crosstool-0.28-rc37.tar.gz cd crosstool-0.28-rc37 pwd ## NPTL patch: when ARCH=ppc, dirname needs to be "powerpc" ## patch the patch ... patch -p 0 <