Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
Illegal Instruction with Xeon E5-2630L
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Gentoo on AMD64
View previous topic :: View next topic  
Author Message
aleiphoenix
n00b
n00b


Joined: 03 Sep 2012
Posts: 27

PostPosted: Tue Oct 08, 2013 10:44 am    Post subject: Illegal Instruction with Xeon E5-2630L Reply with quote

Hi, I'm using gentoo on Linode VPS with a CPU which type is Xeon E5-2630L

I get the CFLGAS settings from

Code:

echo "int main(){return 0;}" > test.c && cc -v -Q -march=native -O2 -pipe test.c -o test && ./test && rm test test.c


which output

Code:

options passed:  -v test.c -march=corei7-avx -mcx16 -msahf -mno-movbe
 -maes -mpclmul -mpopcnt -mno-abm -mno-lwp -mno-fma -mno-fma4 -mno-xop
 -mno-bmi -mno-tbm -mavx -msse4.2 -msse4.1 --param l1-cache-size=32
 --param l1-cache-line-size=64 --param l2-cache-size=15360 -mtune=generic
 -O2


but after re-emerged something (say nano), I got "Illegal Instruction".

Anyone tells me why corei7-avx not working with E5-2630L (nor "native") ?

Thanks.

I'm now using -march=core2


/proc/cpuinfo

Code:

processor       : 7
vendor_id       : GenuineIntel
cpu family      : 6
model           : 45
model name      : Intel(R) Xeon(R) CPU E5-2630L 0 @ 2.00GHz
stepping        : 7
microcode       : 0x70d
cpu MHz         : 2000.058
cache size      : 15360 KB
physical id     : 0
siblings        : 8
core id         : 0
cpu cores       : 1
apicid          : 0
initial apicid  : 40
fpu             : yes
fpu_exception   : yes
cpuid level     : 13
wp              : yes
flags           : fpu de tsc msr pae cx8 sep cmov pat clflush mmx fxsr sse sse2 ss ht syscall nx lm constant_tsc rep_good nopl nonstop_tsc pni pclmulqdq ssse3 cx16 sse4_1 sse4_2 popcnt tsc_deadline_timer aes hypervisor lahf_lm ida arat epb pln pts dtherm
bogomips        : 4000.11
clflush size    : 64
cache_alignment : 64
address sizes   : 46 bits physical, 48 bits virtual
power management:

Back to top
View user's profile Send private message
eyoung100
Veteran
Veteran


Joined: 23 Jan 2004
Posts: 1428

PostPosted: Tue Oct 08, 2013 3:25 pm    Post subject: Reply with quote

Look at the Safe CFlags. The Closest You can get is:
Code:
vendor_id   : GenuineIntel
cpu family   : 6
model      : 42


42 < 45 < 60. You cannot use 60

/etc/portage/make.conf
CHOST="x86_64-pc-linux-gnu"
CFLAGS="-march=corei7 -O2 -pipe"
CXXFLAGS="${CFLAGS}"

and according to Intel® Xeon® Processor E5-2630L
(15M Cache, 2.00 GHz, 7.20 GT/s Intel® QPI)
, you have 6 Cores so you should add:

/etc/portage/make.conf
MAKEOPTS="-j7"
_________________
The Birth and Growth of Science is the Death and Atrophy of Art -- Unknown
Registerd Linux User #363735
Adopt a Post | Strip Comments| Emerge Wrapper
Back to top
View user's profile Send private message
aleiphoenix
n00b
n00b


Joined: 03 Sep 2012
Posts: 27

PostPosted: Wed Oct 09, 2013 11:19 am    Post subject: Reply with quote

eyoung100 wrote:
Look at the Safe CFlags. The Closest You can get is:
Code:
vendor_id   : GenuineIntel
cpu family   : 6
model      : 42


42 < 45 < 60. You cannot use 60


OK, this make sense.

Thanks!
Back to top
View user's profile Send private message
eyoung100
Veteran
Veteran


Joined: 23 Jan 2004
Posts: 1428

PostPosted: Wed Oct 09, 2013 1:47 pm    Post subject: Reply with quote

NP, and Welcome to Gentoo :D
_________________
The Birth and Growth of Science is the Death and Atrophy of Art -- Unknown
Registerd Linux User #363735
Adopt a Post | Strip Comments| Emerge Wrapper
Back to top
View user's profile Send private message
yoshi314
l33t
l33t


Joined: 30 Dec 2004
Posts: 850
Location: PL

PostPosted: Thu Oct 10, 2013 10:39 am    Post subject: Reply with quote

Code:
gcc -march=native -E -v - </dev/null 2>&1


should post closest result. You don't need all the parameters it spits out, just look what cpu unit it suggests.
_________________
~amd64
shrink your /usr/portage with squashfs+aufs
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Gentoo on AMD64 All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum