Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 36127 - Problem between gcc-3.2.3 and sys-apps/diffutils-2.8.4-r4
Summary: Problem between gcc-3.2.3 and sys-apps/diffutils-2.8.4-r4
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] GCC Porting (show other bugs)
Hardware: PPC Linux
: High critical (vote)
Assignee: PPC Porters
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2003-12-19 10:15 UTC by Olivier Castan
Modified: 2004-06-02 13:34 UTC (History)
2 users (show)

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 Olivier Castan 2003-12-19 10:15:32 UTC
After emerging a new system etc-update was always failing because of a segmentation fault in sdiff.
To track the problem I tried to re-emerge diffutils with debug informations (using -g option and strip disabled) :
#LC_ALL=C FEATURES="nostrip" CFLAGS="-g -O2 -pipe -mcpu=7400 -maltivec -mabi=altivec" MAKEOPTS="" emerge -v diffutils
but this time the compilation failed with :
gcc -DHAVE_CONFIG_H -I. -I. -I..  -I../lib -I../lib   -g -O2 -pipe -mcpu=7400 -maltivec -mabi=altivec -c `test -f 'sdiff.c' || echo './'`sdiff.c
sdiff.c: In function `edit':
sdiff.c:1098: Internal compiler error in dwarf2out_frame_debug_expr, at dwarf2out.c:1548
Please submit a full bug report,
with preprocessed source if appropriate.
See <URL:http://bugs.gentoo.org/> for instructions.
make[2]: *** [sdiff.o] Error 1
make[2]: Leaving directory `/home/portage/tmp/portage/diffutils-2.8.4-r4/work/diffutils-2.8.4/src'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/home/portage/tmp/portage/diffutils-2.8.4-r4/work/diffutils-2.8.4'
make: *** [all] Error 2

(by the way the failure happens in the function where diffutils-2.8.4-sdiff-no-waitpid.patch is applied)

By removing the option '-mabi=altivec' I was able to compile successfully with and without -g option, and sdiff does not segfault anymore.

Reproducible: Always
Steps to Reproduce:


Actual Results:  
sdiff segfault or compilation failure

Expected Results:  
No segfault...

I think, at least, -mabi=altivec should be stripped from CFLAGS before building
diffutils

#LC_ALL=C gcc -v
Reading specs from /usr/lib/gcc-lib/powerpc-unknown-linux-gnu/3.2.3/specs
Configured with: /home/portage/tmp/portage/gcc-3.2.3-r3/work/gcc-3.2.3/configure
--prefix=/usr --bindir=/usr/powerpc-unknown-linux-gnu/gcc-bin/3.2
--includedir=/usr/lib/gcc-lib/powerpc-unknown-linux-gnu/3.2.3/include
--datadir=/usr/share/gcc-data/powerpc-unknown-linux-gnu/3.2
--mandir=/usr/share/gcc-data/powerpc-unknown-linux-gnu/3.2/man
--infodir=/usr/share/gcc-data/powerpc-unknown-linux-gnu/3.2/info --enable-shared
--host=powerpc-unknown-linux-gnu --target=powerpc-unknown-linux-gnu
--with-system-zlib --enable-languages=c,c++,f77,objc,java --enable-threads=posix
--enable-long-long --disable-checking --enable-cstdio=stdio
--enable-clocale=generic --enable-__cxa_atexit
--enable-version-specific-runtime-libs
--with-gxx-include-dir=/usr/lib/gcc-lib/powerpc-unknown-linux-gnu/3.2.3/include/g++-v3
--with-local-prefix=/usr/local --enable-shared --enable-nls
--without-included-gettext
Thread model: posix
gcc version 3.2.3 20030422 (Gentoo Linux 1.4 3.2.3-r3, propolice)

# emerge info
Portage 2.0.49-r18 (default-ppc-1.4, gcc-3.2.3, glibc-2.3.2-r3, 2.4.22-ben2)
=================================================================
System uname: 2.4.22-ben2 ppc
Gentoo Base System version 1.4.3.12
ACCEPT_KEYWORDS="ppc ~ppc"
AUTOCLEAN="yes"
CFLAGS="-O2 -pipe -mcpu=7400 -maltivec -mabi=altivec"
CHOST="powerpc-unknown-linux-gnu"
COMPILER="gcc3"
CONFIG_PROTECT="/etc /usr/X11R6/lib/X11/xkb /usr/kde/2/share/config
/usr/kde/3/share/config /usr/share/config /var/qmail/control"
CONFIG_PROTECT_MASK="/etc/gconf /etc/env.d"
CXXFLAGS="-O2 -pipe -mcpu=7400 -maltivec -mabi=altivec"
DISTDIR="/home/portage/distfiles"
FEATURES="ccache"
GENTOO_MIRRORS="http://gentoo.mirror.sdv.fr http://128.213.5.34/gentoo/
http://gentoo.inode.at/ http://ds.thn.htu.se/linux/gentoo"
MAKEOPTS="-j2"
PKGDIR="/usr/portage/packages"
PORTAGE_TMPDIR="/home/portage/tmp"
PORTDIR="/usr/portage"
PORTDIR_OVERLAY="/usr/local/portage"
SYNC="rsync://rsync.fr.gentoo.org/gentoo-portage"
USE="X X509 aalib alsa altivec arts berkdb bonobo cdr crypt cups dga dillo
directfb dv dvd encode esd faad fbcon ffmpeg flash foomaticdb gd gdbm ggi gif
gnome gnome-libs gphoto2 gpm gstreamer gtk gtk2 gtkhtml imagemagick imlib java
javascript jpeg libwww mad matroska mitshm motif mozilla mpeg mpeg4 ncurses nls
odbc offensive oggvorbis opengl oss pam pdflib perl pg-hier png ppc ppds python
quicktime radeon readline sdl slang spell ssl tcpd tiff truetype wmf xface xine
xmms xv xvid zlib"
Comment 1 Alexander Gabert (RETIRED) gentoo-dev 2004-03-04 04:30:17 UTC
is this an open problem still?
Comment 2 Pieter Van den Abeele (RETIRED) gentoo-dev 2004-06-02 13:34:26 UTC
2.8.7 diffutils is in stable. Fixed lots of ppc problems.