Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 843851 - dev-lisp/sbcl-2.2.4: incompatibility with >=dev-libs/capstone-5.0.0* (make[1]: [../asdf-module.mk:41: test] Error 1)
Summary: dev-lisp/sbcl-2.2.4: incompatibility with >=dev-libs/capstone-5.0.0* (make[1]...
Status: RESOLVED FIXED
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: 2022-05-12 07:16 UTC by Toralf Förster
Modified: 2022-11-10 05:03 UTC (History)
5 users (show)

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


Attachments
emerge-info.txt (emerge-info.txt,17.48 KB, text/plain)
2022-05-12 07:16 UTC, Toralf Förster
Details
dev-lisp:sbcl-2.2.4:20220511-224149.log.bz2 (dev-lisp:sbcl-2.2.4:20220511-224149.log.bz2,29.86 KB, application/x-bzip)
2022-05-12 07:16 UTC, Toralf Förster
Details
emerge-history.txt (emerge-history.txt,172.92 KB, text/plain)
2022-05-12 07:16 UTC, Toralf Förster
Details
environment (environment,79.41 KB, text/plain)
2022-05-12 07:16 UTC, Toralf Förster
Details
etc.portage.tar.bz2 (etc.portage.tar.bz2,30.53 KB, application/x-bzip)
2022-05-12 07:16 UTC, Toralf Förster
Details
temp.tar.bz2 (temp.tar.bz2,51.52 KB, application/x-bzip)
2022-05-12 07:16 UTC, Toralf Förster
Details
build.log (build.log,289.46 KB, text/x-log)
2022-06-13 07:22 UTC, Dennis Schridde
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Toralf Förster gentoo-dev 2022-05-12 07:16:21 UTC
unhandled condition in --disable-debugger mode, quitting
; 
; compilation unit aborted
;   caught 1 fatal ERROR condition
make[1]: *** [../asdf-module.mk:41: test] Error 1
make[1]: Leaving directory '/var/tmp/portage/dev-lisp/sbcl-2.2.4/work/sbcl-2.2.4/contrib/sb-capstone'
sh ./build-contrib sb-rotate-byte

  -------------------------------------------------------------------

  This is an unstable amd64 chroot image at a tinderbox (==build bot)
  name: 17.1_systemd-j4-20220510-110004

  -------------------------------------------------------------------

gcc-config -l:
 [1] x86_64-pc-linux-gnu-9.3.1
 [2] x86_64-pc-linux-gnu-12.1.0 *
clang/llvm (if any):
/usr/lib/llvm/14
14.0.3
Python 3.9.12
Available Ruby profiles:
  [1]   ruby31 *
Available Rust versions:
  [1]   rust-1.60.0 *
The following VMs are available for generation-2:
*)	Eclipse Temurin JDK 11.0.15_p10 [openjdk-bin-11]
2)	Eclipse Temurin JDK 8.322_p06 [openjdk-bin-8]
Available Java Virtual Machines:
  [1]   openjdk-bin-8 
  [2]   openjdk-bin-11  system-vm

The Glorious Glasgow Haskell Compilation System, version 8.10.4
php cli:

  HEAD of ::gentoo
commit 308bf2f52edf367a28fac32a448870e96e66e391
Author: Repository mirror & CI <repomirrorci@gentoo.org>
Date:   Wed May 11 22:03:28 2022 +0000

    2022-05-11 22:03:28 UTC

emerge -qpvO dev-lisp/sbcl
[ebuild  N    ] dev-lisp/sbcl-2.2.4  USE="threads unicode zlib -debug -doc -source"
Comment 1 Toralf Förster gentoo-dev 2022-05-12 07:16:22 UTC
Created attachment 778208 [details]
emerge-info.txt
Comment 2 Toralf Förster gentoo-dev 2022-05-12 07:16:24 UTC
Created attachment 778211 [details]
dev-lisp:sbcl-2.2.4:20220511-224149.log.bz2
Comment 3 Toralf Förster gentoo-dev 2022-05-12 07:16:25 UTC
Created attachment 778214 [details]
emerge-history.txt
Comment 4 Toralf Förster gentoo-dev 2022-05-12 07:16:27 UTC
Created attachment 778217 [details]
environment
Comment 5 Toralf Förster gentoo-dev 2022-05-12 07:16:28 UTC
Created attachment 778220 [details]
etc.portage.tar.bz2
Comment 6 Toralf Förster gentoo-dev 2022-05-12 07:16:29 UTC
Created attachment 778223 [details]
temp.tar.bz2
Comment 7 Thomas Schneider 2022-06-10 16:55:06 UTC
This looks very similar to an issue I just had with sbcl.

