From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 26420 invoked by alias); 13 Dec 2011 08:38:43 -0000 Received: (qmail 26191 invoked by uid 22791); 13 Dec 2011 08:38:40 -0000 X-SWARE-Spam-Status: No, hits=-1.6 required=5.0 tests=AWL,BAYES_00,TW_XV X-Spam-Check-By: sourceware.org Received: from mail175c2.megamailservers.com (HELO mail175c2.megamailservers.com) (69.49.111.75) by sourceware.org (qpsmtpd/0.43rc1) with ESMTP; Tue, 13 Dec 2011 08:38:23 +0000 X-Authenticated-User: konrad.gaisler.com Received: from [192.168.0.37] (gaisler.se [92.33.28.242]) (authenticated bits=0) by mail175c2.megamailservers.com (8.13.6/8.13.1) with ESMTP id pBD8c0n3032301; Tue, 13 Dec 2011 03:38:02 -0500 Message-ID: <4EE70D20.40909@gaisler.com> Date: Tue, 13 Dec 2011 08:38:00 -0000 From: Konrad Eisele User-Agent: Mozilla/5.0 (X11; Linux i686; rv:7.0.1) Gecko/20110928 Firefox/7.0.1 SeaMonkey/2.4.1 MIME-Version: 1.0 To: "Yann E. MORIN" CC: crossgcc@sourceware.org Subject: Re: [PATCH 1/1] Add multilib build support for libc target. References: <1321267079-14623-1-git-send-email-konrad@gaisler.com> <201112130007.28625.yann.morin.1998@anciens.enib.fr> In-Reply-To: <201112130007.28625.yann.morin.1998@anciens.enib.fr> Content-Type: text/plain; charset=ISO-8859-15 Content-Transfer-Encoding: 7bit Mailing-List: contact crossgcc-help@sourceware.org; run by ezmlm Precedence: bulk List-Id: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: crossgcc-owner@sourceware.org X-SW-Source: 2011-12/txt/msg00043.txt.bz2 Yann E. MORIN wrote: > Konrad, All, > > On Monday 14 November 2011 11:37:59 Konrad Eisele wrote: >> --- >> scripts/build/binutils/binutils.sh | 14 +++- >> scripts/build/cc/gcc.sh | 15 +++- >> scripts/build/libc/glibc-eglibc.sh-common | 124 +++++++++++++++++++++++++--- >> 3 files changed, 134 insertions(+), 19 deletions(-) > > Could you provide a sample .config where multilib works? > > I'm strugling to get at least one configuration to at least pass the > C library headers install step, and none works... :-( > > If I could get a sane and known-working starting point, I could build > from there. $wget http://crosstool-ng.org/download/crosstool-ng/crosstool-ng-1.13.0.tar.bz2 $wget ftp://gaisler.com/gaisler.com/linux/patches/ct-1.diff $tar xvf crosstool-ng-1.13.0.tar.bz2 $cat ct-1.diff | patch -p1 -d crosstool-ng-1.13.0 $cd crosstool-ng-1.13.0 $make -f Makefile.local.mk do_install $make -f Makefile.local.mk do_build The patch ct-1.diff adds crosstool-ng-1.13.0/build/ctng/.config which is the conf file that build the toolchain in: /opt/sparc-linux-4.6.0-toolchains/multilib (must be writable or change) $make -f Makefile.local.mk do_install install itself in crosstool-ng-1.13.0/build $make -f Makefile.local.mk do_build builds inside crosstool-ng-1.13.0/build/ctng using the supplied .config, and finally to debug: $make -f Makefile.local.mk do_build RESTART= STOP= The toolchain has 4 multilib combinations: "-msoft-float", "-msoft-float -mv8", "-mv8" and "" . -- Konrad ps: $cat /etc/slackware-version Slackware 12.2.0 $uname -a Linux ada 2.6.27.31-smp #1 SMP Mon Dec 13 16:52:53 CET 2010 i686 Intel(R) Core(TM) i7 CPU 950 @ 3.07GHz GenuineIntel GNU/Linux > > Regards, > Yann E. MORIN. > -- For unsubscribe information see http://sourceware.org/lists.html#faq