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

Bug 63490

Summary: procps cannot compile
Product: Gentoo Linux Reporter: Lim Swee Tat (RETIRED) <st_lim>
Component: New packagesAssignee: Gentoo's Team for Core System packages <base-system>
Status: RESOLVED DUPLICATE    
Severity: major CC: doug.muth, mmokrejs
Priority: High    
Version: unspecified   
Hardware: All   
OS: Linux   
Whiteboard:
Package list:
Runtime testing required: ---
Attachments: emerge procps >& log
Tarball of /var/tmp/portage/procps-3.2.3-r1/work
VERSION under /etc/

Description Lim Swee Tat (RETIRED) gentoo-dev 2004-09-09 17:40:10 UTC
I have the following error everytime I try to compile procps.

gcc -c -D_GNU_SOURCE -I proc -I/usr/include/ncurses -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 -O2 -pipe -Wdeclaration-after-statement -Wpadded   -frename-registers -fomit-frame-pointer -fno-inline-functions  -DSHARED=1 -fpic proc/slab.c -o proc/slab.o
gcc -c -D_GNU_SOURCE -I proc -I/usr/include/ncurses -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 -O2 -pipe -Wdeclaration-after-statement -Wpadded   -frename-registers -fomit-frame-pointer -fno-inline-functions  -DSHARED=1 -fpic proc/status.c -o proc/status.o
gcc -c -D_GNU_SOURCE -I proc -I/usr/include/ncurses -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 -O2 -pipe -Wdeclaration-after-statement -Wpadded   -frename-registers -fomit-frame-pointer -fno-inline-functions  -DSHARED=1 -fpic proc/sysinfo.c -o proc/sysinfo.o
gcc -D_GNU_SOURCE -I proc -I/usr/include/ncurses -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 -O2 -pipe -Wdeclaration-after-statement -Wpadded   -frename-registers -fomit-frame-pointer -fno-inline-functions  -DSHARED=1 -fpic -DVERSION=\"JavaCC @PV@\" -DSUBVERSION=\"2\" -DMINORVERSION=\"3\" -c -o proc/version.o proc/version.c
gcc: cannot specify -o with -c or -S and multiple compilations
make: *** [proc/version.o] Error 1
make: *** Waiting for unfinished jobs....

I note that the -DVERSION=\"JavaCC @PV@\" which is strange.

my emerge info

