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"
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
omitting -O3 solved it, hope that helps
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
I'll try -O2 tomorrowevening...
thanks. in the mean time i've committed a version which omits any optimizations when march=athlon-xp is used
I have just emerged that version, works flawless. I will start compiling -O2 soon, first I'm going to give gcc another try...
-O2 doesn't work, it still fails on a stack overflow (meanwhile I'm using the newest gcc)
ok thanks for the feedback. I will leave it as it is currently (omit any optimization in the presense of -march=athlon-xp) Matt