Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!

Bug 65052

Summary: sitecopy-0.14.1 fails to compile in gnome/minilist.c
Product: Gentoo Linux Reporter: Dead Schorsch <spamlover>
Component: Current packagesAssignee: Chris White (RETIRED) <chriswhite>
Status: VERIFIED INVALID    
Severity: normal    
Priority: High    
Version: unspecified   
Hardware: x86   
OS: Linux   
Whiteboard:
Package list:
Runtime testing required: ---

Description Dead Schorsch 2004-09-23 02:43:51 UTC
Sitecopy fails to compile, if gnome support is enabled. Error is in gnome/minilist.c

It installs whith gnome support disabled, using

USE="-gnome" emerge -uD sitecopy

Reproducible: Always
Steps to Reproduce:
1. emerge -uD sitecopy
2.
3.

Actual Results:  
gcc -I/usr/include/gnome-xml -I/usr/include/libglade-1.0 -I/usr/include/gnome-1.
0 -DNEED_GNOMESUPPORT_H -I/usr/lib/gnome-libs/include -I/usr/include/glib-1.2 -I
/usr/lib/glib/include -I/usr/include/orbit-1.0 -I/usr/include/gtk-1.2 -I/usr/X11
R6/include -I. -DHAVE_CONFIG_H -DLOCALEDIR=\"/usr/share/locale\" -I./src -I./lib
 -mcpu=athlon-xp -O2 -pipe -I/usr/include/neon -DNEON_ZLIB -DNEON_SSL -o gnome/c
hanges.o -c gnome/changes.c
`-mcpu=' is deprecated. Use `-mtune=' or '-march=' instead.
gcc -I/usr/include/gnome-xml -I/usr/include/libglade-1.0 -I/usr/include/gnome-1.
0 -DNEED_GNOMESUPPORT_H -I/usr/lib/gnome-libs/include -I/usr/include/glib-1.2 -I
/usr/lib/glib/include -I/usr/include/orbit-1.0 -I/usr/include/gtk-1.2 -I/usr/X11
R6/include -I. -DHAVE_CONFIG_H -DLOCALEDIR=\"/usr/share/locale\" -I./src -I./lib
 -mcpu=athlon-xp -O2 -pipe -I/usr/include/neon -DNEON_ZLIB -DNEON_SSL -o gnome/m