Portage 2.0.51_pre20 (default-x86-2004.2, gcc-3.3.4, glibc-2.3.4.20040808-r0, 2.6.8.1-nitro6-rei1 i686 Intel(R) Pentium(R) M processor 1600MHz)=================================================================
System uname: 2.6.8.1-nitro6-rei1 i686 Intel(R) Pentium(R) M processor 1600MHz
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="-march=pentium3 -O3 -pipe -fomit-frame-pointer -msse2 -mmmx -mfpmath=sse,387 -w"
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.3/share/config:/usr/kde/3.3/env:/usr/kde/3.3/shutdown /usr/kde/3/share/config /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/lib/jboss /var/qmail/alias /var/qmail/control"
CONFIG_PROTECT_MASK="/etc/gconf /etc/mail/dspam /etc/mail/dspam/config /etc/terminfo /etc/env.d"
CXXFLAGS="-march=pentium3 -O3 -pipe -fomit-frame-pointer -msse2 -mmmx -mfpmath=sse,387 -w"
DISTDIR="/usr/portage/distfiles"
FEATURES="autoaddcvs ccache cvs digest fixpackages noauto sandbox"
GENTOO_MIRRORS="ftp://ftp.planetmirror.com/pub/gentoo/"
MAKEOPTS="-j2"
PKGDIR="/usr/portage/packages"
PORTAGE_TMPDIR="/tmp"
PORTDIR="/home/st_lim/Source/portage"
PORTDIR_OVERLAY="/home/st_lim/Incoming/portage"
SYNC="rsync://rsync.au.gentoo.org/gentoo-portage"
USE="3dnow 3dnowex S3TC X X509 aac aalib acl acpi activefilter adns aim apache2 apm arts artswrappersuid audiofile avantgo avi bcmath bdf berkdb bidi bitmap-fonts bluetooth bzlib calendar cap cddb cdinstall cdparanoia cdrom cgi chroot cjk cle266 client cpdflib crypt ctype cups curl curlwrappers cyrus dba dbcp dio divx4linux djbfft dmx dnd droproot dv dvb dvd dvdr dvdread edl emacs emacs-w3 encode erandom exif ext-png ext-zlib extensions f77 faac faad fam fastcgi fbcon ffmpeg flac flash flexresp fluidsynth fmod foomaticdb foreign-package foreign-sysvinit freetds freetype freewnn fs ftp gb gcj gcl gd gdbm geoip gif gimp gimpprint ginac glade glgd glut gmp gmtfull gnome gnomedb gnuplot gpm gps graphviz gs gsl gstreamer gtk gtk2 hbci hdf iconv icq ide idl ieee1394 image imagemagick imap imlib imlib2 immqt-bc innodb ipv6 irda irmc jabber javacomm javadoc javamail javascript jbig jboss jce jmx joystick jp2 jpeg junit kadu-voice kakasi kde kerberos krb4 lcd lcms leim libdsk libg++ libgd libgda libwww lirc live lua lufsusermount lzo lzw lzw-tiff m17n-lib mad maildir mailwrapper matroska mbox mcal mdb memlimit mhash migemo mikmod mime mixer mldonkeypango mmap mmx mng motif mozcalendar mozdevelop mozdomi mozp3p mozsvg mozxmlterm mpeg mpeg4 mpi mplayer msn mssql mule music mysqli mythtv nagios-dns nagios-ntp nagios-ping nagios-ssh native ncurses net network nls nntp nptl ntlm nvidia nviz oav objc ocaml odbc offensive ofx oggvorbis openal opengl openssh operanom2 opie oracle oscar oss pam parse-clocks pcap pcntl pcre pda pdflib perl pg-hier pg-intdatetime pg-vacuumdelay php pic plotutils png portaudio posix ppds print psyco pthreads pwdb python qt quicktime quotes radeon readline remote rhino rogue rplay rtc samba sasl sdl semanticfix servlet-2.3 servlet-2.4 session shaper shared sharedmem sheep silc silverxp simplexml skey skk slang slp smime sndfile snmp snortsam soap sockets socks5 sox spamassassin speedo speex spell sse sse2 ssl stencil-buffer stroke struts svg svga szip t1lib tcpd tga theora threads tidy tiff transcode truetype type1 uim unicode usagi usb v4l v4l2 vhosts videos virus-scan wifi wmf wxwin wxwindows x86 xatrix xchatdccserver xchattext xemacs xgetdefault xine xinerama xml xml2 xmlrpc xmms xosd xprint xrandr xsl xv xvid xvmc yahoo yv12 zeo zlib zvbi"


Reproducible: Always
Steps to Reproduce:
1. 
2.
3.

Actual Results:  
cannot compile/emerge procps

Expected Results:  
install procps for me.
Comment 1 SpanKY gentoo-dev 2004-09-09 20:59:22 UTC
what version of procps did you try to emerge ?

what does `emerge procps -pv` look like ?

can you `emerge procps >& log` and then post the log as an attachment here ?
Comment 2 SpanKY gentoo-dev 2004-09-20 20:24:58 UTC
*** Bug 64768 has been marked as a duplicate of this bug. ***
Comment 3 Douglas Muth 2004-09-21 07:04:14 UTC
Here is the output of 'emerge procps -pv' from my machine (see Bug 64768 for my emerge info):

These are the packages that I would merge, in order:

Calculating dependencies ...done!
[ebuild     U ] sys-apps/procps-3.2.3-r1 [3.1.15] -debug  0 kB 

Total size of downloads: 0 kB
Comment 4 Douglas Muth 2004-09-21 07:08:02 UTC
Created attachment 40087 [details]
emerge procps >& log

This is the output on my machine of 'emerge procps >& log'.
Comment 5 SpanKY gentoo-dev 2004-09-21 21:09:16 UTC
hrm, can you do me another favor and try taring up the /var/tmp/portage/procps-3.2.3-r1/work directory and posting it ?
Comment 6 Douglas Muth 2004-09-22 07:21:58 UTC
Created attachment 40163 [details]
Tarball of /var/tmp/portage/procps-3.2.3-r1/work

