Gentoo Archives: gentoo-embedded

From: Jan Kobler <eng1@×××××××××××××.de>
To: gentoo-embedded@l.g.o
Subject: [gentoo-embedded] crossdev: glibc: CC wrong, which CHOST in config.site
Date: Sat, 19 Mar 2011 22:06:19
Message-Id: 4D851E6D.2090107@koblersystems.de
1 Hi,
2
3 1. I have tried today
4
5 crossdev --target powerpc-unknown-linux-gnu
6
7 and got the error message:
8
9 configure:2114: checking for powerpc-unknown-linux-gnu-gcc
10 configure:2141: result: x86_64-pc-linux-gnu-gcc
11
12 checking whether x86_64-pc-linux-gnu-gcc -pipe -freorder-blocks -O2
13 -fno-strict-aliasing supports -mabi=ibmlongdouble... no
14 configure: error: this configuration requires -mlong-double-128 IBM
15 extended format support
16 * ERROR: cross-powerpc-unknown-linux-gnu/glibc-2.13-r2 failed (compile
17 phase):
18 * failed to configure glibc
19
20 2. After looking at
21 /tmp/portage/cross-powerpc-unknown-linux-gnu/glibc-2.13-r2/work/glibc-2.13/configure
22
23 I found out that the environment variable CC is wrong.
24
25 This command worked:
26
27 crossdev --lenv "CC=powerpc-unknown-linux-gnu-gcc" --target
28 powerpc-unknown-linux-gnu
29
30 3. Is this a correct behavior that I need to set CC on the commandline?
31
32 4. I have a question about the loading of /usr/share/config.site
33 in glibc-2.13/configure
34
35 crossdev --lenv "CC=powerpc-unknown-linux-gnu-gcc" --target
36 powerpc-unknown-linux-gnu
37
38
39 >>> Compiling source in
40 /tmp/portage/cross-powerpc-unknown-linux-gnu/glibc-2.13-r2/work/glibc-2.13
41 ...
42
43 * ABI: default
44 * CBUILD: x86_64-pc-linux-gnu
45 * CHOST: x86_64-pc-linux-gnu
46 * CTARGET: powerpc-unknown-linux-gnu
47 * CBUILD_OPT:
48 * CTARGET_OPT:
49 * CC: powerpc-unknown-linux-gnu-gcc
50 * CFLAGS: -pipe -freorder-blocks -O2 -fno-strict-aliasing
51 * Manual CC: powerpc-unknown-linux-gnu-gcc
52
53
54 configure: loading site script /usr/share/config.site
55
56 When the script /usr/share/config.site is executed, the above value
57 CHOST=x86_64-pc-linux-gnu
58 is used to find the site script files in /usr/share/crossdev/include/site.
59
60 Is this correct?
61 Is it looking for the definitions of the build system or the target system?
62
63 I am using sys-devel/crossdev-20110310
64
65 Best regards
66
67 Jan

Replies