Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 155394 - Cannot emerge gcc/glibc/zlib
Summary: Cannot emerge gcc/glibc/zlib
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Core system (show other bugs)
Hardware: All Linux
: High normal (vote)
Assignee: Gentoo Toolchain Maintainers
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2006-11-16 11:03 UTC by BlinkEye
Modified: 2006-11-17 02:11 UTC (History)
0 users

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


Attachments
gcc emerge log (sys-devel:gcc-4.1.1-r1:20061116-181820.log,21.88 KB, text/plain)
2006-11-16 11:04 UTC, BlinkEye
Details
zlib emerge log (sys-libs:zlib-1.2.3-r1:20061116-183904.log,8.52 KB, text/plain)
2006-11-16 11:04 UTC, BlinkEye
Details
glibc emerge log (sys-libs:glibc-2.4-r4:20061116-183912.log,54.57 KB, text/plain)
2006-11-16 11:05 UTC, BlinkEye
Details
libpcre emerge log (dev-libs:libpcre-6.6:20061116-181430.log,20.09 KB, text/plain)
2006-11-16 11:06 UTC, BlinkEye
Details

Note You need to log in before you can comment on or make changes to this bug.
Description BlinkEye 2006-11-16 11:03:07 UTC
It's both embarassing and annoying I need to bother you. 
After I installed oracle with a couple of problems I'm now encountering more and more problems. It started with ddd just hanging and I couldn't re-emerge it (although I succeeded in about the 4th try in a row ...). Now I tried to update but it fails on any package. I tried to

# emerge gcc 

but it fails. So I tried to 

# emerge -e system

but it fails on the very first package (zlib). I then tried to 

# emerge -e glibc

but that fails too.

I'm not really sure if it's oracle related but at least this was a major impact on the system - I'm open to any suggestion.

I removed the ccache and set the CFLAGS from originally (with which I built the system):

CFLAGS="-march=pentium4 -Os -pipe"

to 

CFLAGS="-march=pentium4 -O2 -pipe"


# emerge --info
Portage 2.1.1-r1 (default-linux/x86/2006.1, gcc-4.1.1, glibc-2.4-r4, 2.6.17.6 i686)
=================================================================
System uname: 2.6.17.6 i686 Intel(R) Pentium(R) 4 CPU 3.40GHz
Gentoo Base System version 1.12.6
Last Sync: Thu, 16 Nov 2006 01:48:01 +0000
ccache version 2.3 [disabled]
app-admin/eselect-compiler: [Not Present]
dev-java/java-config: [Not Present]
dev-lang/python:     2.4.3-r4
dev-python/pycrypto: 2.0.1-r5
dev-util/ccache:     2.3
dev-util/confcache:  [Not Present]
sys-apps/sandbox:    1.2.17
sys-devel/autoconf:  2.13, 2.60
sys-devel/automake:  1.4_p6, 1.5, 1.6.3, 1.7.9-r1, 1.8.5-r3, 1.9.6-r2
sys-devel/binutils:  2.16.1-r3
sys-devel/gcc-config: 1.3.13-r4
sys-devel/libtool:   1.5.22
virtual/os-headers:  2.6.17-r1
ACCEPT_KEYWORDS="x86"
AUTOCLEAN="yes"
CBUILD="i686-pc-linux-gnu"
CFLAGS="-march=pentium4 -O2 -pipe"
CHOST="i686-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/kde/3.5/env /usr/kde/3.5/share/config /usr/kde/3.5/shutdown /usr/share/X11/xkb"
CONFIG_PROTECT_MASK="/etc/env.d /etc/gconf /etc/revdep-rebuild /etc/splash /etc/terminfo"
CXXFLAGS="-march=pentium4 -O2 -pipe"
DISTDIR="/usr/portage/distfiles"
FEATURES="autoconfig buildpkg distlocks metadata-transfer nostrip parallel-fetch sandbox sfperms strict"
GENTOO_MIRRORS="http://mirror.switch.ch/ftp/mirror/gentoo/ http://gentoo.mirror.solnet.ch http://www.gtlib.gatech.edu/pub/gentoo"
LANG="POSIX"
MAKEOPTS="-j2"
PKGDIR="/usr/portage/packages"
PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times --compress --force --whole-file --delete --delete-after --stats --timeout=180 --exclude='/distfiles' --exclude='/local' --exclude='/packages'"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
PORTDIR_OVERLAY="/usr/local/portage"
SYNC="rsync://rsync.europe.gentoo.org/gentoo-portage"
USE="x86 X alsa bash-completion berkdb bitmap-fonts cli cracklib crypt cscope cups dlloader dri elibc_glibc gdbm gif gpm gtk+ iconv input_devices_evdev input_devices_keyboard input_devices_mouse ipv6 isdnlog kde kernel_linux libg++ ncurses nls nptl nptlonly ntpl nv nvidia oracle pam pcre perforce perl pic ppds pppd python qt3 readline reflection samba session spl ssl syslog tcpd truetype-fonts type1-fonts udev unicode userland_GNU video_cards_nv video_cards_nvidia xinerama xorg zlib"
Unset:  CTARGET, EMERGE_DEFAULT_OPTS, INSTALL_MASK, LC_ALL, LDFLAGS, LINGUAS, PORTAGE_RSYNC_EXTRA_OPTS
Comment 1 BlinkEye 2006-11-16 11:04:07 UTC
Created attachment 102131 [details]
gcc emerge log
Comment 2 BlinkEye 2006-11-16 11:04:31 UTC
Created attachment 102132 [details]
zlib emerge log
Comment 3 BlinkEye 2006-11-16 11:05:05 UTC
Created attachment 102133 [details]
glibc emerge log
Comment 4 BlinkEye 2006-11-16 11:06:05 UTC
Created attachment 102134 [details]
libpcre emerge log
Comment 5 SpanKY gentoo-dev 2006-11-16 11:34:44 UTC
i really havent a clue why your system is so broken
Comment 6 Kevin F. Quinn (RETIRED) gentoo-dev 2006-11-16 13:06:12 UTC
I notice it's using 'g++' to compile .c files, which is bizarre...

