Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 64394 - procps-3.2.3-r1 fails to compile (reopening bug #63490)
Summary: procps-3.2.3-r1 fails to compile (reopening bug #63490)
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Core system (show other bugs)
Hardware: All Linux
: High blocker (vote)
Assignee: Gentoo Linux bug wranglers
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2004-09-17 06:28 UTC by Alexander Puchmayr
Modified: 2004-09-24 05:06 UTC (History)
2 users (show)

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


Attachments
output of emerge -u procps 2>&1 >emerge.out (emerge.out,5.97 KB, text/plain)
2004-09-17 06:37 UTC, Alexander Puchmayr
Details
emerge -u procps > errorlog2 2>&1 (errorlog2,8.69 KB, text/plain)
2004-09-22 05:51 UTC, Sven Vermeulen (RETIRED)
Details
make > errorlog 2>&1 (errorlog,19.35 KB, text/plain)
2004-09-22 05:54 UTC, Sven Vermeulen (RETIRED)
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Alexander Puchmayr 2004-09-17 06:28:18 UTC
When emerging this package, gcc aborts with following error:

gcc: cannot specify -o with -c or -S and multiple compilations



Reproducible: Always
Steps to Reproduce:
emerge -u procps

Actual Results:  
 


ortage 2.0.50-r11 (default-x86-1.4, gcc-3.3.4, glibc-2.3.3.20040420-r1, 
2.6.8-gentoo-r3) 
================================================================= 
System uname: 2.6.8-gentoo-r3 i686 Pentium III (Coppermine) 
Gentoo Base System version 1.4.16 
Autoconf: sys-devel/autoconf-2.59-r4 
Automake: sys-devel/automake-1.8.5-r1 
ACCEPT_KEYWORDS="x86" 
AUTOCLEAN="yes" 
CFLAGS="-march=i686 -O3 -pipe -fomit-frame-pointer" 
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/k                       
de/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/conf                       
ig/ /usr/share/texmf/xdvi/ /var/qmail/control" 
CONFIG_PROTECT_MASK="/etc/gconf /etc/terminfo /etc/env.d" 
CXXFLAGS="-march=i686 -O3 -pipe -fomit-frame-pointer" 
DISTDIR="/usr/portage/distfiles" 
FEATURES="autoaddcvs ccache sandbox" 
GENTOO_MIRRORS="http://gentoo.inode.at/" 
MAKEOPTS="-j2" 
PKGDIR="/usr/portage/packages" 
PORTAGE_TMPDIR="/var/tmp" 
PORTDIR="/usr/portage" 
PORTDIR_OVERLAY="/usr/local/portage" 
SYNC="rsync://rsync.gentoo.org/gentoo-portage" 
USE="X X509 aalib acpi acpi4linux alsa apm arts artswrappersuid avi berkdb 
bitmap-fonts bzlib cdr crypt cups dga dvd encode esd f77 fftw foomaticdb gcj 
gdbm gif gimp gimpprint gmp gnome gphoto2 gpm gtk gtk2 guile icc icq 
imagemagick imlib java javascript jpeg kde leim libg++ libwww lzw lzw-tiff mad                        
maildir mikmod mmx motif mozilla mpeg mpi mysql ncurses nls nocd oggvorbis 
opengl oss pam pcmcia pdflib perl plotutils png python qt quicktime raged 
tetex theora tiff transcode truetype usb wmf x86 xine xml2 xmms xprint xv xvid 
zlib"
Comment 1 Alexander Puchmayr 2004-09-17 06:37:21 UTC
Created attachment 39755 [details]
output of emerge -u procps 2>&1 >emerge.out

It seems as if gcc gets confused with the double qouted defines for the java
part...
Comment 2 Alexander Puchmayr 2004-09-17 10:59:46 UTC
Problem was:

some old blackdown-jdk config files were left in /etc/env.d and /etc/env.d/java. If somebody has this problem again, just delete the old files and re-emerge procps.
Comment 3 Sven Vermeulen (RETIRED) gentoo-dev 2004-09-22 05:49:46 UTC
I seem to have the same problem, but there are no stale env.d files laying around (only have one for java). As weird as it may sound, emerging procps mentions an older java version (java-config only lists the current one). Running "make" inside the procps work-directory doesn't (and compiles just fine).

Setting MAKEOPTS="-j1" doesn't work either.

Attached you'll find the output of "emerge -u procps" and "make > logfile 2>&1" ran inside the procps work directory.
Comment 4 Sven Vermeulen (RETIRED) gentoo-dev 2004-09-22 05:51:46 UTC
Created attachment 40155 [details]
emerge -u procps > errorlog2 2>&1

As you can notice, the output sais:

"""
-DVERSION=\"IBM JDK 1.4.1\" -DSUBVERSION=\"2\" -DMINORVERSION=\"3\"
"""

I don't know what those macrodefinitions mean, but I only have IBM JDK 1.4.2 on
this system:

"""
$ java-config -L
[ibm-jdk-bin-1.4.2] "IBM JDK 1.4.2" (/etc/env.d/java/20ibm-jdk-bin-1.4.2) *
"""
Comment 5 Sven Vermeulen (RETIRED) gentoo-dev 2004-09-22 05:54:55 UTC
Created attachment 40156 [details]
make > errorlog 2>&1

The output of running "make" in the work directory
(/var/tmp/portage/procps-3.2.3-r1/work/procps-3.2.3-r1). Notice that it doesn't
even mention anything of the java stuff. But in the ebuild's src_compile() it
only sais:

"""
    replace-flags -O3 -O2
    emake -e || die
"""

Running "emerge -u procps" with sane CFLAGS gives the same result.
Comment 6 Sven Vermeulen (RETIRED) gentoo-dev 2004-09-22 05:55:21 UTC
Portage 2.0.50-r11 (default-x86-2004.0, gcc-3.3.4, glibc-2.3.4.20040808-r0, 2.6.8-gentoo-r4)
=================================================================
System uname: 2.6.8-gentoo-r4 i686 mobile AMD Athlon(tm) XP 1600+ 
Gentoo Base System version 1.5.3
Autoconf: sys-devel/autoconf-2.59-r4
Automake: sys-devel/automake-1.8.5-r1
ACCEPT_KEYWORDS="x86 ~x86"
AUTOCLEAN="yes"
CFLAGS="-O2 -march=i686 -pipe"
CHOST="i686-pc-linux-gnu"
COMPILER=""
CONFIG_PROTECT="/etc /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/qmail/control"
CONFIG_PROTECT_MASK="/etc/gconf /etc/terminfo /etc/env.d"
CXXFLAGS="-O2 -march=i686 -pipe"
DISTDIR="/usr/portage/distfiles"
FEATURES="autoaddcvs ccache sandbox strict userpriv usersandbox"
GENTOO_MIRRORS="ftp://ftp.snt.utwente.nl/pub/os/linux/gentoo"
MAKEOPTS="-j1"
PKGDIR="/usr/portage/packages"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
PORTDIR_OVERLAY="/home/swift/work/gentoo/ebuilds"
SYNC="rsync://rsync5.nl.gentoo.org/gentoo-portage"
USE="3dnow X acpi alsa apache2 berkdb bonobo cdr crypt cscope cups curl dba doc dvd encode f77 flash foomaticdb gd gdbm gif gnome gphoto2 gps gtk gtk2 imagemagick imap imlib java jikes jpeg kde ldap linguas_fr linguas_nl maildir mbox mmx mozilla mpeg msn mysql ncurses nls nptl odbc oggvorbis pam pcmcia pdflib perl pic png pnp ppds python qt quicktime readline samba sasl sdl spell sse ssl tcpd tetex tiff truetype trusted unicode usb wmf x86 xml2 xmms xv zlib"
Comment 7 Sven Vermeulen (RETIRED) gentoo-dev 2004-09-22 07:29:05 UTC
Alexander, you're a darling. Unsetting the VERSION (as you said in an e-mail) works.

"""
# unset VERSION
# emerge -u procps
"""

Wondering where the variable comes from, but that's another story :)
Comment 8 Clayton Dukes 2004-09-23 09:17:53 UTC
I am having the same problem and none of these solutions seem to be working.
I tried to unmerge blackdown-kdk and jre but I've noticed that when I run:
# java-config -O    
/opt/blackdown-jdk-1.4.1

Anyone got any advice?
Comment 9 Clayton Dukes 2004-09-23 09:28:21 UTC
Scratch my last entry, even though java-config is indeed listing blackdown, I got procps to compile by removing any references to blackdown in /etc/profile.env, logging out, then logging in again. (for whatever reason, it didn't like unset).
Comment 10 ron sayers 2004-09-24 05:06:16 UTC
I am having this same problem. I have tried the unset version trick and I have carefully gone over everything in etc/env.d and etc/env.d/java and I can't find any references to an old version of Java. What steps can I take to figure out where this is hanging up?