View previous topic :: View next topic |
Author |
Message |
imon fyre n00b


Joined: 18 Dec 2003 Posts: 27 Location: sudbury on
|
Posted: Wed Jan 25, 2023 1:59 am Post subject: [solved]failure to unpack *.tar.xz |
|
|
I am trying to do a world update on my i5 laptop, and I am getting errors when trying to unpack tar.xz archives. I have traced the error down to an illegal opcode trap in dmesg. This is the 2nd time that this has happened, the first time I took a working liblzma.so.5.4.1 from my other Gentoo box that has an older Intel cpu.
When I check dmesg, I get the following:
Code: | [32020.373981] traps: xz[17435] trap invalid opcode ip:7f1ee6428078 sp:7ffc4f67b9a8 error:0 in liblzma.so.5.4.1[7f1ee6418000+1e000]
[95251.603531] traps: xz[15040] trap invalid opcode ip:7f870817a078 sp:7fffdd6ed3a8 error:0 in liblzma.so.5.4.1[7f870816a000+1e000]
[95810.053509] traps: xz[26229] trap invalid opcode ip:7f1a155fb078 sp:7ffd4481d728 error:0 in liblzma.so.5.4.1[7f1a155eb000+1e000]
[96584.156392] traps: xz[5138] trap invalid opcode ip:7f611a805a98 sp:7fff07774cc8 error:0 in liblzma.so.5.4.1[7f611a7f6000+1d000]
[97531.628593] traps: xz[16191] trap invalid opcode ip:7f637eba5a98 sp:7ffc9186a538 error:0 in liblzma.so.5.4.1[7f637eb96000+1d000]
|
The changing opcode addresses are from me trying to recompile xz-utils with differenct cpu flags disabled.
I have tried setting X86_CPU_FLAG to something more minimal for xz-utils via package.env, but that does not seem to be happening... Any thoughts or things that I am missing that I can try to eliminate the invalid opcode errors?
CPU: Westmere
Flags: mmx mmxext popcnt sse sse2 sse3 sse4_1 sse4_2 ssse3 _________________ for truth, love and gentoo
Last edited by imon fyre on Wed Jan 25, 2023 3:33 am; edited 1 time in total |
|
Back to top |
|
 |
sam_ Developer


Joined: 14 Aug 2020 Posts: 984
|
Posted: Wed Jan 25, 2023 2:23 am Post subject: |
|
|
See bug 890853. Your laptop is probably not actually Westmere. |
|
Back to top |
|
 |
grknight Developer

Joined: 20 Feb 2015 Posts: 657
|
Posted: Wed Jan 25, 2023 2:23 am Post subject: |
|
|
app-arch/xz-utils does not look at CPU_FLAGS_X86 at all.
Instead, whatever is in CFLAGS for -march is too much for this CPU. Suggest using -march=native instead. |
|
Back to top |
|
 |
grknight Developer

Joined: 20 Feb 2015 Posts: 657
|
Posted: Wed Jan 25, 2023 2:27 am Post subject: |
|
|
sam_ wrote: | See bug 890853. Your laptop is probably not actually Westmere. |
If it is a Westmere base, it may have features cut out at the factory to price it lower. |
|
Back to top |
|
 |
imon fyre n00b


Joined: 18 Dec 2003 Posts: 27 Location: sudbury on
|
Posted: Wed Jan 25, 2023 3:17 am Post subject: |
|
|
My laptop is one of these -> HP ProBook 6540b Notebook PC, which has an Intel® Core™ i5 i5-430M 2.26 GHz _________________ for truth, love and gentoo |
|
Back to top |
|
 |
imon fyre n00b


Joined: 18 Dec 2003 Posts: 27 Location: sudbury on
|
Posted: Wed Jan 25, 2023 3:23 am Post subject: |
|
|
grknight wrote: | Instead, whatever is in CFLAGS for -march is too much for this CPU. Suggest using -march=native instead. |
not advisable, using Distcc to offload most of the compiling to my Ryzen desktop _________________ for truth, love and gentoo |
|
Back to top |
|
 |
imon fyre n00b


Joined: 18 Dec 2003 Posts: 27 Location: sudbury on
|
Posted: Wed Jan 25, 2023 3:33 am Post subject: |
|
|
sam_ wrote: | See bug 890853. Your laptop is probably not actually Westmere. |
creating a env/westmereFix.conf file with
Code: | CFLAGS="${CFLAGS} -mno-aes -mno-avx -mno-pclmul" | seems to have fixed the problem, as was documented in that bug.
Thanks all, marking as solved. _________________ for truth, love and gentoo |
|
Back to top |
|
 |
grknight Developer

Joined: 20 Feb 2015 Posts: 657
|
Posted: Wed Jan 25, 2023 3:33 am Post subject: |
|
|
imon fyre wrote: | grknight wrote: | Instead, whatever is in CFLAGS for -march is too much for this CPU. Suggest using -march=native instead. |
not advisable, using Distcc to offload most of the compiling to my Ryzen desktop |
If that is the case, the script app-misc/resolve-march-native will show what needs to be disabled for that CPU |
|
Back to top |
|
 |
|