Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
[Solved] fail to emerge gcc and all other emerge things
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Installing Gentoo
View previous topic :: View next topic  
Author Message
bluephoenix
Tux's lil' helper
Tux's lil' helper


Joined: 01 Nov 2008
Posts: 75

PostPosted: Tue Jan 15, 2013 1:45 pm    Post subject: [Solved] fail to emerge gcc and all other emerge things Reply with quote

I think it is just after I "emerge -auvDN world" I face some problems:
1. fail to continue to emerge except "emerge --sync"
2. fail to make menuconfig in the linux-kernel compile process
3. I cannot automatically start my WLAN USB card. But after booting, rc -s net.wlan0 start is OK.

The wrong messages of emerge gcc is as following:

emerge gcc
Calculating dependencies... done!

>>> Verifying ebuild manifests

>>> Emerging (1 of 1) sys-devel/gcc-4.6.3
* gcc-4.6.3.tar.bz2 SHA256 SHA512 WHIRLPOOL size ;-) ... [ ok ]
* gcc-4.6.3-uclibc-patches-1.0.tar.bz2 SHA256 SHA512 WHIRLPOOL size ;-) ... ]
* gcc-4.6.3-patches-1.10.tar.bz2 SHA256 SHA512 WHIRLPOOL size ;-) ... [ ok ]
* gcc-4.6.3-piepatches-v0.5.2.tar.bz2 SHA256 SHA512 WHIRLPOOL size ;-) ... [ ]
* gcc-4.4.3-specs-0.2.0.tar.bz2 SHA256 SHA512 WHIRLPOOL size ;-) ... [ ok ]
*
* LTO support is still experimental and unstable.
* Any bugs resulting from the use of LTO will not be fixed.
*
>>> Unpacking source...
>>> Unpacking gcc-4.6.3.tar.bz2 to /var/tmp/portage/sys-devel/gcc-4.6.3/work
>>> Unpacking gcc-4.6.3-patches-1.10.tar.bz2 to /var/tmp/portage/sys-devel/gcc-k
>>> Unpacking gcc-4.6.3-uclibc-patches-1.0.tar.bz2 to /var/tmp/portage/sys-devek
>>> Unpacking gcc-4.6.3-piepatches-v0.5.2.tar.bz2 to /var/tmp/portage/sys-develk
>>> Unpacking gcc-4.4.3-specs-0.2.0.tar.bz2 to /var/tmp/portage/sys-devel/gcc-4k
* Applying Gentoo patches ...
* 01_all_joined-cpp-defs.patch ... [ ok ]
* 05_all_gcc-4.6.x-siginfo.patch ... [ ok ]
* 10_all_default-fortify-source.patch ... [ ok ]
* 11_all_default-warn-format-security.patch ... [ ok ]
* 12_all_default-warn-trampolines.patch ... [ ok ]
* 15_all_libgfortran-Werror.patch ... [ ok ]
* 15_all_libgomp-Werror.patch ... [ ok ]
* 16_all_libgo-Werror-pr53679.patch ... [ ok ]
* 25_all_alpha-mieee-default.patch ... [ ok ]
* 26_all_alpha-asm-mcpu.patch ... [ ok ]
* 29_all_arm_armv4t-default.patch ... [ ok ]
* 33_all_armhf.patch ... [ ok ]
* 34_all_ia64_note.GNU-stack.patch ... [ ok ]
* 38_all_sh_pr24836_all-archs.patch ... [ ok ]
* 39_all_cond-store-pr452445.patch ... [ ok ]
* 40_all_superh-mieee-default-fix-pr33135.patch ... [ ok ]
* 42_all_superh_default-multilib.patch ... [ ok ]
* 50_all_libiberty-asprintf.patch ... [ ok ]
* 51_all_libiberty-pic.patch ... [ ok ]
* 52_all_netbsd-Bsymbolic.patch ... [ ok ]
* 56_all_gcc-ppc-vector-pr48226.patch ... [ ok ]
* 64_all_gcc-hppa-64bit-pr52408.patch ... [ ok ]
* 65_all_gcc-hppa-section-conflicts-pr52999.patch ... [ ok ]
* 74_all_gcc46_cloog-dl.patch ... [ ok ]
* 76_all_4.7.0_c-family-headers.patch ... [ ok ]
* 80_all_arm_4.7_pr50946_qt-webkit-ICE.patch ... [ ok ]
* 92_all_freebsd-pie.patch ... [ ok ]
* Done with patching
* Applying uClibc patches ...
* 90_all_100-uclibc-conf.patch ... [ ok ]
* 90_all_301-missing-execinfo_h.patch ... [ ok ]
* 90_all_302-c99-snprintf.patch ... [ ok ]
* 90_all_305-libmudflap-susv3-legacy.patch ... [ ok ]
* Done with patching
* Applying pie patches ...
* 10_all_gcc45_configure.patch ... [ ok ]
* 11_all_gcc45_config.in.patch ... [ ok ]
* 12_all_gcc46_Makefile.in.patch ... [ ok ]
* 13_all_gcc46_ssp_uclibc_check.patch ... [ ok ]
* 20_all_gcc46_gcc.c.patch ... [ ok ]
* 21_all_gcc44_decl-tls-model.patch ... [ ok ]
* 22_all_gcc46-default-ssp.patch ... [ ok ]
* 30_all_gcc46_esp.h.patch ... [ ok ]
* 33_all_gcc46_config_rs6000_linux64.h.patch ... [ ok ]
* 35_all_gcc46_config_crtbeginp.patch ... [ ok ]
* 60_all_gcc44_invoke.texi.patch ... [ ok ]
* Done with patching
* updating multilib directories to be: ../lib64 ../lib32
* Running elibtoolize in: gcc-4.6.3/
* Applying portage/2.2 patch ...
* Applying sed/1.5.6 patch ...
* Applying as-needed/2.2.6 patch ...
* Using GNU config files from /usr/share/gnuconfig
* Updating libjava/libltdl/config.sub [ ok ]
* Updating libjava/classpath/config.sub [ ok ]
* Updating config.sub [ ok ]
* Updating libjava/libltdl/config.guess [ ok ]
* Updating libjava/classpath/config.guess [ ok ]
* Updating config.guess [ ok ]
* Fixing misc issues in configure files
* Applying gcc-configure-texinfo.patch ... [ ok ]
* Touching generated files
* Touching gcc/cstamp-h.in
* Touching gcc/config.in
* Applying gcc-spec-env.patch ... [ ok ]
>>> Source unpacked in /var/tmp/portage/sys-devel/gcc-4.6.3/work
>>> Compiling source in /var/tmp/portage/sys-devel/gcc-4.6.3/work/gcc-4.6.3 ...
* CFLAGS=""
* CXXFLAGS=""
* Configuring gcc ...
* configuring for GCC_LANG: c,c++,fortran