It seems to use dev-libs/capstone (probably only if it is installed, else it’s skipped?) and doesn’t seem to be compatible with >=dev-libs/capstone-5.  It should probably (R)DEPEND on capstone, and especially with a version constraint.  As it doesn’t seem to be strictly required, a USE-flag would be sensible, too.
Comment 8 Dennis Schridde 2022-06-13 07:22:39 UTC
Created attachment 784601 [details]
build.log

; compiling file "SYS:CONTRIB;SB-CAPSTONE;TESTS.LISP.NEWEST" (written 30 MAY 2022 03:27:22 PM):

; wrote /tmp/portage/dev-lisp/sbcl-2.2.5/work/sbcl-2.2.5/contrib/sb-capstone/../../obj/asdf-cache/sb-capstone/tests-tmpGHU3ALSV.fasl
; compilation finished in 0:00:00.010
Doing 3 pending tests of 3 tests total.
Test SB-CAPSTONE-TESTS::X86-64 failed
Form: (SB-CAPSTONE-TESTS::CAPSTONE-CHECK '(143 69 8 72 139 240)
                                         '(:X86-64 :LITTLE-ENDIAN)
                                         '("MOV RSI, RAX"
                                           "POP QWORD PTR [RBP + 8]"))
Expected value: T
Actual value: NIL.
Test SB-CAPSTONE-TESTS::PPC-LITTLE-ENDIAN failed
Form: (SB-CAPSTONE-TESTS::CAPSTONE-CHECK '(3 16 64 60 0 113 66 56)
                                         '(:PPC64 :LITTLE-ENDIAN)
                                         '("LIS R2, 0X1003"
                                           "ADDI R2, R2, 0X7100"))
