Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 37415 - sys-apps/groff-1.18.1-r4 fails to build due to insisting on using colorgcc
Summary: sys-apps/groff-1.18.1-r4 fails to build due to insisting on using colorgcc
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Core system (show other bugs)
Hardware: x86 Linux
: High normal (vote)
Assignee: Gentoo's Team for Core System packages
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2004-01-06 12:38 UTC by giggles1
Modified: 2007-02-28 11:27 UTC (History)
3 users (show)

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


Attachments
config.log from groff build (config.log,33.89 KB, text/plain)
2004-01-06 17:56 UTC, giggles1
Details

Note You need to log in before you can comment on or make changes to this bug.
Description giggles1 2004-01-06 12:38:26 UTC
I evidently had colorgcc still installed on my system, but no mention of it in my path or environment. All other packages emerge just fine, but groff insists on using colorgcc at one point, even after colorgcc has been unemerged.  I had a similar problem once in the past, and re-emerging python fixed the problem (which seemed to be in some setup.py file), but this time that did not help.

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




please python2.3 # emerge info
Portage 2.0.49-r20 (default-x86-1.4, gcc-3.3.2, glibc-2.3.3_pre20031222-r0,
2.6.0-test10-gentoo-r1)
=================================================================
System uname: 2.6.0-test10-gentoo-r1 i686 AMD Athlon(tm) MP 2000+
Gentoo Base System version 1.4.3.12
ccache version 2.3 [disabled]
ACCEPT_KEYWORDS="x86"
AUTOCLEAN="yes"
CFLAGS="-march=athlon-mp -O2 -ftracer -ffast-math -pipe -fomit-frame-pointer "
CHOST="i686-pc-linux-gnu"
COMPILER="gcc3"
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/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/env.d"
CXXFLAGS="-O2 -mcpu=i686 -pipe"
DISTDIR="/usr/local/portage/distfiles"
FEATURES="autoaddcvs fixpackages"
GENTOO_MIRRORS="ftp://ibiblio.org/pub/Linux/distributions/gentoo/"
MAKEOPTS="-j4"
PKGDIR="/usr/portage/packages"
PORTAGE_TMPDIR="/usr/local/portage"
PORTDIR="/usr/portage"
PORTDIR_OVERLAY="/usr/local/portage/ebuilds"
SYNC="rsync://rsync.gentoo.org/gentoo-portage"
USE="3dnow X aalib alsa apache2 apm arts atlas avi berkdb bonobo cdr crypt cups
dga directfb dvd encode esd faad fam fbcon ffmpeg fftw flac foomaticdb gd gdbm
ggi gif gpm gstreamer gtk gtk2 gtkhtml guile imap imlib imlib2 java jikes jpeg
kde lcms libg++ libwww lmtp mad mikmod mmx motif mozilla moznocompose moznoirc
moznomail mpeg mysql ncurses netcdf nls nptl nvidia odbc offensive oggvorbis
opengl oss pam pcap pdflib perl pic plotutils png postgres ppds python qt qtmt
quicktime readline samba sdl slang spell sse ssl stencil-buffer svga tcltk tcpd
tetex threads tiff transcode truetype usb vim-with-x wmf x86 xml xml2 xmms xv zlib"





Here is what happens:

gccmakedep  -- -I./lib/Xt   -I.  -I/usr/X11R6/include    -Dlinux -D__i386__
-D_POSIX_C_SOURCE=199309L                           -D_POSIX_SOURCE
-D_XOPEN_SOURCE                                -D_BSD_SOURCE -D_SVID_SOURCE    
                                               -DFUNCPROTO=15 -DNARROWPROTO    
 -DFONTPATH=\"/usr/share/groff/`cat
