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

Bug 127767

Summary: sys-process/procps doesn't compile with distcc
Product: Gentoo Linux Reporter: Daniel Glaser <daniel.glaser>
Component: [OLD] Core systemAssignee: Gentoo's Team for Core System packages <base-system>
Status: RESOLVED INVALID    
Severity: normal CC: daniel.glaser, lisa
Priority: High    
Version: 2006.0   
Hardware: x86   
OS: Linux   
Whiteboard:
Package list:
Runtime testing required: ---

Description Daniel Glaser 2006-03-27 11:02:49 UTC
IF you have distcc enabled, compilation breaks after a short time in proc/ksym.o. After disabling distcc in make.conf it compiled cleanly. Perhaps disabling distcc for this package or see another possible solution i didn't try (two more defines in source code) to solve this problem.
Comment 1 Lisa Seelye (RETIRED) gentoo-dev 2006-03-27 13:06:11 UTC
Post emerge info
Post where and how it fails
Comment 2 Daniel Glaser 2006-03-27 14:11:11 UTC
last lines of compile:
i686-pc-linux-gnu-gcc -c -D_GNU_SOURCE -I proc  -fno-common -ffast-math -W -Wall -Wshadow -Wcast-align -Wredundant-decls -Wbad-function-cast -Wcast-qual -Wwrite-strings -Waggregate-return -Wstrict-prototypes -Wmissing-prototypes -march=pentium3 -Os -pipe  -Wdeclaration-after-statement -Wpadded -Wstrict-aliasing -frename-registers -fomit-frame-pointer -fno-inline-functions -DSHARED=1 -fpic proc/alloc.c -o proc/alloc.o
i686-pc-linux-gnu-gcc -c -D_GNU_SOURCE -I proc  -fno-common -ffast-math -W -Wall -Wshadow -Wcast-align -Wredundant-decls -Wbad-function-cast -Wcast-qual -Wwrite-strings -Waggregate-return -Wstrict-prototypes -Wmissing-prototypes -march=pentium3 -Os -pipe  -Wdeclaration-after-statement -Wpadded -Wstrict-aliasing -frename-registers -fomit-frame-pointer -fno-inline-functions -DSHARED=1 -fpic proc/devname.c -o proc/devname.o
i686-pc-linux-gnu-gcc -c -D_GNU_SOURCE -I proc  -fno-common -ffast-math -W -Wall -Wshadow -Wcast-align -Wredundant-decls -Wbad-function-cast -Wcast-qual -Wwrite-strings -Waggregate-return -Wstrict-prototypes -Wmissing-prototypes -march=pentium3 -Os -pipe  -Wdeclaration-after-statement -Wpadded -Wstrict-aliasing -frename-registers -fomit-frame-pointer -fno-inline-functions -DSHARED=1 -fpic proc/escape.c -o proc/escape.o
i686-pc-linux-gnu-gcc -c -D_GNU_SOURCE -I proc  -fno-common -ffast-math -W -Wall -Wshadow -Wcast-align -Wredundant-decls -Wbad-function-cast -Wcast-qual -Wwrite-strings -Waggregate-return -Wstrict-prototypes -Wmissing-prototypes -march=pentium3 -Os -pipe  -Wdeclaration-after-statement -Wpadded -Wstrict-aliasing -frename-registers -fomit-frame-pointer -fno-inline-functions -DSHARED=1 -fpic proc/ksym.c -o proc/ksym.o
i686-pc-linux-gnu-gcc -c -D_GNU_SOURCE -I proc  -fno-common -ffast-math -W -Wall -Wshadow -Wcast-align -Wredundant-decls -Wbad-function-cast -Wcast-qual -Wwrite-strings -Waggregate-return -Wstrict-prototypes -Wmissing-prototypes -march=pentium3 -Os -pipe  -Wdeclaration-after-statement -Wpadded -Wstrict-aliasing -frename-registers -fomit-frame-pointer -fno-inline-functions -DSHARED=1 -fpic proc/pwcache.c -o proc/pwcache.o
i686-pc-linux-gnu-gcc -c -D_GNU_SOURCE -I proc  -fno-common -ffast-math -W -Wall -Wshadow -Wcast-align -Wredundant-decls -Wbad-function-cast -Wcast-qual -Wwrite-strings -Waggregate-return -Wstrict-prototypes -Wmissing-prototypes -march=pentium3 -Os -pipe  -Wdeclaration-after-statement -Wpadded -Wstrict-aliasing -frename-registers -fomit-frame-pointer -fno-inline-functions -DSHARED=1 -fpic proc/readproc.c -o proc/readproc.o
cc1: error: unrecognized option `-Wdeclaration-after-statement'
distcc[29055] ERROR: compile proc/alloc.c on 127.0.0.1 failed
make: *** [proc/alloc.o] Error 1
make: *** Waiting for unfinished jobs....
cc1: error: unrecognized option `-Wdeclaration-after-statement'
distcc[29063] ERROR: compile proc/pwcache.c on 127.0.0.1 failed
make: *** [proc/pwcache.o] Error 1
cc1: error: unrecognized option `-Wdeclaration-after-statement'
distcc[29061] ERROR: compile proc/ksym.c on 127.0.0.1 failed
make: *** [proc/ksym.o] Error 1
proc/devname.c:52: warning: padding struct size to alignment boundary
proc/readproc.c: In function `status2proc':
proc/readproc.c:165: warning: array subscript has type `char'
proc/readproc.c:165: warning: array subscript has type `char'
proc/readproc.c:165: warning: array subscript has type `char'
proc/readproc.c: In function `stat2proc':
proc/readproc.c:348: warning: use of assignment suppression and length modifier together in scanf format
proc/readproc.c:348: warning: use of assignment suppression and length modifier together in scanf format

