Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 146141 - compilation of xorg-server-1.0.2-r7 fails after gcc-4.1 upgrade
Summary: compilation of xorg-server-1.0.2-r7 fails after gcc-4.1 upgrade
Status: RESOLVED DUPLICATE of bug 20600
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: High normal (vote)
Assignee: Gentoo Linux bug wranglers
Depends on:
Reported: 2006-09-03 07:49 UTC by Ooblick
Modified: 2006-09-03 08:45 UTC (History)
0 users

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


Note You need to log in before you can comment on or make changes to this bug.
Description Ooblick 2006-09-03 07:49:17 UTC
Having upgraded to gcc 4.1.1, and set my make.profile to 2006.1/desktop I tried to emerge -eav system as suggested in the gcc upgrade guide. It goes OK until it tries to re-emerge xorg-server-1.0.2-r7, and then fails with this error:


 i686-pc-linux-gnu-gcc -DHAVE_CONFIG_H -I. -I. -I../include -I../include -I../include -I../include -I../include -I../include -I../mfb -DHAVE_DIX_CONFIG_H -DXFree86Server -DXFree86LOADER -Wall -Wpointer-arith -Wstrict-prototypes -Wmissing-prototypes -Wmissing-declarations -Wnested-externs -fno-strict-aliasing -D_BSD_SOURCE -DHAS_FCHOWN -DHAS_STICKY_DIR_BIT -I../include -I../include -I../Xext -I../composite -I../damageext -I../xfixes -I../Xi -I../mi -I../miext/shadow -I../miext/damage -I../render -I../randr -I../fb -I../lbx -march=athlon-xp -O3 -pipe -fomit-frame-pointer -ftracer -MT miarc.lo -MD -MP -MF .deps/miarc.Tpo -c miarc.c  -fPIC -DPIC -o .libs/miarc.o
miarc.c:116: warning: type qualifiers ignored on function return type
miarc.c:121: warning: type qualifiers ignored on function return type
miarc.c: In function 'miComputeArcs':
miarc.c:1923: warning: 'dashRemaining' may be used uninitialized in this function
miarc.c:1918: warning: 'xarc.angle1' may be used uninitialized in this function
miarc.c:1918: warning: 'xarc.y' may be used uninitialized in this function
miarc.c:1918: warning: 'xarc.height' may be used uninitialized in this function
miarc.c:1918: warning: 'xarc.x' may be used uninitialized in this function
miarc.c:1918: warning: 'xarc.width' may be used uninitialized in this function
miarc.c:1918: warning: 'xarc.angle2' may be used uninitialized in this function
*** glibc detected *** /usr/libexec/gcc/i686-pc-linux-gnu/4.1.1/cc1: free(): invalid next size (fast): 0x086ab068 ***
======= Backtrace: =========
======= Memory map: ========
08048000-084c4000 r-xp 00000000 03:06 703252     /usr/libexec/gcc/i686-pc-linux-gnu/4.1.1/cc1
084c4000-084c9000 rw-p 0047c000 03:06 703252     /usr/libexec/gcc/i686-pc-linux-gnu/4.1.1/cc1
084c9000-087d9000 rw-p 084c9000 00:00 0          [heap]
b7100000-b7121000 rw-p b7100000 00:00 0
b7121000-b7200000 ---p b7121000 00:00 0
b729c000-b72a5000 r-xp 00000000 03:06 266070     /usr/lib/gcc/i686-pc-linux-gnu/4.1.1/
b72a5000-b72a6000 rw-p 00009000 03:06 266070     /usr/lib/gcc/i686-pc-linux-gnu/4.1.1/
b72c3000-b7e1a000 rw-p b72c3000 00:00 0
b7e1a000-b7e1c000 r-xp 00000000 03:07 14953      /lib/
b7e1c000-b7e1e000 rw-p 00001000 03:07 14953      /lib/
b7e1e000-b7f33000 r-xp 00000000 03:07 15059      /lib/
b7f33000-b7f35000 r--p 00114000 03:07 15059      /lib/
b7f35000-b7f37000 rw-p 00116000 03:07 15059      /lib/
b7f37000-b7f3a000 rw-p b7f37000 00:00 0
b7f3b000-b7f57000 rw-p b7f3b000 00:00 0
b7f57000-b7f5e000 r-xp 00000000 03:06 451034     /usr/lib/
b7f5e000-b7f5f000 rw-p 00006000 03:06 451034     /usr/lib/
b7f5f000-b7f62000 rw-p b7f5f000 00:00 0
b7f62000-b7f7c000 r-xp 00000000 03:07 15049      /lib/
b7f7c000-b7f7d000 r--p 00019000 03:07 15049      /lib/
b7f7d000-b7f7e000 rw-p 0001a000 03:07 15049      /lib/
bfa7f000-bfa96000 rw-p bfa7f000 00:00 0          [stack]
ffffe000-fffff000 ---p 00000000 00:00 0          [vdso]
miarc.c: In function 'arcSpan':
miarc.c:2969: internal compiler error: Aborted
Please submit a full bug report,
with preprocessed source if appropriate.
See <URL:> for instructions.
sandbox:  Caught signal 2 in pid 23025