/usr/local/portage/portage/groff-1.18.1-r4/work/groff-1.18.1/VERSION``sed -e
's/^0$//' -e 's/^[1-9].*$/.&/'
/usr/local/portage/portage/groff-1.18.1-r4/work/groff-1.18.1/REVISION`/font:/usr/share/groff/site-font:/usr/lib/font\"
   --
/usr/local/portage/portage/groff-1.18.1-r4/work/groff-1.18.1/src/xditview/xditview.c
 
/usr/local/portage/portage/groff-1.18.1-r4/work/groff-1.18.1/src/xditview/Dvi.c
 
/usr/local/portage/portage/groff-1.18.1-r4/work/groff-1.18.1/src/xditview/draw.c
 
/usr/local/portage/portage/groff-1.18.1-r4/work/groff-1.18.1/src/xditview/font.c
 
/usr/local/portage/portage/groff-1.18.1-r4/work/groff-1.18.1/src/xditview/lex.c
 
/usr/local/portage/portage/groff-1.18.1-r4/work/groff-1.18.1/src/xditview/page.c
 
/usr/local/portage/portage/groff-1.18.1-r4/work/groff-1.18.1/src/xditview/parse.c
 
/usr/local/portage/portage/groff-1.18.1-r4/work/groff-1.18.1/src/xditview/XFontName.c
 
/usr/local/portage/portage/groff-1.18.1-r4/work/groff-1.18.1/src/xditview/DviChar.c
 
/usr/local/portage/portage/groff-1.18.1-r4/work/groff-1.18.1/src/xditview/device.c
/usr/local/portage/portage/groff-1.18.1-r4/work/groff-1.18.1/src/xditview/xtotroff.c
 
/usr/local/portage/portage/groff-1.18.1-r4/work/groff-1.18.1/src/xditview/XFontName.c
 
/usr/local/portage/portage/groff-1.18.1-r4/work/groff-1.18.1/src/xditview/DviChar.c
colorgcc -O2 -fno-strength-reduce -fno-strict-aliasing    -I./lib/Xt   -I. 
-I/usr/X11R6/include    -Dlinux -D__i386__ -D_POSIX_C_SOURCE=199309L           
                   -D_POSIX_SOURCE -D_XOPEN_SOURCE                             
   -D_BSD_SOURCE -D_SVID_SOURCE                                    
-DFUNCPROTO=15 -DNARROWPROTO      -DFONTPATH=\"/usr/share/groff/`cat
/usr/local/portage/portage/groff-1.18.1-r4/work/groff-1.18.1/VERSION``sed -e
's/^0$//' -e 's/^[1-9].*$/.&/'
/usr/local/portage/portage/groff-1.18.1-r4/work/groff-1.18.1/REVISION`/font:/usr/share/groff/site-font:/usr/lib/font\"
    -c -o xditview.o xditview.c
/bin/sh: line 1: colorgcc: command not found
make: *** [xditview.o] Error 127

!!! ERROR: sys-apps/groff-1.18.1-r4 failed.
!!! Function src_compile, Line 93, Exitcode 2
!!! (no error message)


This is after I unemerged colorgcc, re-emerged python, and also tried 'alias
colorgcc=gcc". Before I unemerged colorgcc it would simply hang at this same
spot.  There is nothing in my path or environment that mentions colorgcc, I do
not know why it insists on trying to use it.
Comment 1 Mr. Bones. (RETIRED) gentoo-dev 2004-01-06 13:09:41 UTC
It could be something hanging around in your environment.

Does `env | grep cc` show you anything related to colorcc?
Comment 2 giggles1 2004-01-06 15:54:44 UTC
No I already checked that:

please python2.3 # env | grep cc
MANPATH=/usr/share/man:/usr/local/share/man:/usr/share/gcc-data/i686-pc-linux-gnu/3.3/man:/opt/intel/compiler70/man:/usr/X11R6/man:/opt/blackdown-jdk-1.4.1/man:/usr/qt/3/doc/man
PATH=/bin:/sbin:/usr/bin:/usr/sbin:/usr/local/bin:/opt/bin:/usr/i686-pc-linux-gnu/gcc-bin/3.3:/opt/intel/compiler70/ia32/bin:/opt/Acrobat5:/usr/X11R6/bin:/opt/blackdown-jdk-1.4.1/bin:/opt/blackdown-jdk-1.4.1/jre/bin:/usr/qt/3/bin:/usr/kde/3.2/sbin:/usr/kde/3.2/bin:/usr/qt/2/bin
INFOPATH=/usr/share/info:/usr/share/gcc-data/i686-pc-linux-gnu/3.3/info
CC=gcc
Comment 3 Mr. Bones. (RETIRED) gentoo-dev 2004-01-06 16:03:50 UTC
Maybe it didn't unmerge properly?

how about trying "find / -name colorcc" as root and posting the output.
Comment 4 giggles1 2004-01-06 16:15:33 UTC
Nothing except the old config dir under /etc:

please python2.3 # find / -name colorgcc
/etc/colorgcc
/usr/portage/dev-util/colorgcc


Seriously when this happened once before (http://bugs.gentoo.org/show_bug.cgi?id=30261) with another package, I found colorgcc hard coded in some python files that portage seemed to use.  At the time, reinstalling python solved the problem, but here it has not..
Comment 5 Mr. Bones. (RETIRED) gentoo-dev 2004-01-06 16:18:41 UTC
gcc-config -l looks normal?

I guess you're down to find / | xargs grep -l colorcc if all else fails.  That'll
take some time.
Comment 6 giggles1 2004-01-06 17:21:05 UTC
That seems to choke in the /dev directory.  I tried doing subdirs of root individually, but it also chokes (and locks up my keyboard) while doing /lib.  Nothing showed up under /usr, /etc, or /var.
Comment 7 Mr. Bones. (RETIRED) gentoo-dev 2004-01-06 17:25:39 UTC
Hmmm, ok.  Can you attach the config.log from the attempt at compiling groff
as a text/plain please?
Comment 8 giggles1 2004-01-06 17:56:00 UTC
Created attachment 23275 [details]
config.log from groff build
Comment 9 giggles1 2004-01-06 18:06:05 UTC
I think this problem is after the groff build proper... some post inst thing.  Going into the build dir and typing "make" by hand finishes just fine.  Backing up from the error a bit further:



make[2]: Leaving directory `/usr/local/portage/portage/groff-1.18.1-r4/work/groff-1.18.1'
make[1]: Leaving directory `/usr/local/portage/portage/groff-1.18.1-r4/work/groff-1.18.1'
imake -DUseInstalled -I/usr/X11R6/lib/X11/config
In file included from /usr/X11R6/lib/X11/config/Imake.tmpl:104,
                 from Imakefile.c:36:
/usr/X11R6/lib/X11/config/linux.cf:323: warning: "BuildLibGlxWithoutPIC" redefined
In file included from /usr/X11R6/lib/X11/config/site.def:44,
                 from /usr/X11R6/lib/X11/config/Imake.tmpl:45,
                 from Imakefile.c:36:
/usr/X11R6/lib/X11/config/host.def:69: warning: this is the location of the previous definition
In file included from /usr/X11R6/lib/X11/config/X11.tmpl:1669,
                 from /usr/X11R6/lib/X11/config/Imake.tmpl:2012,
                 from Imakefile.c:36:
/usr/X11R6/lib/X11/config/lnxLib.tmpl:54: warning: "SharedGLReqs" redefined
/usr/X11R6/lib/X11/config/lnxLib.tmpl:26: warning: this is the location of the previous definition
gccmakedep  -- -I./lib/Xt   -I.  -I/usr/X11R6/include    -Dlinux -D__i386__ -D_POSIX_C_SOURCE=199309L           -D_POSIX_SOURCE -D_XOPEN_SOURCE                          -D_BSD_SOURCE -D_SVID_SOURCE                                                               -DFUNCPROTO=15 -DNARROWPROTO      -DFONTPATH=\"/usr/share/groff/`cat /usr/local/portage/portage/groff-1.18.1-r4/work/groff-1.18.1/VERSION``sed -e 's/^0$//' -e 's/^[1-9].*$/.&/' /usr/local/portage/portage/groff-1.18.1-r4/work/groff-1.18.1/REVISION`/font:/usr/share/groff/site-font:/usr/lib/font\"    -- /usr/local/portage/portage/groff-1.18.1-r4/work/groff-1.18.1/src/xditview/xditview.c   /usr/local/portage/portage/groff-1.18.1-r4/work/groff-1.18.1/src/xditview/Dvi.c   /usr/local/portage/portage/groff-1.18.1-r4/work/groff-1.18.1/src/xditview/draw.c   /usr/local/portage/portage/groff-1.18.1-r4/work/groff-1.18.1/src/xditview/font.c   /usr/local/portage/portage/groff-1.18.1-r4/work/groff-1.18.1/src/xditview/lex.c   /usr/local/portage/portage/groff-1.18.1-r4/work/groff-1.18.1/src/xditview/page.c   /usr/local/portage/portage/groff-1.18.1-r4/work/groff-1.18.1/src/xditview/parse.c   /usr/local/portage/portage/groff-1.18.1-r4/work/groff-1.18.1/src/xditview/XFontName.c   /usr/local/portage/portage/groff-1.18.1-r4/work/groff-1.18.1/src/xditview/DviChar.c   /usr/local/portage/portage/groff-1.18.1-r4/work/groff-1.18.1/src/xditview/device.c /usr/local/portage/portage/groff-1.18.1-r4/work/groff-1.18.1/src/xditview/xtotroff.c   /usr/local/portage/portage/groff-1.18.1-r4/work/groff-1.18.1/src/xditview/XFontName.c   /usr/local/portage/portage/groff-1.18.1-r4/work/groff-1.18.1/src/xditview/DviChar.c
colorgcc -O2 -fno-strength-reduce -fno-strict-aliasing    -I./lib/Xt   -I.  -I/usr/X11R6/include    -Dlinux -D__i386__ -D_POSIX_C_SOURCE=199309L                                 -D_POSIX_SOURCE -D_XOPEN_SOURCE                 -D_BSD_SOURCE -D_SVID_SOURCE                                                               -DFUNCPROTO=15 -DNARROWPROTO      -DFONTPATH=\"/usr/share/groff/`cat /usr/local/portage/portage/groff-1.18.1-r4/work/groff-1.18.1/VERSION``sed -e 's/^0$//' -e 's/^[1-9].*$/.&/' /usr/local/portage/portage/groff-1.18.1-r4/work/groff-1.18.1/REVISION`/font:/usr/share/groff/site-font:/usr/lib/font\"     -c -o xditview.o xditview.c
/bin/sh: line 1: colorgcc: command not found
make: *** [xditview.o] Error 127

!!! ERROR: sys-apps/groff-1.18.1-r4 failed.
!!! Function src_compile, Line 93, Exitcode 2
!!! (no error message)

So, it seems to be doing something after groff is built? Given the ref to imake I assume its this part at the end of src_compile:

   # Only build X stuff if we have X installed, but do
    # not depend on it, else we get circular deps.
    if [ -n "`use X`" ] && [ -x /usr/X11R6/bin/xmkmf ]
    then
        cd ${S}/src/xditview
        xmkmf || die
        make depend all || die
    fi
Comment 10 giggles1 2004-01-06 18:06:53 UTC
I think your comment got overwritten, sorry.
Comment 11 giggles1 2004-01-06 18:16:01 UTC
Yah, there it is, under src/xditview:

please xditview # grep colorgcc *
Makefile:               CC = colorgcc
Makefile:               AS = colorgcc -c -x assembler
Makefile:    PREPROCESSCMD = colorgcc -E $(STD_CPP_DEFINES)
Makefile:               LD = colorgcc -nostdlib
Makefile:            MODCC = colorgcc
Makefile:            MODAS = colorgcc -c -x assembler
Makefile:            MODLD = colorgcc -nostdlib
Makefile.bak:               CC = colorgcc
Makefile.bak:               AS = colorgcc -c -x assembler
Makefile.bak:    PREPROCESSCMD = colorgcc -E $(STD_CPP_DEFINES)
Makefile.bak:               LD = colorgcc -nostdlib
Makefile.bak:            MODCC = colorgcc
Makefile.bak:            MODAS = colorgcc -c -x assembler
Makefile.bak:            MODLD = colorgcc -nostdlib


I assume I can just USE="-X" and have this thing build, but it would be nice to know how it is getting there in the first place.
Comment 12 Alexander Gabert (RETIRED) gentoo-dev 2004-03-03 06:09:40 UTC
hi, can you do the following commands please and get me the output:

grep -r "CC" /etc
grep -ri "colorgcc" /etc

find /usr/bin -name "*gcc*" -exec ls -ali {} \; 2>&1 | grep colorgcc

and watch out for broken links to colorgcc

the building might be inheriting the colorgcc from a left-over definition in the environment when colorgcc was emerged and installed itself to be the active gcc.

so this should be a colorgcc issue mainly.

but i can tell you more if you can paste me the output of the commands and find something

thank you very much :-)

Comment 13 giggles1 2004-08-15 01:30:38 UTC
This has long since fixed itself.
Comment 14 a.grahn 2004-10-27 01:53:42 UTC
After upgrading to portage-2.0.51-r2, emerge groff requires gcc-4.0. No problems after downgrading to portage-2.0.50. Re-updating portage lets the error occur again. This DEPEND problem makes world updates impossible since last portage update! 

root@localhost:/etc # emerge -p -d groff

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

Calculating dependencies  
Parent:    None
Depstring: sys-apps/groff
Candidates: ['sys-apps/groff']
ebuild: sys-apps/groff-1.18.1-r4
binpkg: None
 -
Parent:    ebuild / sys-apps/groff-1.18.1-r4 merge
Depstring: virtual/libc >=sys-apps/texinfo-4.0 !bootstrap? ( sys-devel/patch ) !bootstrap? ( sys-devel/patch ) !bootstrap? ( sys-devel/patch ) virtual/libc >=sys-apps/texinfo-4.0
Candidates: ['>=sys-devel/gcc-4.0']

emerge: there are no ebuilds to satisfy ">=sys-devel/gcc-4.0".

--
Alex
Comment 15 SpanKY gentoo-dev 2004-10-27 05:27:34 UTC
that is a completely unrelated bug, don't post it here

search bugzilla for it, it's been reported long ago
short answer, edit the files in /var/db/pkg/sys-devel/gcc-2*/