* PREFIX: /usr
* BINPATH: /usr/x86_64-pc-linux-gnu/gcc-bin/4.6.3
* LIBPATH: /usr/lib/gcc/x86_64-pc-linux-gnu/4.6.3
* DATAPATH: /usr/share/gcc-data/x86_64-pc-linux-gnu/4.6.3
* STDCXX_INCDIR: /usr/lib/gcc/x86_64-pc-linux-gnu/4.6.3/include/g++-v4

* Configuring GCC with:
* --prefix=/usr
* --bindir=/usr/x86_64-pc-linux-gnu/gcc-bin/4.6.3
* --includedir=/usr/lib/gcc/x86_64-pc-linux-gnu/4.6.3/include
* --datadir=/usr/share/gcc-data/x86_64-pc-linux-gnu/4.6.3
* --mandir=/usr/share/gcc-data/x86_64-pc-linux-gnu/4.6.3/man
* --infodir=/usr/share/gcc-data/x86_64-pc-linux-gnu/4.6.3/info
* --with-gxx-include-dir=/usr/lib/gcc/x86_64-pc-linux-gnu/4.6.3/include/g
* --host=x86_64-pc-linux-gnu
* --build=x86_64-pc-linux-gnu
* --disable-altivec
* --disable-fixed-point
* --without-ppl
* --without-cloog
* --enable-lto
* --enable-nls
* --without-included-gettext
* --with-system-zlib
* --enable-obsolete
* --disable-werror
* --enable-secureplt
* --enable-multilib
* --enable-libmudflap
* --disable-libssp
* --enable-libgomp
* --with-python-dir=/share/gcc-data/x86_64-pc-linux-gnu/4.6.3/python
* --enable-checking=release
* --disable-libgcj
* --enable-libstdcxx-time
* --enable-languages=c,c++,fortran
* --enable-shared
* --enable-threads=posix
* --enable-__cxa_atexit
* --enable-clocale=gnu
* --enable-targets=all
* --with-bugurl=http://bugs.gentoo.org/
* --with-pkgversion=Gentoo 4.6.3 p1.10, pie-0.5.2

