Gentoo Archives: gentoo-alt

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

Replies

Subject Author
Re: [gentoo-alt] Bootstrapping Problems on OS X 10.4 Fabian Groffen <grobian@g.o>