Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 673522 - dev-lisp/sbcl-1.4.13 : make: *** [../asdf-module.mk:41: test] Error 1
Summary: dev-lisp/sbcl-1.4.13 : make: *** [../asdf-module.mk:41: test] Error 1
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Stelian Ionescu
URL:
Whiteboard:
Keywords:
: 674322 674428 693208 (view as bug list)
Depends on:
Blocks:
 
Reported: 2018-12-21 09:11 UTC by Toralf Förster
Modified: 2021-05-29 04:00 UTC (History)
5 users (show)

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


Attachments
emerge-info.txt (emerge-info.txt,16.22 KB, text/plain)
2018-12-21 09:11 UTC, Toralf Förster
Details
dev-lisp:sbcl-1.4.13:20181221-025548.log (dev-lisp:sbcl-1.4.13:20181221-025548.log,282.81 KB, text/plain)
2018-12-21 09:11 UTC, Toralf Förster
Details
emerge-history.txt (emerge-history.txt,164.13 KB, text/plain)
2018-12-21 09:11 UTC, Toralf Förster
Details
environment (environment,96.24 KB, text/plain)
2018-12-21 09:11 UTC, Toralf Förster
Details
etc.portage.tbz2 (etc.portage.tbz2,13.69 KB, application/x-bzip)
2018-12-21 09:11 UTC, Toralf Förster
Details
temp.tbz2 (temp.tbz2,46.80 KB, application/x-bzip)
2018-12-21 09:12 UTC, Toralf Förster
Details
patch which fixes the capstone test (sbcl-1.4.15-capstone.patch,739 bytes, patch)
2019-01-03 10:22 UTC, Helmut Jarausch
Details | Diff
ebuild which applies the capstone test fix (sbcl-1.4.15.ebuild,8.51 KB, text/plain)
2019-01-03 10:23 UTC, Helmut Jarausch
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Toralf Förster gentoo-dev 2018-12-21 09:11:46 UTC
; compilation unit aborted
;   caught 1 fatal ERROR condition
make: *** [../asdf-module.mk:41: test] Error 1
make: Leaving directory '/var/tmp/portage/dev-lisp/sbcl-1.4.13/work/sbcl-1.4.13/contrib/sb-capstone'
+ exit 2
+ for i in $contribs_to_build

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

  This is an unstable amd64 chroot image at a tinderbox (==build bot)
  name: 17.0-desktop-gnome-systemd_libressl-test_20181217-071216

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

gcc-config -l:
 [1] x86_64-pc-linux-gnu-7.3.1
 [2] x86_64-pc-linux-gnu-8.2.0 *

Available Python interpreters, in order of preference:
  [1]   python3.7
  [2]   python3.6
  [3]   python2.7 (fallback)
Available Ruby profiles:
  [1]   ruby23 (with Rubygems)
  [2]   ruby24 (with Rubygems)
  [3]   ruby25 (with Rubygems) *

java-config:
The following VMs are available for generation-2:
*)	IcedTea JDK 3.9.0 [icedtea-bin-8]
2)	JamVM JDK 2.0.0 [jamvm]
Available Java Virtual Machines:
  [1]   icedtea-bin-8  system-vm
  [2]   jamvm 

emerge -qpvO dev-lisp/sbcl
[ebuild  N    ] dev-lisp/sbcl-1.4.13  USE="threads unicode zlib -debug -doc -pax_kernel -source"
Comment 1 Toralf Förster gentoo-dev 2018-12-21 09:11:48 UTC
Created attachment 558292 [details]
emerge-info.txt
Comment 2 Toralf Förster gentoo-dev 2018-12-21 09:11:51 UTC
Created attachment 558294 [details]
dev-lisp:sbcl-1.4.13:20181221-025548.log
Comment 3 Toralf Förster gentoo-dev 2018-12-21 09:11:54 UTC
Created attachment 558296 [details]
emerge-history.txt
Comment 4 Toralf Förster gentoo-dev 2018-12-21 09:11:57 UTC
Created attachment 558298 [details]
environment
Comment 5 Toralf Förster gentoo-dev 2018-12-21 09:11:59 UTC
Created attachment 558300 [details]
etc.portage.tbz2
Comment 6 Toralf Förster gentoo-dev 2018-12-21 09:12:02 UTC
Created attachment 558302 [details]
temp.tbz2
Comment 7 Nicholas Sielicki 2019-01-01 22:43:26 UTC
I'm seeing this with sbcl-1.4.15, it's also failing on the test in capstone. Is it possible the test is wrong? Here's the relevant lisp code:

