Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 34497 - clisp emerge fails on stack overflow
Summary: clisp emerge fails on stack overflow
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: New packages (show other bugs)
Hardware: x86 Linux
: High normal (vote)
Assignee: Matthew Kennedy (RETIRED)
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2003-11-26 23:44 UTC by Aquila
Modified: 2003-12-01 17:32 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 Aquila 2003-11-26 23:44:37 UTC
When emerging the new clisp (2.31) the emerge fails with a stack overflow:

...
;; Loaded file /var/tmp/portage/clisp-2.31/work/clisp-2.31/build/deprecated.lisp
;; Bestand /var/tmp/portage/clisp-2.31/work/clisp-2.31/build/config.lisp ...
WAARSCHUWING:
DEFUN/DEFMACRO: redefining functie EDITOR-NAME in /var/tmp/portage/clisp-2.
31/work/clisp-2.31/build/config.lisp, was defined in /var/tmp/portage/clisp-2.
31/work/clisp-2.31/src/edit.lisp
WAARSCHUWING:
DEFUN/DEFMACRO: redefining functie EDIT-FILE in /var/tmp/portage/clisp-2.
31/work/clisp-2.31/build/config.lisp, was defined in /var/tmp/portage/clisp-2.
31/work/clisp-2.31/src/edit.lisp
WAARSCHUWING:
DEFUN/DEFMACRO: redefining functie EDITOR-TEMPFILE in /var/tmp/portage/clisp-2.
31/work/clisp-2.31/build/config.lisp, was defined in /var/tmp/portage/clisp-2.
31/work/clisp-2.31/src/edit.lisp
;; Loaded file /var/tmp/portage/clisp-2.31/work/clisp-2.31/build/config.lisp
Tot ziens.
mv lispimag.mem interpreted.mem
./lisp.run -B . -N locale -Efile UTF-8 -Eterminal UTF-8 -norc -m 1000KW -M 
interpreted.mem -q -c compiler.lisp

Bezig met compileren van /var/tmp/portage/clisp-2.31/work/clisp-2.
31/build/compiler.lisp ...
*** - Lisp stapeloverloop. RESET

0 fout, 0 waarschuwing
make: *** [compiler.fas] Fout 1

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

(These are the dutch locals, but it just has a lot of warnings, and then a stack 
overflow)

Reproducible: Always
Steps to Reproduce:
1.emerge clisp

Actual Results:  
The emerge failed on a stack overflow

Expected Results:  
Install clisp

Portage 2.0.49-r15 (default-x86-1.4, gcc-3.2.3, glibc-2.3.2-r3, 2.4.
20-gentoo-r8)
=================================================================
System uname: 2.4.20-gentoo-r8 i686 AMD Athlon(tm)
Gentoo Base System version 1.4.3.10p1
ccache version 2.3 [enabled]
ACCEPT_KEYWORDS="x86"
AUTOCLEAN="yes"
CFLAGS="-march=athlon-xp -O3 -pipe -fomit-frame-pointer"
CHOST="i686-pc-linux-gnu"
COMPILER="gcc3"
CONFIG_PROTECT="/etc /var/qmail/control /usr/kde/2/share/config 
/usr/kde/3/share/config /usr/X11R6/lib/X11/xkb /usr/kde/3.1/share/config 
/usr/share/texmf/tex/generic/config/ /usr/share/texmf/tex/platex/config/ 
/usr/share/config"
CONFIG_PROTECT_MASK="/etc/gconf /etc/env.d"
CXXFLAGS="-march=athlon-xp -O3 -pipe -fomit-frame-pointer"
DISTDIR="/usr/portage/distfiles"
FEATURES="sandbox autoaddcvs ccache"
GENTOO_MIRRORS="http://ftp.belnet.be/mirror/rsync.gentoo.org/gentoo/ ftp://ftp.
belnet.be/mirror/rsync.gentoo.org/gentoo/ ftp://gentoo.linux.no/pub/gentoo/ 
http://gentoo.oregonstate.edu http://www.ibiblio.
org/pub/Linux/distributions/gentoo"
MAKEOPTS="-j2"
PKGDIR="/usr/portage/packages"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
PORTDIR_OVERLAY=""
SYNC="rsync://rsync.be.gentoo.org/gentoo-portage"
USE="x86 apm avi crypt cups encode foomaticdb gif jpeg gnome libg++ mad mikmod 
mpeg ncurses nls pdflib png quicktime spell truetype xml2 xmms xv zlib directfb 
gdbm berkdb slang readline arts tetex aalib bonobo svga ggi tcltk java guile 
postgres X sdl gpm tcpd pam libwww ssl perl python esd imlib oggvorbis gtk qt 
kde motif opengl gphoto2 cdr 3dnow acpi alsa dga doc dvd ethereal fbcon flash gd 
gtk2 gtkhtml imap jikes junit maildir mbox mysql oss pic plotutils radeon samba 
tiff usb wmp xml"
Comment 1 Matthew Kennedy (RETIRED) gentoo-dev 2003-11-28 08:00:56 UTC
I can't reproduce this, however your CFLAGS are: 

   -march=athlon-xp -O3 -pipe -fomit-frame-pointer 

mine are:

   -march=pentium3 -O3 -funroll-loops -fprefetch-loop-arrays -fomit-frame-pointer -pipe

You might want to try re-emerging with -mcpu=i686 instead of -march=athlon-xp or, try removing -O3.  Let me know the result
Comment 2 Aquila 2003-11-28 08:44:25 UTC
omitting -O3 solved it, hope that helps
Comment 3 Matthew Kennedy (RETIRED) gentoo-dev 2003-11-28 22:05:53 UTC
hi Aquila,

yes that helps.  Did you happen to try with -O2?  If possible, i'd like to filter flags as little as possile.

Matt
Comment 4 Aquila 2003-11-29 01:14:03 UTC
I'll try -O2 tomorrowevening...
Comment 5 Matthew Kennedy (RETIRED) gentoo-dev 2003-11-29 20:56:32 UTC
thanks. in the mean time i've committed a version which omits any optimizations when march=athlon-xp is used
Comment 6 Aquila 2003-11-30 03:20:50 UTC
I have just emerged that version, works flawless.
I will start compiling -O2 soon, first I'm going to give gcc another try...
Comment 7 Aquila 2003-11-30 05:02:19 UTC
-O2 doesn't work, it still fails on a stack overflow
(meanwhile I'm using the newest gcc)
Comment 8 Matthew Kennedy (RETIRED) gentoo-dev 2003-12-01 17:32:45 UTC
ok thanks for the feedback.  I will leave it as it is currently (omit any optimization in the presense of -march=athlon-xp)

Matt