g++ -march=pentium4 -O2 -pipe -DHAS_attribute_visibility -fvisibility=hidden   -c -o example.o example.c
(zlib)

g++ -c -DHAVE_CONFIG_H -march=pentium4 -pipe -O2 -I. -I/var/tmp/portage/gcc-4.1.1-r1/work/gcc-4.1.1/libiberty/../include  -W -Wall -pedantic -Wwrite-strings -Wstrict-prototypes /var/tmp/portage/gcc-4.1.1-r1/work/gcc-4.1.1/libiberty/regex.c -o regex.o
(gcc)

g++ /var/tmp/portage/glibc-2.4-r4/work/build-default-i686-pc-linux-gnu-nptl/csu/crti.S -c  -I../include -I/var/tmp/portage/glibc-2.4-r4/work/build-default-i686-pc-linux-gnu-nptl/csu -I/var/tmp/portage/glibc-2.4-r4/work/build-default-i686-pc-linux-gnu-nptl -I../sysdeps/i386/elf -I../nptl/sysdeps/unix/sysv/linux/i386/i686 -I../nptl/sysdeps/unix/sysv/linux/i386 -I../sysdeps/unix/sysv/linux/i386 -I../ports/sysdeps/unix/sysv/linux -I../nptl/sysdeps/unix/sysv/linux -I../nptl/sysdeps/pthread -I../sysdeps/pthread -I../sysdeps/unix/sysv/linux -I../sysdeps/gnu -I../sysdeps/unix/common -I../sysdeps/unix/mman -I../sysdeps/unix/inet -I../ports/sysdeps/unix/sysv/i386 -I../sysdeps/unix/sysv/i386 -I../ports/sysdeps/unix/sysv -I../nptl/sysdeps/unix/sysv -I../sysdeps/unix/sysv -I../sysdeps/unix/i386 -I../ports/sysdeps/unix -I../nptl/sysdeps/unix -I../sysdeps/unix -I../sysdeps/posix -I../sysdeps/i386/i686/fpu -I../nptl/sysdeps/i386/i686 -I../sysdeps/i386/i686 -I../sysdeps/i386/i486 -I../nptl/sysdeps/i386/i486 -I../sysdeps/i386/fpu -I../nptl/sysdeps/i386 -I../sysdeps/i386 -I../sysdeps/wordsize-32 -I../sysdeps/ieee754/ldbl-96 -I../sysdeps/ieee754/dbl-64 -I../sysdeps/ieee754/flt-32 -I../sysdeps/ieee754 -I../sysdeps/generic/elf -I../sysdeps/generic -I../ports -I../nptl  -I.. -I../libio -I. -nostdinc -isystem /usr/lib/gcc/i686-pc-linux-gnu/4.1.1/include -isystem /usr/include -D_LIBC_REENTRANT -include ../include/libc-symbols.h       -DHAVE_INITFINI -DASSEMBLER  -I/var/tmp/portage/glibc-2.4-r4/work/build-default-i686-pc-linux-gnu-nptl/csu/. -DGAS_SYNTAX  -Wa,--noexecstack -Wa,--noexecstack  -g0  -o /var/tmp/portage/glibc-2.4-r4/work/build-default-i686-pc-linux-gnu-nptl/csu/crti.o
(glibc)


Dunno what might be causing that.  One idea - check that 'CC' isn't set in the environment anywhere (/etc/make.conf, /etc/bashrc etc).
Comment 7 SpanKY gentoo-dev 2006-11-16 14:26:56 UTC
good catch ... if you use C++ to compile C code, things will fall apart quickly
Comment 8 BlinkEye 2006-11-17 02:11:32 UTC
Hi guys

THANKS a lot for your prompt answers and your time. Its as you suggested an environment error (a script from the user I was su-ing was setting CC to g++), which could be solved by unsetting CC.