Summary: | dev-scheme/guile-1.8.5 segfaults while building on ppc with gcc-4.3 and -O2 | ||
---|---|---|---|
Product: | Gentoo Linux | Reporter: | SpanKY <vapier> |
Component: | Current packages | Assignee: | Scheme Project <scheme> |
Status: | RESOLVED FIXED | ||
Severity: | normal | CC: | dliana, esigra, henrique.rodrigues, ppc |
Priority: | High | ||
Version: | unspecified | ||
Hardware: | PPC | ||
OS: | Linux | ||
Whiteboard: | |||
Package list: | Runtime testing required: | --- | |
Bug Depends on: | 245701 | ||
Bug Blocks: | 198121 | ||
Attachments: |
dev-scheme:guile-1.8.5:20080618-142632.log
stack-backwards.patch Fix build issue on mips, mipsel, powerpc and ia64 (stack direction) |
Description
SpanKY
2008-06-18 14:35:02 UTC
Created attachment 157439 [details]
dev-scheme:guile-1.8.5:20080618-142632.log
(In reply to comment #0) > i hope i'm not the only one hitting this problem :) Nope, I experienced exactly the same and came to the same conclusion wrt -O1 versus -O2. emerge --info: Portage 2.1.5.5 (default-linux/ppc/ppc32/2007.0/G4, gcc-4.3.1, glibc-2.8_p20080602-r0, 2.6.24-hardened-r2 ppc) ================================================================= System uname: 2.6.24-hardened-r2 ppc 7447A, altivec supported Timestamp of tree: Wed, 18 Jun 2008 16:31:01 +0000 app-shells/bash: 3.2_p39 dev-java/java-config: 1.3.7, 2.1.6 dev-lang/python: 2.4.3-r4, 2.5.2-r4 dev-python/pycrypto: 2.0.1-r6 sys-apps/baselayout: 2.0.0 sys-apps/openrc: 0.2.5 sys-apps/sandbox: 1.2.18.1-r2 sys-devel/autoconf: 2.13, 2.62 sys-devel/automake: 1.5, 1.6.3, 1.7.9-r1, 1.8.5-r3, 1.9.6-r2, 1.10.1-r1 sys-devel/binutils: 2.18-r1 sys-devel/gcc-config: 1.4.0-r4 sys-devel/libtool: 2.2.4 virtual/os-headers: 2.6.25-r4 ACCEPT_KEYWORDS="ppc ~ppc" CBUILD="powerpc-unknown-linux-gnu" CFLAGS="-O2 -mtune=G4 -maltivec -mabi=altivec -Wstrict-aliasing -pipe -msecure-plt" CHOST="powerpc-unknown-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/ca-certificates.conf /etc/env.d /etc/env.d/java/ /etc/fonts/fonts.conf /etc/gconf /etc/gentoo-release /etc/revdep-rebuild /etc/terminfo /etc/texmf/web2c /etc/udev/rules.d" CXXFLAGS="-O2 -mtune=G4 -maltivec -mabi=altivec -Wstrict-aliasing -pipe -msecure-plt" DISTDIR="/packages" FEATURES="buildpkg collision-protect cvs distlocks parallel-fetch sandbox sfperms strict unmerge-orphans userfetch userpriv usersandbox" GENTOO_MIRRORS="http://ftp.snt.utwente.nl/pub/os/linux/gentoo http://pandemonium.tiscali.de/pub/gentoo/ http://ftp.belnet.be/mirror/rsync.gentoo.org/gentoo/" LANG="en_GB.UTF-8" LC_ALL="en_GB.UTF-8" LDFLAGS="-Wl,-O1 -Wl,--as-needed -Wl,--hash-style=gnu" MAKEOPTS="-j2" PKGDIR="/usr/portage/packages" PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times --compress --force --whole-file --delete --stats --timeout=180 --exclude=/distfiles --exclude=/local --exclude=/packages" PORTAGE_TMPDIR="/var/tmp" PORTDIR="/usr/portage" SYNC="rsync://rsync.gentoo.org/gentoo-portage" USE="X aac acl alsa altivec apache2 arts avahi berkdb bitmap-fonts bonobo bzip2 cairo cdr cli cracklib crypt cups dbus divx4linux dlloader dri dvd dvdread eds emboss encode esd exif firefox flac fortran gdbm gif glitz gnome gpm gstreamer gtk gtkhtml hal iconv imlib ipv6 isdnlog jpeg jpeg2k kde ldap libnotify libwww mad mdnsresponder-compat midi mikmod mozilla mp3 mpeg mudflap ncurses network nls nptl nptlonly ogg opengl openmp pam pcre pdf perl png ppc pppd python qt3 qt4 quicktime readline reflection ruby sdl session spell spl ssl svg tcpd theora tiff truetype truetype-fonts type1-fonts unicode userlocales vorbis xine xml xorg xv xvid zlib" ALSA_CARDS="aoa aoa-fabric-layout aoa-onyx aoa-soundbus aoa-soundbus-i2s aoa-tas aoa-toonie powermac usb-audio" ALSA_PCM_PLUGINS="adpcm alaw asym copy dmix dshare dsnoop empty extplug file hooks iec958 ioplug ladspa lfloat linear meter mulaw multi null plug rate route share shm softvol" APACHE2_MODULES="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 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" ELIBC="glibc" INPUT_DEVICES="keyboard mouse" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" USERLAND="GNU" VIDEO_CARDS="radeon" Unset: CPPFLAGS, CTARGET, EMERGE_DEFAULT_OPTS, INSTALL_MASK, LINGUAS, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS, PORTDIR_OVERLAY I also have this problem. As a workaround you can specify custom CFLAGS in /etc/portage/env/dev-libs/guile, without -O2. For example: $ cat /etc/portage/env/dev-libs/guile CFLAGS="-O1 -mcpu=7400 -maltivec -mabi=altivec -pipe" CXXFLAGS="${CFLAGS}" Created attachment 171705 [details, diff]
stack-backwards.patch
Could someone on ppc please try the attached patch?
(In reply to comment #4) > Created an attachment (id=171705) [edit] > stack-backwards.patch > > Could someone on ppc please try the attached patch? I'm sorry, but the problem persists. Created attachment 172411 [details]
Fix build issue on mips, mipsel, powerpc and ia64 (stack direction)
Another patch to try.
(In reply to comment #6) > Created an attachment (id=172411) [edit] > Fix build issue on mips, mipsel, powerpc and ia64 (stack direction) > > Another patch to try. This doesn't apply cleanly to 1.8.5 and when I apply it manually the compilation still segfaults. Please try 1.8.6 which contains a lot of build related fixes. Y(In reply to comment #8) > Please try 1.8.6 which contains a lot of build related fixes. Yes, guile-1.8.6 compiles fine. We also should get this stable before GCC 4.3. I'm re-opening this bug because, AFAIK, guile-1.8.6 is not stable on ppc/ppc64 at the moment. dev-scheme/guile-1.8.6 is now stable for ppc/ppc64. It is fixing this bug. |