1 |
On Sun, 2003-04-27 at 18:01, Aron Griffis wrote: |
2 |
|
3 |
hiya |
4 |
|
5 |
> |
6 |
> 1. Maybe the icc ebuild should install wrapper scripts for the icc-CHOST |
7 |
> form so that it can be used in distcc/cross-compiling. Also the ccc |
8 |
> ebuild should do the same. In fact, it could be a single script with |
9 |
> multiple symlinks, then setup flags in the script based on name... |
10 |
> Does this make sense? |
11 |
> |
12 |
|
13 |
Could work. |
14 |
|
15 |
> 2. I think that your PREFERRED_COMPILERS scheme makes sense except that |
16 |
> it requires the compiler to be a single word. Now sure, one could |
17 |
> argue that CC should always be a single word, but people have done |
18 |
> successful setups with CC="distcc gcc" so I don't think we should |
19 |
> break that if possible. |
20 |
> |
21 |
|
22 |
AFAIK, distcc, ccache, and colorgcc was all fixed (if applicable) to |
23 |
work transparent, so this should not be a problem. |
24 |
|
25 |
> I think that it is worthwhile to try to find a good solution to this. |
26 |
> Hopefully we can find one that is elegant enough so that not too much |
27 |
> complexity is added, and it's intuitive for people to use. Right now |
28 |
> it's a high goal for the alpha team to make ccc a reality, but it cannot |
29 |
> happen unless ccc is automatically selected for the ebuilds on which it |
30 |
> applies. It's not reasonable to make users run "CC=ccc emerge" to be |
31 |
> able to take advantage of ccc. |
32 |
> |
33 |
|
34 |
Right, I understand this. |
35 |
|
36 |
|
37 |
> Azarah wrote: [Sat Apr 26 2003, 03:21:51PM EDT] |
38 |
> > On Fri, 2003-04-25 at 04:36, Aron Griffis wrote: |
39 |
> > |
40 |
> > > Azarah wrote:[Tue Apr 22 2003, 02:57:11PM EDT] |
41 |
> > > > In theory you should be able to just set CC .... The builds that |
42 |
> > > > do not take this, should be fixed IMHO. |
43 |
> > > |
44 |
> > > Sure, you can set |
45 |
> > > |
46 |
> > > CC=ccc emerge blah |
47 |
> > > |
48 |
> > > and it should work. But what we're talking about is setting something |
49 |
> > > so that ebuilds that support ccc will use it, automatically falling back |
50 |
> > > to gcc when the ebuild doesn't support ccc. That's why it seemed like a |
51 |
> > > USE flag would be appropriate. |
52 |
> > > |
53 |
> > > The problem I can see with a USE flag is that we'd have to clobber CC |
54 |
> > > in the ebuild, for example "use ccc && CC=ccc". So then the user |
55 |
> > > wouldn't have an easy way to override. |
56 |
> > > |
57 |
> > > So we come back to compiler profiles. But I don't quite understand how |
58 |
> > > they'll solve this problem. I don't want to set CC=ccc globally. I |
59 |
> > > want the ebuilds to know whether they support ccc, and the user can say, |
60 |
> > > "hey, use ccc if you can, otherwise use gcc". |
61 |
> > > |
62 |
> > |
63 |
> > Right. I do not want to stop change if its for the good, but we should |
64 |
> > also sometimes consider if some complexity is really worth it. This I |
65 |
> > think IMHO that if we can do it without adding too much complexity, |
66 |
> > sure. |
67 |
> > |
68 |
> > Maybe it could be with something like: |
69 |
> > |
70 |
> > COMPILERS="gcc ccc" |
71 |
> > |
72 |
> > In the ebuild, that say this puppy support both, and then we can have |
73 |
> > something like: |
74 |
> > |
75 |
> > PREFERRED_COMPILERS="ccc gcc" |
76 |
> > |
77 |
> > in make.conf .... portage will then set CC to the compiler from |
78 |
> > PREFERRED_COMPILERS in the order they appear if the ebuild have |
79 |
> > that one in COMPILERS. |
80 |
> > |
81 |
> > A slight snag that comes into ... this could really cause issues with |
82 |
> > distcc/cross-compiling especially if you need the <compiler-front>-CHOST |
83 |
> > type of thing (mostly with distcc when you have diff arch's in the |
84 |
> > cluster). For example icc do not support the icc-CHOST form, so how |
85 |
> > again we will have to hack portage to disable distcc if icc is used, |
86 |
> > etc. |
87 |
> > |
88 |
> > So this brings me back to my original comment that we should maybe |
89 |
> > consider if this wont add to much complexity and/or hassles. |
90 |
> > |
91 |
> > |
92 |
> > Regards, |
93 |
> > |
94 |
> > -- |
95 |
> > |
96 |
> > Martin Schlemmer |
97 |
> > Gentoo Linux Developer, Desktop/System Team Developer |
98 |
> > Cape Town, South Africa |
99 |
> > |
100 |
> > |
101 |
-- |
102 |
|
103 |
Martin Schlemmer |
104 |
Gentoo Linux Developer, Desktop/System Team Developer |
105 |
Cape Town, South Africa |