1 |
Hello, |
2 |
|
3 |
I apologize if this is a double post; this is my first time doing this. |
4 |
|
5 |
I've been trying to bootstrap Gentoo Prefix on OS X using this guide: |
6 |
http://www.gentoo.org/proj/en/gentoo-alt/prefix/bootstrap-macos.xml. |
7 |
I've hit two roadblocks. |
8 |
|
9 |
The first happens when I try to run "emerge --oneshot sed" (Code Listing |
10 |
1.6). I get an error from python saying: |
11 |
|
12 |
!!! Failed to complete portage imports. There are internal modules for |
13 |
!!! portage and failure here indicates that you have a problem with your |
14 |
!!! installation of portage. Please try a rescue portage located in the |
15 |
!!! portage tree under '/usr/portage/sys-apps/portage/files/' (default). |
16 |
!!! There is a README.RESCUE file that details the steps required to |
17 |
perform |
18 |
!!! a recovery of portage. |
19 |
No module named _md5 |
20 |
Traceback (most recent call last): |
21 |
File "/Users/matt/Gentoo/usr/bin/emerge", line 14, in <module> |
22 |
import _emerge |
23 |
File "/Users/matt/Gentoo/usr/lib/portage/pym/_emerge/__init__.py", |
24 |
line 44, in <module> |
25 |
import portage |
26 |
File "/Users/matt/Gentoo/usr/lib/portage/pym/portage/__init__.py", |
27 |
line 76, in <module> |
28 |
import portage.getbinpkg |
29 |
File |
30 |
"/Users/matt/Gentoo/usr/lib/portage/pym/portage/getbinpkg.py", line 14, |
31 |
in <module> |
32 |
import urllib2 |
33 |
File "/Users/matt/Gentoo/tmp/usr/lib/python2.5/urllib2.py", line |
34 |
91, in <module> |
35 |
import hashlib |
36 |
File "/Users/matt/Gentoo/tmp/usr/lib/python2.5/hashlib.py", line |
37 |
133, in <module> |
38 |
md5 = __get_builtin_constructor('md5') |
39 |
File "/Users/matt/Gentoo/tmp/usr/lib/python2.5/hashlib.py", line |
40 |
60, in __get_builtin_constructor |
41 |
import _md5 |
42 |
ImportError: No module named _md5 |
43 |
|
44 |
I was unable to find any info about fixing it, so I symlinked |
45 |
Gentoo/tmp/usr/bin/python to /usr/bin/python and everything worked fine |
46 |
until I reached "emerge --oneshot --nodeps gcc-apple" (Code Listing |
47 |
1.8). Then I got this error: |
48 |
|
49 |
gcc -c -g -DIN_GCC -W -Wall -Wwrite-strings -Wstrict-prototypes |
50 |
-Wmissing-prototypes -fno-common -mdynamic-no-pic -DHAVE_CONFIG_H |
51 |
-DGENERATOR_FILE -I. -Ibuild |
52 |
-I/Users/matt/Gentoo/var/tmp/portage/sys-devel/gcc-apple-4.2.1_p5564/work/gcc_42-5564/gcc |
53 |
-I/Users/matt/Gentoo/var/tmp/portage/sys-devel/gcc-apple-4.2.1_p5564/work/gcc_42-5564/gcc/build |
54 |
-I/Users/matt/Gentoo/var/tmp/portage/sys-devel/gcc-apple-4.2.1_p5564/work/gcc_42-5564/gcc/../include |
55 |
-I/Users/matt/Gentoo/var/tmp/portage/sys-devel/gcc-apple-4.2.1_p5564/work/gcc_42-5564/gcc/../libcpp/include |
56 |
|
57 |
-I/Users/matt/Gentoo/var/tmp/portage/sys-devel/gcc-apple-4.2.1_p5564/work/gcc_42-5564/gcc/../libdecnumber |
58 |
-I../libdecnumber -I/Users/matt/Gentoo/usr/include -o |
59 |
build/gencondmd.o build/gencondmd.c |
60 |
gcc -g -fkeep-inline-functions -DIN_GCC -W -Wall -Wwrite-strings |
61 |
-Wstrict-prototypes -Wmissing-prototypes -Wold-style-definition |
62 |
-Wmissing-format-attribute -fno-common -mdynamic-no-pic -DHAVE_CONFIG_H |
63 |
-DGENERATOR_FILE -o build/gencondmd \ |
64 |
build/gencondmd.o build/errors.o |
65 |
../build-i686-apple-darwin9/libiberty/libiberty.a |
66 |
build/gencondmd > tmp-cond.md |
67 |
/bin/sh |
68 |
/Users/matt/Gentoo/var/tmp/portage/sys-devel/gcc-apple-4.2.1_p5564/work/gcc_42-5564/gcc/../move-if-change |
69 |
tmp-cond.md insn-conditions.md |
70 |
echo timestamp > s-condmd |
71 |
build/genflags |
72 |
/Users/matt/Gentoo/var/tmp/portage/sys-devel/gcc-apple-4.2.1_p5564/work/gcc_42-5564/gcc/config/i386/i386.md |
73 |
\ |
74 |
insn-conditions.md > tmp-flags.h |
75 |
/bin/sh |
76 |
/Users/matt/Gentoo/var/tmp/portage/sys-devel/gcc-apple-4.2.1_p5564/work/gcc_42-5564/gcc/../move-if-change |
77 |
tmp-flags.h insn-flags.h |
78 |
echo timestamp > s-flags |
79 |
gcc -c -g -fkeep-inline-functions -DIN_GCC -W -Wall -Wwrite-strings |
80 |
-Wstrict-prototypes -Wmissing-prototypes -Wold-style-definition |
81 |
-Wmissing-format-attribute -fno-common -mdynamic-no-pic -DHAVE_CONFIG_H |
82 |
-I. -I. |
83 |
-I/Users/matt/Gentoo/var/tmp/portage/sys-devel/gcc-apple-4.2.1_p5564/work/gcc_42-5564/gcc |
84 |
-I/Users/matt/Gentoo/var/tmp/portage/sys-devel/gcc-apple-4.2.1_p5564/work/gcc_42-5564/gcc/. |
85 |
-I/Users/matt/Gentoo/var/tmp/portage/sys-devel/gcc-apple-4.2.1_p5564/work/gcc_42-5564/gcc/../include |
86 |
-I/Users/matt/Gentoo/var/tmp/portage/sys-devel/gcc-apple-4.2.1_p5564/work/gcc_42-5564/gcc/../libcpp/include |
87 |
|
88 |
-I/Users/matt/Gentoo/var/tmp/portage/sys-devel/gcc-apple-4.2.1_p5564/work/gcc_42-5564/gcc/../libdecnumber |
89 |
-I../libdecnumber -I/Users/matt/Gentoo/usr/include |
90 |
/Users/matt/Gentoo/var/tmp/portage/sys-devel/gcc-apple-4.2.1_p5564/work/gcc_42-5564/gcc/c-lang.c |
91 |
-o c-lang.o |
92 |
In file included from |
93 |
/Users/matt/Gentoo/var/tmp/portage/sys-devel/gcc-apple-4.2.1_p5564/work/gcc_42-5564/gcc/c-lang.c:24: |
94 |
/Users/matt/Gentoo/var/tmp/portage/sys-devel/gcc-apple-4.2.1_p5564/work/gcc_42-5564/gcc/system.h:418: |
95 |
error: conflicting types for ‘strsignal’ |
96 |
/usr/include/string.h:136: error: previous declaration of ‘strsignal’ |
97 |
was here |
98 |
In file included from ./tm.h:4, |
99 |
from |
100 |
/Users/matt/Gentoo/var/tmp/portage/sys-devel/gcc-apple-4.2.1_p5564/work/gcc_42-5564/gcc/c-lang.c:26: |
101 |
./options.h:473: error: ‘CHAR_BIT’ undeclared here (not in a function) |
102 |
./options.h:473: error: bit-field ‘padding’ width not an integer constant |
103 |
In file included from |
104 |
/Users/matt/Gentoo/var/tmp/portage/sys-devel/gcc-apple-4.2.1_p5564/work/gcc_42-5564/gcc/input.h:25, |
105 |
from |
106 |
/Users/matt/Gentoo/var/tmp/portage/sys-devel/gcc-apple-4.2.1_p5564/work/gcc_42-5564/gcc/tree.h:27, |
107 |
from |
108 |
/Users/matt/Gentoo/var/tmp/portage/sys-devel/gcc-apple-4.2.1_p5564/work/gcc_42-5564/gcc/c-lang.c:27: |
109 |
/Users/matt/Gentoo/var/tmp/portage/sys-devel/gcc-apple-4.2.1_p5564/work/gcc_42-5564/gcc/../libcpp/include/line-map.h:56: |
110 |
error: bit-field ‘reason’ width not an integer constant |
111 |
/Users/matt/Gentoo/var/tmp/portage/sys-devel/gcc-apple-4.2.1_p5564/work/gcc_42-5564/gcc/../libcpp/include/line-map.h:56: |
112 |
warning: ‘reason’ is narrower than values of its type |
113 |
In file included from |
114 |
/Users/matt/Gentoo/var/tmp/portage/sys-devel/gcc-apple-4.2.1_p5564/work/gcc_42-5564/gcc/c-common.h:26, |
115 |
from |
116 |
/Users/matt/Gentoo/var/tmp/portage/sys-devel/gcc-apple-4.2.1_p5564/work/gcc_42-5564/gcc/c-tree.h:25, |
117 |
from |
118 |
/Users/matt/Gentoo/var/tmp/portage/sys-devel/gcc-apple-4.2.1_p5564/work/gcc_42-5564/gcc/c-lang.c:28: |
119 |
/Users/matt/Gentoo/var/tmp/portage/sys-devel/gcc-apple-4.2.1_p5564/work/gcc_42-5564/gcc/../libcpp/include/cpplib.h:204: |
120 |
error: bit-field ‘type’ width not an integer constant |
121 |
/Users/matt/Gentoo/var/tmp/portage/sys-devel/gcc-apple-4.2.1_p5564/work/gcc_42-5564/gcc/../libcpp/include/cpplib.h:204: |
122 |
warning: ‘type’ is narrower than values of its type |
123 |
|
124 |
|
125 |
I'm running OS X 10.5.6 on an Intel Macbook Pro. I'm using XCode 3.1.2 |
126 |
|
127 |
Any help would be greatly appreciated. |