1 |
÷ Tue, 20 Nov 2012 16:54:39 +0200 |
2 |
Yannis Kontekakis <tolis@×××××××××××.gr> ÐÉÛÅÔ: |
3 |
|
4 |
> Hello, |
5 |
> |
6 |
> I am trying to install erlang on a hardened amd64 gentoo system running |
7 |
> on a kvm guest. The use flags and version of erlang are the following: |
8 |
> |
9 |
> dev-lang/erlang-15.2 USE="hipe java kpoll odbc smp ssl -compat-ethread |
10 |
> -doc -emacs -halfword -sctp -tk -wxwidgets" |
11 |
> |
12 |
> my CFLAGS are: |
13 |
> CFLAGS="-march=core2 -O2 -pipe" |
14 |
> CXXFLAGS="${CFLAGS}" |
15 |
> |
16 |
> cat /proc/cpuinfo reports 4 cores of: |
17 |
> |
18 |
> processor : 3 |
19 |
> vendor_id : AuthenticAMD |
20 |
> cpu family : 6 |
21 |
> model : 2 |
22 |
> model name : QEMU Virtual CPU version 1.0 |
23 |
> stepping : 3 |
24 |
> microcode : 0x1000065 |
25 |
> cpu MHz : 2100.278 |
26 |
> cache size : 512 KB |
27 |
> fpu : yes |
28 |
> fpu_exception : yes |
29 |
> cpuid level : 4 |
30 |
> wp : yes |
31 |
> flags : fpu de pse tsc msr pae mce cx8 apic sep mtrr pge mca cmov |
32 |
> pat pse36 clflush mmx fxsr sse sse2 syscall nx lm nopl pni cx16 popcnt |
33 |
> hypervisor lahf_lm svm abm sse4a |
34 |
> bogomips : 4200.55 |
35 |
> TLB size : 1024 4K pages |
36 |
> clflush size : 64 |
37 |
> cache_alignment : 64 |
38 |
> address sizes : 40 bits physical, 48 bits virtual |
39 |
> power management: |
40 |
> |
41 |
> the error message that emerge prints while dying: |
42 |
> |
43 |
> === Entering application hipe |
44 |
> make[3]: Entering directory |
45 |
> `/var/tmp/portage/dev-lang/erlang-15.2/work/otp_src_R15B/lib/hipe/rtl' |
46 |
> (cd ../main && make hipe.hrl) |
47 |
> make[4]: Entering directory |
48 |
> `/var/tmp/portage/dev-lang/erlang-15.2/work/otp_src_R15B/lib/hipe/main' |
49 |
> sed -e "s;%VSN%;3.9;" ../../hipe/main/hipe.hrl.src > |
50 |
> ../../hipe/main/hipe.hrl |
51 |
> make[4]: Leaving directory |
52 |
> `/var/tmp/portage/dev-lang/erlang-15.2/work/otp_src_R15B/lib/hipe/main' |
53 |
> erlc -W +debug_info +inline -o../ebin hipe_rtl.erl |
54 |
> make[3]: *** [../ebin/hipe_rtl.beam] Illegal instruction |
55 |
> make[3]: Leaving directory |
56 |
> `/var/tmp/portage/dev-lang/erlang-15.2/work/otp_src_R15B/lib/hipe/rtl' |
57 |
> make[2]: *** [opt] Error 2 |
58 |
> make[2]: Leaving directory |
59 |
> `/var/tmp/portage/dev-lang/erlang-15.2/work/otp_src_R15B/lib/hipe' |
60 |
> make[1]: *** [opt] Error 2 |
61 |
> make[1]: Leaving directory |
62 |
> `/var/tmp/portage/dev-lang/erlang-15.2/work/otp_src_R15B/lib' |
63 |
> make: *** [secondary_bootstrap_build] Error 2 |
64 |
> emake failed |
65 |
> * ERROR: dev-lang/erlang-15.2 failed (compile phase): |
66 |
> * (no error message) |
67 |
> * |
68 |
> * Call stack: |
69 |
> * ebuild.sh, line 93: Called src_compile |
70 |
> * environment, line 3965: Called die |
71 |
> * The specific snippet of code: |
72 |
> * emake -j1 || die; |
73 |
> * |
74 |
> |
75 |
> And finally, dmesg reports: |
76 |
> beam.smp[27752] trap invalid opcode ip:54b49c00c4 sp:3d9f459d3f0 error:0 |
77 |
> in beam.smp[54b48e4000+261000] |
78 |
> |
79 |
> Emerging erlang on my desktop(a similar hardened gentoo setup) completes |
80 |
> successfully. The only thing I can think of is that something is wrong |
81 |
> with my CFLAGS(but this is just an assumption). |
82 |
> |
83 |
> Any help would be appreciated |
84 |
> |
85 |
> Regards, |
86 |
> |
87 |
> Yannis |
88 |
> |
89 |
|
90 |
It seems that KVM host is and AMD-based system. I suggest you to drop |
91 |
"-march=core2" from CFLAGS. Or if you do not plan to migrate this VM |
92 |
you can also try to replace it with something like "-march=amdfam10 |
93 |
-mno-3dnow". :) |
94 |
|
95 |
-- |
96 |
With best regards, |
97 |
Alexander Tsoy |