Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 544070 - dev-lisp/sbcl-1.2.9 fails to build on x86: CORRUPTION WARNING in SBCL pid: Memory fault at (nil)
Summary: dev-lisp/sbcl-1.2.9 fails to build on x86: CORRUPTION WARNING in SBCL pid: Me...
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: x86 Linux
: Normal normal (vote)
Assignee: Panagiotis Christopoulos (RETIRED)
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2015-03-21 23:52 UTC by Dirk Sondermann
Modified: 2015-04-20 10:55 UTC (History)
5 users (show)

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


Attachments
build.log (xz compressed) (build.log.xz,250.72 KB, application/x-xz)
2015-03-21 23:52 UTC, Dirk Sondermann
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Dirk Sondermann 2015-03-21 23:52:51 UTC
Created attachment 399424 [details]
build.log (xz compressed)

Emerging dev-lisp/sbcl-1.2.9 on x86 fails with the following error:

CORRUPTION WARNING in SBCL pid 8772(tid 3084465920):
Memory fault at (nil) (pc=0x806566e, sp=0xb39cbcb8)
The integrity of this image is possibly compromised.
Exiting.
Welcome to LDB, a low-level debugger for the Lisp runtime environment.
ldb>

The bug also affects versions 1.2.7, 1.2.6 and 1.2.4.

The problem is caused by the CFLAGS in src/runtime/GNUmakefile.
These CFLAGS are modified by the ebuild, which adds the CFLAGS
defined in make.conf to the original sbcl values (that has been
introduced in the context of bug 526194).

In my make.conf the CFLAGS include -march=native, which implies -msse.
And it seems that -msse causes the build to fail. When I disable SSE by
setting  CFLAGS="$CFLAGS -mno-sse"  in /etc/portage/env/dev-lisp/sbcl
the build succeeds.

The message
  http://forums.gentoo.org/viewtopic-p-7714874.html
in the gentoo forum and the sbcl bug report
  https://bugs.launchpad.net/sbcl/+bug/1432529
suggest that the bug is restricted to x86 and does not affect amd64.
Comment 1 Dirk Sondermann 2015-03-21 23:56:14 UTC
Portage 2.2.14 (python 2.7.9-final-0, default/linux/x86/13.0/desktop, gcc-4.8.3, glibc-2.19-r1, 3.18.1-gentoo i686)
=================================================================
                         System Settings
