From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 26919 invoked by alias); 19 Mar 2014 10:02:52 -0000 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 Received: (qmail 26905 invoked by uid 89); 19 Mar 2014 10:02:50 -0000 Authentication-Results: sourceware.org; auth=none X-Virus-Found: No X-Spam-SWARE-Status: No, score=-1.7 required=5.0 tests=AWL,BAYES_00 autolearn=ham version=3.3.2 X-HELO: sputnik.urmx.de Received: from sputnik.urmx.de (HELO sputnik.urmx.de) (88.198.51.18) by sourceware.org (qpsmtpd/0.93/v0.84-503-g423c35a) with ESMTP; Wed, 19 Mar 2014 10:02:21 +0000 Received: from localhost (localhost [127.0.0.1]) by sputnik.urmx.de (Postfix) with ESMTP id A9D0A60222A3 for ; Wed, 19 Mar 2014 11:02:18 +0100 (CET) Received: from sputnik.urmx.de ([127.0.0.1]) by localhost (sputnik.urmx.de [127.0.0.1]) (amavisd-new, port 10026) with ESMTP id ot8UUJYrGsBD for ; Wed, 19 Mar 2014 11:02:18 +0100 (CET) Received: from utm1.gdsys.de (unknown [195.243.218.178]) by mforward1.urmx.de (Postfix) with ESMTPS id 3138760222C6 for ; Wed, 19 Mar 2014 11:02:18 +0100 (CET) Received: from [172.16.100.239] (port=34149 helo=smgw1.gd.local) by utm1.gdsys.de with esmtp (Exim 4.76) (envelope-from ) id 1WQDKB-0001VM-32 for crossgcc@sourceware.org; Wed, 19 Mar 2014 11:02:15 +0100 Received: from smgw1.gd.local (localhost [127.0.0.1]) by smgw1.gd.local (Postfix) with ESMTP id D434F5FD3B for ; Wed, 19 Mar 2014 11:02:15 +0100 (CET) X-Spam-Processed: srv201.gdsys.de, Wed, 19 Mar 2014 11:02:14 +0100 (not processed: spam filter heuristic analysis disabled) X-Return-Path: Herwig@gdsys.de X-Envelope-From: Herwig@gdsys.de X-MDaemon-Deliver-To: crossgcc@sourceware.org From: =?iso-8859-1?Q?Herwig=2C_Bj=F6rn?= To: "'crossgcc@sourceware.org'" Date: Wed, 19 Mar 2014 10:02:00 -0000 Subject: Building a recent powerpc-e500v2-linux-gnuspe toolchain Message-ID: x-olx-disclaimer: Done MIME-Version: 1.0 X-CompuMailGateway: Version: 6.00.3.14884.i686 COMPUMAIL Date: 20140319100215Z Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable X-SW-Source: 2014-03/txt/msg00011.txt.bz2 Hello, having successfully built such a toolchain based on GCC 4.7.2 in 2012 using crosstool-ng, I'm trying to upgrade to the GCC 4.8 series for our targets starting with the e500v2 (e300 and 405 pending). I'm on hg+default-e11a8a2e225d, I've defaulted to the sample and upgraded a= ll components to their latest versions. First problem I encountered was with eglibc 2.18: [INFO ] Extracting and patching toolchain components [WARN ] 'eglibc-nptl-2_18' not found in '/home/bah/crosstool-ng/build/.b= uild/tarballs' Now that eglibc is gradually merged back to glibc, I gave glibc 2.19 a try, which resulted in: [INFO ] Installing C library [EXTRA] Configuring C library [EXTRA] Building C library [ERROR] ../sysdeps/powerpc/fpu/math_ldbl.h:28:3: error: impossible const= raint in 'asm' [ERROR] ../sysdeps/powerpc/fpu/math_ldbl.h:17:3: error: impossible const= raint in 'asm' [ERROR] ../sysdeps/powerpc/fpu/math_ldbl.h:28:3: error: impossible const= raint in 'asm' [ERROR] ../sysdeps/powerpc/fpu/math_ldbl.h:17:3: error: impossible const= raint in 'asm' [ERROR] ../sysdeps/ieee754/ldbl-128ibm/s_frexpl.c:85:1: error: insn does= not satisfy its constraints: [ERROR] make[3]: *** [/home/bah/crosstool-ng/build/.build/powerpc-e500v2= -linux-gnuspe/build/build-libc-final/math/s_frexpl.o] Error 1 [ERROR] ../sysdeps/ieee754/ldbl-128ibm/s_modfl.c:91:1: error: insn does = not satisfy its constraints: [ERROR] make[3]: *** [/home/bah/crosstool-ng/build/.build/powerpc-e500v2= -linux-gnuspe/build/build-libc-final/math/s_modfl.o] Error 1 [ERROR] ../sysdeps/powerpc/fpu/math_ldbl.h:28:3: error: impossible const= raint in 'asm' [ERROR] ../sysdeps/powerpc/fpu/math_ldbl.h:17:3: error: impossible const= raint in 'asm' [ERROR] ../sysdeps/powerpc/fpu/math_ldbl.h:17:3: error: impossible const= raint in 'asm' [ERROR] ../sysdeps/powerpc/fpu/math_ldbl.h:17:3: error: impossible const= raint in 'asm' [ERROR] ../sysdeps/ieee754/ldbl-128ibm/s_scalbnl.c:104:1: error: insn do= es not satisfy its constraints: [ERROR] make[3]: *** [/home/bah/crosstool-ng/build/.build/powerpc-e500v2= -linux-gnuspe/build/build-libc-final/math/s_scalbnl.o] Error 1 [ERROR] make[2]: *** [math/subdir_lib] Error 2 [ERROR] make[1]: *** [all] Error 2 As per http://lists.openembedded.org/pipermail/openembedded-devel/2014-February/09= 4134.html I configured CT_LIBC_GLIBC_EXTRA_CONFIG_ARRAY=3D"--without-fp", without rea= lly knowing the consequences for hardware FP support via SPE. The outcome of this was: [INFO ] Installing C library [EXTRA] Configuring C library [EXTRA] Building C library [ERROR] ./strtod_l.c:1765:1: error: unrecognizable insn: [ERROR] ./strtod_l.c:1765:1: internal compiler error: in extract_insn, a= t recog.c:2154 [ERROR] make[3]: *** [/home/bah/crosstool-ng/build/.build/powerpc-e500v2= -linux-gnuspe/build/build-libc-final/stdlib/strtold_l.o] Error 1 [ERROR] ./strtod_l.c:1765:1: error: unrecognizable insn: [ERROR] ./strtod_l.c:1765:1: internal compiler error: in extract_insn, a= t recog.c:2154 [ERROR] make[3]: *** [/home/bah/crosstool-ng/build/.build/powerpc-e500v2= -linux-gnuspe/build/build-libc-final/stdlib/strtold_l.os] Error 1 [ERROR] make[2]: *** [stdlib/subdir_lib] Error 2 [ERROR] make[1]: *** [all] Error 2 The same error occurs with glibc 2.18 and CT_LIBC_GLIBC_EXTRA_CONFIG_ARRAY = unset: [INFO ] Installing C library [EXTRA] Configuring C library [EXTRA] Building C library [ERROR] ./strtod_l.c:1766:1: error: unrecognizable insn: [ERROR] ./strtod_l.c:1766:1: internal compiler error: in extract_insn, a= t recog.c:2154 [ERROR] make[3]: *** [/home/bah/crosstool-ng/build/.build/powerpc-e500v2= -linux-gnuspe/build/build-libc-final/stdlib/strtold_l.o] Error 1 [ERROR] make[2]: *** [stdlib/subdir_lib] Error 2 [ERROR] make[1]: *** [all] Error 2 This seems to be a known problem with GCC 4.8+, which is filed under http://gcc.gnu.org/bugzilla/show_bug.cgi?id=3D57717 I've found a patch here http://lists.busybox.net/pipermail/buildroot/2013-October/080807.html but have not yet tried it. Has anyone already succeeded in building a powerpc-e500v2-linux-gnuspe tool= chain with GCC 4.8 yet and give me a configuration hint? Or should I first wait f= or GCC 4.8.3 to be released (scheduled for this month)? Best, Bj=F6rn !!NOSIG!! -- For unsubscribe information see http://sourceware.org/lists.html#faq