Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!

Bug 585182

Summary: dev-lisp/clisp-2.49-r8: C_CODE_ALIGNMENT is wrong. &EVAL-WHEN = 0x806c0e5. Add -falign-functions=4 to CFLAGS in the Makefile.
Product: Gentoo Linux Reporter: Andrew Savchenko <bircoph>
Component: Current packagesAssignee: Common Lisp Bugs <common-lisp>
Status: RESOLVED FIXED    
Severity: normal CC: jstein, whissi
Priority: Normal    
Version: unspecified   
Hardware: x86   
OS: Linux   
Whiteboard:
Package list:
Runtime testing required: ---
Bug Depends on: 638942    
Bug Blocks:    
Attachments: build.log
environment
emerge --info

Description Andrew Savchenko gentoo-dev 2016-06-06 14:11:48 UTC
Created attachment 436638 [details]
build.log

Hi,

on ~x86 clisp-2.49-r8 fails to build:

CFLAGS="-O2 -pipe" LDFLAGS="-Wl,-O1,--as-needed" emerge -1 dev-lisp/clisp

[...]

gcc -O2 -pipe -Wa,--noexecstack -W -Wswitch -Wcomment -Wpointer-arith -Wimplicit -Wreturn-type -Wmissing-declarations -O -DENABLE_UNICODE -DDYNAMIC_FFI -I. -Wl,-O1,--as-needed  spvw.o spvwtabf.o spvwtabs.o spvwtabo.o eval.o control.o encoding.o pathname.o stream.o socket.o io.o funarg.o array.o hashtabl.o list.o package.o record.o weak.o sequence.o charstrg.o debug.o error.o misc.o time.o predtype.o symbol.o lisparit.o i18n.o foreign.o unixaux.o built.o ari80386.o modules.o /usr/lib/libreadline.so -lncurses -ldl /usr/lib/libavcall.so /usr/lib/libcallback.so  -L/usr/lib -lsigsegv -L/usr/lib -lc libgnu_cl.a -o lisp.run
/usr/lib/gcc/i686-pc-linux-gnu/5.3.0/../../../../i686-pc-linux-gnu/bin/ld: warning: libncurses.so.5, needed by /lib/libreadline.so.6, may conflict with libncurses.so.6
./lisp.run -B . -N locale -E UTF-8 -Epathname 1:1 -Emisc 1:1 -norc -m 2MW -lp ../src/ -x '(and (load "../src/init.lisp") (sys::%saveinitmem) (ext::exit)) (ext::exit t)'
C_CODE_ALIGNMENT is wrong. &EVAL-WHEN = 0x806c0e5.
Add -falign-functions=4 to CFLAGS in the Makefile.
make: *** [Makefile:1742: interpreted.mem] Aborted
Comment 1 Andrew Savchenko gentoo-dev 2016-06-06 14:12:15 UTC
Created attachment 436640 [details]
environment
Comment 2 Andrew Savchenko gentoo-dev 2016-06-06 14:17:47 UTC
Created attachment 436642 [details]
emerge --info
Comment 3 Andrew Savchenko gentoo-dev 2016-06-06 14:55:28 UTC
As suggested by the error message, adding -falign-functions=4 to CFLAGS helps. I propose to append this option to CFLAGS on ~x86.
Comment 4 Chema Alonso Josa (RETIRED) gentoo-dev 2018-03-07 12:52:22 UTC
=dev-lisp/clisp-2.49-r8 no longer in the tree. Please try with current =dev-lisp/clisp-2.49.90
Comment 5 Cyprien Nicolas (fulax) 2019-06-10 17:39:15 UTC
Closing as obsolete. Please re-open if it occurs with a newer version.
Comment 6 Cyprien Nicolas (fulax) 2019-06-15 11:41:32 UTC
*** Bug 648044 has been marked as a duplicate of this bug. ***
Comment 7 Cyprien Nicolas (fulax) 2019-06-15 12:00:00 UTC
(In reply to Cyprien Nicolas (fulax) from comment #5)
> Closing as obsolete. Please re-open if it occurs with a newer version.

It actually has been properly added in clisp-2.49.90 and clisp-2.49.92 ebuilds.