=================================================================
System uname: Linux-3.18.1-gentoo-i686-Intel-R-_Core-TM-2_Duo_CPU_E8400_@_3.00GHz-with-gentoo-2.2
KiB Mem:     3104636 total,    815024 free
KiB Swap:    4112636 total,   4021084 free
Timestamp of tree: Fri, 20 Mar 2015 16:45:01 +0000
ld GNU ld (Gentoo 2.24 p1.4) 2.24
distcc 3.1 i686-pc-linux-gnu [disabled]
ccache version 3.1.9 [enabled]
app-shells/bash:          4.2_p53
dev-java/java-config:     2.2.0
dev-lang/perl:            5.20.1-r4
dev-lang/python:          2.7.9-r1, 3.3.5-r1, 3.4.1
dev-util/ccache:          3.1.9-r4
dev-util/cmake:           2.8.12.2-r1
dev-util/pkgconfig:       0.28-r2
sys-apps/baselayout:      2.2
sys-apps/openrc:          0.13.11
sys-apps/sandbox:         2.6-r1
sys-devel/autoconf:       2.13, 2.69
sys-devel/automake:       1.11.6-r1, 1.12.6, 1.13.4
sys-devel/binutils:       2.24-r3
sys-devel/gcc:            4.8.3
sys-devel/gcc-config:     1.7.3
sys-devel/libtool:        2.4.4
sys-devel/make:           4.1-r1
sys-kernel/linux-headers: 3.16 (virtual/os-headers)
sys-libs/glibc:           2.19-r1
Repositories: gentoo mozilla sunrise lisp local
ACCEPT_KEYWORDS="x86"
ACCEPT_LICENSE="* -@EULA Oracle-BCLA-JavaSE AdobeFlash-11.x google-chrome"
CBUILD="i686-pc-linux-gnu"
CFLAGS="-O2 -march=native -pipe"
CHOST="i686-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/lib/X11/xdm/Xsetup_0 /usr/share/easy-rsa /usr/share/gnupg/qualified.txt /var/lib/hsqldb"
CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /etc/dconf /etc/env.d /etc/fonts/fonts.conf /etc/gconf /etc/gentoo-release /etc/revdep-rebuild /etc/sandbox.d /etc/terminfo /etc/texmf/language.dat.d /etc/texmf/language.def.d /etc/texmf/updmap.d /etc/texmf/web2c"
CXXFLAGS="-O2 -march=native -pipe"
DISTDIR="/usr/portage/distfiles"
EMERGE_DEFAULT_OPTS="--with-bdeps=y"
FCFLAGS="-O2 -march=i686 -pipe"
FEATURES="assume-digests binpkg-logs buildpkg ccache config-protect-if-modified distlocks ebuild-locks fixlafiles merge-sync news parallel-fetch preserve-libs protect-owned sandbox sfperms strict unknown-features-warn unmerge-logs unmerge-orphans userfetch userpriv usersandbox usersync"
FFLAGS="-O2 -march=i686 -pipe"
GENTOO_MIRRORS="http://mirror.leaseweb.com/gentoo/"
LANG="C"
LDFLAGS="-Wl,-O1 -Wl,--as-needed"
MAKEOPTS="-j3"
PKGDIR="/usr/portage/packages"
PORTAGE_CONFIGROOT="/"
PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times --omit-dir-times --compress --force --whole-file --delete --stats --human-readable --timeout=180 --exclude=/distfiles --exclude=/local --exclude=/packages"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
PORTDIR_OVERLAY="/var/lib/layman/mozilla /var/lib/layman/sunrise /var/lib/layman/lisp /usr/local/portage"
USE="X a52 aac acl acpi alsa bash-completion berkdb bluetooth branding bzip2 cairo cdda cdr cli cracklib crypt cups cxx dbus doc dri dts dvd dvdr emacs encode exif fam firefox flac fortran gdbm gif glamor gpm gtk iconv jadetex java jpeg kpathsea lcms libav mad mng modules mp3 mp4 mpeg ncurses nls nptl ogg opengl openmp pam pango pcre pdf png ppds qt3support qt4 readline sdl session spell ssl startup-notification svg tcpd tiff truetype udev udisks unicode upower usb vorbis wxwidgets x264 x86 xcb xml xv xvid zlib" ABI_X86="32" ALSA_CARDS="ali5451 als4000 atiixp atiixp-modem bt87x ca0106 cmipci emu10k1 emu10k1x ens1370 ens1371 es1938 es1968 fm801 hda-intel intel8x0 intel8x0m maestro3 trident usb-audio via82xx via82xx-modem ymfpci" APACHE2_MODULES="authn_core authz_core socache_shmcb unixd actions alias auth_basic authn_alias authn_anon authn_dbm authn_default authn_file authz_dbm authz_default authz_groupfile authz_host authz_owner authz_user autoindex cache cgi cgid dav dav_fs dav_lock deflate dir disk_cache env expires ext_filter file_cache filter headers include info log_config logio mem_cache mime mime_magic negotiation rewrite setenvif speling status unique_id userdir usertrack vhost_alias" CALLIGRA_FEATURES="kexi words flow plan sheets stage tables krita karbon braindump author" CAMERAS="ptp2" COLLECTD_PLUGINS="df interface irq load memory rrdtool swap syslog" CPU_FLAGS_X86="mmx mmxext sse sse2 sse3 ssse3" ELIBC="glibc" GPSD_PROTOCOLS="ashtech aivdm earthmate evermore fv18 garmin garmintxt gpsclock itrax mtk3301 nmea ntrip navcom oceanserver oldstyle oncore rtcm104v2 rtcm104v3 sirf superstar2 timing tsip tripmate tnt ublox ubx" GRUB_PLATFORMS="pc" INPUT_DEVICES="evdev keyboard mouse" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LIBREOFFICE_EXTENSIONS="presenter-console presenter-minimizer" LINGUAS="en en_GB en_US de" OFFICE_IMPLEMENTATION="libreoffice" PHP_TARGETS="php5-5" PYTHON_SINGLE_TARGET="python2_7" PYTHON_TARGETS="python2_7 python3_3" RUBY_TARGETS="ruby19 ruby20" USERLAND="GNU" VIDEO_CARDS="vesa intel" XTABLES_ADDONS="quota2 psd pknock lscan length2 ipv4options ipset ipp2p iface geoip fuzzy condition tee tarpit sysrq steal rawnat logmark ipmark dhcpmac delude chaos account"
Unset:  CPPFLAGS, CTARGET, INSTALL_MASK, LC_ALL, PORTAGE_BUNZIP2_COMMAND, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS, SYNC, USE_PYTHON
Comment 2 Viktor Yu. Kovalskii 2015-03-26 18:59:11 UTC
I have the same error.