/var/tmp/portage/sys-devel/gcc-4.6.3/work/gcc-4.6.3/configure --prefix=/usr --b2
checking build system type... x86_64-pc-linux-gnu
checking host system type... x86_64-pc-linux-gnu
checking target system type... x86_64-pc-linux-gnu
checking for a BSD-compatible install... /usr/bin/install -c
checking whether ln works... yes
checking whether ln -s works... yes
checking for a sed that does not truncate output... /bin/sed
checking for gawk... gawk
checking for x86_64-pc-linux-gnu-gcc... x86_64-pc-linux-gnu-gcc
checking for C compiler default output file name...
configure: error: in `/var/tmp/portage/sys-devel/gcc-4.6.3/work/build':
configure: error: C compiler cannot create executables
See `config.log' for more details.
* ERROR: sys-devel/gcc-4.6.3 failed (compile phase):
* failed to run configure
*
* Call stack:
* ebuild.sh, line 93: Called src_compile
* environment, line 4064: Called toolchain_src_compile
* environment, line 4720: Called gcc_do_configure
* environment, line 2293: Called die
* The specific snippet of code:
* "${S}"/configure "$@" || die "failed to run configure";
*
* If you need support, post the output of `emerge --info '=sys-devel/gcc-4.6.3,
* the complete build log and the output of `emerge -pqv '=sys-devel/gcc-4.6.3'.
*
* Please include /var/tmp/portage/sys-devel/gcc-4.6.3/work/build/gcc-build-logt
*
* The complete build log is located at '/var/tmp/portage/sys-devel/gcc-4.6.3/t.
* The ebuild environment file is located at '/var/tmp/portage/sys-devel/gcc-4..
* Working directory: '/var/tmp/portage/sys-devel/gcc-4.6.3/work/build'
* S: '/var/tmp/portage/sys-devel/gcc-4.6.3/work/gcc-4.6.3'

>>> Failed to emerge sys-devel/gcc-4.6.3, Log file:

>>> '/var/tmp/portage/sys-devel/gcc-4.6.3/temp/build.log'

* Messages for package sys-devel/gcc-4.6.3:

*
* LTO support is still experimental and unstable.
* Any bugs resulting from the use of LTO will not be fixed.
*
* ERROR: sys-devel/gcc-4.6.3 failed (compile phase):
* failed to run configure
# These settings were set by the catalyst build script that automatically
# built this stage.
# Please consult /usr/share/portage/config/make.conf.example for a more
# detailed example.


Last edited by bluephoenix on Thu Jan 17, 2013 12:24 pm; edited 1 time in total
Back to top
View user's profile Send private message
Jaglover
Advocate
Advocate


Joined: 29 May 2005
Posts: 4610
Location: Saint Amant, Acadiana

PostPosted: Tue Jan 15, 2013 1:56 pm    Post subject: Reply with quote

