Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 51398 - gcc 3.3.3-r3 won't compile anything, cannot create executables
Summary: gcc 3.3.3-r3 won't compile anything, cannot create executables
Status: RESOLVED DUPLICATE of bug 49363
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] GCC Porting (show other bugs)
Hardware: x86 Linux
: High critical (vote)
Assignee: Please assign to toolchain
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2004-05-18 09:11 UTC by Frogman
Modified: 2005-07-17 13:06 UTC (History)
0 users

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 Frogman 2004-05-18 09:11:32 UTC
When I try to emerge something I get this error:
detail: ACCEPT_KEYWORDS="~x86"

Frogman gcc # emerge -uv  module-init-tools
Calculating dependencies ...done!
>>> emerge (1 of 1) sys-apps/module-init-tools-3.0-r2 to /
>>> md5 src_uri ;-) module-init-tools-3.0.tar.bz2
>>> md5 src_uri ;-) modutils-2.4.26.tar.bz2
>>> Unpacking source...
....
....
 * Building modutils...
configure: WARNING: If you wanted to set the --build type, don't use --host.
    If a cross compiler is detected then cross compile mode will be used.
checking build system type... i686-pc-linux-gnu
checking host system type... i686-pc-linux-gnu
checking target system type... i686-pc-linux-gnu
checking for i686-pc-linux-gnu-gcc... gcc
checking for C compiler default output... configure: error: C compiler cannot create executables
See `config.log' for more details.

!!! ERROR: sys-apps/module-init-tools-3.0-r2 failed.
!!! Function econf, Line 365, Exitcode 77
!!! econf failed

It won't even work when gcc should compile the most simple c file:

test.c:
#include <stdio.h>
#include <string.h>
int main(){ printf("test"); }

Frogman C # gcc test.c 
/usr/lib/gcc-lib/i686-pc-linux-gnu/3.3.3/../../../../i686-pc-linux-gnu/bin/ld: unrecognized option '--as-needed'
/usr/lib/gcc-lib/i686-pc-linux-gnu/3.3.3/../../../../i686-pc-linux-gnu/bin/ld: use the --help option for usage information
collect2: ld returned 1 exit status

I cannot emerge anymore and how should I fix this? (I'm going to try to install a good gcc manually and roll a version back)

Reproducible: Always
Steps to Reproduce:
1.emerge -u world
2.
3.

Actual Results:  
it gives an error and the emerge process stops

Expected Results:  
update my system

Portage 2.0.50-r6 (default-x86-1.4, gcc-3.3.3, glibc-2.3.3_pre20040420-r0,
2.4.26_pre6-gentoo)
=================================================================
System uname: 2.4.26_pre6-gentoo i686 AMD Duron(tm) processor
Gentoo Base System version 1.4.3.13
distcc 2.14 i686-pc-linux-gnu (protocols 1 and 2) (default port 3632) [disabled]
ccache version 2.3 [enabled]
Autoconf: sys-devel/autoconf-2.59-r3
Automake: sys-devel/automake-1.8.3
ACCEPT_KEYWORDS="x86 ~x86"
AUTOCLEAN="yes"
CFLAGS="-O3 -march=i686 -funroll-loops -pipe"
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
/var/qmail/control"
CONFIG_PROTECT_MASK="/etc/gconf /etc/terminfo /etc/env.d"
CXXFLAGS="-O3 -march=i686 -funroll-loops -pipe"
DISTDIR="/usr/portage/distfiles"
FEATURES="autoaddcvs ccache sandbox"
GENTOO_MIRRORS="http://ftp.belnet.be/mirror/rsync.gentoo.org/gentoo
ftp://ftp.tu-clausthal.de/pub/linux/gentoo/ ftp://ftp.uninett.no/pub/linux/Gentoo"
MAKEOPTS="-j2"
PKGDIR="/usr/portage/packages"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
PORTDIR_OVERLAY=""
SYNC="rsync://rsync.gentoo.org/gentoo-portage"
USE="3dnow X aalib alsa apache2 avi berkdb bonobo cdr crypt cups dga doc dvd
encode flash foomaticdb gdbm gif gnome gpm gtk gtk2 gtkhtml guile icq imlib ipv6
jabber java jpeg kde ldap libg++ libwww mad mikmod mmx motif mozilla mpeg msn
mysql ncurses nls nocd oggvorbis opengl oss pam pdflib perl png pnp python qt
quicktime readline samba sdl slang sse ssl svga tcpd truetype x86 xml xml2 xmms
xv zlib"
Comment 1 Simone Gotti (RETIRED) gentoo-dev 2004-05-18 09:47:02 UTC
Hi, I've noticed that the problem is caused by some versions of binutils.

sys-devel/binutils-2.14.90.0.8-r1 

I'ver installed the 
sys-devel/binutils-2.15.90.0.3-r1

and all worked, the problem is that by some days my sistem wants to Downgrade to the old ones, and I have to block it.

So please try to emerge this version.

Bye!
Comment 2 Simone Gotti (RETIRED) gentoo-dev 2004-05-18 09:55:31 UTC
http://forums.gentoo.org/viewtopic.php?t=166696

Bye!
Comment 3 SpanKY gentoo-dev 2004-05-18 16:52:23 UTC

*** This bug has been marked as a duplicate of 49363 ***