Portage 2.2.18 (python 2.7.9-final-0, default/linux/x86/13.0/desktop/kde, gcc-4.9.2, glibc-2.20-r2, 3.19.2-gentoo i686)                                                                                           
=================================================================                                                                                                                                                 
                         System Settings                                                                                                                                                                          
=================================================================                                                                                                                                                 
System uname: Linux-3.19.2-gentoo-i686-Intel-R-_Core-TM-_Duo_CPU_T2350_@_1.86GHz-with-gentoo-2.2                                                                                                                  
KiB Mem:     3091832 total,   1148080 free                                                                                                                                                                        
KiB Swap:    2104508 total,   2104508 free                                                                                                                                                                        
Timestamp of repository gentoo: Thu, 26 Mar 2015 09:00:01 +0000                                                                                                                                                   
sh bash 4.3_p33-r2                                                                                                                                                                                                
ld GNU ld (Gentoo 2.25 p1.0) 2.25                                                                                                                                                                                 
ccache version 3.2.1 [enabled]                                                                                                                                                                                    
app-shells/bash:          4.3_p33-r2::gentoo                                                                                                                                                                      
dev-java/java-config:     2.2.0::gentoo                                                                                                                                                                           
dev-lang/perl:            5.20.2::gentoo                                                                                                                                                                          
dev-lang/python:          2.7.9-r2::gentoo, 3.4.3::gentoo                                                                                                                                                         
dev-util/ccache:          3.2.1-r1::gentoo
dev-util/cmake:           3.1.0::gentoo
dev-util/pkgconfig:       0.28-r2::gentoo
sys-apps/baselayout:      2.2::gentoo
sys-apps/openrc:          0.13.11::gentoo
sys-apps/sandbox:         2.6-r1::gentoo
sys-devel/autoconf:       2.13::gentoo, 2.69-r1::gentoo
sys-devel/automake:       1.11.6-r1::gentoo, 1.13.4::gentoo, 1.14.1::gentoo, 1.15::gentoo
sys-devel/binutils:       2.25::gentoo
sys-devel/gcc:            4.9.2::gentoo
sys-devel/gcc-config:     1.8::gentoo
sys-devel/libtool:        2.4.6-r1::gentoo
sys-devel/make:           4.1-r1::gentoo
sys-kernel/linux-headers: 3.19::gentoo (virtual/os-headers)
sys-libs/glibc:           2.20-r2::gentoo
Repositories:

gentoo
    location: /mnt/slag/gentoo-tree
    sync-type: rsync
    sync-uri: rsync://rsync.gentoo.org/gentoo-portage/
    priority: -1000

flying
    location: /mnt/slag/layman/flying
    masters: gentoo

overlays-oschtan
    location: /mnt/slag/layman/oschtan
    sync-type: rsync
    sync-uri: rsync://85.118.229.194/overlay/
    masters: gentoo

rion
    location: /mnt/slag/layman/rion
    sync-type: laymansync
    sync-uri: http://rion-overlay.googlecode.com/hg/
    masters: gentoo
    priority: 50

science
    location: /mnt/slag/layman/science
    sync-type: git
    sync-uri: git://git.overlays.gentoo.org/proj/sci.git
    masters: gentoo
    priority: 50

stuff
    location: /mnt/slag/layman/stuff
    sync-type: git
    sync-uri: https://github.com/megabaks/stuff.git
    masters: gentoo
    priority: 50