This is the requested tarball of /var/tmp/portage/procps-3.2.3-r1/work
Comment 7 SpanKY gentoo-dev 2004-10-05 21:57:35 UTC
re-opening since you gave me everything i asked for :)
Comment 8 Martin Mokrejš 2004-10-12 05:13:24 UTC
I have a same problem here:

Portage 2.0.50-r11 (default-x86-1.4, gcc-3.3.4, glibc-2.3.4.20040808-r1, 2.6.7-bk20)
=================================================================
System uname: 2.6.7-bk20 i686 Intel(R) Pentium(R) 4 CPU 2.60GHz
Gentoo Base System version 1.4.16
ccache version 2.3 [enabled]
Autoconf: sys-devel/autoconf-2.59-r5
Automake: sys-devel/automake-1.8.5-r1
ACCEPT_KEYWORDS="x86"
AUTOCLEAN="yes"
CFLAGS="-msse3 -O3 -fomit-frame-pointer -march=pentium4 -funroll-loops -pipe"
CHOST="i686-pc-linux-gnu"
COMPILER=""
CONFIG_PROTECT="/etc /usr/X11R6/lib/X11/xkb /usr/kde/2/share/config /usr/kde/3.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/bind /var/qmail/alias /var/qmail/control"
CONFIG_PROTECT_MASK="/etc/gconf /etc/terminfo /etc/env.d"
CXXFLAGS="-msse3 -O3 -fomit-frame-pointer -march=pentium4 -funroll-loops -pipe"
DISTDIR="/usr/portage/distfiles"
FEATURES="autoaddcvs ccache sandbox"
GENTOO_MIRRORS="http://gentoo.osuosl.org http://distro.ibiblio.org/pub/Linux/distributions/gentoo"
MAKEOPTS="-j2"
PKGDIR="/usr/portage/packages"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
PORTDIR_OVERLAY=""
SYNC="rsync://rsync.gentoo.org/gentoo-portage"
USE="X Xaw3d acpi afs alsa apache2 apm arts ati avi berkdb bidi bitmap-fonts bonobo cdr crypt cscope cups curl dga directfb doc dvb dvd dvdr emacs emacs-w3 encode esd ethereal evo f77 fam fbcom flash foomaticdb fvwm fvwm2 gb gd gdbm ggi gif gnome gphoto2 gpm gtk gtk2 gtkhtml icc imagemagick imlib innodb java jpeg kde kde3 lcms leim libg++ libwww mad mcal mesa mikmod mmx motif mozilla mpeg mule mysql ncurses nls oggvorbis opengl oss pam pda pdflib perl plotutils png ppds pthread pthreads python qt quicktime readline samba sasl scanner sdl slang slp spell sse ssl svga tcltk tcpd tetex thread threads tiff truetype unicode usb video_cards_radeon wmf x86 xml xml2 xmms xosd xprint xv zeo zlib"


>>> emerge (15 of 21) sys-apps/procps-3.2.3-r1 to /
>>> md5 src_uri ;-) procps-3.2.3.tar.gz
>>> Unpacking source...
>>> Unpacking procps-3.2.3.tar.gz to /var/tmp/portage/procps-3.2.3-r1/work
>>> Source unpacked.
proc/module.mk:95: warning: overriding commands for target `@PV@.2.3.so'
proc/module.mk:77: warning: ignoring old commands for target `@PV@.2.3.so'
gcc -D_GNU_SOURCE -I proc -I/usr/include/ncurses -MM -MG proc/alloc.c proc/devname.c proc/escape.c proc/ksym.c proc/pwcache.c proc/readproc.c proc/sig.c proc/slab.c proc/status.c proc/sysinfo.c proc/version.c proc/whattime.c > proc/.depend
proc/module.mk:95: warning: overriding commands for target `@PV@.2.3.so'
proc/module.mk:77: warning: ignoring old commands for target `@PV@.2.3.so'
gcc -D_GNU_SOURCE -I proc -I/usr/include/ncurses -fno-common -ffast-math -W -Wall -Wshadow -Wcast-align -Wredundant-decls -Wbad-function-cast -Wcast-qual -Wwrite-strings -Waggregate-return -Wstrict-prototypes -Wmissing-prototypes -msse3 -O2 -fomit-frame-pointer -march=pentium4 -funroll-loops -pipe -Wdeclaration-after-statement -Wpadded -Wstrict-aliasing -frename-registers -fomit-frame-pointer -fno-inline-functions  -c -o uptime.o uptime.c

