Gentoo Archives: gentoo-embedded

From: Mike Frysinger <vapier@g.o>
To: Joakim Tjernlund <joakim.tjernlund@×××××××××.se>
Cc: gentoo-embedded@l.g.o
Subject: Re: [gentoo-embedded] crossdev-20100620 uses wrong gcc
Date: Fri, 24 Sep 2010 17:07:06
Message-Id: 201009241258.40931.vapier@gentoo.org
In Reply to: Re: [gentoo-embedded] crossdev-20100620 uses wrong gcc by Joakim Tjernlund
1 On Friday, September 24, 2010 11:48:48 Joakim Tjernlund wrote:
2 > Mike Frysinger wrote on 2010/09/24 16:30:35:
3 > > On Friday, September 24, 2010 04:55:27 Joakim Tjernlund wrote:
4 > > > Mike Frysinger wrote on 2010/09/24 04:33:05:
5 > > > > On Thursday, September 23, 2010 10:37:47 Joakim Tjernlund wrote:
6 > > > > > Trying to add support for e300c2 in glibc/ports I got another
7 > > > > > error. when crossdev is building cross-glibc-headers it uses the
8 > > > > > hosts gcc
9 > > > >
10 > > > > > instead of the cross compiler and glibc configure fails:
11 > > > > by design. look at toolchain-glibc_headers_compile() in
12 > > > > gentoo-x86/sys- libs/glibc/files/eblits/src_compile.eblit.
13 > > >
14 > > > hmm, if I were to guess one needs to add
15 > > > libc_cv_cc_submachine=xxx, possibly with xxx=no
16 > > > to toolchain-glibc_headers_compile() ?
17 > >
18 > > you need to export the cache var to skip the sanity checks, not the
19 > > "force a specific machine type"
20 >
21 > yeah, that was what I did(export libc_cv_cc_submachine="-mcpu=e300c2")
22 >
23 > I was aiming for a more general solution, but I can't find one short of
24 > actually use the cross compiler.
25
26 general solution would be to introduce a "headers" configure option to glibc
27 to tell it to skip all the useless compiler checks
28 -mike

Attachments

File name MIME type
signature.asc application/pgp-signature