Installed sets: @toolchain
ACCEPT_KEYWORDS="x86 ~x86"
ACCEPT_LICENSE="* -@EULA PUEL skype-4.0.0.7-copyright dlj-1.1 AdobeFlash-11.x Oracle-BCLA-JavaSE"
CBUILD="i686-pc-linux-gnu"
CFLAGS="-O2 -pipe -march=pentium-m -fomit-frame-pointer -mtune=generic -mfxsr"
CHOST="i686-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/lib/libreoffice/program/sofficerc /usr/share/config /usr/share/gnupg/qualified.txt /usr/share/themes/oxygen-gtk/gtk-2.0 /usr/share/themes/oxygen-gtk/gtk-3.0 /var/lib/hsqldb"
CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /etc/dconf /etc/env.d /etc/fonts/fonts.conf /etc/gconf /etc/gentoo-release /etc/revdep-rebuild /etc/sandbox.d /etc/splash /etc/terminfo /etc/texmf/language.dat.d /etc/texmf/language.def.d /etc/texmf/updmap.d /etc/texmf/web2c"
CPPFLAGS="-O2 -pipe -march=pentium-m -fomit-frame-pointer -mtune=generic -mfxsr"
CXXFLAGS="-O2 -pipe -march=pentium-m -fomit-frame-pointer -mtune=generic -mfxsr"
DISTDIR="/mnt/slag/distfiles"
EMERGE_DEFAULT_OPTS="--autounmask=n --quiet-build --with-bdeps=y"
FCFLAGS="-O2 -march=i686 -pipe"
FEATURES="assume-digests binpkg-logs buildpkg ccache collision-protect distlocks ebuild-locks fixlafiles merge-sync metadata-transfer news parallel-fetch preserve-libs protect-owned sandbox sfperms strict unknown-features-warn unmerge-logs unmerge-orphans userfetch userpriv usersandbox usersync xattr"
FFLAGS="-O2 -march=i686 -pipe"
GENTOO_MIRRORS="http://mirror.yandex.ru/gentoo-distfiles http://linux.nsu.ru/gentoo-distfiles/ http://trumpetti.atm.tut.fi/gentoo/ http://distfiles.gentoo.org"
LANG="ru_RU.UTF-8"
LC_ALL=""
LDFLAGS="-Wl,-O1 -Wl,--as-needed"
MAKEOPTS="-j3"
PKGDIR="/mnt/slag/gentoo-tree/packages"
PORTAGE_CONFIGROOT="/"
PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times --omit-dir-times --compress --force --whole-file --delete --stats --human-readable --timeout=180 --exclude=/distfiles --exclude=/local --exclude=/packages"
PORTAGE_TMPDIR="/mnt/slag"
USE="7zip X a52 aac aalib acl acpi additions alsa amr apng archive aspell audiofile autotools bash-completion bazaar bdf bluetooth branding bzip2 cairo cdda cddb cdparanoia cdr cdrdao cdrom chardet cli consolekit cracklib curl cvs cxx dbus declarative dia divx djvu docbook dri dri3 drm dts dvd dvdnav dvdr dvi emboss emf enca encode exceptions exif expat extensions fam fbcondecor fbsplash ffmpeg firefox flac fontconfig fortran ftp fuse gallium gd gecko gif gimp git glamor glib glitz gmp gnutls gpm graphviz gstreamer gtkstyle harfbuzz hddtemp http iconv icu idn imagemagick imlib jabber jbig jemalloc jpeg jpeg2k kde kipi lame lasi lastfm latex lcms libass libffi libnotify libsamplerate libyaml lm_sensors lqr lxde lzma lzo mad matroska mercurial mime mms mng modules mp2 mp3 mp4 mpeg mplayer musepack natspec ncurses nls nptl ogg openexr opengl openmp opus orc osmesa pam pango pcre pdf phonon plasma plotutils png policykit postscript ppds pulseaudio qt3support qt4 rar raw readline rtc rtf science sdl session shared-dricore shared-glapi smp sndfile speex spell sqlite ssl startup-notification stats subversion svg symlink syslog system-sqlite szip t1lib tcpd theora threads tiff truetype twolame udev udisks unicode upower usb utils uxa v4l vba vorbis vpx wav wavpack webdav webdav-neon webgl webp wifi wma wmf wps wxwidgets x264 x264-svn-encoder x265 x86 xattr xcb xcomposite xml xmp xorg xpm xps xscreensaver xv xvid zip zlib" ABI_X86="32" ALSA_CARDS="hda-intel" APACHE2_MODULES="authn_core authz_core socache_shmcb unixd actions alias auth_basic authn_alias authn_anon authn_dbm authn_default authn_file authz_dbm authz_default authz_groupfile authz_host authz_owner authz_user autoindex cache cgi cgid dav dav_fs dav_lock deflate dir disk_cache env expires ext_filter file_cache filter headers include info log_config logio mem_cache mime mime_magic negotiation rewrite setenvif speling status unique_id userdir usertrack vhost_alias" CALLIGRA_FEATURES="kexi words flow plan sheets stage tables krita karbon braindump author" CAMERAS="ptp2" COLLECTD_PLUGINS="df interface irq load memory rrdtool swap syslog" CPU_FLAGS_X86="mmx mmxext sse sse2 sse3" CURL_SSL="gnutls" ELIBC="glibc" GPSD_PROTOCOLS="ashtech aivdm earthmate evermore fv18 garmin garmintxt gpsclock itrax mtk3301 nmea ntrip navcom oceanserver oldstyle oncore rtcm104v2 rtcm104v3 sirf superstar2 timing tsip tripmate tnt ublox ubx" INPUT_DEVICES="evdev synaptics" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LIBREOFFICE_EXTENSIONS="presenter-console presenter-minimizer" LINGUAS="ru ru_RU" OFFICE_IMPLEMENTATION="libreoffice" PHP_TARGETS="php5-5" PYTHON_SINGLE_TARGET="python2_7" PYTHON_TARGETS="python2_7 python3_4" RUBY_TARGETS="ruby19 ruby22" USERLAND="GNU" VIDEO_CARDS="intel i915" XTABLES_ADDONS="quota2 psd pknock lscan length2 ipv4options ipset ipp2p iface geoip fuzzy condition tee tarpit sysrq steal rawnat logmark ipmark dhcpmac delude chaos account"
USE_PYTHON="2.7"
Unset:  CTARGET, INSTALL_MASK, PORTAGE_BUNZIP2_COMMAND, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS

