Forums

Skip to content

Advanced search
  • Quick links
    • Unanswered topics
    • Active topics
    • Search
  • FAQ
  • Login
  • Register
  • Board index Assistance Portage & Programming
  • Search

gcc broken, how?

Problems with emerge or ebuilds? Have a basic programming question about C, PHP, Perl, BASH or something else?
Post Reply
Advanced search
4 posts • Page 1 of 1
Author
Message
reub2000
Guru
Guru
Posts: 364
Joined: Sat Jan 31, 2004 5:41 am

gcc broken, how?

  • Quote

Post by reub2000 » Thu Jan 04, 2007 9:27 am

GCC broke and can't compile anything, not even gcc.

Here is the error I get:

Code: Select all

 * Configuring GCC with:
        --prefix=/usr
        --bindir=/usr/i686-pc-linux-gnu/gcc-bin/4.1.1
        --includedir=/usr/lib/gcc/i686-pc-linux-gnu/4.1.1/include
        --datadir=/usr/share/gcc-data/i686-pc-linux-gnu/4.1.1
        --mandir=/usr/share/gcc-data/i686-pc-linux-gnu/4.1.1/man
        --infodir=/usr/share/gcc-data/i686-pc-linux-gnu/4.1.1/info
        --with-gxx-include-dir=/usr/lib/gcc/i686-pc-linux-gnu/4.1.1/include/g++-v4
        --host=i686-pc-linux-gnu
        --build=i686-pc-linux-gnu
        --disable-altivec
        --enable-nls
        --without-included-gettext
        --with-system-zlib
        --disable-checking
        --disable-werror
        --enable-secureplt
        --disable-libunwind-exceptions
        --disable-multilib
        --disable-libmudflap
        --disable-libssp
        --enable-languages=c,c++,java,fortran
        --enable-shared
        --enable-threads=posix
        --enable-__cxa_atexit
        --enable-clocale=gnu

creating cache ./config.cache
checking host system type... i686-pc-linux-gnu
checking target system type... i686-pc-linux-gnu
checking build system type... i686-pc-linux-gnu
checking for a BSD compatible install... /bin/install -c
checking whether ln works... yes
checking whether ln -s works... yes
checking for gcc... gcc
checking whether the C compiler (gcc -O2 -march=athlon-xp -pipe ) works... no
configure: error: installation or configuration problem: C compiler cannot create executables.

!!! ERROR: sys-devel/gcc-4.1.1-r1 failed.
Call stack:
  ebuild.sh, line 1546:   Called dyn_compile
  ebuild.sh, line 937:   Called src_compile
  ebuild.sh, line 1255:   Called toolchain_src_compile
  toolchain.eclass, line 24:   Called gcc_src_compile
  toolchain.eclass, line 1529:   Called gcc_do_configure
  toolchain.eclass, line 1329:   Called die

!!! failed to run configure
!!! If you need support, post the topmost build error, and the call stack if relevant.
Here is the contents of emerge info:

Code: Select all

localhost ~ # emerge --info
Portage 2.1.1-r2 (default-linux/x86/2006.1, gcc-3.4.1, glibc-2.4-r4, 2.6.19-ck2 i686)
=================================================================
System uname: 2.6.19-ck2 i686 AMD Athlon(tm) 64 Processor 3000+
Gentoo Base System version 1.12.6
Last Sync: Wed, 03 Jan 2007 21:20:01 +0000
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:     [Not Present]
dev-util/confcache:  [Not Present]
sys-apps/sandbox:    1.2.17
sys-devel/autoconf:  2.13, 2.61
sys-devel/automake:  1.4_p6, 1.5, 1.6.3, 1.7.9-r1, 1.8.5-r3, 1.9.6-r2, 1.10
sys-devel/binutils:  2.16.1-r3
sys-devel/gcc-config: 1.3.14
sys-devel/libtool:   1.5.22
virtual/os-headers:  2.6.17-r2
ACCEPT_KEYWORDS="x86"
AUTOCLEAN="yes"
CBUILD="i686-pc-linux-gnu"
CFLAGS="-O2 -march=athlon-xp -msse2 -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 /usr/share/config"
CONFIG_PROTECT_MASK="/etc/env.d /etc/gconf /etc/terminfo /etc/texmf/web2c"
CXXFLAGS="-O2 -march=athlon-xp -msse2 -pipe"
DISTDIR="/usr/portage/distfiles"
FEATURES="autoconfig distlocks metadata-transfer sandbox sfperms strict"
GENTOO_MIRRORS="http://distro.ibiblio.org/pub/linux/distributions/gentoo/ http://mirror.datapipe.net/gentoo http://mirror.datapipe.net/gentoo http://gentoo.mirrors.tds.net/gentoo http://gentoo.arcticnetwork.ca/"
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 /usr/local/vmware /usr/portage/local/layman/xeffects"
SYNC="rsync://rsync.us.gentoo.org/gentoo-portage"
USE="x86 3dnow X aac alsa alsa_cards_ak4114 alsa_cards_ice1724 alsa_pcm_plugins_adpcm alsa_pcm_plugins_alaw alsa_pcm_plugins_asym alsa_pcm_plugins_copy alsa_pcm_plugins_dmix alsa_pcm_plugins_dshare alsa_pcm_plugins_dsnoop alsa_pcm_plugins_empty alsa_pcm_plugins_extplug alsa_pcm_plugins_file alsa_pcm_plugins_hooks alsa_pcm_plugins_iec958 alsa_pcm_plugins_ioplug alsa_pcm_plugins_ladspa alsa_pcm_plugins_lfloat alsa_pcm_plugins_linear alsa_pcm_plugins_meter alsa_pcm_plugins_mulaw alsa_pcm_plugins_multi alsa_pcm_plugins_null alsa_pcm_plugins_plug alsa_pcm_plugins_rate alsa_pcm_plugins_route alsa_pcm_plugins_share alsa_pcm_plugins_shm alsa_pcm_plugins_softvol apache2 asm bash-completion berkdb bitmap-fonts bzip2 cdr cjk cli cracklib crypt cups dbus dlloader dri dvd dvdr dvdread elibc_glibc exif ffmpeg firefox flac foomatic fortran gcj gdbm gif gimp glut glx gphoto2 gpm gtk2 hal iconv immqt-bc input_devices_keyboard input_devices_mouse isdnlog jpeg jpeg2k kde kernel_linux lcms libg++ matroska mmx mozilla mozsvg mp3 musicbrainz mysql mysqli ncurses nls nptl nptlonly nsplugin offensive ogg opengl pam pcre pdf perl php png ppds pppd python qt readline reflection samba sdl session spl sqlite sse ssl subversion svg tcpd tetex tiff truetype truetype-fonts type1-fonts udev unicode usb userland_GNU video_cards_nv video_cards_nvidia video_cards_vesa vorbis win32codecs wxgtk xinerama xorg xprint xscreensaver xvid zlib"
Unset:  CTARGET, EMERGE_DEFAULT_OPTS, INSTALL_MASK, LANG, LC_ALL, LDFLAGS, LINGUAS, PORTAGE_RSYNC_EXTRA_OPTS
Edit: It seems that the mingw32 compiler was causing the problem. Unmerge cross-mingw32/gcc solved the problem.
Top
didymos
Advocate
Advocate
User avatar
Posts: 4798
Joined: Mon Oct 10, 2005 2:09 am
Location: California

  • Quote

