Gentoo Archives: gentoo-alt

From: Fabian Groffen <grobian@g.o>
To: gentoo-alt@l.g.o
Subject: Re: [gentoo-alt] Bootstrapping Problems on OS X 10.4
Date: Sat, 11 Oct 2008 18:51:37
Message-Id: 20081011185136.GL21770@gentoo.org
In Reply to: Re: [gentoo-alt] Bootstrapping Problems on OS X 10.4 by John Gibson
1 I only have a PPC, but I'm currently bootstrapping making use of
2 binutils-apple on 10.4. It remains a weird problem, as I'm running this
3 specific compiler for a while now, and I didn't have any problems while
4 upgrading. In the worst case it's related to being Intel/10.4 :(
5
6
7 On 09-10-2008 00:46:29 -0400, John Gibson wrote:
8 > I'm on Intel.
9 >
10 > Apparently binutils-apple wasn't even installed, so I installed
11 > binutils-apple-20080922.
12 >
13 > Also I noticed that gcc-config wasn't working properly. It complained
14 > about CHOST not being set properly. Even though it was present in the
15 > profile: $EPREFIX/etc/make.profile/make.defaults
16 > I set it in $EPREFIX/etc/make.conf and reemerged gcc-config and it
17 > seemed to fix the problems with gcc-confgi.
18 >
19 > I tried again with gcc-apple-4.2.1_p5564, I recieved the same checking
20 > size of int error, so I tried setting MAKE_OPTS="-j1" (it had been -j3
21 > previously) and I got further.
22 > However I still ran into problems:
23 >
24 > configure:5908: checking size of long long
25 > configure:6213: /Library/Gentoo/var/tmp/portage/sys-devel/gcc-
26 > apple-4.2.1_p5564/work/build/./prev-gcc/xgcc -B/Library/Gentoo/var/
27 > tmp/portage/sys-devel/gcc-apple-4.2.1_p5564/work/build
28 > /./prev-gcc/ -B/Library/Gentoo/usr/i686-apple-darwin8/bin/ -o conftest -g
29 > -O2 -mdynamic-no-pic conftest.c >&5
30 > /SourceCache/dwarf_utilities/dwarf_utilities-22/source/DWARFdSYM.cpp:
31 > 968: failed assertion `!"Unknown one-operand"'
32 > xgcc: Internal error: Abort trap (program dsymutil)
33 > Please submit a full bug report.
34 > See <URL:http://developer.apple.com/bugreporter> for instructions.
35 > configure:6217: $? = 1
36 > configure: program exited with status 1
37 > configure: failed program was:
38 > | /* confdefs.h. */
39 > | #define PACKAGE_NAME ""
40 > | #define PACKAGE_TARNAME ""
41 > | #define PACKAGE_VERSION ""
42 > | #define PACKAGE_STRING ""
43 > | #define PACKAGE_BUGREPORT ""
44 > | #define DEFAULT_LINKER "/Library/Gentoo/usr/bin/i686-apple-darwin8-ld"
45 > | #define DEFAULT_ASSEMBLER "/Library/Gentoo/usr/bin/i686-apple-
46 > darwin8-as"
47 > | #define STDC_HEADERS 1
48 > | #define HAVE_SYS_TYPES_H 1
49 > | #define HAVE_SYS_STAT_H 1
50 > | #define HAVE_STDLIB_H 1
51 > | #define HAVE_STRING_H 1
52 > | #define HAVE_MEMORY_H 1
53 > | #define HAVE_STRINGS_H 1
54 > | #define HAVE_INTTYPES_H 1
55 > | #define HAVE_STDINT_H 1
56 > | #define HAVE_UNISTD_H 1
57 > | #define SIZEOF_VOID_P 0
58 > | #define SIZEOF_SHORT 0
59 > | #define SIZEOF_INT 0
60 > | #define SIZEOF_LONG 0
61 > | #define HAVE_LONG_LONG 1
62 > | /* end confdefs.h. */
63 > | #include <stdio.h>
64 > | #ifdef HAVE_SYS_TYPES_H
65 > | # include <sys/types.h>
66 > | #endif
67 > | #ifdef HAVE_SYS_STAT_H
68 > | # include <sys/stat.h>
69 > | #endif
70 > | #ifdef STDC_HEADERS
71 > | # include <stdlib.h>
72 > | # include <stddef.h>
73 > | #else
74 > | # ifdef HAVE_STDLIB_H
75 > | # include <stdlib.h>
76 > | # endif
77 > | #endif
78 > | #ifdef HAVE_STRING_H
79 > | # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
80 > | # include <memory.h>
81 > | # endif
82 > | # include <string.h>
83 > | #endif
84 > | #ifdef HAVE_STRINGS_H
85 > | # include <strings.h>
86 > | #endif
87 > | #ifdef HAVE_INTTYPES_H
88 > | # include <inttypes.h>
89 > | #endif
90 > | #ifdef HAVE_STDINT_H
91 > | # include <stdint.h>
92 > | #endif
93 > | #ifdef HAVE_UNISTD_H
94 > | # include <unistd.h>
95 > | #endif
96 > | static long int longval () { return (long int) (sizeof (long long)); }
97 > | static unsigned long int ulongval () { return (long int) (sizeof (long
98 > long)); }
99 > | #include <stdio.h>
100 > | #include <stdlib.h>
101 > | int
102 > | main ()
103 > | {
104 > |
105 > | FILE *f = fopen ("conftest.val", "w");
106 > | if (! f)
107 > | return 1;
108 > | if (((long int) (sizeof (long long))) < 0)
109 > | {
110 > | long int i = longval ();
111 > | if (i != ((long int) (sizeof (long long))))
112 > | return 1;
113 > | fprintf (f, "%ld", i);
114 > | }
115 > | else
116 > | {
117 > | unsigned long int i = ulongval ();
118 > | if (i != ((long int) (sizeof (long long))))
119 > | return 1;
120 > | fprintf (f, "%lu", i);
121 > | }
122 > | /* Do not output a trailing newline, as this causes \r\n confusion
123 > | on some platforms. */
124 > | return ferror (f) || fclose (f) != 0;
125 > |
126 > | ;
127 > | return 0;
128 > | }
129 > configure:6237: error: in `/Library/Gentoo/var/tmp/portage/sys-devel/
130 > gcc-apple-4.2.1_p5564/work/build/gcc':
131 > configure:6240: error: cannot compute sizeof (long long)
132 > See `config.log' for more details.
133 >
134 >
135 > On Oct 8, 2008, at 4:32 PM, Fabian Groffen wrote:
136 >
137 >> On 07-10-2008 00:04:50 -0400, John Gibson wrote:
138 >>> I bootstrapped with odcctools-20080820.
139 >>> I finished bootstrapping with gcc-apple-4.0.1_p5484.
140 >>
141 >> Are you on powerpc or intel?
142 >>
143 >>> I just tried re-emerging gcc-apple-4.2.1_p5564 which also pulled in
144 >>> gmp
145 >>> and mpfr.
146 >>>
147 >>> However it still failed. This time with a slightly different error.
148 >>
149 >> Remains weird. I don't have this, but please try and emerge
150 >> binutils-apple, and see if the problem persists.
151 >>
152 >>> configure:4241: checking size of int
153 >>> configure:4560: /Library/Gentoo/var/tmp/portage/sys-devel/gcc-
154 >>> apple-4.2.1_p5564/work/build/./prev-gcc/xgcc -B/Library/Gentoo/var/
155 >>> tmp/portage/sys-devel/gcc-apple-4.2.1_p5564/work/build/./prev-gcc/
156 >>> -B/
157 >>> Library/Gentoo/usr/i686-apple-darwin8/bin/ -o conftest -g -O2 -
158 >>> mdynamic-no-pic conftest.c >&5
159 >>> /SourceCache/dwarf_utilities/dwarf_utilities-22/source/DWARFdSYM.cpp:
160 >>> 968: failed assertion `!"Unknown one-operand"'
161 >>> xgcc: Internal error: Abort trap (program dsymutil)
162 >>> Please submit a full bug report.
163 >>> See <URL:http://developer.apple.com/bugreporter> for instructions.
164 >>
165 >>
166 >> --
167 >> Fabian Groffen
168 >> Gentoo on a different level
169 >>
170 >
171 >
172
173 --
174 Fabian Groffen
175 Gentoo on a different level