=================================================================
                        Package Settings
=================================================================

dev-lisp/sbcl-1.2.7::gentoo was built with the following:
USE="threads unicode zlib -debug -doc -pax_kernel -source"
CFLAGS="-O2 -pipe -march=pentium-m -mtune=generic -mfxsr"
CXXFLAGS="-O2 -pipe -march=pentium-m -mtune=generic -mfxsr"
Comment 3 Ian Delaney (RETIRED) gentoo-dev 2015-03-31 00:05:51 UTC
~/cvsPortage/gentoo-x86/net-dns/nsd $ ebuild nsd-4.1.0.ebuild clean compile

>>> Completed installing nsd-4.1.0 into /mnt/gen2/TmpDir/portage/net-dns/nsd-4.1.0/image/

strip: x86_64-pc-linux-gnu-strip --strip-unneeded -R .comment -R .GCC.command.line -R .note.gnu.gold-version
   usr/sbin/nsd
   usr/sbin/nsd-checkzone
   usr/sbin/nsd-checkconf
   usr/sbin/nsd-control
ecompressdir: bzip2 -9 /usr/share/doc
ecompressdir: bzip2 -9 /usr/share/man

Did not replicate
Comment 4 Ian Delaney (RETIRED) gentoo-dev 2015-04-01 13:08:31 UTC
 to build on x86:

qualifier, mine is amd64
Comment 5 John Youells 2015-04-16 04:23:38 UTC
I also have the same error with sbcl 1.2.10 on x86. 

CFLAGS="$CFLAGS -mno-sse" works for me also 

zinger ~ # emerge --info sbcl 
Portage 2.2.18 (python 2.7.9-final-0, default/linux/x86/13.0/desktop/gnome/systemd, gcc-4.9.2, glibc-2.20-r2, 3.18.1-gentoo i686)
=================================================================
                         System Settings