[big cut]

gcc -c -D_GNU_SOURCE -I proc -I/usr/include/ncurses -fno-common -ffast-math -W -Wall -Wshadow -Wcast-align -Wredundant-decls -Wbad-function-cast -Wcast-qual -Wwrite-strings -Waggregate-return -Wstrict-prototypes -Wmissing-prototypes -msse3 -O2 -fomit-frame-pointer -march=pentium4 -funroll-loops -pipe -Wdeclaration-after-statement -Wpadded -Wstrict-aliasing -frename-registers -fomit-frame-pointer -fno-inline-functions  -DSHARED=1 -fpic proc/sig.c -o proc/sig.o
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
gcc -c -D_GNU_SOURCE -I proc -I/usr/include/ncurses -fno-common -ffast-math -W -Wall -Wshadow -Wcast-align -Wredundant-decls -Wbad-function-cast -Wcast-qual -Wwrite-strings -Waggregate-return -Wstrict-prototypes -Wmissing-prototypes -msse3 -O2 -fomit-frame-pointer -march=pentium4 -funroll-loops -pipe -Wdeclaration-after-statement -Wpadded -Wstrict-aliasing -frename-registers -fomit-frame-pointer -fno-inline-functions  -DSHARED=1 -fpic proc/slab.c -o proc/slab.o
gcc -c -D_GNU_SOURCE -I proc -I/usr/include/ncurses -fno-common -ffast-math -W -Wall -Wshadow -Wcast-align -Wredundant-decls -Wbad-function-cast -Wcast-qual -Wwrite-strings -Waggregate-return -Wstrict-prototypes -Wmissing-prototypes -msse3 -O2 -fomit-frame-pointer -march=pentium4 -funroll-loops -pipe -Wdeclaration-after-statement -Wpadded -Wstrict-aliasing -frename-registers -fomit-frame-pointer -fno-inline-functions  -DSHARED=1 -fpic proc/status.c -o proc/status.o
gcc -c -D_GNU_SOURCE -I proc -I/usr/include/ncurses -fno-common -ffast-math -W -Wall -Wshadow -Wcast-align -Wredundant-decls -Wbad-function-cast -Wcast-qual -Wwrite-strings -Waggregate-return -Wstrict-prototypes -Wmissing-prototypes -msse3 -O2 -fomit-frame-pointer -march=pentium4 -funroll-loops -pipe -Wdeclaration-after-statement -Wpadded -Wstrict-aliasing -frename-registers -fomit-frame-pointer -fno-inline-functions  -DSHARED=1 -fpic proc/sysinfo.c -o proc/sysinfo.o
gcc -D_GNU_SOURCE -I proc -I/usr/include/ncurses -fno-common -ffast-math -W -Wall -Wshadow -Wcast-align -Wredundant-decls -Wbad-function-cast -Wcast-qual -Wwrite-strings -Waggregate-return -Wstrict-prototypes -Wmissing-prototypes -msse3 -O2 -fomit-frame-pointer -march=pentium4 -funroll-loops -pipe -Wdeclaration-after-statement -Wpadded -Wstrict-aliasing -frename-registers -fomit-frame-pointer -fno-inline-functions  -DSHARED=1 -fpic -DVERSION=\"JavaCC @PV@\" -DSUBVERSION=\"2\" -DMINORVERSION=\"3\" -c -o proc/version.o proc/version.c
gcc: cannot specify -o with -c or -S and multiple compilations
make: *** [proc/version.o] Error 1
make: *** Waiting for unfinished jobs....

!!! ERROR: sys-apps/procps-3.2.3-r1 failed.
!!! Function src_compile, Line 39, Exitcode 2
!!! (no error message)


