Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 595624 - dev-lisp/clisp-2.49-r8 FFI::FIND-FOREIGN-VARIABLE: foreign variable #<FOREIGN-VARIABLE "rl_readline_state" #x0000000000847B40> does not have the required size or alignment
Summary: dev-lisp/clisp-2.49-r8 FFI::FIND-FOREIGN-VARIABLE: foreign variable #<FOREIGN...
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:
: 595700 (view as bug list)
Depends on:
Blocks:
 
Reported: 2016-09-30 08:33 UTC by tman
Modified: 2016-11-13 02:33 UTC (History)
4 users (show)

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


Attachments
/mnt/portage/logs/dev-lisp:clisp-2.49-r8:20160930-082530.log (dev-lisp:clisp-2.49-r8:20160930-082530.log,382.38 KB, text/plain)
2016-09-30 08:35 UTC, tman
Details

Note You need to log in before you can comment on or make changes to this bug.
Description tman 2016-09-30 08:33:19 UTC
mkdir -p gllib
test -f gllib/Makefile || sh config.status gllib/Makefile depfiles
cd gllib; \
  make srcdir="/var/tmp/portage/dev-lisp/clisp-2.49-r8/work/clisp-2.49/modules/regexp/gllib" \
	ACLOCAL_M4="/var/tmp/portage/dev-lisp/clisp-2.49-r8/work/clisp-2.49/modules/regexp/gllib/Makefile.am" \
	CFLAGS="-march=core-avx-i -O2 -pipe -Wa,--noexecstack -W -Wswitch -Wcomment -Wpointer-arith -Wimplicit -Wreturn-type -Wmissing-declarations -O -DENABLE_UNICODE -DDYNAMIC_FFI -I. -I/var/tmp/portage/dev-lisp/clisp-2.49-r8/work/clisp-2.49/builddir/ "; \
  ln libgnu.a ../libgnu_rx.a
