| Summary: | clisp-2.31 fails to emerge with -march=pentium4, "missing -falign-functions=4" | ||
|---|---|---|---|
| Product: | Gentoo Linux | Reporter: | Tarmo Tänav <sn4ip3r> |
| Component: | New packages | Assignee: | Matthew Kennedy (RETIRED) <mkennedy> |
| Status: | RESOLVED TEST-REQUEST | ||
| Severity: | normal | CC: | ed |
| Priority: | High | ||
| Version: | unspecified | ||
| Hardware: | x86 | ||
| OS: | Linux | ||
| Whiteboard: | |||
| Package list: | Runtime testing required: | --- | |
|
Description
Tarmo Tänav
2003-11-28 08:29:44 UTC
-r1 committed to cvs should fix this. thanks for the bug report. matt Not fixed at all. ./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 = 0x8062b7b. Add -falign-functions=4 to CFLAGS in the Makefile. make: *** [interpreted.mem] Abandon !!! ERROR: dev-lisp/clisp-2.31-r1 failed. !!! Function src_compile, Line 73, Exitcode 2 !!! (no error message) With CFLAGS="-mcpu=athlon-xp -O3 -pipe". I tested some CFLAGS combinations: USE="X nls" CFLAGS="-march=pentium4 -O3 -pipe -fomit-frame-pointer" CFLAGS="-march=pentium4 -O3 -pipe" CFLAGS="-mcpu=pentium4 -O3 -pipe -fomit-frame-pointer" CFLAGS="-mcpu=pentium4 -O3 -pipe" Same error as -march=pentium4. USE="X nls" CFLAGS="-march=athlon-xp -O3 -pipe -fomit-frame-pointer" CFLAGS="-mcpu=athlon-xp -O3 -pipe" Compiles. USE="X threads nls" CFLAGS="-mcpu=athlon-xp -O3 -pipe" Compiles. gcc version 3.2.3 20030422 (Gentoo Linux 1.4 3.2.3-r3, propolice) The ebuild does not currently handle the case where -falign-functions is explicitly set to a value other than 4. (e.g. 64, on some of my machines)
I don't know how to replace a variable CFLAG using flag-o-matic - appending '-falign-functions=4' to CFLAGS will work but is ugly; suggest the following:
--- clisp-2.31-r1.ebuild 2003-12-02 08:19:46.000000000 +0000
+++ clisp-2.31-r2.ebuild 2003-12-02 08:48:42.000000000 +0000
@@ -13,6 +13,12 @@
&& ! is-flag '-falign-functions=4'; then
append-flags '-falign-functions=4'
fi
+if ! is-flag '-falign-functions=4'
+ && expr "$CFLAGS" : '.*\(-falign-functions=[[:digit:]]\+\)'; then
+ CFLAGS=${CFLAGS/\
+$(expr "$CFLAGS" : '.*\(-falign-functions=[[:digit:]]\+\)')/\
+-falign-functions=4}
+fi
# Athlon XP users report problems with -O3 optimization. In this
# block, we remove any optimization flag. Depending on bug 34497. we
Please try clisp-2.33.2. Starting with clisp-2.33-r3, the ebuild unsets any CFLAGS you may have chosen in /etc/make.conf. I simply don't have the time to maintain all the logic required to filter CFLAGS. CLISP provides its own optimizations settings. |