Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 365547 - dev-util/colorgcc hangs
Summary: dev-util/colorgcc hangs
Status: RESOLVED INVALID
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Development (show other bugs)
Hardware: AMD64 Linux
: Normal normal (vote)
Assignee: Gentoo Shell Tools project
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2011-05-01 13:11 UTC by Sergey Gusarov
Modified: 2011-05-06 15:47 UTC (History)
1 user (show)

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


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Sergey Gusarov 2011-05-01 13:11:19 UTC
Colorgcc hangs when trying to compile any .c/.cpp files.

Reproducible: Always

Steps to Reproduce:
Trying to compile an empty(or any other) file

1. sergey@tphost ~/code $ ls -l main.c 
-rw-r--r-- 1 sergey sergey 0 Май  1 16:50 main.c

2. sergey@tphost ~/code $ gcc main.c 
/usr/lib/gcc/x86_64-pc-linux-gnu/4.5.2/../../../../lib64/crt1.o: In function `_start':
(.text+0x20): undefined reference to `main'
collect2: выполнение ld завершилось с кодом возврата 1

3. sergey@tphost ~/code $ colorgcc maic.c
^C
Actual Results:  
Hang-up. Ctrl+c to break.

Expected Results:  
Сolorgcc fast terminate and an error message.

colorgcc version: 1.3.2-r5

Colorgcc from upstream and from debian wheezy are working fine. It seems gentoo patches are broken.
Comment 1 Sergey Gusarov 2011-05-01 13:16:34 UTC
>Colorgcc from upstream and from debian wheezy are working fine.

I mean just copying a single file(colorgcc script) to a temporary location and run this script in my current gentoo-environment.