(deftest ppc-little-endian (capstone-check '(#x03 #x10 #x40 #x3c #x00 #x81 #x42 #x38)
                                           '(:ppc64 :little-endian)
                                           '("LIS R2, 0X1003"
                                             "ADDI R2, R2, -0X7F00")) t)


I'm not sure that this is a correct adaptation, but my quick check in python does not yield the result that the test expects, either.

nlsielicki@fastdog ~ $ python3
Python 3.6.6 (default, Dec 28 2018, 19:58:16) 
[GCC 8.2.0] on linux
Type "help", "copyright", "credits" or "license" for more information.
>>> from capstone import *
>>> CODE = b"\x03\x10\x40\x3c\x00\x81\x42\x38"
>>> md = Cs(CS_ARCH_PPC, CS_MODE_LITTLE_ENDIAN)
>>> for i in md.disasm(CODE, 0x1000):
...     print("0x%x:\t%s\t%s" %(i.address, i.mnemonic, i.op_str))
... 
0x1000:	lis	r2, 0x1003
0x1004:	addi	r2, r2, 0x8100

It's an immediate value and you can see 0081 in the source clearly, not sure what to make of it.
Comment 8 Nicholas Sielicki 2019-01-02 22:31:06 UTC
This test has been changed in master

https://sourceforge.net/p/sbcl/sbcl/ci/04a38c3d1ea141d3b9b346593f9b184878d1f869/
Comment 9 Brian Evans (RETIRED) gentoo-dev 2019-01-02 23:26:35 UTC
*** Bug 674322 has been marked as a duplicate of this bug. ***
Comment 10 Helmut Jarausch 2019-01-03 10:21:46 UTC
(In reply to Nicholas Sielicki from comment #8)
> This test has been changed in master
> 
> https://sourceforge.net/p/sbcl/sbcl/ci/
> 04a38c3d1ea141d3b9b346593f9b184878d1f869/

Thanks for that pointer.
I'll attach a patch which fixes this.
Comment 11 Helmut Jarausch 2019-01-03 10:22:37 UTC
Created attachment 559586 [details, diff]
patch which fixes the capstone test
Comment 12 Helmut Jarausch 2019-01-03 10:23:20 UTC
Created attachment 559588 [details]
ebuild which applies the capstone test fix
Comment 13 Larry the Git Cow gentoo-dev 2019-01-03 15:44:27 UTC
The bug has been closed via the following commit(s):

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

commit f6fac3aeaad8c83b552f800ce75449962d31d524
Author:     Andrey Grozin <grozin@gentoo.org>
AuthorDate: 2019-01-03 15:42:45 +0000
Commit:     Andrey Grozin <grozin@gentoo.org>
CommitDate: 2019-01-03 15:43:57 +0000

    dev-lisp/sbcl: fix the capstone test
    
    Suggested-by:  Helmut Jarausch <jarausch@igpm.rwth-aachen.de>
    Closes: https://bugs.gentoo.org/673522
    Signed-off-by: Andrey Grozin <grozin@gentoo.org>
    Package-Manager: Portage-2.3.41, Repoman-2.3.9

 dev-lisp/sbcl/files/sbcl-1.4.15-capstone.patch | 15 +++++++++++++++
 dev-lisp/sbcl/sbcl-1.4.15.ebuild               |  1 +
 2 files changed, 16 insertions(+)
Comment 14 Nicholas Sielicki 2019-01-03 18:33:50 UTC
Just for reference's sake, the test broke because capstone 4.0 released about a week before Christmas. From the changelog: https://www.capstone-engine.org/Version-4.0-changelog

> PowerPC:
> * Change cs_ppc_op.imm type from int32_t to int64_t.

The type on immediate operands was changed, so the number that used to be parsed as two's complement due to a MSB of 1 suddenly was being read as positive due to the extra padding.

8100 -> 2#1000000100000000 in 16 bits
8100 -> 2#00000000000000001000000100000000 in 32 bits.


That doesn't really make sense though, because it changed from 32_t to 64_t, not 16_t to 32_t. I don't know what I'm missing but all is well that ends well.

Thank you for the patch and update.
Comment 15 Jeroen Roovers (RETIRED) gentoo-dev 2019-01-04 06:22:53 UTC
*** Bug 674428 has been marked as a duplicate of this bug. ***
Comment 16 Cyprien Nicolas (fulax) 2019-06-10 11:00:43 UTC
*** Bug 674428 has been marked as a duplicate of this bug. ***
Comment 17 Brian Evans (RETIRED) gentoo-dev 2019-08-31 19:25:02 UTC
*** Bug 693208 has been marked as a duplicate of this bug. ***