From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from pigeon.gentoo.org ([208.92.234.80] helo=lists.gentoo.org) by finch.gentoo.org with esmtp (Exim 4.60) (envelope-from ) id 1OzAmS-0003pr-In for garchives@archives.gentoo.org; Fri, 24 Sep 2010 16:05:49 +0000 Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id F1121E05EC for ; Fri, 24 Sep 2010 16:05:44 +0000 (UTC) Received: from gw1.transmode.se (gw1.transmode.se [213.115.205.20]) by pigeon.gentoo.org (Postfix) with ESMTP id BD97AE02CE for ; Fri, 24 Sep 2010 15:52:59 +0000 (UTC) Received: from sesr04.transmode.se (sesr04.transmode.se [192.168.201.15]) by gw1.transmode.se (Postfix) with ESMTP id 13FC92597D2; Fri, 24 Sep 2010 17:52:59 +0200 (CEST) In-Reply-To: <201009241030.37566.vapier@gentoo.org> References: <201009232233.06506.vapier@gentoo.org> <201009241030.37566.vapier@gentoo.org> Subject: Re: [gentoo-embedded] crossdev-20100620 uses wrong gcc X-KeepSent: CAE17DE5:C92C7541-C12577A8:005682E0; type=4; name=$KeepSent To: Mike Frysinger Cc: gentoo-embedded@lists.gentoo.org X-Mailer: Lotus Notes Release 8.5.2 August 10, 2010 Message-ID: From: Joakim Tjernlund Date: Fri, 24 Sep 2010 17:48:48 +0200 X-MIMETrack: Serialize by Router on sesr04/Transmode(Release 8.5.2 HF23|September 01, 2010) at 2010-09-24 17:52:59 Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-Id: Gentoo Linux mail X-BeenThere: gentoo-embedded@lists.gentoo.org Reply-to: gentoo-embedded@lists.gentoo.org MIME-Version: 1.0 Content-type: text/plain; charset=US-ASCII X-Archives-Salt: 2be3d5f5-1b41-4e44-a99d-3956a8009093 X-Archives-Hash: 323eb40d30a6138ff4ea8f93d47d2828 Mike Frysinger wrote on 2010/09/24 16:30:35: > > On Friday, September 24, 2010 04:55:27 Joakim Tjernlund wrote: > > Mike Frysinger wrote on 2010/09/24 04:33:05: > > > On Thursday, September 23, 2010 10:37:47 Joakim Tjernlund wrote: > > > > Trying to add support for e300c2 in glibc/ports I got another error. > > > > when crossdev is building cross-glibc-headers it uses the hosts gcc > > > > > > > instead of the cross compiler and glibc configure fails: > > > by design. look at toolchain-glibc_headers_compile() in gentoo-x86/sys- > > > libs/glibc/files/eblits/src_compile.eblit. > > > > hmm, if I were to guess one needs to add > > libc_cv_cc_submachine=xxx, possibly with xxx=no > > to toolchain-glibc_headers_compile() ? > > you need to export the cache var to skip the sanity checks, not the "force a > specific machine type" yeah, that was what I did(export libc_cv_cc_submachine="-mcpu=e300c2") I was aiming for a more general solution, but I can't find one short of actually use the cross compiler. Jocke