Also, colorgccrc not changed from default.
Comment 2 Jeroen Roovers (RETIRED) gentoo-dev 2011-05-02 17:02:24 UTC
1) Please post your `emerge --info' output too.
2) Please set LC_ALL=C and reproduce the output you provided in the Description.
Comment 3 Sergey Gusarov 2011-05-03 07:10:10 UTC
Jeroen Roovers, ok

sergey@tphost ~/code $ ls -l main.c 
-rw-r--r-- 1 sergey sergey 0 May  1 16:50 main.c
sergey@tphost ~/code $ gcc main.c 
/usr/lib/gcc/x86_64-pc-linux-gnu/4.5.2/../../../../lib64/crt1.o: In function `_start':
(.text+0x20): undefined reference to `main'
collect2: ld returned 1 exit status
sergey@tphost ~/code $ colorgcc main.c 
^C


# emerge --info colorgcc

Portage 2.1.9.46 (default/linux/amd64/10.0, gcc-4.5.2, libc-0-r0, 2.6.38.3 x86_64)
=================================================================
                        System Settings
=================================================================
System uname: Linux-2.6.38.3-x86_64-Intel-R-_Core-TM-_i3_CPU_M_390_@_2.67GHz-with-gentoo-2.0.2
Timestamp of tree: Mon, 02 May 2011 21:00:01 +0000
app-shells/bash:     4.2_p8-r1
dev-java/java-config: 2.1.11-r3
dev-lang/python:     2.7.1-r1, 3.1.3-r1
dev-util/cmake:      2.8.4-r1
sys-apps/baselayout: 2.0.2
sys-apps/openrc:     0.8.2
sys-apps/sandbox:    2.5
sys-devel/autoconf:  2.13, 2.68
sys-devel/automake:  1.9.6-r3, 1.10.3, 1.11.1-r1
sys-devel/binutils:  2.21
sys-devel/gcc:       4.5.2
sys-devel/gcc-config: 1.4.1-r1
sys-devel/libtool:   2.4-r1
sys-devel/make:      3.82
sys-kernel/linux-headers: 2.6.38
sys-libs/glibc:      2.13-r2
virtual/os-headers:  0
ACCEPT_KEYWORDS="amd64 ~amd64"
ACCEPT_LICENSE="*"
CBUILD="x86_64-pc-linux-gnu"
CFLAGS="-march=native -fomit-frame-pointer -O2"
CHOST="x86_64-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/share/config /usr/share/gnupg/qualified.txt"
CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /etc/env.d /etc/env.d/java/ /etc/fonts/fonts.conf /etc/gconf /etc/gentoo-release /etc/revdep-rebuild /etc/sandbox.d /etc/splash /etc/terminfo"
CXXFLAGS="-march=native -fomit-frame-pointer -O2"
DISTDIR="/usr/portage/distfiles"
EMERGE_DEFAULT_OPTS="-j4"
FEATURES="assume-digests binpkg-logs candy distlocks fixlafiles fixpackages news parallel-fetch protect-owned sandbox sfperms strict unknown-features-warn unmerge-logs unmerge-orphans userfetch"
FFLAGS=""
GENTOO_MIRRORS="ftp://mirror.bks-tv.ru/gentoo-distfiles"
LANG="ru_RU.UTF-8"
LDFLAGS="-Wl,-O1 -Wl,--as-needed"
LINGUAS="en ru"
MAKEOPTS="-j5 -s"
PKGDIR="/usr/portage/packages"
PORTAGE_CONFIGROOT="/"
PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times --compress --force --whole-file --delete --stats --timeout=180 --exclude=/distfiles --exclude=/local --exclude=/packages"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
PORTDIR_OVERLAY=""
SYNC="rsync://mirror.bks-tv.ru/gentoo-portage"
USE="X a52 aac acpi alsa amd64 apm bash-completion bazaar berkdb bluetooth branding bzip2 cairo cdda cli cracklib crypt css cups cvs cxx dbus device-mapper dga djvu dri dts dvd encode exif extras fam fbcon ffmpeg flac fontconfig ftp gd gdbm gdu geoip gif gimp git gnome gnutls gstreamer gtk hdaps hddtemp iconv icq icu idn jabber jadetex java javascript jingle jpeg jpeg2k kde lm_sensors lzma lzo mad matroska mercurial mmap mmx mng modules mozilla mp3 mp4 mpeg mplayer mudflap multilib musepack mysql nautilus ncurses netboot networkmanager nfs nls nntp nptl nptlonly ogg opengl openmp oscar pam pch pcmcia pcre pda pdf perl png policykit posix private-headers python qt3support qt4 rar raw rdesktop readline samba session smp sockets socks5 sound spell sqlite sqlite3 sse sse2 sse3 sse4 ssl ssse3 subversion suid svg sysfs syslog tcpd theora threads tiff tk truetype udev unicode usb v4l v4l2 vcd vnc vorbis webkit wifi wmf wxwidgets x264 xcb xine xml xorg xpm xscreensaver xvid zlib" ALSA_CARDS="hda-intel" ALSA_PCM_PLUGINS="adpcm alaw asym copy dmix dshare dsnoop empty extplug file hooks iec958 ioplug ladspa lfloat linear meter mmap_emul mulaw multi null plug rate route share shm softvol" APACHE2_MODULES="actions alias auth_basic authn_alias authn_anon authn_dbm authn_default authn_file authz_dbm authz_default authz_groupfile authz_host authz_owner authz_user autoindex cache cgi cgid dav dav_fs dav_lock deflate dir disk_cache env expires ext_filter file_cache filter headers include info log_config logio mem_cache mime mime_magic negotiation rewrite setenvif speling status unique_id userdir usertrack vhost_alias" CAMERAS="ptp2" COLLECTD_PLUGINS="df interface irq load memory rrdtool swap syslog" ELIBC="glibc" GPSD_PROTOCOLS="ashtech aivdm earthmate evermore fv18 garmin garmintxt gpsclock itrax mtk3301 nmea ntrip navcom oceanserver oldstyle oncore rtcm104v2 rtcm104v3 sirf superstar2 timing tsip tripmate tnt ubx" INPUT_DEVICES="evdev synaptics" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LINGUAS="en ru" PHP_TARGETS="php5-3" RUBY_TARGETS="ruby18" USERLAND="GNU" VIDEO_CARDS="fbdev intel vesa" XTABLES_ADDONS="quota2 psd pknock lscan length2 ipv4options ipset ipp2p iface geoip fuzzy condition tee tarpit sysrq steal rawnat logmark ipmark dhcpmac delude chaos account" 
Unset:  CPPFLAGS, CTARGET, INSTALL_MASK, LC_ALL, PORTAGE_BUNZIP2_COMMAND, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS

=================================================================
                        Package Settings
=================================================================

dev-util/colorgcc-1.3.2-r5 was built with the following:
USE="(multilib)"
Comment 4 Jeroen Roovers (RETIRED) gentoo-dev 2011-05-06 03:51:27 UTC
You should put /usr/lib/colorgcc/bin in your PATH.
Comment 5 Jeroen Roovers (RETIRED) gentoo-dev 2011-05-06 03:52:04 UTC
Oh, and you shouldn't run it as a direct replacement for gcc and so on.
Comment 6 Sergey Gusarov 2011-05-06 15:47:44 UTC
>Oh, and you shouldn't run it as a direct replacement for gcc and so on.

Strange. But i can do so in Debian and ArchLinux.