=================================================================
System uname: Linux-3.18.1-gentoo-i686-AMD_Athlon-tm-_64_X2_Dual_Core_Processor_4400+-with-gentoo-2.2
KiB Mem:     3080008 total,    608584 free
KiB Swap:     995992 total,    995528 free
Timestamp of repository gentoo: Wed, 15 Apr 2015 23:30:01 +0000
sh bash 4.3_p33-r2
ld GNU ld (Gentoo 2.25 p1.0) 2.25
ccache version 3.2.1 [disabled]
app-shells/bash:          4.3_p33-r2::gentoo
dev-java/java-config:     2.2.0::gentoo
dev-lang/perl:            5.20.2::gentoo
dev-lang/python:          2.7.9-r2::gentoo, 3.3.5-r1::gentoo, 3.4.3::gentoo
dev-util/ccache:          3.2.1-r1::gentoo
dev-util/cmake:           3.2.1::gentoo
dev-util/pkgconfig:       0.28-r2::gentoo
sys-apps/baselayout:      2.2::gentoo
sys-apps/openrc:          0.13.11::gentoo
sys-apps/sandbox:         2.6-r1::gentoo
sys-devel/autoconf:       2.13::gentoo, 2.69-r1::gentoo
sys-devel/automake:       1.11.6-r1::gentoo, 1.12.6::gentoo, 1.13.4::gentoo, 1.14.1::gentoo, 1.15::gentoo
sys-devel/binutils:       2.25::gentoo
sys-devel/gcc:            4.8.4::gentoo, 4.9.2::gentoo
sys-devel/gcc-config:     1.8::gentoo
sys-devel/libtool:        2.4.6-r1::gentoo
sys-devel/make:           4.1-r1::gentoo
sys-kernel/linux-headers: 4.0::gentoo (virtual/os-headers)
sys-libs/glibc:           2.20-r2::gentoo
Repositories:

gentoo
    location: /usr/portage
    sync-type: rsync
    sync-uri: rsync://rsync.gentoo.org/gentoo-portage
    priority: -1000

zinger-overlay
    location: /usr/local/portage
    masters: gentoo
    priority: 1