make[2]: Entering directory '/var/tmp/portage/dev-lisp/clisp-2.49-r8/work/clisp-2.49/builddir/regexp/gllib'
make  all-recursive
make[3]: Entering directory '/var/tmp/portage/dev-lisp/clisp-2.49-r8/work/clisp-2.49/builddir/regexp/gllib'
make[4]: Entering directory '/var/tmp/portage/dev-lisp/clisp-2.49-r8/work/clisp-2.49/builddir/regexp/gllib'
make[4]: Nothing to be done for 'all-am'.
make[4]: Leaving directory '/var/tmp/portage/dev-lisp/clisp-2.49-r8/work/clisp-2.49/builddir/regexp/gllib'
make[3]: Leaving directory '/var/tmp/portage/dev-lisp/clisp-2.49-r8/work/clisp-2.49/builddir/regexp/gllib'
make[2]: Leaving directory '/var/tmp/portage/dev-lisp/clisp-2.49-r8/work/clisp-2.49/builddir/regexp/gllib'
make[1]: Leaving directory '/var/tmp/portage/dev-lisp/clisp-2.49-r8/work/clisp-2.49/builddir/regexp'
make[1]: Entering directory '/var/tmp/portage/dev-lisp/clisp-2.49-r8/work/clisp-2.49/builddir/readline'
make[1]: Nothing to be done for 'clisp-module'.
make[1]: Leaving directory '/var/tmp/portage/dev-lisp/clisp-2.49-r8/work/clisp-2.49/builddir/readline'
gcc -I/usr/include/db4.8 -I/var/tmp/portage/dev-lisp/clisp-2.49-r8/work/clisp-2.49/builddir/gllib -march=core-avx-i -O2 -pipe -Wa,--noexecstack -W -Wswitch -Wcomment -Wpointer-arith -Wimplicit -Wreturn-type -Wmissing-declarations -O -DENABLE_UNICODE -DDYNAMIC_FFI -I. -I/var/tmp/portage/dev-lisp/clisp-2.49-r8/work/clisp-2.49/builddir/linkkit -c modules.c
gcc -march=core-avx-i -O2 -pipe -Wa,--noexecstack -W -Wswitch -Wcomment -Wpointer-arith -Wimplicit -Wreturn-type -Wmissing-declarations -O -DENABLE_UNICODE -DDYNAMIC_FFI -I. -Wl,-O1 -Wl,--as-needed modules.o readline.o -lreadline -lncurses regexi.o libgnu_rx.a calls.o bogomips.o libgnu_sc.a -lm -lcrypt gettext.o lisp.a /usr/lib64/libreadline.so -lncurses -ldl /usr/lib64/libavcall.so /usr/lib64/libcallback.so -L/usr/lib64 -lsigsegv -L/usr/lib64 -lc libgnu_cl.a -o lisp.run
boot/lisp.run -B . -M boot/lispinit.mem -norc -q -i i18n/preload.lisp -i syscalls/preload.lisp -i regexp/preload.lisp -x (saveinitmem "base/lispinit.mem")
;; Loading file i18n/preload.lisp ...
;; Loaded file i18n/preload.lisp
;; Loading file syscalls/preload.lisp ...
;; Loaded file syscalls/preload.lisp
;; Loading file regexp/preload.lisp ...
;; Loaded file regexp/preload.lisp
;; Wrote the memory image into base/lispinit.mem (3,217,512 bytes)
Bytes permanently allocated:            158,088
Bytes currently in use:               3,056,656
Bytes available until next GC:          760,084
3056656 ;
760084 ;
158088 ;
1 ;
236960 ;
6000
base/lisp.run -B . -M base/lispinit.mem -norc -q -i i18n/i18n -i syscalls/posix -i regexp/regexp -i readline/readline -x (saveinitmem "base/lispinit.mem")
;; Loading file /var/tmp/portage/dev-lisp/clisp-2.49-r8/work/clisp-2.49/builddir/i18n/i18n.fas ...
;; Loaded file /var/tmp/portage/dev-lisp/clisp-2.49-r8/work/clisp-2.49/builddir/i18n/i18n.fas
;; Loading file /var/tmp/portage/dev-lisp/clisp-2.49-r8/work/clisp-2.49/builddir/syscalls/posix.fas ...
;; Loaded file /var/tmp/portage/dev-lisp/clisp-2.49-r8/work/clisp-2.49/builddir/syscalls/posix.fas
;; Loading file /var/tmp/portage/dev-lisp/clisp-2.49-r8/work/clisp-2.49/builddir/regexp/regexp.fas ...
;; Loaded file /var/tmp/portage/dev-lisp/clisp-2.49-r8/work/clisp-2.49/builddir/regexp/regexp.fas
;; Loading file /var/tmp/portage/dev-lisp/clisp-2.49-r8/work/clisp-2.49/builddir/readline/readline.fas ...
*** - FFI::FIND-FOREIGN-VARIABLE: foreign variable #<FOREIGN-VARIABLE "rl_readline_state" #x0000000000847B40> does not have the required size or alignment

./clisp-link: failed in /var/tmp/portage/dev-lisp/clisp-2.49-r8/work/clisp-2.49/builddir
make: *** [Makefile:2595: base] Error 1
 * ERROR: dev-lisp/clisp-2.49-r8::gentoo failed (compile phase):
 *   emake failed
 * 


Reproducible: Always




Portage 2.3.1 (python 3.4.5-final-0, default/linux/amd64/13.0/desktop/plasma/systemd, gcc-5.4.0, glibc-2.23-r2, 4.7.5-gentoo x86_64)
=================================================================
System uname: Linux-4.7.5-gentoo-x86_64-Intel-R-_Core-TM-_i7-3740QM_CPU_@_2.70GHz-with-gentoo-2.3
KiB Mem:    24626192 total,  18771852 free
KiB Swap:   26488828 total,  26488828 free
Timestamp of repository gentoo: Fri, 30 Sep 2016 08:00:01 +0000
Timestamp of repository poly-c: Thu, 29 Sep 2016 09:47:19 +0000
sh bash 4.4
ld GNU ld (Gentoo 2.26.1 p1.0) 2.26.1
app-shells/bash:          4.4::gentoo
dev-java/java-config:     2.2.0-r3::gentoo
dev-lang/perl:            5.24.0-r1::gentoo
dev-lang/python:          2.7.12::gentoo, 3.4.5::gentoo, 3.5.2::gentoo
dev-util/cmake:           3.6.2::gentoo
dev-util/pkgconfig:       0.29.1::gentoo
sys-apps/baselayout:      2.3::gentoo
sys-apps/openrc:          0.22::gentoo
sys-apps/sandbox:         2.10-r2::gentoo
sys-devel/autoconf:       2.13::gentoo, 2.69-r2::gentoo
sys-devel/automake:       1.11.6-r2::gentoo, 1.13.4-r1::gentoo, 1.14.1-r1::gentoo, 1.15-r2::gentoo
sys-devel/binutils:       2.26.1::gentoo
sys-devel/gcc:            5.4.0::gentoo
sys-devel/gcc-config:     1.8-r1::gentoo
sys-devel/libtool:        2.4.6-r2::gentoo
sys-devel/make:           4.2.1::gentoo
sys-kernel/linux-headers: 4.7::gentoo (virtual/os-headers)
sys-libs/glibc:           2.23-r2::gentoo
Repositories:

gentoo
    location: /mnt/portage
    sync-type: rsync
    sync-uri: rsync://rsync.gentoo.org/gentoo-portage
    priority: -1000

lokal
    location: /mnt/portage/local/local-overlay
    masters: gentoo
    priority: 0

amielke-overlay
    location: /mnt/portage/local/layman/amielke-overlay
    sync-type: laymansync
    sync-uri: git://github.com/amielke/amielke-overlay.git
    masters: gentoo
    priority: 50

bitcoin
    location: /mnt/portage/local/layman/bitcoin
    sync-type: laymansync
    sync-uri: https://gitlab.com/bitcoin/gentoo.git
    masters: gentoo
    priority: 50

brother-overlay
    location: /mnt/portage/local/layman/brother-overlay
    sync-type: laymansync
    sync-uri: git://github.com/stefan-langenmaier/brother-overlay.git
    masters: gentoo
    priority: 50

bumblebee
    location: /mnt/portage/local/layman/bumblebee
    sync-type: laymansync
    sync-uri: git://github.com/Bumblebee-Project/bumblebee-gentoo
    masters: gentoo
    priority: 50

dotnet
    location: /mnt/portage/local/layman/dotnet
    sync-type: laymansync
    sync-uri: git://anongit.gentoo.org/proj/dotnet.git
    masters: gentoo
    priority: 50

dr
    location: /mnt/portage/local/layman/dr
    sync-type: laymansync
    sync-uri: git://github.com/cerebrum/dr.git
    masters: gentoo
    priority: 50

ixit
    location: /mnt/portage/local/layman/ixit
    sync-type: laymansync
    sync-uri: git://github.com/okias/ixit.git
    masters: gentoo
    priority: 50

media-overlay
    location: /mnt/portage/local/layman/media-overlay
    sync-type: laymansync
    sync-uri: git://github.com/hasufell/media-overlay.git
    masters: gentoo
    priority: 50

poly-c
    location: /mnt/portage/local/layman/poly-c
    sync-type: laymansync
    sync-uri: rsync://rsync.gentoofan.org/poly-c
    masters: gentoo
    priority: 50

qt
    location: /mnt/portage/local/layman/qt
    sync-type: laymansync
    sync-uri: git://anongit.gentoo.org/proj/qt.git
    masters: gentoo
    priority: 50

steam-overlay
    location: /mnt/portage/local/layman/steam-overlay
    sync-type: laymansync
    sync-uri: git://github.com/anyc/steam-overlay.git
    masters: gentoo
    priority: 50