inilist.o -c gnome/minilist.c
`-mcpu=' is deprecated. Use `-mtune=' or '-march=' instead.
gnome/minilist.c: In function `remove_minilist_item':
gnome/minilist.c:194: error: label at end of compound statement
make: *** [gnome/minilist.o] Error 1
make: *** Waiting for unfinished jobs....

!!! ERROR: net-misc/sitecopy-0.14.1 failed.
!!! Function src_compile, Line 57, Exitcode 2
!!! Make failed
!!! If you need support, post the topmost build error, NOT this status message


Portage 2.0.51_rc1 (default-x86-2004.2, gcc-3.4.1,
glibc-2.2.5-r2,glibc-2.3.4.20040808-r0, 2.6.8-gentoo-r4 i686)
=================================================================
System uname: 2.6.8-gentoo-r4 i686 AMD Athlon(tm) XP 2200+
Gentoo Base System version 1.5.3
Autoconf: sys-devel/autoconf-2.59-r4
Automake: sys-devel/automake-1.8.5-r1
Binutils: sys-devel/binutils-2.15.90.0.1.1-r3
Headers:  sys-kernel/linux26-headers-2.6.8.1
Libtools: sys-devel/libtool-1.5.2-r5
ACCEPT_KEYWORDS="x86 ~x86"
AUTOCLEAN="yes"
CFLAGS="-mcpu=athlon-xp -O2 -pipe"
CHOST="i686-pc-linux-gnu"
COMPILER=""
CONFIG_PROTECT="/etc /usr/X11R6/lib/X11/xkb /usr/kde/2/share/config
/usr/kde/3/share/config /usr/lib/mozilla/defaults/pref /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/ /var/qmail/control"
CONFIG_PROTECT_MASK="/etc/gconf /etc/terminfo /etc/env.d"
CXXFLAGS="-mcpu=athlon-xp -O2 -pipe"
DISTDIR="/usr/portage/distfiles"
FEATURES="autoaddcvs buildpkg ccache distcc fixpackages sandbox userpriv
usersandbox"
GENTOO_MIRRORS=""
MAKEOPTS="-j2"
PKGDIR="/usr/portage/packages"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
PORTDIR_OVERLAY="/usr/local/portage"
SYNC="rsync://rsync.de.gentoo.org/gentoo-portage"
USE="X aalib acpi alsa apm avi berkdb bitmap-fonts bonobo cdr crypt cups doc dvd
dvdr encode esd foomaticdb gd gdbm gimpprint gnome gpm gtk gtk2 gtkhtml guile
hbci imagemagick imlib ipv6 java jpeg ldap libg++ libwww mad mozilla
moznocompose moznoirc moznomail mpeg ncurses network nls nocardbus nptl nvidia
oggvorbis opengl pam pda pdflib perl png python readline samba scanner sdl slang
spell ssl svga tcltk tcpd tetex tiff truetype usb vanilla x86 xml xml2 xmms
xprint xv zlib"
Comment 1 robertc96 2004-10-06 16:20:44 UTC
I couldn't replicate the problem on my x86 box, as it emerged successfully using gcc-3.3.4.  The problem may be related to using gcc-3.4.1 but not sure. 
Comment 2 Chris White (RETIRED) gentoo-dev 2004-11-05 17:00:52 UTC
`-mcpu=' is deprecated. Use `-mtune=' or '-march=' instead.

Change -mcpu to -mtune or -march as it suggests.
Comment 3 Chris Woods 2004-11-11 09:02:28 UTC
I'd like to reopen this bug. It exists in 0.14.2, and is unrelated to the setting of -mcpu for gcc. My results:

(fully ~x86 system, USE flags enabled that sitecopy uses: +gnome +nls +ssl +xml +xml2)

