Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 91342 - gcc installation problem or missing component ?
Summary: gcc installation problem or missing component ?
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Core system (show other bugs)
Hardware: All Linux
: High normal (vote)
Assignee: AMD64 Project
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2005-05-03 12:31 UTC by romain
Modified: 2005-05-07 12:54 UTC (History)
0 users

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


Attachments
Some more data about the problem ncurse config.log (ncurses.log,2.67 KB, text/plain)
2005-05-03 14:00 UTC, romain
Details
AN other exemple of failure with sandbox (sandbox.log,7.55 KB, text/plain)
2005-05-03 14:08 UTC, romain
Details

Note You need to log in before you can comment on or make changes to this bug.
Description romain 2005-05-03 12:31:58 UTC
I tryed today to update my computer and run on seripus problem with gcc.

When I tried to compile anything I have the following message when trying to update bin utils :

checking whether the C compiler (gcc -march=k8 -O2 -pipe ) works... no
configure: error: installation or configuration problem: C compiler cannot create executables.

when i tried to build ncurses :
checking build system type... Invalid configuration `x86_64-unknown-linux-glibc': machine `x86_64-unknown-linux' not recognized
configure: error: /bin/sh /var/tmp/portage/ncurses-5.4.20050319/work/ncurses-5.4/config.sub x86_64-unknown-linux-glibc failed.

So i thought that something was wrong with my glibc so i tried to rebuild it
didn' worked out :

checking for suffix of object files... configure: error: cannot compute 
f object files: cannot compile

So i don't know if it's my conf or a bug any help would be greatly appreciate.


Here are some more infos :

