1 |
Hello, |
2 |
|
3 |
First of all: thanks a ton for developing and supporting Gentoo |
4 |
Prefix, this project has been a great time saver (a true game changer) |
5 |
in my day-to-day devops. |
6 |
|
7 |
I've been able to bootstrap Gentoo Prefix successfully on a many |
8 |
systems (Redhat and CentOS) but I'm getting some resistance on Ubuntu |
9 |
Natty 11.04 (2.6.38-11-server x86_64). |
10 |
|
11 |
I can't get gcc-4.2 to compile: |
12 |
|
13 |
$ emerge --oneshot --nodeps "=gcc-4.2*" |
14 |
fails with "/usr/include/linux/errno.h:4:23: error: asm/errno.h: No |
15 |
such file or directory" |
16 |
|
17 |
I tried a quick fix with: |
18 |
$ emerge --oneshot linux-headers |
19 |
|
20 |
But now I'm getting a glibc related error (see below): "cannot find -lc". |
21 |
|
22 |
What am I missing? |
23 |
|
24 |
Thanks again. |
25 |
|
26 |
Regards, |
27 |
|
28 |
Nicolas |
29 |
|
30 |
|
31 |
(...) |
32 |
/mnt/md1/home/pinto/gentoo/var/tmp/portage/sys-devel/gcc-4.2.4-r01.4/work/build/./gcc/xgcc |
33 |
-B/mnt/md1/home/pinto/gentoo/var/tmp/portage/sys-devel/gcc-4.2.4-r01.4/work/build/./gcc/ |
34 |
-B/mnt/md1/home/pinto/gentoo/usr/x86_64-pc-linux-gnu/bin/ |
35 |
-B/mnt/md1/home/pinto/gentoo/usr/x86_64-pc-linux-gnu/lib/ -isystem |
36 |
/mnt/md1/home/pinto/gentoo/usr/x86_64-pc-linux-gnu/include -isystem |
37 |
/mnt/md1/home/pinto/gentoo/usr/x86_64-pc-linux-gnu/sys-include -O2 |
38 |
-O2 -O2 -pipe -DIN_GCC -W -Wall -Wwrite-strings |
39 |
-Wstrict-prototypes -Wmissing-prototypes -Wold-style-definition |
40 |
-isystem ./include -fPIC -g -DHAVE_GTHR_DEFAULT -DIN_LIBGCC2 |
41 |
-D__GCC_FLOAT_NOT_NEEDED -shared -nodefaultlibs |
42 |
-Wl,--soname=libgcc_s.so.1 -Wl,--version-script=libgcc/./libgcc.map -o |
43 |
./libgcc_s.so.1.tmp libgcc/./_muldi3_s.o libgcc/./_negdi2_s.o |
44 |
libgcc/./_lshrdi3_s.o libgcc/./_ashldi3_s.o libgcc/./_ashrdi3_s.o |
45 |
libgcc/./_cmpdi2_s.o libgcc/./_ucmpdi2_s.o libgcc/./_clear_cache_s.o |
46 |
libgcc/./_enable_execute_stack_s.o libgcc/./_trampoline_s.o |
47 |
libgcc/./__main_s.o libgcc/./_absvsi2_s.o libgcc/./_absvdi2_s.o |
48 |
libgcc/./_addvsi3_s.o libgcc/./_addvdi3_s.o libgcc/./_subvsi3_s.o |
49 |
libgcc/./_subvdi3_s.o libgcc/./_mulvsi3_s.o libgcc/./_mulvdi3_s.o |
50 |
libgcc/./_negvsi2_s.o libgcc/./_negvdi2_s.o libgcc/./_ctors_s.o |
51 |
libgcc/./_ffssi2_s.o libgcc/./_ffsdi2_s.o libgcc/./_clz_s.o |
52 |
libgcc/./_clzsi2_s.o libgcc/./_clzdi2_s.o libgcc/./_ctzsi2_s.o |
53 |
libgcc/./_ctzdi2_s.o libgcc/./_popcount_tab_s.o |
54 |
libgcc/./_popcountsi2_s.o libgcc/./_popcountdi2_s.o |
55 |
libgcc/./_paritysi2_s.o libgcc/./_paritydi2_s.o libgcc/./_powisf2_s.o |
56 |
libgcc/./_powidf2_s.o libgcc/./_powixf2_s.o libgcc/./_powitf2_s.o |
57 |
libgcc/./_mulsc3_s.o libgcc/./_muldc3_s.o libgcc/./_mulxc3_s.o |
58 |
libgcc/./_multc3_s.o libgcc/./_divsc3_s.o libgcc/./_divdc3_s.o |
59 |
libgcc/./_divxc3_s.o libgcc/./_divtc3_s.o libgcc/./_fixunssfsi_s.o |
60 |
libgcc/./_fixunsdfsi_s.o libgcc/./_fixunsxfsi_s.o |
61 |
libgcc/./_fixsfdi_s.o libgcc/./_fixunssfdi_s.o libgcc/./_floatdisf_s.o |
62 |
libgcc/./_floatundisf_s.o libgcc/./_fixdfdi_s.o |
63 |
libgcc/./_fixunsdfdi_s.o libgcc/./_floatdidf_s.o |
64 |
libgcc/./_floatundidf_s.o libgcc/./_fixxfdi_s.o |
65 |
libgcc/./_fixunsxfdi_s.o libgcc/./_floatdixf_s.o |
66 |
libgcc/./_floatundixf_s.o libgcc/./_fixtfdi_s.o |
67 |
libgcc/./_fixunstfdi_s.o libgcc/./_floatditf_s.o |
68 |
libgcc/./_floatunditf_s.o libgcc/./_divdi3_s.o libgcc/./_moddi3_s.o |
69 |
libgcc/./_udivdi3_s.o libgcc/./_umoddi3_s.o libgcc/./_udiv_w_sdiv_s.o |
70 |
libgcc/./_udivmoddi4_s.o libgcc/./unwind-dw2_s.o |
71 |
libgcc/./unwind-dw2-fde-glibc_s.o libgcc/./unwind-sjlj_s.o |
72 |
libgcc/./gthr-gnat_s.o libgcc/./unwind-c_s.o -lc && rm -f |
73 |
./libgcc_s.so && if [ -f ./libgcc_s.so.1 ]; then mv -f ./libgcc_s.so.1 |
74 |
./libgcc_s.so.1.backup; else true; fi && mv ./libgcc_s.so.1.tmp |
75 |
./libgcc_s.so.1 && ln -s libgcc_s.so.1 ./libgcc_s.so |
76 |
/mnt/md1/home/pinto/gentoo/usr/x86_64-pc-linux-gnu/bin/ld: cannot find -lc |
77 |
collect2: ld returned 1 exit status |
78 |
make[4]: *** [libgcc_s.so] Error 1 |
79 |
make[4]: Leaving directory |
80 |
`/mnt/md1/home/pinto/gentoo/var/tmp/portage/sys-devel/gcc-4.2.4-r01.4/work/build/gcc' |
81 |
make[3]: *** [stmp-multilib] Error 2 |
82 |
make[3]: Leaving directory |
83 |
`/mnt/md1/home/pinto/gentoo/var/tmp/portage/sys-devel/gcc-4.2.4-r01.4/work/build/gcc' |
84 |
make[2]: *** [all-stage1-gcc] Error 2 |
85 |
make[2]: Leaving directory |
86 |
`/mnt/md1/home/pinto/gentoo/var/tmp/portage/sys-devel/gcc-4.2.4-r01.4/work/build' |
87 |
make[1]: *** [stage1-bubble] Error 2 |
88 |
make[1]: Leaving directory |
89 |
`/mnt/md1/home/pinto/gentoo/var/tmp/portage/sys-devel/gcc-4.2.4-r01.4/work/build' |
90 |
make: *** [bootstrap-lean] Error 2 |
91 |
emake failed |
92 |
* ERROR: sys-devel/gcc-4.2.4-r01.4 failed (compile phase): |
93 |
* emake failed with bootstrap-lean |
94 |
* |
95 |
* Call stack: |
96 |
* ebuild.sh, line 98: Called src_compile |
97 |
* environment, line 5042: Called gcc_src_compile |
98 |
* environment, line 3177: Called gcc_do_make |
99 |
* environment, line 2973: Called die |
100 |
* The specific snippet of code: |
101 |
* emake LDFLAGS="${LDFLAGS}" STAGE1_CFLAGS="${STAGE1_CFLAGS}" |
102 |
LIBPATH="${EPREFIX}${LIBPATH}" BOOT_CFLAGS="${BOOT_CFLAGS}" |
103 |
${GCC_MAKE_TARGET} || die "emake failed with ${GCC_MAKE_TARGET}"; |
104 |
* |
105 |
* If you need support, post the output of 'emerge --info |
106 |
=sys-devel/gcc-4.2.4-r01.4', |
107 |
* the complete build log and the output of 'emerge -pqv |
108 |
=sys-devel/gcc-4.2.4-r01.4'. |
109 |
* The complete build log is located at |
110 |
'/mnt/md1/home/pinto/gentoo/var/tmp/portage/sys-devel/gcc-4.2.4-r01.4/temp/build.log'. |
111 |
* The ebuild environment file is located at |
112 |
'/mnt/md1/home/pinto/gentoo/var/tmp/portage/sys-devel/gcc-4.2.4-r01.4/temp/environment'. |
113 |
* S: '/mnt/md1/home/pinto/gentoo/var/tmp/portage/sys-devel/gcc-4.2.4-r01.4/work/build' |
114 |
|
115 |
>>> Failed to emerge sys-devel/gcc-4.2.4-r01.4, Log file: |
116 |
|
117 |
>>> '/mnt/md1/home/pinto/gentoo/var/tmp/portage/sys-devel/gcc-4.2.4-r01.4/temp/build.log' |
118 |
|
119 |
* Messages for package sys-devel/gcc-4.2.4-r01.4: |
120 |
|
121 |
* Your ${EPREFIX} contains one or more symlinks. GCC has a |
122 |
* bug which prevents it from working properly when there are |
123 |
* symlinks in your ${EPREFIX}. |
124 |
* See http://gcc.gnu.org/bugzilla/show_bug.cgi?id=29831 |
125 |
* Continuing with your EPREFIX set to: |
126 |
* /mnt/md1/home/pinto/gentoo |
127 |
* Can't read /config.sub, skipping.. |
128 |
* Can't read /config.guess, skipping.. |
129 |
* ERROR: sys-devel/gcc-4.2.4-r01.4 failed (compile phase): |
130 |
* emake failed with bootstrap-lean |
131 |
* |
132 |
* Call stack: |
133 |
* ebuild.sh, line 98: Called src_compile |
134 |
* environment, line 5042: Called gcc_src_compile |
135 |
* environment, line 3177: Called gcc_do_make |
136 |
* environment, line 2973: Called die |
137 |
* The specific snippet of code: |
138 |
* emake LDFLAGS="${LDFLAGS}" STAGE1_CFLAGS="${STAGE1_CFLAGS}" |
139 |
LIBPATH="${EPREFIX}${LIBPATH}" BOOT_CFLAGS="${BOOT_CFLAGS}" |
140 |
${GCC_MAKE_TARGET} || die "emake failed with ${GCC_MAKE_TARGET}"; |
141 |
* |
142 |
* If you need support, post the output of 'emerge --info |
143 |
=sys-devel/gcc-4.2.4-r01.4', |
144 |
* the complete build log and the output of 'emerge -pqv |
145 |
=sys-devel/gcc-4.2.4-r01.4'. |
146 |
* The complete build log is located at |
147 |
'/mnt/md1/home/pinto/gentoo/var/tmp/portage/sys-devel/gcc-4.2.4-r01.4/temp/build.log'. |
148 |
* The ebuild environment file is located at |
149 |
'/mnt/md1/home/pinto/gentoo/var/tmp/portage/sys-devel/gcc-4.2.4-r01.4/temp/environment'. |
150 |
* S: '/mnt/md1/home/pinto/gentoo/var/tmp/portage/sys-devel/gcc-4.2.4-r01.4/work/build' |