This is a problem with procps-3.2.3-r1 and procps-3.2.3, not 3.2.2
Comment 9 SpanKY gentoo-dev 2004-10-12 11:48:20 UTC
what does this show on your machines:
echo $VERSION

what if you try this:
env -uVERSION emerge procps

also, can you post the output of:
grep -rI VERSION= /etc/
Comment 10 Douglas Muth 2004-10-12 11:58:08 UTC
Strangely enough, the problem disappeared yesterday (October 11th). Every business day since the bug I would do an "emerge sync && emerge -vu world" to try and keep my other packages updated.  Yesterday, procps suddenly compiled with incident.  To the best of my knowledge, I did not change any settings on my machine.

If it can be of any help, I'll still provide the info that you requested:

>what does this show on your machines:
>echo $VERSION

I get nothing.

>what if you try this:
>env -uVERSION emerge procps

N/A, since procps compiled for me.

>also, can you post the output of:
>grep -rI VERSION= /etc/

Sure.  Here you go:

/etc/env.d/java/20blackdown-jdk-1.4.1:VERSION="Blackdown JDK 1.4.1"
/etc/env.d/java/20blackdown-jre-1.4.1:VERSION="Blackdown JRE 1.4.1"
/etc/env.d/java/22javacc:VERSION="JavaCC 3.2"
/etc/env.d/20java:# VERSION="Blackdown JDK 1.4.1"
/etc/hotplug/ieee1394.agent:#	VERSION=version of specification
/etc/hotplug/ieee1394.agent:MATCH_VERSION=0x0008
/etc/hotplug/input.agent:INPUT_DEVICE_ID_MATCH_VERSION=8

Comment 11 Martin Mokrejš 2004-10-12 12:03:37 UTC
aquarius root # echo $VERSION

aquarius root # 



# grep -rI VERSION= /etc/ 2>&1 > /tmp/ver
grep: /etc/apache2/lib/perl5/5.8.0/i486-linux/smbldap_tools.pm: No such file or directory
grep: /etc/apache2/lib/perl5/5.8.0/i686-linux/smbldap_tools.pm: No such file or directory
grep: warning: /etc/apache2/lib/apache2/lib: recursive directory loop
^C ;-)


Yes, unsetting $VERSION variable has helped. This reminds me I've alread reported once such an error, making impossible to run make(1) successfully on dri-cvs tree.

Comment 12 Martin Mokrejš 2004-10-12 12:04:57 UTC
Created attachment 41633 [details]
VERSION under /etc/

Here is the output of ...

# grep -rI VERSION= /etc/ 2>&1 > /tmp/ver
grep: /etc/apache2/lib/perl5/5.8.0/i486-linux/smbldap_tools.pm: No such file or
directory
grep: /etc/apache2/lib/perl5/5.8.0/i686-linux/smbldap_tools.pm: No such file or
directory
grep: warning: /etc/apache2/lib/apache2/lib: recursive directory loop
Comment 13 SpanKY gentoo-dev 2004-10-12 14:57:13 UTC
yeah, like i thought ... java is misbehaving:

/etc/env.d/java/20blackdown-jdk-1.4.1:VERSION="Blackdown JDK 1.4.1"
/etc/env.d/java/22javacc:VERSION="JavaCC 3.2"

i think the real fix here is to get the java guys to stop exporting such a generic environment variable :)

Martin: can you run this and post the output for me please ?
emerge gentoolkit
qpkg -f /etc/env.d/java/20blackdown-jdk-1.4.1
qpkg -f /etc/env.d/java/22javacc

also, what version of java-config do you have ?
Comment 14 SpanKY gentoo-dev 2004-10-12 15:07:09 UTC
ok, just talked to our java guys and they said this should be fixed in latest stable java stuff, so much sure you're up-to-date :)

*** This bug has been marked as a duplicate of 61975 ***
Comment 15 Martin Mokrejš 2004-10-12 23:55:50 UTC
aquarius root # qpkg -f /etc/env.d/java/20blackdown-jdk-1.4.1
dev-java/blackdown-jdk *
aquarius root # qpkg -f /etc/env.d/java/22javacc
dev-java/javacc *
aquarius root # java-config --version
Gentoo java-config version 1.2.10
aquarius root #