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 1Q14Hr-00019h-Dq for garchives@archives.gentoo.org; Sat, 19 Mar 2011 22:06:19 +0000 Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id 74F841C047 for ; Sat, 19 Mar 2011 22:06:18 +0000 (UTC) Received: from moutng.kundenserver.de (moutng.kundenserver.de [212.227.17.8]) by pigeon.gentoo.org (Postfix) with ESMTP id 940131C00A for ; Sat, 19 Mar 2011 21:21:56 +0000 (UTC) Received: from [192.168.1.34] (p57B40F6C.dip0.t-ipconnect.de [87.180.15.108]) by mrelayeu.kundenserver.de (node=mrbap4) with ESMTP (Nemesis) id 0LcP1q-1PaH5B1PHi-00juhM; Sat, 19 Mar 2011 22:21:55 +0100 Message-ID: <4D851E6D.2090107@koblersystems.de> Date: Sat, 19 Mar 2011 22:21:49 +0100 From: Jan Kobler User-Agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.9.2.13) Gecko/20110120 Lightning/1.0b3pre Thunderbird/3.1.7 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 To: gentoo-embedded@lists.gentoo.org Subject: [gentoo-embedded] crossdev: glibc: CC wrong, which CHOST in config.site Content-Type: text/plain; charset=ISO-8859-15 Content-Transfer-Encoding: 7bit X-Provags-ID: V02:K0:7LPuIrEAVWi34vKTwUWKus2ipkKcXbP9aBgmqi5Ba2C +GHkKCTS5MMRzAJzGuuY+koSGRBs4tKbjk6rJ7/fR8RPmDuoSX bNKEVAUYi5yH14JFUUjAfc+sWB0IsnlmsazfDHqHCL3gmC7Qdl hgAY8+9OjHjsZQD9CJ83BnUgH/o5P06SB53pnK4Yzl9aQohXDK wARpcEY5lwHV46yCTlErA== X-Archives-Salt: X-Archives-Hash: 5d84097f4313724bca8aded440eddb7c Hi, 1. I have tried today crossdev --target powerpc-unknown-linux-gnu and got the error message: configure:2114: checking for powerpc-unknown-linux-gnu-gcc configure:2141: result: x86_64-pc-linux-gnu-gcc checking whether x86_64-pc-linux-gnu-gcc -pipe -freorder-blocks -O2 -fno-strict-aliasing supports -mabi=ibmlongdouble... no configure: error: this configuration requires -mlong-double-128 IBM extended format support * ERROR: cross-powerpc-unknown-linux-gnu/glibc-2.13-r2 failed (compile phase): * failed to configure glibc 2. After looking at /tmp/portage/cross-powerpc-unknown-linux-gnu/glibc-2.13-r2/work/glibc-2.13/configure I found out that the environment variable CC is wrong. This command worked: crossdev --lenv "CC=powerpc-unknown-linux-gnu-gcc" --target powerpc-unknown-linux-gnu 3. Is this a correct behavior that I need to set CC on the commandline? 4. I have a question about the loading of /usr/share/config.site in glibc-2.13/configure crossdev --lenv "CC=powerpc-unknown-linux-gnu-gcc" --target powerpc-unknown-linux-gnu >>> Compiling source in /tmp/portage/cross-powerpc-unknown-linux-gnu/glibc-2.13-r2/work/glibc-2.13 ... * ABI: default * CBUILD: x86_64-pc-linux-gnu * CHOST: x86_64-pc-linux-gnu * CTARGET: powerpc-unknown-linux-gnu * CBUILD_OPT: * CTARGET_OPT: * CC: powerpc-unknown-linux-gnu-gcc * CFLAGS: -pipe -freorder-blocks -O2 -fno-strict-aliasing * Manual CC: powerpc-unknown-linux-gnu-gcc configure: loading site script /usr/share/config.site When the script /usr/share/config.site is executed, the above value CHOST=x86_64-pc-linux-gnu is used to find the site script files in /usr/share/crossdev/include/site. Is this correct? Is it looking for the definitions of the build system or the target system? I am using sys-devel/crossdev-20110310 Best regards Jan