Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 33425 - clisp-2.31 ebuild unsets CFLAGS, cannot add needed flag
Summary: clisp-2.31 ebuild unsets CFLAGS, cannot add needed flag
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Development (show other bugs)
Hardware: x86 Linux
: High major (vote)
Assignee: Matthew Kennedy (RETIRED)
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2003-11-13 14:25 UTC by Darrin Tisdale
Modified: 2003-11-28 22:35 UTC (History)
0 users

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


Attachments

Note You need to log in before you can comment on or make changes to this bug.
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