Expected value: T
Actual value: NIL.
Test SB-CAPSTONE-TESTS::PPC-BIG-ENDIAN failed
Form: (SB-CAPSTONE-TESTS::CAPSTONE-CHECK '(124 8 2 166) '(:PPC64 :BIG-ENDIAN)
                                         '("MFLR R0"))
Expected value: T
Actual value: NIL.
3 out of 3 total tests failed: SB-CAPSTONE-TESTS::X86-64, 
   SB-CAPSTONE-TESTS::PPC-LITTLE-ENDIAN, SB-CAPSTONE-TESTS::PPC-BIG-ENDIAN.Unhandled SIMPLE-ERROR in thread #<SB-THREAD:THREAD "main thread" RUNNING
                                    {1004C18073}>:
  test-op failed

Backtrace for: #<SB-THREAD:THREAD "main thread" RUNNING {1004C18073}>
0: (SB-DEBUG::DEBUGGER-DISABLED-HOOK #<SIMPLE-ERROR "test-op failed" {10029D9483}> #<unused argument> :QUIT T)
1: (SB-DEBUG::RUN-HOOK *INVOKE-DEBUGGER-HOOK* #<SIMPLE-ERROR "test-op failed" {10029D9483}>)
2: (INVOKE-DEBUGGER #<SIMPLE-ERROR "test-op failed" {10029D9483}>)
3: (ERROR "test-op failed")
4: ((:METHOD ASDF/ACTION:PERFORM (ASDF/LISP-ACTION:TEST-OP (EQL (ASDF/SYSTEM:FIND-SYSTEM "sb-capstone/tests")))) #<unused argument> #<unused argument>) [fast-method]
5: ((SB-PCL::EMF ASDF/ACTION:PERFORM) #<unused argument> #<unused argument> #<ASDF/LISP-ACTION:TEST-OP > #<ASDF/SYSTEM:SYSTEM "sb-capstone/tests">)
6: ((LAMBDA NIL :IN ASDF/ACTION:CALL-WHILE-VISITING-ACTION))
7: ((:METHOD ASDF/ACTION:PERFORM-WITH-RESTARTS :AROUND (T T)) #<ASDF/LISP-ACTION:TEST-OP > #<ASDF/SYSTEM:SYSTEM "sb-capstone/tests">) [fast-method]
8: ((:METHOD ASDF/PLAN:PERFORM-PLAN (T)) #<ASDF/PLAN:SEQUENTIAL-PLAN {1002355693}>) [fast-method]
9: ((FLET SB-C::WITH-IT :IN SB-C::%WITH-COMPILATION-UNIT))
10: ((:METHOD ASDF/PLAN:PERFORM-PLAN :AROUND (T)) #<ASDF/PLAN:SEQUENTIAL-PLAN {1002355693}>) [fast-method]
11: ((:METHOD ASDF/OPERATE:OPERATE (ASDF/OPERATION:OPERATION ASDF/COMPONENT:COMPONENT)) #<ASDF/LISP-ACTION:TEST-OP > #<ASDF/SYSTEM:SYSTEM "sb-capstone"> :PLAN-CLASS NIL :PLAN-OPTIONS NIL) [fast-method]
12: ((SB-PCL::EMF ASDF/OPERATE:OPERATE) #<unused argument> #<unused argument> #<ASDF/LISP-ACTION:TEST-OP > #<ASDF/SYSTEM:SYSTEM "sb-capstone">)
13: ((LAMBDA NIL :IN ASDF/OPERATE:OPERATE))
14: ((:METHOD ASDF/OPERATE:OPERATE :AROUND (T T)) #<ASDF/LISP-ACTION:TEST-OP > #<ASDF/SYSTEM:SYSTEM "sb-capstone">) [fast-method]
15: ((SB-PCL::EMF ASDF/OPERATE:OPERATE) #<unused argument> #<unused argument> ASDF/LISP-ACTION:TEST-OP "sb-capstone")
16: ((LAMBDA NIL :IN ASDF/OPERATE:OPERATE))
17: ((:METHOD ASDF/OPERATE:OPERATE :AROUND (T T)) ASDF/LISP-ACTION:TEST-OP "sb-capstone") [fast-method]
18: (ASDF/SESSION:CALL-WITH-ASDF-SESSION #<FUNCTION (LAMBDA NIL :IN ASDF/OPERATE:OPERATE) {1004BC3E8B}> :OVERRIDE T :KEY NIL :OVERRIDE-CACHE T :OVERRIDE-FORCING NIL)
19: ((LAMBDA NIL :IN ASDF/OPERATE:OPERATE))
20: (ASDF/SESSION:CALL-WITH-ASDF-SESSION #<FUNCTION (LAMBDA NIL :IN ASDF/OPERATE:OPERATE) {100391E88B}> :OVERRIDE NIL :KEY NIL :OVERRIDE-CACHE NIL :OVERRIDE-FORCING NIL)
21: ((:METHOD ASDF/OPERATE:OPERATE :AROUND (T T)) ASDF/LISP-ACTION:TEST-OP "sb-capstone") [fast-method]
22: (ASDF/OPERATE:TEST-SYSTEM "sb-capstone")
23: (SB-INT:SIMPLE-EVAL-IN-LEXENV (ASDF/INTERFACE::TEST-ASDF-CONTRIB "sb-capstone") #<NULL-LEXENV>)
24: (EVAL (ASDF/INTERFACE::TEST-ASDF-CONTRIB "sb-capstone"))
25: (SB-IMPL::PROCESS-EVAL/LOAD-OPTIONS ((:LOAD . "../asdf-stub.lisp") (:EVAL . "(asdf::test-asdf-contrib \"sb-capstone\")")))
26: (SB-IMPL::TOPLEVEL-INIT)
27: ((FLET SB-UNIX::BODY :IN SB-IMPL::START-LISP))
28: ((FLET "WITHOUT-INTERRUPTS-BODY-3" :IN SB-IMPL::START-LISP))
29: (SB-IMPL::%START-LISP)

unhandled condition in --disable-debugger mode, quitting
; 
; compilation unit aborted
;   caught 1 fatal ERROR condition
make[1]: *** [../asdf-module.mk:41: test] Error 1
make[1]: Leaving directory '/tmp/portage/dev-lisp/sbcl-2.2.5/work/sbcl-2.2.5/contrib/sb-capstone'


Portage 3.0.30 (python 3.9.13-final-0, default/linux/amd64/17.1/desktop/plasma/systemd, gcc-11.3.0, glibc-2.35-r7, 5.17.14-gentoo-dist x86_64)
=================================================================
                         System Settings
=================================================================
System uname: Linux-5.17.14-gentoo-dist-x86_64-AMD_Ryzen_5_2400G_with_Radeon_Vega_Graphics-with-glibc2.35
KiB Mem:    14120064 total,   1077504 free
KiB Swap:    4194300 total,   4000508 free
Timestamp of repository gentoo: Sun, 12 Jun 2022 20:15:01 +0000
Head commit of repository gentoo: c9a0fbedd1906e5ef876e7c90cab82cc63d07221
Timestamp of repository haskell: Wed, 08 Jun 2022 21:18:21 +0000
Head commit of repository haskell: e743b57541fed422e3d833b08eea7dd668aaf80e

Head commit of repository local: 1e0f7c0a68d051396b50229806ed7a6d897d323e

sh bash 5.1_p16
ld GNU ld (Gentoo 2.38 p4) 2.38
ccache version 4.6.1 [disabled]
app-misc/pax-utils:        1.3.4::gentoo
app-shells/bash:           5.1_p16::gentoo
dev-java/java-config:      2.3.1::gentoo
dev-lang/perl:             5.36.0::gentoo
dev-lang/python:           2.7.18_p15::gentoo, 3.9.13::gentoo, 3.10.5::gentoo, 3.11.0_beta3::gentoo
dev-lang/rust:             1.61.0-r1::gentoo
dev-util/ccache:           4.6.1::gentoo
dev-util/cmake:            3.23.2::gentoo
dev-util/meson:            0.62.2::gentoo
sys-apps/baselayout:       2.8::gentoo
sys-apps/sandbox:          2.29::gentoo
sys-apps/systemd:          251.2::gentoo
sys-devel/autoconf:        2.13-r1::gentoo, 2.71-r1::gentoo
sys-devel/automake:        1.16.5::gentoo
sys-devel/binutils:        2.38-r2::gentoo
sys-devel/binutils-config: 5.4.1::gentoo
sys-devel/clang:           14.0.5::gentoo
sys-devel/gcc:             11.3.0::gentoo
sys-devel/gcc-config:      2.5-r1::gentoo
sys-devel/libtool:         2.4.7::gentoo
sys-devel/lld:             14.0.5::gentoo
sys-devel/llvm:            14.0.5::gentoo
sys-devel/make:            4.3::gentoo
sys-kernel/linux-headers:  5.18-r1::gentoo (virtual/os-headers)
sys-libs/glibc:            2.35-r7::gentoo
Repositories:

gentoo
    location: /var/cache/portage/gentoo
    sync-type: rsync
    sync-uri: rsync://rsync.de.gentoo.org/gentoo-portage
    priority: -1000
    sync-rsync-verify-jobs: 1
    sync-rsync-verify-metamanifest: yes
    sync-rsync-extra-opts: --new-compress
    sync-rsync-verify-max-age: 24

haskell
    location: /var/db/repos/haskell
    sync-type: git
    sync-uri: https://github.com/gentoo-mirror/haskell.git
    masters: gentoo

crossdev
    location: /var/cache/portage/crossdev
    masters: gentoo
    priority: 100

local
    location: /var/cache/portage/local
    sync-type: git
    sync-uri: https://github.com/devurandom/gentoo-overlay.git
    masters: gentoo
    priority: 1000

ACCEPT_KEYWORDS="amd64 ~amd64"
ACCEPT_LICENSE="@FREE"
CBUILD="x86_64-pc-linux-gnu"
CFLAGS="-pipe -O2 -march=znver1"
CHOST="x86_64-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/lib64/libreoffice/program/sofficerc /usr/share/config /usr/share/gnupg/qualified.txt /usr/share/maven-bin-3.8/conf"
CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /etc/dconf /etc/env.d /etc/fonts/fonts.conf /etc/gconf /etc/gentoo-release /etc/revdep-rebuild /etc/sandbox.d /etc/terminfo /etc/texmf/language.dat.d /etc/texmf/language.def.d /etc/texmf/updmap.d /etc/texmf/web2c"
CXXFLAGS="-pipe -O2 -march=znver1"
DISTDIR="/var/cache/portage/distfiles"
EMERGE_DEFAULT_OPTS="--nospinner"
ENV_UNSET="CARGO_HOME DBUS_SESSION_BUS_ADDRESS DISPLAY GOBIN GOPATH PERL5LIB PERL5OPT PERLPREFIX PERL_CORE PERL_MB_OPT PERL_MM_OPT XAUTHORITY XDG_CACHE_HOME XDG_CONFIG_HOME XDG_DATA_HOME XDG_RUNTIME_DIR"
FCFLAGS="-O2 -pipe"
FEATURES="assume-digests binpkg-docompress binpkg-dostrip binpkg-logs binpkg-multi-instance buildpkg-live buildsyspkg cgroup compressdebug config-protect-if-modified distlocks ebuild-locks fakeroot fixlafiles ipc-sandbox merge-sync mount-sandbox multilib-strict network-sandbox news parallel-fetch parallel-install pid-sandbox preserve-libs protect-owned qa-unresolved-soname-deps sandbox sfperms strict unknown-features-warn unmerge-logs unmerge-orphans userfetch userpriv usersandbox usersync xattr"
FFLAGS="-O2 -pipe"
GENTOO_MIRRORS="http://linux.rz.ruhr-uni-bochum.de/download/gentoo-mirror/ http://ftp.fau.de/gentoo http://ftp.halifax.rwth-aachen.de/gentoo/ http://ftp-stud.hs-esslingen.de/pub/Mirrors/gentoo/ http://distfiles.gentoo.org"
LANG="en_US.UTF-8"
LDFLAGS="-Wl,-O1 -Wl,--as-needed"
MAKEOPTS="-j6 -l4"
PKGDIR="/var/cache/portage/packages"
PORTAGE_CONFIGROOT="/"
PORTAGE_RSYNC_EXTRA_OPTS="--new-compress"
PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times --omit-dir-times --compress --force --whole-file --delete --stats --human-readable --timeout=180 --exclude=/distfiles --exclude=/local --exclude=/packages --exclude=/.git"
PORTAGE_TMPDIR="/tmp"
SHELL="/bin/bash"
USE="7z 7zip X a52 aac aacplus aacs acl acpi activities aio alsa amd64 amr appindicator appstream aptx archive audit avahi avif ayatana bdplus blake2 blas bluetooth bluray bpf branding brotli bs2b btrfs bzip2 cairo caps cdda cddb cdio cdr celt chromaprint cjk cli clipboard collada color-management colord conntrack crypt cups curl d3d9 dav1d dbus declarative device-mapper dirac djvu dmabuf dri drm dts dvb dvd dvdr ed25519 editorconfig egl elf emoji encode epub evdev exif faudio fax fdk ffmpeg fftw filecaps firefox firewalld fish-completion fits flac fontconfig fontforge fortran fribidi gamepad gbm gdal gdbm geoclue geolocation gif git gles2 gles3 gmp gnome-online-accounts gnupg google googledrive gpg gps graphicsmagick graphite gstreamer gtk gtk3 gtk4 gui gzip harfbuzz hdf5 heif http2 hugepages ibus iconv icu id3tag idn imlib inotify introspection ipv6 iwd jemalloc jpeg jpeg2k json kde kms kwallet lapack las latex lcms ldac libatomic libglvnd libidn2 libinput libnotify libproxy libsecret libsoxr libtirpc libvirt lm-sensors lrz lto lv2 lvm lz4 lzma lzo mad magic man mariadb markdown mbim mercurial mjpeg mng mobi modemmanager modplug mp3 mp4 mpeg mplayer mpris mtp multilib mysql ncurses netlink networkmanager nftables nls nptl numa office ofx ogg openal opencl opencv openexr opengl openh264 openmax openmp opus otf pam pango pcap pcre pcre2 pdf pgo pipewire pixman pkcs11 pkcs7 plasma pm-utils png policykit postscript ppds prison pulseaudio python qml qrcode qt5 rav1e raw rdp readline rtmp rubberband samba sasl scanner screencast sctp sdl sdl2 seccomp semantic-desktop share smartcard snappy sparse speech speex spell spice srt ssl startup-notification steamruntime stemmer svg systemd tbb teamd telemetry tga theora threads thunderbolt tiff timezone tmux tpm truetype udev udisks uinput unicode unwind upnp upnp-av upower usb utempter v4l vaapi vamp vdpau verify-sig vorbis vpx vulkan wasm wavpack wayland webp widgets wmf woff2 wps x264 x265 xattr xcb xinerama xml xrandr xv xvid xwayland xxhash xz yaml zeroconf zimg zlib zstd" ABI_X86="64" ADA_TARGET="gnat_2020" ALSA_CARDS="hda-intel" APACHE2_MODULES="authn_core authz_core socache_shmcb unixd actions alias auth_basic authn_alias authn_anon authn_dbm authn_default authn_file authz_dbm authz_default authz_groupfile authz_host authz_owner authz_user autoindex cache cgi cgid dav dav_fs dav_lock deflate dir disk_cache env expires ext_filter file_cache filter headers include info log_config logio mem_cache mime mime_magic negotiation rewrite setenvif speling status unique_id userdir usertrack vhost_alias" CALLIGRA_FEATURES="karbon sheets words" CAMERAS="ptp2" COLLECTD_PLUGINS="df interface irq load memory rrdtool swap syslog" CPU_FLAGS_X86="aes avx avx2 f16c fma3 mmx mmxext pclmul popcnt rdrand sha sse sse2 sse3 sse4_1 sse4_2 sse4a ssse3" ELIBC="glibc" GPSD_PROTOCOLS="ashtech aivdm earthmate evermore fv18 garmin garmintxt gpsclock greis isync itrax mtk3301 nmea ntrip navcom oceanserver oldstyle oncore rtcm104v2 rtcm104v3 sirf skytraq superstar2 timing tsip tripmate tnt ublox ubx" GRUB_PLATFORMS="efi-64" INPUT_DEVICES="joystick libinput" KERNEL="linux" L10N="de de-DE en en-GB ar fa tr ja ko zh zh-CN zh-TW" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LIBREOFFICE_EXTENSIONS="nlpsolver scripting-javascript wiki-publisher" LLVM_TARGETS="AMDGPU BPF RISCV WebAssembly" LUA_SINGLE_TARGET="lua5-1" LUA_TARGETS="lua5-1 lua5-4 luajit" OFFICE_IMPLEMENTATION="libreoffice" PHP_TARGETS="php7-4 php8-0" POSTGRES_TARGETS="postgres12 postgres13" PYTHON_SINGLE_TARGET="python3_9" PYTHON_TARGETS="python3_9 pypy3" QEMU_SOFTMMU_TARGETS="riscv32 riscv64 x86_64" QEMU_USER_TARGETS="riscv32 riscv64" RUBY_TARGETS="ruby27" USERLAND="GNU" VIDEO_CARDS="amdgpu virgl" XTABLES_ADDONS="quota2 psd pknock lscan length2 ipv4options ipset ipp2p iface geoip fuzzy condition tee tarpit sysrq proto steal rawnat logmark ipmark dhcpmac delude chaos account"
Unset:  ADDR2LINE, AR, ARFLAGS, AS, ASFLAGS, CC, CCLD, CONFIG_SHELL, CPP, CPPFLAGS, CTARGET, CXX, CXXFILT, ELFEDIT, EXTRA_ECONF, F77FLAGS, FC, GCOV, GPROF, INSTALL_MASK, LC_ALL, LD, LEX, LFLAGS, LIBTOOL, LINGUAS, MAKE, MAKEFLAGS, NM, OBJCOPY, OBJDUMP, PORTAGE_BINHOST, PORTAGE_BUNZIP2_COMMAND, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, RANLIB, READELF, RUSTFLAGS, SIZE, STRINGS, STRIP, YACC, YFLAGS

=================================================================
                        Package Settings
=================================================================

dev-lisp/sbcl-2.2.4::gentoo was built with the following:
USE="threads unicode zlib -debug -doc -source" ABI_X86="(64)"


dev-libs/capstone-5.0_rc2-r1::gentoo was built with the following:
USE="python -test" ABI_X86="(64)" PYTHON_TARGETS="python3_9 -python3_10 -python3_8"
FEATURES="preserve-libs unmerge-orphans usersandbox strict ipc-sandbox merge-sync assume-digests sandbox sfperms userfetch mount-sandbox parallel-fetch protect-owned fakeroot binpkg-dostrip buildpkg-live multilib-strict userpriv pid-sandbox ebuild-locks xattr parallel-install unknown-features-warn binpkg-multi-instance cgroup unmerge-logs network-sandbox qa-unresolved-soname-deps usersync compressdebug distlocks buildsyspkg binpkg-docompress fixlafiles news binpkg-logs config-protect-if-modified"
Comment 9 Kobboi 2022-07-08 20:29:30 UTC
Failing for me too, and because of the capstone references in the log, maybe because of the move to capstone-5? (dev-libs/capstone-5.0_rc2-r1, just upgraded)
Comment 10 Sam James archtester Gentoo Infrastructure gentoo-dev Security 2022-07-08 21:31:44 UTC
CCing capstone maintainer for assistance too, given sbcl is kind of in need of love.
Comment 11 mario.haustein 2022-08-03 22:51:11 UTC
I am not an expert into LISP so I can only guess about the source of the error. The ABI has changed between version 4 and 5. I suspect the following change breaks the tests (there are more differences of course).

```
--- /tmp/capstone4/capstone.h   2022-08-04 00:09:37.079790137 +0200
+++ /tmp/capstone5/capstone.h   2022-08-04 00:08:20.684793130 +0200
@@ -283,7 +310,7 @@
 /// if cs_detail changes, in particular if a field is added after the union,
 /// then update arch/ARCH/ARCHDisassembler.c accordingly
 typedef struct cs_detail {
-       uint16_t regs_read[12]; ///< list of implicit registers read by this insn
+       uint16_t regs_read[16]; ///< list of implicit registers read by this insn
        uint8_t regs_read_count; ///< number of implicit registers read by this insn
 
        uint16_t regs_write[20]; ///< list of implicit registers modified by this insn
```

This change isn't reflected in `contrib/sb-capstone/capstone.lisp`.

```
;; cs-detail is not fully mapped
(define-alien-type cs-detail
    (struct nil
            (regs-read (array int 12))
            (regs-read-count int)
            (regs-write (array int 20))
            (regs-write-count int)
            (groups (array int 8))
            (groups-count int)
            ;; FIXME: insert a union of unmapped structs
            ;; architecture dependent structs (cs_x86, cs_arm64, etc)
            ))
```

I would like to suggest the following solutions

 * Update `contrib/sb-capstone/capstone.lisp` and restrict dev-lisp/sblc to <dev-libs/capstone-5
 * Update `contrib/sb-capstone/capstone.lisp` to the new ABI and restrict dev-lisp/sblc to >=dev-libs/capstone-5
 * Do some kind of case discrimination in `contrib/sb-capstone/capstone.lisp` (don't know how)
Comment 12 Larry the Git Cow gentoo-dev 2022-09-02 15:50:07 UTC
The bug has been closed via the following commit(s):

https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=3ee4f0b0c109cff01940a178716665953ad7b1ab

commit 3ee4f0b0c109cff01940a178716665953ad7b1ab
Author:     Andrey Grozin <grozin@gentoo.org>
AuthorDate: 2022-09-02 15:48:24 +0000
Commit:     Andrey Grozin <grozin@gentoo.org>
CommitDate: 2022-09-02 15:49:25 +0000

    dev-lisp/sbcl: bump to 2.2.8
    
    Closes: https://bugs.gentoo.org/843851
    Signed-off-by: Andrey Grozin <grozin@gentoo.org>

 dev-lisp/sbcl/Manifest          |   2 +
 dev-lisp/sbcl/metadata.xml      |   9 +-
 dev-lisp/sbcl/sbcl-2.2.8.ebuild | 245 ++++++++++++++++++++++++++++++++++++++++
 3 files changed, 255 insertions(+), 1 deletion(-)