ACCEPT_KEYWORDS="amd64 ~amd64"
ACCEPT_LICENSE="*"
CBUILD="x86_64-pc-linux-gnu"
CFLAGS="-march=core-avx-i -O2 -pipe"
CHOST="x86_64-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/lib64/libreoffice/program/sofficerc /usr/share/config /usr/share/gnupg/qualified.txt"
CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /etc/dconf /etc/env.d /etc/fonts/fonts.conf /etc/gconf /etc/gentoo-release /etc/php/apache2-php7.0/ext-active/ /etc/php/cgi-php7.0/ext-active/ /etc/php/cli-php7.0/ext-active/ /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="-march=core-avx-i -O2 -pipe"
DISTDIR="/mnt/portage/distfiles"
FCFLAGS="-O2 -pipe"
FEATURES="assume-digests binpkg-logs config-protect-if-modified distlocks fail-clean fixlafiles merge-sync news nodoc noinfo parallel-fetch parallel-install preserve-libs protect-owned sandbox sfperms strict unknown-features-warn unmerge-logs unmerge-orphans userfetch userpriv usersandbox usersync xattr"
FFLAGS="-O2 -pipe"
GENTOO_MIRRORS="http://distfiles.gentoo.org"
LANG="C"
LC_ALL=""
LDFLAGS="-Wl,-O1 -Wl,--as-needed"
MAKEOPTS="-j9"
PKGDIR="/mnt/portage/packages"
PORTAGE_CONFIGROOT="/"
Comment 1 tman 2016-09-30 08:35:04 UTC
Created attachment 448490 [details]
/mnt/portage/logs/dev-lisp:clisp-2.49-r8:20160930-082530.log
Comment 2 Fred Krogh 2016-09-30 19:00:16 UTC
Getting the same error here.
Comment 3 Serge Plyukhin 2016-09-30 21:25:37 UTC
Getting the same error here.
Comment 4 Andrey Grozin gentoo-dev 2016-10-01 03:26:50 UTC
*** Bug 595700 has been marked as a duplicate of this bug. ***
Comment 5 Jeff Kowalczyk 2016-10-02 02:29:15 UTC
Getting the same error here.
Comment 6 Andrey Grozin gentoo-dev 2016-10-02 03:40:09 UTC
commit beb52002a3f12695af63071a74b52736eea5fe1c
Author: Andrey Grozin <grozin@gentoo.org>
Date:   Sun Oct 2 10:38:44 2016 +0700

    dev-lisp/clisp: 2.49-r9 for readline-7
    
    Bug: 595624
    
    Package-Manager: portage-2.3.0

commit 6a82015e0302846aaae7def7c4c1527bc2fd588c
Author: Andrey Grozin <grozin@gentoo.org>
Date:   Sun Oct 2 09:53:11 2016 +0700

    dev-lisp/clisp: in stable 2.49-r8, readline must be <7.0
    
    Package-Manager: portage-2.3.0
Comment 7 David Haller 2016-10-09 14:13:09 UTC
(In reply to Andrey Grozin from comment #6)
>     dev-lisp/clisp: 2.49-r9 for readline-7
[..]
>     dev-lisp/clisp: in stable 2.49-r8, readline must be <7.0

The (upstream) patch should only be applied when readline-7 is installed,
with readline < 7.0, it'll break again. Just as I've did in my patch in https://bugs.gentoo.org/show_bug.cgi?id=595624:

    # bug #594552
    if use readline && has_version ">=sys-libs/readline-7.0"; then
        epatch "${FILESDIR}"/${P}-readline-7.patch
    fi

See my comments there.
Comment 8 David Haller 2016-10-09 14:14:32 UTC
*argh* I meant https://bugs.gentoo.org/show_bug.cgi?id=594552 of course.
Comment 9 David Haller 2016-11-12 07:31:13 UTC
Oops. Commented first in <https://bugs.gentoo.org/show_bug.cgi?id=594552>.
But the same applies. Why the f... have you, Andrey, not used the conditional
application of the readline-7 patch???

And I'd like to reopen this bug.
Comment 10 Andrey Grozin gentoo-dev 2016-11-13 02:33:04 UTC
(In reply to David Haller from comment #9)
> Oops. Commented first in <https://bugs.gentoo.org/show_bug.cgi?id=594552>.
> But the same applies. Why the f... have you, Andrey, not used the conditional
> application of the readline-7 patch???
> 
> And I'd like to reopen this bug.
I have already explained this in my comment 19 in the bug #594552.
Your "solution" with the patch applied conditionally is unacceptable.
If you don't understand, I'll go in small steps.

1. clisp compiled with readline-7 (with the patch, of course) is binary incompatible with clisp compiled with <readline-7. Switching from one of them to the other one requires recompiling all dependencies: maxima[clisp], fricas[clisp], maybe others.

2. Hence clisp/readline-7 and clisp/<readline-7 *must* have different subslots. maxima and fricas ebuilds depend on clisp:= and will be recompiled.

3. Hence clisp/readline-7 and clisp/<readline-7 *must* be distinct revisions.

4. Hence there is no need to write this conditional logic in either of these 2 ebuilds: in one of them the condition is always true, in the other one it is always false.

Anything else you don't understand? Please don't commit any changes to clisp which will break maxima and fricas.