Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 749047 - dev-lisp/sbcl-2.0.9 can't be built on a cpu lacking AVX
Summary: dev-lisp/sbcl-2.0.9 can't be built on a cpu lacking AVX
Status: RESOLVED OBSOLETE
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Common Lisp Bugs
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2020-10-14 18:53 UTC by foufou33
Modified: 2021-02-26 21:20 UTC (History)
2 users (show)

See Also:
Package list:
Runtime testing required: ---


Attachments
emerge --info (file_749047.txt,15.50 KB, text/plain)
2020-10-14 18:55 UTC, foufou33
Details

Note You need to log in before you can comment on or make changes to this bug.
Description foufou33 2020-10-14 18:53:47 UTC
The reason being the binary 2.0.9  can't run on a cpu that lacks AVX.(*)




/var/tmp/portage/dev-lisp/sbcl-2.0.9/work/sbcl-binary # ./run-sbcl.sh 
This is SBCL 2.0.9, an implementation of ANSI Common Lisp.
More information about SBCL is available at <http://www.sbcl.org/>.

SBCL is free software, provided as is, with absolutely no warranty.
It is mostly in the public domain; some portions are provided under
BSD-style licenses.  See the CREDITS and COPYING files in the
distribution for more information.
fatal error encountered in SBCL pid 1446552 tid 1446552:
Unhandled SIGILL at 0x52000e9d.

Welcome to LDB, a low-level debugger for the Lisp runtime environment.
ldb> 



even if I run ./make.sh manually outside of portage it eventually crashs

this is supposed to fix it:
https://github.com/sbcl/sbcl/commit/d0243a9f9961f0afdc09b555821b88edb2488be9
and it does work for manual compilation of the packages, but it is moot as the binary versions that portage uses to build is faulty.




Reproducible: Always

Steps to Reproduce:
1.emerge dev-lisp/sbcl on a computer with a cpu lacking AVX
Actual Results:  
emerge stops with this (doesn't actually quit)
./run-sbcl.sh 
This is SBCL 2.0.9, an implementation of ANSI Common Lisp.
More information about SBCL is available at <http://www.sbcl.org/>.

SBCL is free software, provided as is, with absolutely no warranty.
It is mostly in the public domain; some portions are provided under
BSD-style licenses.  See the CREDITS and COPYING files in the
distribution for more information.
fatal error encountered in SBCL pid 1446552 tid 1446552:
Unhandled SIGILL at 0x52000e9d.

Welcome to LDB, a low-level debugger for the Lisp runtime environment.
ldb> 

Expected Results:  
sbcl emerged 

 lscpu 
Architecture:                    x86_64
CPU op-mode(s):                  32-bit, 64-bit
Byte Order:                      Little Endian
Address sizes:                   36 bits physical, 48 bits virtual
CPU(s):                          8
On-line CPU(s) list:             0-7
Thread(s) per core:              2
Core(s) per socket:              4
Socket(s):                       1
Vendor ID:                       GenuineIntel
CPU family:                      6
Model:                           30
Model name:                      Intel(R) Xeon(R) CPU           X3480  @ 3.07GHz
Stepping:                        5
CPU MHz:                         1388.905
BogoMIPS:                        6133.26
Virtualization:                  VT-x
L1d cache:                       128 KiB
L1i cache:                       128 KiB
L2 cache:                        1 MiB
L3 cache:                        8 MiB

Flags:                           fpu vme de pse tsc msr pae mce cx8 apic sep mtrr pge mca cmov pat pse36 clflush dts acpi mmx fxsr sse sse2 ht tm pbe syscall nx rdtscp lm constant_tsc arch_perfmon pebs bts rep_good nopl xtop
                                 ology nonstop_tsc cpuid aperfmperf pni dtes64 monitor ds_cpl vmx smx est tm2 ssse3 cx16 xtpr pdcm sse4_1 sse4_2 popcnt lahf_lm pti ibrs ibpb stibp tpr_shadow vnmi flexpriority ept vpid dtherm
                                  ida
Comment 1 foufou33 2020-10-14 18:55:55 UTC
Created attachment 665584 [details]
emerge --info
Comment 2 Dominique Michel 2020-10-26 16:25:34 UTC
Same issue here.It was a long time ago I didn't made a world update.

# sbcl --version
SBCL 1.5.3

I try the patch on the git, and it fail too with portage. I masqued 2.9.9 and sbcl-2.8.0 is compiling fine now.
Comment 3 Dominique Michel 2020-10-26 16:27:29 UTC
oops, masqued sbcl 2.0.9 and 2.0.8 is compiling fine.
Comment 4 foufou33 2020-12-07 05:05:19 UTC
it seams fixed with 2.0.10
Comment 5 Sam James archtester Gentoo Infrastructure gentoo-dev Security 2021-02-26 21:20:06 UTC
(In reply to foufou33 from comment #4)
> it seams fixed with 2.0.10

thank you!