Quote:
If you need support, post the output of `emerge --info '=sys-devel/gcc-4.6.3

Where is it? You do not help us to help you. :(

You may have something odd in your CFLAGS, maybe a typo. Also you should check if your gcc configuration is valid (with gcc-config).
_________________
Please learn how to denote units correctly!
Back to top
View user's profile Send private message
dvdma
n00b
n00b


Joined: 07 Dec 2012
Posts: 13

PostPosted: Tue Jan 15, 2013 2:02 pm    Post subject: Reply with quote

if you don't absolutely know what to do you could try to unmerge the version of gcc you installed and extract it from the stage3
Back to top
View user's profile Send private message
bluephoenix
Tux's lil' helper
Tux's lil' helper


Joined: 01 Nov 2008
Posts: 75

PostPosted: Tue Jan 15, 2013 2:03 pm    Post subject: here you are. Reply with quote

www portage # emerge --info '=sys-devel/gcc-4.6.3'
!!! No gcc found. You probably need to 'source /etc/profile'
!!! to update the environment of this terminal and possibly
!!! other terminals also.
Portage 2.1.11.31 (default/linux/amd64/10.0/server, [unavailable], glibc-2.15-r3, 3.5.7-gentoo x86_)
=================================================================
System Settings
=================================================================
System uname: Linux-3.5.7-gentoo-x86_64-Intel-R-_Core-TM-_i3-3220_CPU_@_3.30GHz-with-gentoo-2.1
Timestamp of tree: Tue, 15 Jan 2013 13:00:01 +0000
ld GNU ld (GNU Binutils) 2.22
app-shells/bash: 4.2_p37
dev-lang/python: 2.7.3-r2, 3.2.3
dev-util/cmake: 2.8.9
dev-util/pkgconfig: 0.27.1
sys-apps/baselayout: 2.1-r1
sys-apps/openrc: 0.11.8
sys-apps/sandbox: 2.5
sys-devel/autoconf: 2.69
sys-devel/automake: 1.11.6
sys-devel/binutils: 2.22-r1
sys-devel/gcc: 4.6.3
sys-devel/gcc-config: 1.7.3
sys-devel/libtool: 2.4-r1
sys-devel/make: 3.82-r4
sys-kernel/linux-headers: 3.6 (virtual/os-headers)
sys-libs/glibc: 2.15-r3
Repositories: gentoo
ACCEPT_KEYWORDS="amd64"
ACCEPT_LICENSE="* -@EULA"
CBUILD="x86_64-pc-linux-gnu"
CFLAGS="-march=core2 -O2 -pipe"
CHOST="x86_64-pc-linux-gnu"
CONFIG_PROTECT="/etc"
CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /etc/env.d /etc/gconf /etc/gentoo-release /etc/php/a"
CXXFLAGS="-march=core2 -O2 -pipe"
DISTDIR="/usr/portage/distfiles"
FCFLAGS="-O2 -pipe"
FEATURES="assume-digests binpkg-logs config-protect-if-modified distlocks ebuild-locks fixlafiles m"
FFLAGS="-O2 -pipe"
GENTOO_MIRRORS="http://mirrors.163.com/gentoo/ http://mirrors.sohu.com/gentoo http://ftp.kaist.ac.k"
LDFLAGS="-Wl,-O1 -Wl,--as-needed"
MAKEOPTS="-j4"
PKGDIR="/usr/portage/packages"
PORTAGE_CONFIGROOT="/"
PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times --compress --force --whole-fil"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
PORTDIR_OVERLAY=""
SYNC="rsync://rsync.gentoo.org/gentoo-portage"
USE="acl amd64 berkdb bzip2 cgi cli cracklib crypt ctype cups curl cxx dbus dovecot-sasl dri extras"
Unset: CPPFLAGS, CTARGET, EMERGE_DEFAULT_OPTS, INSTALL_MASK, LANG, LC_ALL, PORTAGE_BUNZIP2_COMMANDN

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

sys-devel/gcc-4.6.3 was built with the following:
USE="cxx fortran mudflap (multilib) nls nptl openmp (-altivec) -bootstrap -build -doc (-fixed-point"
Back to top
View user's profile Send private message
XavierMiller
Moderator
Moderator


Joined: 23 Jul 2004
Posts: 5443
Location: ~Brussels - Belgique

PostPosted: Tue Jan 15, 2013 2:04 pm    Post subject: Reply with quote

Code:
emerge --info

Please.

And check your CFLAGS.
_________________
Xavier Miller
(FR) Merci de respecter les règles du forum.
http://www.xaviermiller.be
Back to top
View user's profile Send private message
bluephoenix
Tux's lil' helper
Tux's lil' helper


Joined: 01 Nov 2008
Posts: 75

PostPosted: Tue Jan 15, 2013 2:11 pm    Post subject: Reply with quote

www work # emerge --info
!!! No gcc found. You probably need to 'source /etc/profile'
!!! to update the environment of this terminal and possibly
!!! other terminals also.
Portage 2.1.11.31 (default/linux/amd64/10.0/server, [unavailable], glibc-2.15-r3, 3.5.7-gentoo x86_)
=================================================================
System uname: Linux-3.5.7-gentoo-x86_64-Intel-R-_Core-TM-_i3-3220_CPU_@_3.30GHz-with-gentoo-2.1
Timestamp of tree: Tue, 15 Jan 2013 13:00:01 +0000
ld GNU ld (GNU Binutils) 2.22
app-shells/bash: 4.2_p37
dev-lang/python: 2.7.3-r2, 3.2.3
dev-util/cmake: 2.8.9
dev-util/pkgconfig: 0.27.1
sys-apps/baselayout: 2.1-r1
sys-apps/openrc: 0.11.8
sys-apps/sandbox: 2.5
sys-devel/autoconf: 2.69
sys-devel/automake: 1.11.6
sys-devel/binutils: 2.22-r1
sys-devel/gcc: 4.6.3
sys-devel/gcc-config: 1.7.3
sys-devel/libtool: 2.4-r1
sys-devel/make: 3.82-r4
sys-kernel/linux-headers: 3.6 (virtual/os-headers)
sys-libs/glibc: 2.15-r3
Repositories: gentoo
ACCEPT_KEYWORDS="amd64"
ACCEPT_LICENSE="* -@EULA"
CBUILD="x86_64-pc-linux-gnu"
CFLAGS="-march=core2 -O2 -pipe"
CHOST="x86_64-pc-linux-gnu"
CONFIG_PROTECT="/etc"
CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /etc/env.d /etc/gconf /etc/gentoo-release /etc/php/a"
CXXFLAGS="-march=core2 -O2 -pipe"
DISTDIR="/usr/portage/distfiles"
FCFLAGS="-O2 -pipe"
FEATURES="assume-digests binpkg-logs config-protect-if-modified distlocks ebuild-locks fixlafiles m"
FFLAGS="-O2 -pipe"
GENTOO_MIRRORS="http://mirrors.163.com/gentoo/ http://mirrors.sohu.com/gentoo http://ftp.kaist.ac.k"
LDFLAGS="-Wl,-O1 -Wl,--as-needed"
MAKEOPTS="-j4"
PKGDIR="/usr/portage/packages"
PORTAGE_CONFIGROOT="/"
PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times --compress --force --whole-fil"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
PORTDIR_OVERLAY=""
SYNC="rsync://rsync.gentoo.org/gentoo-portage"
USE="acl amd64 berkdb bzip2 cgi cli cracklib crypt ctype cups curl cxx dbus dovecot-sasl dri extras"
Unset: CPPFLAGS, CTARGET, EMERGE_DEFAULT_OPTS, INSTALL_MASK, LANG, LC_ALL, PORTAGE_BUNZIP2_COMMANDN
Back to top
View user's profile Send private message
bluephoenix
Tux's lil' helper
Tux's lil' helper


Joined: 01 Nov 2008
Posts: 75

PostPosted: Tue Jan 15, 2013 2:14 pm    Post subject: Reply with quote

I think CFLAGS="-march=core2 -O2 -pipe" no problem.
Because I have used the same parameter before and it is successful.
Back to top
View user's profile Send private message
XavierMiller
Moderator
Moderator


Joined: 23 Jul 2004
Posts: 5443
Location: ~Brussels - Belgique

PostPosted: Tue Jan 15, 2013 2:15 pm    Post subject: Reply with quote

"no gcc found".

Can you provide the results of
Code:
gcc-config -l
?

It seems you need to activate a GCC version.

Is it a first install ? Are you well in the chroot ?
_________________
Xavier Miller
(FR) Merci de respecter les règles du forum.
http://www.xaviermiller.be
Back to top
View user's profile Send private message
bluephoenix
Tux's lil' helper
Tux's lil' helper


Joined: 01 Nov 2008
Posts: 75

PostPosted: Tue Jan 15, 2013 2:24 pm    Post subject: Reply with quote

www portage # gcc-config -l
* gcc-config: Active gcc profile is invalid!

[1] x86_64-pc-linux-gnu-4.6.3


I think I well chrooted before.
Back to top
View user's profile Send private message
DONAHUE
Watchman
Watchman


Joined: 09 Dec 2006
Posts: 6430
Location: Goose Creek SC

PostPosted: Tue Jan 15, 2013 3:03 pm    Post subject: Reply with quote

Assuming gcc-config -l still yields [1] x86_64-pc-linux-gnu-4.6.3
Code:
gcc-config -l
gcc-config 1
env-update && source /etc/profile
emerge --oneshot libtool


http://www.gentoo.org/doc/en/gcc-upgrading.xml refers

previous gcc version may have been removed before the new version was made active
_________________
Defund the FCC.
Back to top
View user's profile Send private message
Dammital
Apprentice
Apprentice


Joined: 05 Nov 2004
Posts: 189

PostPosted: Tue Jan 15, 2013 3:22 pm    Post subject: Reply with quote

I found myself without a valid gcc after upgrading from 4.5.4 to 4.6.3 and performing an emerge --depclean.

emerge --depclean yielded:
Quote:
>>> Unmerging (1 of 1) sys-devel/gcc-4.5.4...
* gcc-config: Could not locate 'i686-pc-linux-gnu-4.5.4' in '/etc/env.d/gcc/' !
* Running 'fix_libtool_files.sh 4.5.4'
* Scanning libtool files for hardcoded gcc library paths...
* gcc-config: Active gcc profile is invalid!
gcc-config: error: could not run/locate 'gcc'
:0: assertion failed: (gcc -dumpversion) | getline NEWVER)
Packages installed: 187
Packages in world: 41
Packages in system: 42
Required packages: 187
Number removed: 1

Indeed, there is no i686-pc-linux-gnu-4.5.4 in /etc/env.d/gcc/. Wonder what that's about?

gcc-config -l yielded:
Quote:
* gcc-config: Active gcc profile is invalid!

[1] i686-pc-linux-gnu-4.6.3


... which "gcc-config 1" set aright.
Back to top
View user's profile Send private message
DONAHUE
Watchman
Watchman


Joined: 09 Dec 2006
Posts: 6430
Location: Goose Creek SC

PostPosted: Tue Jan 15, 2013 3:27 pm    Post subject: Reply with quote

@ dam
don't forget
Code:
env-update && source /etc/profile
emerge --oneshot libtool

_________________
Defund the FCC.
Back to top
View user's profile Send private message
bluephoenix
Tux's lil' helper
Tux's lil' helper


Joined: 01 Nov 2008
Posts: 75

PostPosted: Thu Jan 17, 2013 12:23 pm    Post subject: problem solved! Reply with quote

DONAHUE, thank you very much!

The problem is solved!

So now I understand the working method of GCC, it needs more care :)
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Installing Gentoo All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum