1 |
Hi |
2 |
|
3 |
I am new...I am trying "Gentoo Prefix Bootstrap Process for Mac OS X". |
4 |
I follow the steps from following link |
5 |
http://www.gentoo.org/proj/en/gentoo-alt/prefix/bootstrap-macos.xml |
6 |
|
7 |
But I got failed...at the step: emerge --oneshot --nodeps gcc-apple |
8 |
|
9 |
Here is the error and output of the configure: |
10 |
|
11 |
>>> Compiling source in /Users/zhuyan/Gentoo/var/tmp/portage/sys-devel/gcc-apple-4.2.1_p5564/work/gcc_42-5564 ... |
12 |
* QA Notice: USE Flag 'nocxx' not in IUSE for sys-devel/gcc-apple-4.2.1_p5564 |
13 |
* QA Notice: USE Flag 'objc' not in IUSE for sys-devel/gcc-apple-4.2.1_p5564 |
14 |
* QA Notice: USE Flag 'objc++' not in IUSE for sys-devel/gcc-apple-4.2.1_p5564 |
15 |
* QA Notice: USE Flag 'nls' not in IUSE for sys-devel/gcc-apple-4.2.1_p5564 |
16 |
* QA Notice: USE Flag 'prefix' not in IUSE for sys-devel/gcc-apple-4.2.1_p5564 |
17 |
* Configuring GCC with: |
18 |
--prefix=/Users/zhuyan/Gentoo/usr |
19 |
--bindir=/Users/zhuyan/Gentoo/usr/i686-apple-darwin9/gcc-bin/4.2.1 |
20 |
--includedir=/Users/zhuyan/Gentoo/usr/lib/gcc/i686-apple-darwin9/4.2.1/include |
21 |
--datadir=/Users/zhuyan/Gentoo/usr/share/gcc-data/i686-apple-darwin9/4.2.1 |
22 |
--mandir=/Users/zhuyan/Gentoo/usr/share/gcc-data/i686-apple-darwin9/4.2.1/man |
23 |
--infodir=/Users/zhuyan/Gentoo/usr/share/gcc-data/i686-apple-darwin9/4.2.1/info |
24 |
--libdir=/Users/zhuyan/Gentoo/usr/lib/gcc/i686-apple-darwin9/4.2.1 |
25 |
--with-gxx-include-dir=/Users/zhuyan/Gentoo/usr/lib/gcc/i686-apple-darwin9/4.2.1/include/g++-v4 |
26 |
--host=i686-apple-darwin9 |
27 |
--build=i686-apple-darwin9 |
28 |
--disable-nls |
29 |
--with-system-zlib |
30 |
--disable-checking |
31 |
--disable-werror |
32 |
--enable-shared |
33 |
--enable-threads=posix |
34 |
--with-local-prefix=/Users/zhuyan/Gentoo/usr |
35 |
--with-as=/Users/zhuyan/Gentoo/usr/bin/i686-apple-darwin9-as |
36 |
--with-ld=/Users/zhuyan/Gentoo/usr/bin/i686-apple-darwin9-ld |
37 |
--disable-multilib |
38 |
--enable-languages=c,c++,objc,obj-c++ |
39 |
creating cache ./config.cache |
40 |
checking host system type... i686-apple-darwin9 |
41 |
checking target system type... i686-apple-darwin9 |
42 |
checking build system type... i686-apple-darwin9 |
43 |
checking for a BSD compatible install... |
44 |
/Users/zhuyan/Gentoo/tmp/usr/bin/install -c |
45 |
checking whether ln works... yes |
46 |
checking whether ln -s works... yes |
47 |
checking for gcc... gcc |
48 |
checking whether the C compiler (gcc -O2 -pipe ) works... yes |
49 |
checking whether the C compiler (gcc -O2 -pipe ) is a cross-compiler... no |
50 |
checking whether we are using GNU C... yes |
51 |
checking whether gcc accepts -g... yes |
52 |
checking for gnatbind... no |
53 |
checking whether compiler driver understands Ada... no |
54 |
checking how to compare bootstrapped objects... cmp |
55 |
--ignore-initial=16 $$f1 $$f2 |
56 |
checking for correct version of gmp.h... no |
57 |
checking for bison... bison -y |
58 |
checking for bison... bison |
59 |
checking for gm4... gm4 |
60 |
checking for flex... flex |
61 |
checking for flex... flex |
62 |
checking for makeinfo... makeinfo |
63 |
checking for expect... expect |
64 |
checking for runtest... no |
65 |
checking for i686-apple-darwin9-ar... no |
66 |
checking for ar... ar |
67 |
checking for i686-apple-darwin9-as... no |
68 |
checking for as... as |
69 |
checking for i686-apple-darwin9-dlltool... no |
70 |
checking for dlltool... no |
71 |
checking for i686-apple-darwin9-ld... |
72 |
/usr/libexec/gcc/i686-apple-darwin9/4.0.1/ld |
73 |
checking for i686-apple-darwin9-lipo... no |
74 |
checking for lipo... lipo |
75 |
checking for i686-apple-darwin9-nm... no |
76 |
checking for nm... nm |
77 |
checking for i686-apple-darwin9-ranlib... no |
78 |
checking for ranlib... ranlib |
79 |
checking for i686-apple-darwin9-strip... no |
80 |
checking for strip... strip |
81 |
checking for i686-apple-darwin9-windres... no |
82 |
checking for windres... no |
83 |
checking for i686-apple-darwin9-objcopy... no |
84 |
checking for objcopy... no |
85 |
checking for i686-apple-darwin9-objdump... no |
86 |
checking for objdump... no |
87 |
checking for i686-apple-darwin9-cc... no |
88 |
checking for cc... cc |
89 |
checking for i686-apple-darwin9-c++... no |
90 |
checking for c++... c++ |
91 |
checking for i686-apple-darwin9-gcc... no |
92 |
checking for gcc... gcc |
93 |
checking for i686-apple-darwin9-gcj... no |
94 |
checking for gcj... no |
95 |
checking for i686-apple-darwin9-gfortran... no |
96 |
checking for gfortran... no |
97 |
checking for ar... no |
98 |
checking for i686-apple-darwin9-ar... no |
99 |
checking for ar... ar |
100 |
checking for as... no |
101 |
checking for i686-apple-darwin9-as... no |
102 |
checking for as... as |
103 |
checking for dlltool... no |
104 |
checking for i686-apple-darwin9-dlltool... no |
105 |
checking for dlltool... no |
106 |
checking for ld... no |
107 |
checking for i686-apple-darwin9-ld... no |
108 |
checking for ld... ld |
109 |
checking for lipo... no |
110 |
checking for i686-apple-darwin9-lipo... no |
111 |
checking for lipo... lipo |
112 |
checking for nm... no |
113 |
checking for i686-apple-darwin9-nm... no |
114 |
checking for nm... nm |
115 |
checking for objdump... no |
116 |
checking for i686-apple-darwin9-objdump... no |
117 |
checking for objdump... no |
118 |
checking for ranlib... no |
119 |
checking for i686-apple-darwin9-ranlib... no |
120 |
checking for ranlib... ranlib |
121 |
checking for strip... no |
122 |
checking for i686-apple-darwin9-strip... no |
123 |
checking for strip... strip |
124 |
checking for windres... no |
125 |
checking for i686-apple-darwin9-windres... no |
126 |
checking for windres... no |
127 |
checking where to find the target ar... host tool |
128 |
checking where to find the target as... host tool |
129 |
checking where to find the target cc... just compiled |
130 |
checking where to find the target c++... just compiled |
131 |
checking where to find the target c++ for libstdc++... just compiled |
132 |
checking where to find the target dlltool... host tool |
133 |
checking where to find the target gcc... just compiled |
134 |
checking where to find the target gcj... host tool |
135 |
checking where to find the target gfortran... host tool |
136 |
checking where to find the target ld... host tool |
137 |
checking where to find the target lipo... host tool |
138 |
checking where to find the target nm... host tool |
139 |
checking where to find the target objdump... host tool |
140 |
checking where to find the target ranlib... host tool |
141 |
checking where to find the target strip... host tool |
142 |
checking where to find the target windres... host tool |
143 |
checking whether to enable maintainer-specific portions of Makefiles... no |
144 |
checking whether -fkeep-inline-functions is supported... yes |
145 |
updating cache ./config.cache |
146 |
creating ./config.status |
147 |
creating Makefile |
148 |
echo stage3 > stage_final |
149 |
Configuring stage 1 in ./intl |
150 |
configure: creating cache ./config.cache |
151 |
checking whether make sets $(MAKE)... yes |
152 |
checking for a BSD-compatible install... |
153 |
/Users/zhuyan/Gentoo/tmp/usr/bin/install -c |
154 |
checking whether NLS is requested... no |
155 |
checking for msgfmt... /opt/local/bin/msgfmt |
156 |
checking for gmsgfmt... /opt/local/bin/msgfmt |
157 |
checking for xgettext... /opt/local/bin/xgettext |
158 |
checking for msgmerge... /opt/local/bin/msgmerge |
159 |
checking for i686-apple-darwin9-gcc... gcc |
160 |
checking for C compiler default output file name... a.out |
161 |
checking whether the C compiler works... yes |
162 |
checking whether we are cross compiling... no |
163 |
checking for suffix of executables... |
164 |
checking for suffix of object files... o |
165 |
checking whether we are using the GNU C compiler... yes |
166 |
checking whether gcc accepts -g... yes |
167 |
checking for gcc option to accept ANSI C... none needed |
168 |
checking build system type... i686-apple-darwin9 |
169 |
checking host system type... i686-apple-darwin9 |
170 |
checking for i686-apple-darwin9-ranlib... ranlib |
171 |
checking for library containing strerror... none required |
172 |
checking how to run the C preprocessor... gcc -E |
173 |
checking for egrep... grep -E |
174 |
checking for ANSI C header files... yes |
175 |
checking for an ANSI C-conforming const... yes |
176 |
checking for inline... inline |
177 |
checking for sys/types.h... yes |
178 |
checking for sys/stat.h... yes |
179 |
checking for stdlib.h... yes |
180 |
checking for string.h... yes |
181 |
checking for memory.h... yes |
182 |
checking for strings.h... yes |
183 |
checking for inttypes.h... yes |
184 |
checking for stdint.h... yes |
185 |
checking for unistd.h... yes |
186 |
checking for off_t... yes |
187 |
checking for size_t... yes |
188 |
checking for working alloca.h... yes |
189 |
checking for alloca... yes |
190 |
checking for stdlib.h... (cached) yes |
191 |
checking for unistd.h... (cached) yes |
192 |
checking for getpagesize... yes |
193 |
checking for working mmap... yes |
194 |
checking whether we are using the GNU C Library 2.1 or newer... no |
195 |
checking whether integer division by zero raises SIGFPE... yes |
196 |
checking for inttypes.h... yes |
197 |
checking for stdint.h... yes |
198 |
checking for unsigned long long... yes |
199 |
checking for inttypes.h... yes |
200 |
checking whether the inttypes.h PRIxNN macros are broken... no |
201 |
checking for ld used by GCC... /usr/libexec/gcc/i686-apple-darwin9/4.0.1/ld |
202 |
checking if the linker (/usr/libexec/gcc/i686-apple-darwin9/4.0.1/ld) |
203 |
is GNU ld... no |
204 |
checking for shared library run path origin... done |
205 |
checking argz.h usability... no |
206 |
checking argz.h presence... no |
207 |
checking for argz.h... no |
208 |
checking limits.h usability... yes |
209 |
checking limits.h presence... yes |
210 |
checking for limits.h... yes |
211 |
checking locale.h usability... yes |
212 |
checking locale.h presence... yes |
213 |
checking for locale.h... yes |
214 |
checking nl_types.h usability... yes |
215 |
checking nl_types.h presence... yes |
216 |
checking for nl_types.h... yes |
217 |
checking malloc.h usability... no |
218 |
checking malloc.h presence... no |
219 |
checking for malloc.h... no |
220 |
checking stddef.h usability... yes |
221 |
checking stddef.h presence... yes |
222 |
checking for stddef.h... yes |
223 |
checking for stdlib.h... (cached) yes |
224 |
checking for string.h... (cached) yes |
225 |
checking for unistd.h... (cached) yes |
226 |
checking sys/param.h usability... yes |
227 |
checking sys/param.h presence... yes |
228 |
checking for sys/param.h... yes |
229 |
checking for feof_unlocked... yes |
230 |
checking for fgets_unlocked... no |
231 |
checking for getc_unlocked... yes |
232 |
checking for getcwd... yes |
233 |
checking for getegid... yes |
234 |
checking for geteuid... yes |
235 |
checking for getgid... yes |
236 |
checking for getuid... yes |
237 |
checking for mempcpy... no |
238 |
checking for munmap... yes |
239 |
checking for putenv... yes |
240 |
checking for setenv... yes |
241 |
checking for setlocale... yes |
242 |
checking for stpcpy... yes |
243 |
checking for strcasecmp... yes |
244 |
checking for strdup... yes |
245 |
checking for strtoul... yes |
246 |
checking for tsearch... yes |
247 |
checking for __argz_count... no |
248 |
checking for __argz_stringify... no |
249 |
checking for __argz_next... no |
250 |
checking for __fsetlocking... no |
251 |
checking for iconv... yes |
252 |
checking how to link with libiconv... -liconv |
253 |
checking for iconv declaration... |
254 |
extern size_t iconv (iconv_t cd, char * *inbuf, size_t |
255 |
*inbytesleft, char * *outbuf, size_t *outbytesleft); |
256 |
checking for nl_langinfo and CODESET... yes |
257 |
checking for LC_MESSAGES... yes |
258 |
checking for bison... bison |
259 |
checking version of bison... 2.3, ok |
260 |
checking whether NLS is requested... no |
261 |
checking whether to use NLS... no |
262 |
checking for aclocal... aclocal |
263 |
checking for autoconf... autoconf |
264 |
checking for autoheader... autoheader |
265 |
updating cache ./config.cache |
266 |
configure: creating ./config.status |
267 |
config.status: creating Makefile |
268 |
config.status: creating config.intl |
269 |
config.status: creating config.h |
270 |
config.status: executing default-1 commands |
271 |
Configuring stage 1 in ./gcc |
272 |
configure: WARNING: unrecognized options: --disable-nls |
273 |
configure: creating cache ./config.cache |
274 |
checking build system type... i686-apple-darwin9 |
275 |
checking host system type... i686-apple-darwin9 |
276 |
checking target system type... i686-apple-darwin9 |
277 |
checking LIBRARY_PATH variable... ok |
278 |
checking GCC_EXEC_PREFIX variable... ok |
279 |
checking whether to place generated files in the source directory... no |
280 |
configure: error: cannot execute: |
281 |
/Users/zhuyan/Gentoo/usr/bin/i686-apple-darwin9-ld: check --with-ld or |
282 |
env. var. DEFAULT_LINKER |
283 |
make[2]: *** [configure-stage1-gcc] Error 1 |
284 |
make[1]: *** [stage1-bubble] Error 2 |
285 |
make: *** [bootstrap] Error 2 |
286 |
* ERROR: sys-devel/gcc-apple-4.2.1_p5564 failed: |
287 |
* emake failed |
288 |
* |
289 |
* Call stack: |
290 |
* ebuild.sh: 49: <call src_compile> |
291 |
* environment:4949: emake bootstrap || die "emake failed"; |
292 |
* |
293 |
* If you need support, post the topmost build error, and the call |
294 |
stack if relevant. |
295 |
* build log: '/Users/zhuyan/Gentoo/var/tmp/portage/sys-devel/gcc-apple-4.2.1_p5564/temp/build.log' |
296 |
* ebuild environment: |
297 |
'/Users/zhuyan/Gentoo/var/tmp/portage/sys-devel/gcc-apple-4.2.1_p5564/temp/environment' |
298 |
* S: '/Users/zhuyan/Gentoo/var/tmp/portage/sys-devel/gcc-apple-4.2.1_p5564/work/gcc_42-5564' |
299 |
|
300 |
|
301 |
In fact, file "/Users/zhuyan/Gentoo/usr/bin/i686-apple-darwin9-ld" |
302 |
does not exist... |
303 |
|
304 |
Thanks |
305 |
|
306 |
|
307 |
-- |
308 |
Yan Zhu |
309 |
Dept. of EECS |
310 |
Northwestern University |
311 |
Tel: 847-467-1465 |
312 |
Email: yan-zhu@××××××××××××.edu |
313 |
Homepage: http://www.ece.northwestern.edu/~yzh204/ |