Hi, compilation of ruby-1.8.5-r1 reproducibly segfaults at exactly the same point when I try to compile it with -fomit-frame-pointer. Once I remove it from CFLAGS everything goes without a hitch. TIA, Max <snip> i686-pc-linux-gnu-gcc -O2 -march=athlon64 -fomit-frame-pointer -pipe -fPIC -DRUBY_EXPORT -I. -I. -c time.c i686-pc-linux-gnu-gcc -O2 -march=athlon64 -fomit-frame-pointer -pipe -fPIC -DRUBY_EXPORT -I. -I. -c util.c i686-pc-linux-gnu-gcc -O2 -march=athlon64 -fomit-frame-pointer -pipe -fPIC -DRUBY_EXPORT -I. -I. -c variable.c i686-pc-linux-gnu-gcc -O2 -march=athlon64 -fomit-frame-pointer -pipe -fPIC -DRUBY_EXPORT -I. -I. -c version.c i686-pc-linux-gnu-gcc -O2 -march=athlon64 -fomit-frame-pointer -pipe -fPIC -DRUBY_EXPORT -I. -I. -c dmyext.c i686-pc-linux-gnu-gcc -O2 -march=athlon64 -fomit-frame-pointer -pipe -fPIC -DRUBY_EXPORT -I. -I. -c main.c i686-pc-linux-gnu-ar rcu libruby18-static.a array.o bignum.o class.o compar.o dir.o dln.o enum.o error.o eval.o file.o gc.o hash.o inits.o io.o marshal.o math.o numeric.o object.o pack.o parse.o process.o prec.o random.o range.o re.o regex.o ruby.o signal.o sprintf.o st.o string.o struct.o time.o util.o variable.o version.o dmyext.o i686-pc-linux-gnu-gcc main.o libruby18-static.a -ldl -lcrypt -lm -o miniruby -O2 -march=athlon64 -fomit-frame-pointer -pipe -fPIC -DRUBY_EXPORT -rdynamic -Wl,-export-dynamic i686-pc-linux-gnu-gcc -shared -Wl,-soname,libruby18.so.1.8 array.o bignum.o class.o compar.o dir.o dln.o enum.o error.o eval.o file.o gc.o hash.o inits.o io.o marshal.o math.o numeric.o object.o pack.o parse.o process.o prec.o random.o range.o re.o regex.o ruby.o signal.o sprintf.o st.o string.o struct.o time.o util.o variable.o version.o dmyext.o -ldl -lcrypt -lm -o libruby18.so.1.8.5 ./lib/fileutils.rb:1240: [BUG] Segmentation fault ruby 1.8.5 (2006-08-25) [i686-linux] make: *** [.rbconfig.time] Aborted make: *** Waiting for unfinished jobs.... !!! ERROR: dev-lang/ruby-1.8.5-r1 failed. Call stack: ebuild.sh, line 1546: Called dyn_compile ebuild.sh, line 937: Called src_compile ruby-1.8.5-r1.ebuild, line 90: Called die !!! emake failed !!! If you need support, post the topmost build error, and the call stack if relevant. Portage 2.1.2_pre2-r5 (default-linux/x86/2005.1, gcc-3.4.6, glibc-2.3.6-r4, 2.6.17-gentoo-r8 i686) ================================================================= System uname: 2.6.17-gentoo-r8 i686 AMD Athlon(tm) 64 Processor 3500+ Gentoo Base System version 1.12.5 Last Sync: Sat, 07 Oct 2006 16:20:01 +0000 app-admin/eselect-compiler: [Not Present] dev-java/java-config: [Not Present] dev-lang/python: 2.4.3-r4 dev-python/pycrypto: 2.0.1-r5 dev-util/ccache: [Not Present] dev-util/confcache: [Not Present] sys-apps/sandbox: 1.2.18.1 sys-devel/autoconf: 2.13, 2.60 sys-devel/automake: 1.4_p6, 1.5, 1.6.3, 1.7.9-r1, 1.8.5-r3, 1.9.6-r2 sys-devel/binutils: 2.17 sys-devel/gcc-config: 1.3.13-r4 sys-devel/libtool: 1.5.22 virtual/os-headers: 2.6.11-r5 ACCEPT_KEYWORDS="x86 ~x86" AUTOCLEAN="yes" CBUILD="i686-pc-linux-gnu" CFLAGS="-O2 -march=athlon64 -fomit-frame-pointer -pipe" CHOST="i686-pc-linux-gnu" CONFIG_PROTECT="/etc /usr/kde/3.5/env /usr/kde/3.5/share/config /usr/kde/3.5/shutdown /usr/share/X11/xkb /usr/share/config" CONFIG_PROTECT_MASK="/etc/env.d /etc/gconf /etc/revdep-rebuild /etc/terminfo" CXXFLAGS="-O2 -march=athlon64 -fomit-frame-pointer -pipe" DISTDIR="/usr/portage/distfiles" EMERGE_DEFAULT_OPTS="--with-bdeps=y" FEATURES="autoconfig collision-protect distlocks metadata-transfer parallel-fetch sandbox sfperms strict userfetch userpriv usersandbox" GENTOO_MIRRORS="http://pandemonium.tiscali.de/pub/gentoo/ http://ftp.easynet.nl/mirror/gentoo/" MAKEOPTS="-j2" PKGDIR="/usr/portage/packages" PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times --compress --force --whole-file --delete --delete-after --stats --timeout=180 --exclude=/distfiles --exclude=/local --exclude=/packages" PORTAGE_TMPDIR="/var/tmp" PORTDIR="/usr/portage" PORTDIR_OVERLAY="/usr/local/portage" SYNC="rsync://rsync.de.gentoo.org/gentoo-portage" USE="x86 3dnow X a52 aac alsa apache2 apm avi bash-completion berkdb bitmap-fonts bzip2 cdr cli crypt curl dlloader dri dvd dvdr elibc_glibc emboss encode ffmpeg firefox flac foomaticdb gdbm gif gpm gtk gtk2 hal imlib input_devices_evdev input_devices_keyboard input_devices_mouse isdnlog jpeg kde kdeenablefinal kdexdeltas kernel_linux lcms libg++ libwww mad mikmod mmx motif mp3 mpeg musicbrainz ncurses nls nptl offensive ogg oggvorbis opengl oss pam pcre pdflib perl png pppd python qt3 quicktime readline reflection ruby sdl session spell spl sse sse2 ssl tcpd theora tiff truetype truetype-fonts type1-fonts usb userland_GNU video_cards_radeon vorbis win32codecs xine xml2 xorg xv zlib" Unset: CTARGET, INSTALL_MASK, LANG, LC_ALL, LDFLAGS, LINGUAS, PORTAGE_RSYNC_EXTRA_OPTS
*** This bug has been marked as a duplicate of 148965 ***
according to upsteam the frame-pointer is needed for the GC.
(In reply to comment #2) > according to upsteam the frame-pointer is needed for the GC. Already been reverted.