1 |
Hi Fabian, |
2 |
|
3 |
On Sun, Apr 03, 2016 at 07:03:34PM +0200, Fabian Groffen wrote: |
4 |
|
5 |
> I (semi intentionally) dropped cross support from the "rewrite", for it |
6 |
> was too complex for me to understand. |
7 |
|
8 |
I'm not an expert on how the Gentoo multilib/cross setup is supposed to |
9 |
work. But from my work on the gcc detector patch to clang I seem to |
10 |
remember that looking at /etc/env.d/*/config-* for figuring out the |
11 |
installed cross toolchains is an accepted way to go about it. |
12 |
|
13 |
> Care to share your patch so I can |
14 |
> look at merging it? |
15 |
|
16 |
It's attached. If you prefer (or the patch gets dropped by the list |
17 |
manager) I can open a bug for it as well. |
18 |
|
19 |
I really appreciate your taking the time to look at it. I regularly have |
20 |
the need for arm and powerpc cross toolchains and me dabbling in 3D |
21 |
printing has now added avr as well. Being able to have all that on my |
22 |
MacBook natively and with the ease of crossdev would be awesome. |
23 |
|
24 |
Micha |
25 |
|
26 |
> On 03-04-2016 18:18:06 +0200, Michael Weiser wrote: |
27 |
> > Hi again, ;) |
28 |
> > |
29 |
> > I'm once again looking into building cross toolchains on OS X using |
30 |
> > Prefix and crossdev. Thanks to his Greg's patch to crossdev at |
31 |
> > https://github.com/gmt/crossdev-prefix-compat-fixes/tree/master/portage_diffs |
32 |
> > I have a much less bleak outlook on trying than last time. I haven't got |
33 |
> > a working toolchain yet but want to share my experiences early so I |
34 |
> > don't waste time on things that can never work. |
35 |
> > |
36 |
> > For now I ran into one quite basic problem: The ld wrapper from |
37 |
> > binutils-config-5 does not support distinguishing between CHOST and |
38 |
> > CTARGET. So after successfully installing e.g. |
39 |
> > cross-arm-something-or-other/binutils it will report |
40 |
> > |
41 |
> > michael@osx1011:~ # arm-something-or-other-ld |
42 |
> > sh: binutils-config: command not found |
43 |
> > arm-something-or-other-ld: failed to locate the real ld! |
44 |
> > |
45 |
> > dtruss -n ld show that it's looking for |
46 |
> > EPREFIX/usr/CHOST/binutils-bin/CURRENT-from-etc-env.d-bintuils-config-CHOST/arm-something-or-other-ld |
47 |
> > which obviously is quite wrong. |
48 |
> > |
49 |
> > I've generated a patch that makes ldwrapper look at all the config-* |
50 |
> > files in /etc/env.d/binutils and compare their names to the name it was |
51 |
> > called with. If a match is found the name of that config is used as |
52 |
> > CTARGET for constructing paths to ld which makes the above call work as |
53 |
> > expected. |
54 |
> > |
55 |
> > Would there be any interest in adding this functionality to Prefix? |
56 |
> > -- |
57 |
> > Micha |
58 |
> > Dagegen! |
59 |
> > |
60 |
|
61 |
-- |
62 |
bye, Michael |
63 |
I'm against it! |