I've never seen an error like this. This is happens each time I try the emerge -eav system.

emerge --info follows:

Portage 2.1-r2 (default-linux/x86/2006.1/desktop, gcc-4.1.1, glibc-2.4-r3, 2.6.17-gentoo-r7 i686)
System uname: 2.6.17-gentoo-r7 i686 AMD Athlon(tm) XP 2200+
Gentoo Base System version 1.12.4
distcc 2.18.3 i686-pc-linux-gnu (protocols 1 and 2) (default port 3632) [disabled]
ccache version 2.3 [disabled]
app-admin/eselect-compiler: [Not Present]
dev-lang/python:     2.3.5-r2, 2.4.3-r1
dev-python/pycrypto: 2.0.1-r5
dev-util/ccache:     2.3
dev-util/confcache:  [Not Present]
sys-apps/sandbox:    1.2.17
sys-devel/autoconf:  2.13, 2.59-r7
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.16.1-r3
sys-devel/gcc-config: 1.3.13-r3
sys-devel/libtool:   1.5.22
virtual/os-headers:, 2.6.11-r2
CFLAGS="-march=athlon-xp -O3 -pipe -fomit-frame-pointer -ftracer"
CONFIG_PROTECT="/etc /usr/share/X11/xkb /usr/share/config /usr/share/texmf/dvipdfm/config/ /usr/share/texmf/dvips/config/ /usr/share/texmf/tex/generic/config/ /usr/share/texmf/tex/platex/config/ /usr/share/texmf/xdvi/"
CONFIG_PROTECT_MASK="/etc/env.d /etc/gconf /etc/revdep-rebuild /etc/terminfo"
CXXFLAGS="-march=athlon-xp -O3 -pipe -fomit-frame-pointer -ftracer"
FEATURES="autoconfig distlocks metadata-transfer sandbox sfperms strict"
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'"
PORTDIR_OVERLAY="/usr/local/portage /usr/local/xgl-coffee"
USE="x86 3dnow 3dnowex X a52 aac aalib acpi alsa apache2 asf avi berkdb bitmap-fonts cairo cdr cli crypt cups dbus dlloader dri dvd dvdr dvdread eds emboss encode esd f77 fam fame firefox flac fortran gcj gdbm gif gimpprint ginac glitz glut gnome gpm gstreamer gtk gtk2 hal imap isdnlog jpeg ldap libcaca libg++ lzo mad mikmod mjpeg mmx mmx2 mp3 mpeg ncurses nls nptl nptlonly nsplugin nvidia objc offensive ogg openal opengl oss pam pcre pdflib perl plotutils png ppds pppd python qhull quicktime readline real reflection sdl session spell spl sse ssl tcpd theora tiff timidity truetype truetype-fonts type1-fonts udev unicode vorbis win32codecs xml xorg xv xvid zlib elibc_glibc input_devices_keyboard input_devices_mouse kernel_linux linguas_en_GB userland_GNU video_cards_nvidia video_cards_nv video_cards_vesa"
Comment 1 Jakub Moc (RETIRED) gentoo-dev 2006-09-03 08:11:00 UTC
Can you reproduce the issue, i.e. - does it fail again at *exactly* the same place? If so, we need the preprocessed source attached, as the message told you.
Comment 2 Ooblick 2006-09-03 08:35:27 UTC
works if you just emerge xorg-server
Comment 3 Jakub Moc (RETIRED) gentoo-dev 2006-09-03 08:45:04 UTC
OK, thanks for reporting back.
Comment 4 Jakub Moc (RETIRED) gentoo-dev 2006-09-03 08:45:15 UTC

*** This bug has been marked as a duplicate of 20600 ***