ACCEPT_KEYWORDS="x86 ~x86"
ACCEPT_LICENSE="*"
CBUILD="i686-pc-linux-gnu"
CFLAGS="-march=k8-sse3 -O2 -fomit-frame-pointer -pipe"
CHOST="i686-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/lib/libreoffice/program/sofficerc /usr/share/config /usr/share/gnupg/qualified.txt"
CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /etc/dconf /etc/env.d /etc/fonts/fonts.conf /etc/gconf /etc/gentoo-release /etc/revdep-rebuild /etc/sandbox.d /etc/terminfo"
CXXFLAGS="-march=k8-sse3 -O2 -fomit-frame-pointer -pipe"
DISTDIR="/usr/portage/distfiles"
EMERGE_DEFAULT_OPTS="--with-bdeps y --quiet-build=n"
FCFLAGS="-O2 -march=i686 -pipe"
FEATURES="assume-digests binpkg-logs config-protect-if-modified distlocks ebuild-locks fixlafiles merge-sync news parallel-fetch preserve-libs protect-owned sandbox sfperms strict unknown-features-warn unmerge-logs unmerge-orphans userfetch userpriv usersandbox usersync"
FFLAGS="-O2 -march=i686 -pipe"
GENTOO_MIRRORS="http://distfiles.gentoo.org"
LANG="en_US.utf8"
LDFLAGS="-Wl,-O1"
MAKEOPTS="-j3"
PKGDIR="/usr/portage/packages"
PORTAGE_CONFIGROOT="/"
PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times --omit-dir-times --compress --force --whole-file --delete --stats --human-readable --timeout=180 --exclude=/distfiles --exclude=/local --exclude=/packages"
PORTAGE_TMPDIR="/var/tmp"
USE="3dnow 3dnowext X a52 aac aalib acl acpi alsa asf avahi berkdb bluetooth branding bzip2 cairo cdda cdr cli colord cracklib crypt cups cxx dbus divx4linux dri dts dvd dvdr dvdread eds emboss encode evo exif fam firefox flac foomaticdb fortran gdbm gif glamor gnome gnome-keyring gnome-online-accounts gpm gstreamer gtk gtk2 iconv icu introspection ipv6 jpeg kde lcms ldap libnotify libsecret live mad mmx mng modules mp3 mp4 mpeg nautilus ncurses nls nptl nptlonly ogg opengl openmp pam pango pcre pdf pic png policykit ppds prebuilt pulseaudio qt3support qt4 quicktime radeon readline real rtc samba sdk sdl session socialweb spell sse sse2 ssl startup-notification svg systemd tcltk tcpd threads tiff truetype udev udisks unicode upower usb vorbis wxwidgets x264 x86 xcb xml xv xvid zlib" ABI_X86="32" ALSA_CARDS="ymfpci emu10k1 cs46xx" APACHE2_MODULES="authn_core authz_core socache_shmcb unixd actions alias auth_basic authn_alias authn_anon authn_dbm authn_default authn_file authz_dbm authz_default authz_groupfile authz_host authz_owner authz_user autoindex cache cgi cgid dav dav_fs dav_lock deflate dir disk_cache env expires ext_filter file_cache filter headers include info log_config logio mem_cache mime mime_magic negotiation rewrite setenvif speling status unique_id userdir usertrack vhost_alias" CALLIGRA_FEATURES="kexi words flow plan sheets stage tables krita karbon braindump author" CAMERAS="ptp2" COLLECTD_PLUGINS="df interface irq load memory rrdtool swap syslog" CPU_FLAGS_X86="3dnow 3dnowext mmx mmxext sse sse2 sse3" ELIBC="glibc" GPSD_PROTOCOLS="ashtech aivdm earthmate evermore fv18 garmin garmintxt gpsclock itrax mtk3301 nmea ntrip navcom oceanserver oldstyle oncore rtcm104v2 rtcm104v3 sirf superstar2 timing tsip tripmate tnt ublox ubx" INPUT_DEVICES="keyboard mouse evdev" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LIBREOFFICE_EXTENSIONS="presenter-console presenter-minimizer" LINGUAS="en_US.utf8" OFFICE_IMPLEMENTATION="libreoffice" PHP_TARGETS="php5-5" PYTHON_SINGLE_TARGET="python2_7" PYTHON_TARGETS="python2_7 python3_3" QEMU_SOFTMMU_TARGETS="i386" QEMU_USER_TARGETS="i386" RUBY_TARGETS="ruby19 ruby20" SANE_BACKENDS="hp" USERLAND="GNU" VIDEO_CARDS="radeon r600" XTABLES_ADDONS="quota2 psd pknock lscan length2 ipv4options ipset ipp2p iface geoip fuzzy condition tee tarpit sysrq steal rawnat logmark ipmark dhcpmac delude chaos account"
Unset:  CPPFLAGS, CTARGET, INSTALL_MASK, LC_ALL, PORTAGE_BUNZIP2_COMMAND, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS, USE_PYTHON

=================================================================
                        Package Settings
=================================================================

dev-lisp/sbcl-1.2.10::gentoo was built with the following:
USE="threads unicode zlib -debug -doc -pax_kernel -source"
CFLAGS="-mno-sse"
CXXFLAGS="-march=k8-sse3 -O2 -pipe"
Comment 6 Andrey Grozin gentoo-dev 2015-04-20 10:55:05 UTC
  20 Apr 2015; Andrey Grozin <grozin@gentoo.org> sbcl-1.2.10.ebuild:
  Fixed CFLAGS handling, closing #544070

In the previous version of this ebuild, the code by Mark Wright <gienah@gentoo.org> (for fixing the bug #526194) retained the upstream -O3 in CFLAGS. With gcc-4.9.2, compiling sbcl succeeds for, e.g.,

-O2 -march=native
-O2 -march=pentium4
-O3

but fails for, e.g.,

-O3 -march=native
-O3 -march=pentium4

I've fixed this code, now the upstream -O3 is not kept, and if the user has -O2, everything will be fine. By the way, I think that before the upgrade to gcc-4.9.x all these combinations worked fine for gcc. This might be a bug in gcc-4.9, or at least an incompatibility of the C code in <sbcl>/src/runtime with gcc-4.9 at higher -O values.

I'm closing this bug. Note that you can easily break sbcl building by supplying CFLAGS="-O3 -march=something".