!!! ERROR: sys-process/procps-3.2.6 failed.
!!! Function src_compile, Line 63, Exitcode 2
!!! make failed
!!! If you need support, post the topmost build error, NOT this status message.

emerge --info gives:
Portage 2.0.54 (default-linux/x86/2005.0, gcc-3.4.5, glibc-2.3.5-r2, 2.6.14-suspend2 i686)
=================================================================
System uname: 2.6.14-suspend2 i686 Pentium III (Coppermine)
Gentoo Base System version 1.6.14
distcc 2.18.3 i686-pc-linux-gnu (protocols 1 and 2) (default port 3632) [enabled]
dev-lang/python:     2.3.5-r2, 2.4.2
sys-apps/sandbox:    1.2.12
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-r1
sys-devel/binutils:  2.16.1
sys-devel/libtool:   1.5.22
virtual/os-headers:  2.6.11-r2
ACCEPT_KEYWORDS="x86"
AUTOCLEAN="yes"
CBUILD="i686-pc-linux-gnu"
CFLAGS="-march=pentium3 -Os -pipe"
CHOST="i686-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/kde/2/share/config /usr/kde/3.3/env /usr/kde/3.3/share/config /usr/kde/3.3/shutdown /usr/kde/3.4/env /usr/kde/3.4/share/config /usr/kde/3.4/shutdown /usr/kde/3/share/config /usr/lib/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/ /var/qmail/control"
CONFIG_PROTECT_MASK="/etc/gconf /etc/terminfo /etc/env.d"
CXXFLAGS="-march=pentium3 -Os -pipe"
DISTDIR="/usr/portage/distfiles"
FEATURES="autoconfig distcc distlocks sandbox sfperms strict"
GENTOO_MIRRORS="http://ftp.belnet.be/mirror/rsync.gentoo.org/gentoo"
LANG="de_DE.utf8"
LC_ALL="de_DE.utf8"
LINGUAS="de en ru ua"
MAKEOPTS="-j6"
PKGDIR="/usr/portage/packages"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
PORTDIR_OVERLAY="/usr/local/portage_overlay/gentoo-de /usr/local/portage_overlay/local"
SYNC="rsync://rsync.europe.gentoo.org/gentoo-portage"
USE="x86 X aalib alsa apm arts audiofile avi berkdb bitmap-fonts bonobo bzip2 crypt cups curl dri dts eds emboss encode esd ethereal exif expat fam ffmpeg flac foomaticdb fortran gd gdbm gif glut gmp gpm gstreamer gtk gtk2 gtkhtml guile hal idn imagemagick imlib ipv6 java jpeg junit kde lcms ldap libcaca libg++ libwww mad matroska mhash mikmod ming mmx mng motif mp3 mpeg mysql ncurses nls ogg oggvorbis openal opengl oss pam pcmcia pcre pdflib perl png python qt quicktime readline samba sdl speex spell sse ssl svga tcltk tcpd tetex tiff truetype truetype-fonts type1-fonts udev unicode usb vorbis wifi wireless wmf xine xml xml2 xmms xv xvid zlib video_cards_s3 linguas_de linguas_en linguas_ru linguas_ua userland_GNU kernel_linux elibc_glibc"
Unset:  ASFLAGS, CTARGET, LDFLAGS

distcc-config --get-hosts gives:
192.168.127.20/10 127.0.0.1

Anything else?
Comment 3 Lisa Seelye (RETIRED) gentoo-dev 2006-03-27 15:12:29 UTC
If you're going to use use localhost in distcc compiling you should put localhost and not 127.0.0.1 since localhost shortcuts and calls gcc locally instead of going through the daemon.

Try that and report back. It makes no sense for it to fail there but no other places where -Wdeclaration-after-statement is used.
Comment 4 SpanKY gentoo-dev 2006-03-27 21:45:37 UTC
my guess is that not all of your nodes are using the same version of gcc
Comment 5 Daniel Glaser 2006-03-28 06:41:33 UTC
Yes, I checked, they do.

But the hint with 127.0.0.1->localhost did the task for me.

(In reply to comment #4)
> my guess is that not all of your nodes are using the same version of gcc