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

Bug 33425

Summary: clisp-2.31 ebuild unsets CFLAGS, cannot add needed flag
Product: Gentoo Linux Reporter: Darrin Tisdale <me>
Component: [OLD] DevelopmentAssignee: Matthew Kennedy (RETIRED) <mkennedy>
Status: RESOLVED FIXED    
Severity: major    
Priority: High    
Version: unspecified   
Hardware: x86   
OS: Linux   
Whiteboard:
Package list:
Runtime testing required: ---

Description Darrin Tisdale 2003-11-13 14:25:45 UTC
In the ebuild file for clisp-2.31, it says

unset CFLAGS

Later, the build uses CFLAGS from the Makefile.  Unfortunately, it omits a function alignment so that it cannot be built:

emerge clisp
...
mkdir data
cd data && ln -s ../../utils/unicode/UnicodeDataFull.txt .
cd data && ln -s ../../src/clhs.txt .
gcc -W -Wswitch -Wcomment -Wpointer-arith -Wimplicit -Wreturn-type  -fomit-frame-pointer -O -DUNICODE -DDYNAMIC_FFI -x none spvw.o spvwtabf.o spvwtabs.o spvwtabo.o eval.o control.o encoding.o pathname.o stream.o socket.o io.o array.o hashtabl.o list.o package.o record.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 ari80386.o modules.o libcharset.a libavcall.a libcallback.a -lreadline -lncurses -ldl   -L/usr/lib -lsigsegv -L/usr/lib -lc -o lisp.run
sync
./lisp.run -B . -N locale -Efile UTF-8 -Eterminal UTF-8 -norc -m 750KW -x "(and (load \"init.lisp\") (sys::%saveinitmem) (ext::exit))"
C_CODE_ALIGNMENT is wrong. &EVAL-WHEN = 0x8062ae7.
Add -falign-functions=4 to CFLAGS in the Makefile.
make: *** [interpreted.mem] Aborted

!!! ERROR: dev-lisp/clisp-2.31 failed.
!!! Function src_compile, Line 49, Exitcode 2
!!! (no error message)

Since the Makefile is created dynamically, it cannot be changed.  It puts the following line into the Makefile:

CFLAGS =  -W -Wswitch -Wcomment -Wpointer-arith -Wimplicit -Wreturn-type  -fomit-frame-pointer -O -DUNICODE -DDYNAMIC_FFI

I have also tried to comment out the unset line, but then the whole build goes crazy.
Comment 1 Matthew Kennedy (RETIRED) gentoo-dev 2003-11-22 22:35:13 UTC
ah i see what you mean. assigning
Comment 2 Matthew Kennedy (RETIRED) gentoo-dev 2003-11-27 00:08:30 UTC
a fix for this has been incorporated into clisp-2.31, recently marked stable.
Comment 3 Matthew Kennedy (RETIRED) gentoo-dev 2003-11-27 00:08:51 UTC
.
Comment 4 Matthew Kennedy (RETIRED) gentoo-dev 2003-11-28 22:35:20 UTC
i just realized i failed to solve the problem when i closed this, in clisp-2.31-r1, there is a robust fix.

Matt