Portage 2.0.51.19 (default-linux/amd64/2004.3, gcc-3.4.3, glibc-2.3.4.20050125-r1, 2.6.10-gentoo-r6 x86_64)
=================================================================
System uname: 2.6.10-gentoo-r6 x86_64 AMD Athlon(tm) 64 Processor 3000+
Gentoo Base System version 1.6.10
Python:              dev-lang/python-2.3.5 [2.3.5 (#1, Feb 17 2005, 21:04:04)]
dev-lang/python:     2.3.5
sys-apps/sandbox:    [Not Present]
sys-devel/autoconf:  2.59-r6, 2.13
sys-devel/automake:  1.7.9-r1, 1.8.5-r3, 1.5, 1.4_p6, 1.6.3, 1.9.5
sys-devel/binutils:  2.15.92.0.2-r7
sys-devel/libtool:   1.5.14
virtual/os-headers:  2.6.8.1-r3
ACCEPT_KEYWORDS="amd64 ~amd64"
AUTOCLEAN="yes"
CFLAGS="-march=k8 -O3 -pipe"
CHOST="x86_64-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/kde/2/share/config /usr/kde/3.3/env /usr/kde/3.3/share/config /usr/kde/3.3/shutdown /usr/kde/3.4/env /usr/kde/3.4/share/config /usr/kde/3.4/shutdown /usr/kde/3/share/config /usr/lib/X11/xkb /usr/share/config /var/bind /var/qmail/control"
CONFIG_PROTECT_MASK="/etc/gconf /etc/terminfo /etc/env.d"
CXXFLAGS="-march=k8 -O3 -pipe"
DISTDIR="/usr/portage/distfiles"
FEATURES="autoaddcvs autoconfig ccache distlocks keeptemp sandbox strict"
GENTOO_MIRRORS="ftp://mir.zyrianes.net/gentoo/ http://gentoo.eliteitminds.com http://mir.zyrianes.net/gentoo/ http://ftp.heanet.ie/pub/gentoo/"
LANG="fr_FR.utf8"
LC_ALL="fr_FR.utf8"
LINGUAS="fr"
MAKEOPTS="-j2"
PKGDIR="/usr/portage/packages"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
SYNC="rsync://rsync.europe.gentoo.org/gentoo-portage"
USE="amd64 X aac acpi aim bash-completion berkdb bitmap-fonts bootsplash bzip2 cdr chroot cjk crypt curl dvd dvdr fam flac font-server fortran gif gpm gstreamer gtk gtk2 imagemagick imlib ipv6 jabber java jp2 jpeg kde lzw lzw-tiff mad mp3 ncurses nls nvidia ogg opengl oss pam perl png python qt readline samba ssl tcltk tcpd tiff truetype truetype-fonts type1-fonts unicode usb vorbis xinerama xml2 xmms xpm xrandr xv xvid zlib linguas_fr userland_GNU kernel_linux libc_glibc"
Unset:  ASFLAGS, CBUILD, CTARGET, LDFLAGS, PORTDIR_OVERLAY
Comment 1 romain 2005-05-03 14:00:27 UTC
Created attachment 57963 [details]
Some more data about the problem ncurse config.log

Configuring NCURSES 5.4 ABI 5 (Tue May	3 22:57:14 CEST 2005)
checking build system type... Invalid configuration
`x86_64-unknown-linux-glibc': machine `x86_64-unknown-linux' not recognized
configure: error: /bin/sh
/var/tmp/portage/ncurses-5.4.20050319/work/ncurses-5.4/config.sub
x86_64-unknown-linux-glibc failed.
Comment 2 romain 2005-05-03 14:08:20 UTC
Created attachment 57965 [details]
AN other exemple of failure with sandbox
Comment 3 Daniel Gryniewicz (RETIRED) gentoo-dev 2005-05-03 17:16:01 UTC
From the second log file, it looks like you lost your symlinks in /usr/bin for, at least, as.  I have this:
addr2line -> x86_64-pc-linux-gnu-addr2line
ar -> x86_64-pc-linux-gnu-ar
as -> x86_64-pc-linux-gnu-as
c++filt -> x86_64-pc-linux-gnu-c++filt
gprof -> x86_64-pc-linux-gnu-gprof
ld -> x86_64-pc-linux-gnu-ld
nm -> x86_64-pc-linux-gnu-nm
objcopy -> x86_64-pc-linux-gnu-objcopy
objdump -> x86_64-pc-linux-gnu-objdump
ranlib -> x86_64-pc-linux-gnu-ranlib
readelf -> x86_64-pc-linux-gnu-readelf
size -> x86_64-pc-linux-gnu-size
strings -> x86_64-pc-linux-gnu-strings
strip -> x86_64-pc-linux-gnu-strip
Comment 4 romain 2005-05-04 11:05:58 UTC
Right the symlinks are gone ... don't know how it happen.

i have tryied to recreate and it seems to work out. I'll try dig a little more and report back ...
Comment 5 romain 2005-05-05 01:47:48 UTC
Ok the fie correct most of the bugs but I still have issue with gcc when trying to compile it with multilib support I get the following error :

/usr/x86_64-pc-linux-gnu/bin/ld: skipping incompatible /usr/lib/gcc/x86_64-pc-linux-gnu/3.4.3/../../../libc.so when searching for -lc
/usr/x86_64-pc-linux-gnu/bin/ld: skipping incompatible /usr/lib/gcc/x86_64-pc-linux-gnu/3.4.3/../../../libc.a when searching for -lc
/usr/x86_64-pc-linux-gnu/bin/ld: skipping incompatible /usr/lib/libc.so when searching for -lc
/usr/x86_64-pc-linux-gnu/bin/ld: skipping incompatible /usr/lib/libc.a when searching for -lc
/usr/x86_64-pc-linux-gnu/bin/ld: cannot find -lc


It seems ld ignore my libc ... i don't know why ...

Comment 6 romain 2005-05-05 02:16:11 UTC
If anyone has the same problem than the answer is here
http://www.mail-archive.com/gentoo-amd64@gentoo.org/msg01253.html

quoting :
"
I had that same problem. I had to re-emerge emulx-linux-x86-glibc under
the 2004.3 profile, then re-emerge glibc and gcc.. then I started the
upgrade tutorial.  Granted I never figured out the exact reason for my
problem, that seemed to fix it.
"
Comment 7 romain 2005-05-07 12:54:56 UTC
Ok nothing more to say about it ... =)