1 |
Did you tried to override ARCH in your chroot : |
2 |
|
3 |
export ARCH=x86 |
4 |
|
5 |
|
6 |
Useful in an x86 chroot located on a x86_64 platform. |
7 |
|
8 |
|
9 |
|
10 |
Cheers, |
11 |
|
12 |
Tony Lapointe |
13 |
|
14 |
|
15 |
On Tue, 2011-12-13 at 12:39 +0000, Ed W wrote: |
16 |
> On 13/12/2011 00:29, Matthew Thode (prometheanfire) wrote: |
17 |
> > On Tue, 13 Dec 2011 00:08:51 +0000 |
18 |
> > Ed W <lists@××××××××××.com> wrote: |
19 |
> > |
20 |
> >> So I am building in a chroot an x86 system: |
21 |
> >> |
22 |
> >> CFLAGS="-march=k6-2 -Os -pipe -fomit-frame-pointer" |
23 |
> >> CXXFLAGS="${CFLAGS}" |
24 |
> >> LDFLAGS="-Wl,-z,relro" |
25 |
> >> CHOST="i486-gentoo-linux-uclibc" |
26 |
> >> |
27 |
> >> And emerge gcc-4.4.6-1 warns: |
28 |
> >> |
29 |
> >> * Your x86 arch is not supported. |
30 |
> >> * Hope you know what you are doing. Hardened will not work. |
31 |
> >> |
32 |
> >> What might I be missing...? Seems like it was working ok some weeks |
33 |
> >> back...? |
34 |
> >> |
35 |
> >> Thanks |
36 |
> >> |
37 |
> >> Ed W |
38 |
> >> |
39 |
> > Is this within kvm? If so, what is the output of 'cat /proc/cpuinfo'? |
40 |
> |
41 |
> No. Although perhaps more background is useful: |
42 |
> |
43 |
> uclibc-0.9.33(git) |
44 |
> host is an amd64 gentoo system |
45 |
> chroot is an i486/32bit gentoo system, used as a compile base for my |
46 |
> embedded Alix board |
47 |
> |
48 |
> At the end of the install I see: |
49 |
> * Messages for package sys-devel/gcc-4.4.6-r1: |
50 |
> |
51 |
> * Your x86 arch is not supported. |
52 |
> * Hope you know what you are doing. Hardened will not work. |
53 |
> * SSP has not been enabled by default |
54 |
> * Your x86 arch is not supported. |
55 |
> * Hope you know what you are doing. Hardened will not work. |
56 |
> * Skipping libstdc++ manpage generation since you don't have doxygen |
57 |
> installed |
58 |
> * Your x86 arch is not supported. |
59 |
> * Hope you know what you are doing. Hardened will not work. |
60 |
> * If you have issues with packages unable to locate libstdc++.la, |
61 |
> * then try running 'fix_libtool_files.sh' on the old gcc versions. |
62 |
> |
63 |
> |
64 |
> I am thinking it's the uclibc which is the issue? What else might I |
65 |
> worry about though...? |
66 |
> |
67 |
> |
68 |
> |
69 |
> Host looks like this: |
70 |
> |
71 |
> # cat /proc/cpuinfo |
72 |
> processor : 0 |
73 |
> vendor_id : GenuineIntel |
74 |
> cpu family : 6 |
75 |
> model : 15 |
76 |
> model name : Intel(R) Core(TM)2 Quad CPU Q6600 @ 2.40GHz |
77 |
> stepping : 11 |
78 |
> cpu MHz : 2400.000 |
79 |
> cache size : 4096 KB |
80 |
> physical id : 0 |
81 |
> siblings : 4 |
82 |
> core id : 0 |
83 |
> cpu cores : 4 |
84 |
> apicid : |
85 |
> 0 |
86 |
> [0/4702] |
87 |
> initial apicid : 0 |
88 |
> fpu : yes |
89 |
> fpu_exception : yes |
90 |
> cpuid level : 10 |
91 |
> wp : yes |
92 |
> flags : fpu vme de pse tsc msr pae mce cx8 apic mtrr pge mca |
93 |
> cmov pat pse36 clflush dts acpi mmx fxsr sse sse2 ss ht tm pbe syscall |
94 |
> nx lm constant_tsc arch_perfmon pebs bts rep_good aperfmperf pni dtes64 |
95 |
> monitor ds_cpl vmx est tm2 ssse3 cx16 xtpr pdcm lahf_lm dts tpr_shadow |
96 |
> vnmi flexpriority |
97 |
> bogomips : 4799.93 |
98 |
> clflush size : 64 |
99 |
> cache_alignment : 64 |
100 |
> address sizes : 36 bits physical, 48 bits virtual |
101 |
> power management: |
102 |
> |
103 |
> processor : 1 |
104 |
> vendor_id : GenuineIntel |
105 |
> cpu family : 6 |
106 |
> model : 15 |
107 |
> model name : Intel(R) Core(TM)2 Quad CPU Q6600 @ 2.40GHz |
108 |
> stepping : 11 |
109 |
> cpu MHz : 2400.000 |
110 |
> cache size : 4096 KB |
111 |
> physical id : 0 |
112 |
> siblings : 4 |
113 |
> core id : 3 |
114 |
> cpu cores : 4 |
115 |
> apicid : 3 |
116 |
> initial apicid : 3 |
117 |
> fpu : yes |
118 |
> fpu_exception : yes |
119 |
> cpuid level : 10 |
120 |
> wp : yes |
121 |
> flags : fpu vme de pse tsc msr pae mce cx8 apic mtrr pge mca |
122 |
> cmov pat pse36 clflush dts acpi mmx fxsr sse sse2 ss ht tm pbe syscall |
123 |
> nx lm constant_tsc arch_perfmon pebs bts rep_good aperfmperf pni dtes64 |
124 |
> monitor ds_cpl vmx est tm2 ssse3 cx16 xtpr pdcm lahf_lm dts tpr_shadow |
125 |
> vnmi flexpriority |
126 |
> bogomips : 4800.20 |
127 |
> clflush size : 64 |
128 |
> cache_alignment : 64 |
129 |
> address sizes : 36 bits physical, 48 bits virtual |
130 |
> power management: |
131 |
> |
132 |
> processor : 2 |
133 |
> vendor_id : GenuineIntel |
134 |
> cpu family : 6 |
135 |
> model : 15 |
136 |
> model name : Intel(R) Core(TM)2 Quad CPU Q6600 @ 2.40GHz |
137 |
> stepping : 11 |
138 |
> cpu MHz : 2400.000 |
139 |
> cache size : 4096 KB |
140 |
> physical id : 0 |
141 |
> siblings : 4 |
142 |
> core id : 1 |
143 |
> cpu cores : 4 |
144 |
> apicid : 1 |
145 |
> initial apicid : 1 |
146 |
> fpu : yes |
147 |
> fpu_exception : yes |
148 |
> cpuid level : 10 |
149 |
> wp : yes |
150 |
> flags : fpu vme de pse tsc msr pae mce cx8 apic mtrr pge mca |
151 |
> cmov pat pse36 clflush dts acpi mmx fxsr sse sse2 ss ht tm pbe syscall |
152 |
> nx lm constant_tsc arch_perfmon pebs bts rep_good aperfmperf pni dtes64 |
153 |
> monitor ds_cpl vmx est tm2 ssse3 cx16 xtpr pdcm lahf_lm dts tpr_shadow |
154 |
> vnmi flexpriority |
155 |
> bogomips : 4800.16 |
156 |
> clflush size : 64 |
157 |
> cache_alignment : 64 |
158 |
> address sizes : 36 bits physical, 48 bits virtual |
159 |
> power management: |
160 |
> |
161 |
> processor : 3 |
162 |
> vendor_id : GenuineIntel |
163 |
> cpu family : 6 |
164 |
> model : 15 |
165 |
> model name : Intel(R) Core(TM)2 Quad CPU Q6600 @ 2.40GHz |
166 |
> stepping : 11 |
167 |
> cpu MHz : 2400.000 |
168 |
> cache size : 4096 KB |
169 |
> physical id : 0 |
170 |
> siblings : 4 |
171 |
> core id : 2 |
172 |
> cpu cores : 4 |
173 |
> apicid : 2 |
174 |
> initial apicid : 2 |
175 |
> fpu : yes |
176 |
> fpu_exception : yes |
177 |
> cpuid level : 10 |
178 |
> wp : yes |
179 |
> flags : fpu vme de pse tsc msr pae mce cx8 apic mtrr pge mca |
180 |
> cmov pat pse36 clflush dts acpi mmx fxsr sse sse2 ss ht tm pbe syscall |
181 |
> nx lm constant_tsc arch_perfmon pebs bts rep_good aperfmperf pni dtes64 |
182 |
> monitor ds_cpl vmx est tm2 ssse3 cx16 xtpr pdcm lahf_lm dts tpr_shadow |
183 |
> vnmi flexpriority |
184 |
> bogomips : 4800.17 |
185 |
> clflush size : 64 |
186 |
> cache_alignment : 64 |
187 |
> address sizes : 36 bits physical, 48 bits virtual |
188 |
> power management: |
189 |
> |
190 |
> |
191 |
> |