1 |
> IIRC, the reason to stick with gcc-4.2 during bootstrap is that it is the |
2 |
> last one not needing extra dependencies (mpfr, gmp) being merged before, |
3 |
> to keep bootstrap process as simple as possible. |
4 |
|
5 |
Thank you Michael. Also 4.2* needs mpfr and gmp on Cygwin, but I can |
6 |
use the Cygwin package for this in the initial circle. So 4.2* is not |
7 |
a must and a can go with a younger version. 4.3* didn't build either. |
8 |
|
9 |
> |
10 |
>> To note that gcc-4.2.4-r01.2 also doesn't work. |
11 |
>> |
12 |
>> /home/prefix/gentoo/var/tmp/portage/sys-devel/gcc-4.2.4-r01.2/work/gcc-4.2.4/libiberty/strsignal.c:409: |
13 |
>> error: conflicting types for 'strsignal' |
14 |
>> /usr/include/string.h:79: error: previous declaration of 'strsignal' was here |
15 |
> |
16 |
> Seems like a cygwin specific issue, needing a cygwin specific fix in gcc then. |
17 |
> |
18 |
|
19 |
So I searched and found that they did something cygwin specific in |
20 |
libc/include/string.h. |
21 |
|
22 |
http://sourceware.org/ml/newlib/2008/msg00342.html |
23 |
|
24 |
-const char *_EXFUN(strsignal, (int __signo)); |
25 |
+char *_EXFUN(strsignal, (int __signo)); |
26 |
|
27 |
However I am surprised that ggc-4.2 breaks from this, while ggc-4.4 |
28 |
builds. From this thread I should expect that gcc-4.4 is the breaking |
29 |
one: |
30 |
|
31 |
http://old.nabble.com/GCC-4.4---Cygwin-build-failed-in-%27strsignal%27-td19666377.html |
32 |
|
33 |
Bottomline from both answers is to try to go with gcc-4.4 I think and |
34 |
to fokus on the SHAREDLIB issue. |
35 |
|
36 |
>> Is that right, that it using /usr/include/string.h from Cygwins glibc? |
37 |
> |
38 |
> Yes, although gcc may make a copy of system headers to fix known issues |
39 |
> here and there, but I doubt this is done before building gcc itself. |
40 |
> |
41 |
|
42 |
I meanwhile found an old thread on this, that tells nobody managed to |
43 |
emerge glibc on prefix yet. |
44 |
|
45 |
Al |
46 |
|
47 |
-- |
48 |
Caution crosser: Runnig Gentoo/Prefix on Cygwin/Vista. |
49 |
All stupid questions are related to that context. |