Post by didymos » Thu Jan 04, 2007 9:52 am

Try running gcc-config and having it update the wrappers, then env-update && source /etc/profile. I don't what context this is occuring in: did you just install gentoo or do a big update?
Thomas S. Howard
Top
thestick
Guru
Guru
User avatar
Posts: 531
Joined: Fri Apr 07, 2006 2:14 pm
Location: /dev/urandom

  • Quote

Post by thestick » Thu Jan 04, 2007 11:56 am

try unsetting CFLAGS and LDFLAGS .. just to test if crazy CFLAGS/LDFLAGS would be the cause
Top
reub2000
Guru
Guru
Posts: 364
Joined: Sat Jan 31, 2004 5:41 am

  • Quote

Post by reub2000 » Thu Jan 04, 2007 12:17 pm

I traced the issue to cross-mingw32/gcc-3.4.1. Somehow it made my system think the mingw32 compiler was the main compiler. The cross-compiler must be why the emerge info that I posted shows the gcc compiler to be 3.4.1 even though I have sys-devel/gcc-4.1.1-r1 installed.

According to this bug, the older version of the cross-compiler isn't supported.
Top
Post Reply

4 posts • Page 1 of 1

Return to “Portage & Programming”

Jump to
  • Assistance
  • ↳   News & Announcements
  • ↳   Frequently Asked Questions
  • ↳   Installing Gentoo
  • ↳   Multimedia
  • ↳   Desktop Environments
  • ↳   Networking & Security
  • ↳   Kernel & Hardware
  • ↳   Portage & Programming
  • ↳   Gamers & Players
  • ↳   Other Things Gentoo
  • ↳   Unsupported Software
  • Discussion & Documentation
  • ↳   Documentation, Tips & Tricks
  • ↳   Gentoo Chat
  • ↳   Gentoo Forums Feedback
  • ↳   Duplicate Threads
  • International Gentoo Users
  • ↳   中文 (Chinese)
  • ↳   Dutch
  • ↳   Finnish
  • ↳   French
  • ↳   Deutsches Forum (German)
  • ↳   Diskussionsforum
  • ↳   Deutsche Dokumentation
  • ↳   Greek
  • ↳   Forum italiano (Italian)
  • ↳   Forum di discussione italiano
  • ↳   Risorse italiane (documentazione e tools)
  • ↳   Polskie forum (Polish)
  • ↳   Instalacja i sprzęt
  • ↳   Polish OTW
  • ↳   Portuguese
  • ↳   Documentação, Ferramentas e Dicas
  • ↳   Russian
  • ↳   Scandinavian
  • ↳   Spanish
  • ↳   Other Languages
  • Architectures & Platforms
  • ↳   Gentoo on ARM
  • ↳   Gentoo on PPC
  • ↳   Gentoo on Sparc
  • ↳   Gentoo on Alternative Architectures
  • ↳   Gentoo on AMD64
  • ↳   Gentoo for Mac OS X (Portage for Mac OS X)
  • Board index
  • All times are UTC
  • Delete cookies

© 2001–2026 Gentoo Foundation, Inc.

Powered by phpBB® Forum Software © phpBB Limited

Privacy Policy

 

 

magic