emerge sitecopy
results eventually in:
i686-pc-linux-gnu-gcc -I/usr/include/gnome-xml -I/usr/include/libglade-1.0 -I/usr/include/gnome-1.0 -DNEED_GNOMESUPPORT_H -I/usr/lib/gnome-libs/include -I/usr/include/glib-1.2 -I/usr/lib/glib/include -I/usr/include/orbit-1.0 -I/usr/include/gtk-1.2 -I/usr/X11R6/include -I. -DHAVE_CONFIG_H -DLOCALEDIR=\"/usr/share/locale\" -I./src -I./lib -march=athlon-xp -m3dnow -msse -mfpmath=sse -mmmx -O3 -pipe -fforce-addr -fomit-frame-pointer -funroll-loops -frerun-cse-after-loop -frerun-loop-opt -falign-functions=4 -maccumulate-outgoing-args -I/usr/include/neon -DNEON_ZLIB -DNEON_SSL -o gnome/minilist.o -c gnome/minilist.c
i686-pc-linux-gnu-gcc -I/usr/include/gnome-xml -I/usr/include/libglade-1.0 -I/usr/include/gnome-1.0 -DNEED_GNOMESUPPORT_H -I/usr/lib/gnome-libs/include -I/usr/include/glib-1.2 -I/usr/lib/glib/include -I/usr/include/orbit-1.0 -I/usr/include/gtk-1.2 -I/usr/X11R6/include -I. -DHAVE_CONFIG_H -DLOCALEDIR=\"/usr/share/locale\" -I./src -I./lib -march=athlon-xp -m3dnow -msse -mfpmath=sse -mmmx -O3 -pipe -fforce-addr -fomit-frame-pointer -funroll-loops -frerun-cse-after-loop -frerun-loop-opt -falign-functions=4 -maccumulate-outgoing-args -I/usr/include/neon -DNEON_ZLIB -DNEON_SSL -o gnome/file_widgets.o -c gnome/file_widgets.c
gnome/minilist.c: In function `remove_minilist_item':
gnome/minilist.c:194: error: label at end of compound statement
make: *** [gnome/minilist.o] Error 1
make: *** Waiting for unfinished jobs....

!!! ERROR: net-misc/sitecopy-0.14.2 failed.
!!! Function src_compile, Line 54, Exitcode 2
!!! Make failed
!!! If you need support, post the topmost build error, NOT this status message.

emerge info:
Portage 2.0.51-r3 (default-x86-2004.2, gcc-3.4.2, glibc-2.3.4.20041102-r0, 2.6.9-rc2 i686)
=================================================================
System uname: 2.6.9-rc2 i686 AMD Athlon(tm) XP 2400+
Gentoo Base System version 1.6.5
ccache version 2.3 [enabled]
Autoconf: sys-devel/autoconf-2.59-r5
Automake: sys-devel/automake-1.8.5-r1
Binutils: sys-devel/binutils-2.15.92.0.2-r1
Headers:  sys-kernel/linux26-headers-2.6.8.1-r1
Libtools: sys-devel/libtool-1.5.2-r6
ACCEPT_KEYWORDS="x86 ~x86"
AUTOCLEAN="yes"
CFLAGS="-march=athlon-xp -m3dnow -msse -mfpmath=sse -mmmx -O3 -pipe -fforce-addr -fomit-frame-pointer -funroll-loops -frerun-cse-after-loop -frerun-loop-opt -falign-functions=4 -maccumulate-outgoing-args"
CHOST="i686-pc-linux-gnu"
COMPILER=""
CONFIG_PROTECT="/etc /opt/openjms/config /usr/X11R6/lib/X11/xkb /usr/kde/2/share/config /usr/kde/3.2/share/config /usr/kde/3.3/env /usr/kde/3.3/share/config /usr/kde/3.3/shutdown /usr/kde/3/share/config /usr/lib/mozilla/defaults/pref /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/ /var/qmail/control"
CONFIG_PROTECT_MASK="/etc/gconf /etc/terminfo /etc/env.d"
CXXFLAGS="-march=athlon-xp -m3dnow -msse -mfpmath=sse -mmmx -O3 -pipe -fforce-addr -fomit-frame-pointer -funroll-loops -frerun-cse-after-loop -frerun-loop-opt -falign-functions=4 -maccumulate-outgoing-args"
DISTDIR="/usr/portage/distfiles"
FEATURES="autoaddcvs ccache distlocks fixpackages sandbox"
GENTOO_MIRRORS="http://mirror.datapipe.net/gentoo ftp://ftp.gtlib.cc.gatech.edu/pub/gentoo ftp://ftp.ussg.iu.edu/pub/linux/gentoo"
MAKEOPTS="-j2"
PKGDIR="/usr/portage/packages"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
PORTDIR_OVERLAY="/usr/local/portage"
SYNC="rsync://rsync.us.gentoo.org/gentoo-portage"
USE="3dnow 3ds X aalib aim alsa apm arts audiofile avi berkdb bitmap-fonts bonobo cdr crypt cscope cups dga directfb doc dvd emacs encode esd ethereal evo f77 fam flash foomaticdb gbgdbm gdbm ggi gif ginac gnome gphoto2 gpm gstreamer gtk gtk2 gtkhtml guild guile icq imagemagick imap imlib jabber java jpeg kde lcms ldap lesstif libg++ libgda libwww mad maildir mikmod mmx mng motif mozilla mpeg msn ncurses nls oci8 odbc oggvorbis ooo-kde openal opengl oscar oss pam pdflib perl plotutils png postgres ppds python qt quicktime readline ruby samba sdl slang speex spell ssl svga tcltk tcpd tetex tiff truetype unicode usb videos wmf x86 xml xml2 xmms xv yahoo zeo zlib"

Comment 4 Dead Schorsch 2005-11-04 00:33:51 UTC
outdated.