Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
Problems with emerge gcc - compilation error
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Portage & Programming
View previous topic :: View next topic  
Author Message
andrebvs
n00b
n00b


Joined: 12 Sep 2005
Posts: 9
Location: Sao Carlos

PostPosted: Fri Jun 22, 2012 8:42 pm    Post subject: Problems with emerge gcc - compilation error Reply with quote

Good morning,

I need some help with the GCC.

I'm trying to emerge --update --newuse gcc, but it was an error when
trying to emerge it.

Below the error:

Quote:

#emerge --info =sys-devel/gcc-4.5.3-r2

Portage 2.1.10.49 (default/linux/amd64/10.0/desktop/gnome, gcc-4.5.3, glibc-2.14.1-r3, 3.2.12-gentoo x86_64)
=================================================================
System Settings
=================================================================
System uname: Linux-3.2.12-gentoo-x86_64-Intel-R-_Core-TM-_i5_CPU_M_480_@_2.67GHz-with-gentoo-2.1
Timestamp of tree: Mon, 18 Jun 2012 23:15:01 +0000
app-shells/bash: 4.2_p20
dev-lang/python: 2.7.3-r2, 3.2.3
dev-util/cmake: 2.8.7-r5
dev-util/pkgconfig: 0.26
sys-apps/baselayout: 2.1-r1
sys-apps/openrc: 0.9.8.4
sys-apps/sandbox: 2.5
sys-devel/autoconf: 2.13, 2.68
sys-devel/automake: 1.11.1
sys-devel/binutils: 2.21.1-r1
sys-devel/gcc: 4.5.3-r2
sys-devel/gcc-config: 1.6
sys-devel/libtool: 2.4-r1
sys-devel/make: 3.82-r1
sys-kernel/linux-headers: 3.1 (virtual/os-headers)
sys-libs/glibc: 2.14.1-r3
Repositories: gentoo
ACCEPT_KEYWORDS="amd64"
ACCEPT_LICENSE="* -@EULA google-chrome skype-4.0.0.7-copyright"
CBUILD="x86_64-pc-linux-gnu"
CFLAGS="-march=core2 -O2 -pipe"
CHOST="x86_64-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/share/gnupg/qualified.txt"
CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /etc/dconf /etc/env.d /etc/fonts/fonts.conf /etc/gconf /etc/gentoo-release /etc/sandbox.d /etc/terminfo /etc/texmf/language.dat.d /etc/texmf/language.def.d /etc/texmf/updmap.d /etc/texmf/web2c"
CXXFLAGS="-march=core2 -O2 -pipe"
DISTDIR="/usr/portage/distfiles"
FCFLAGS="-O2 -pipe"
FEATURES="assume-digests binpkg-logs distlocks ebuild-locks fixlafiles news parallel-fetch protect-owned sandbox sfperms strict unknown-features-warn unmerge-logs unmerge-orphans userfetch"
FFLAGS="-O2 -pipe"
GENTOO_MIRRORS="rsync://gentoo.c3sl.ufpr.br/gentoo/ http://gentoo.c3sl.ufpr.br/ ftp://gentoo.c3sl.ufpr.br/gentoo/ http://mirror.mcs.anl.gov/pub/gentoo/ rsync://mirror.mcs.anl.gov/gentoo/ ftp://mirror.mcs.anl.gov/pub/gentoo/ http://www.gtlib.gatech.edu/pub/gentoo rsync://rsync.gtlib.gatech.edu/gentoo ftp://ftp.gtlib.gatech.edu/pub/gentoo"
LANG="pt_BR.UTF-8"
LDFLAGS="-Wl,-O1 -Wl,--as-needed"
LINGUAS="en pt_BR"
MAKEOPTS="-j2"
PKGDIR="/usr/portage/packages"
PORTAGE_CONFIGROOT="/"
PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times --compress --force --whole-file --delete --stats --human-readable --timeout=180 --exclude=/distfiles --exclude=/local --exclude=/packages"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
PORTDIR_OVERLAY=""
SYNC="rsync://rsync.br.gentoo.org/gentoo-portage"
USE="X a52 aac acl acpi alsa amd64 berkdb bluetooth branding bzip2 cairo cdda cdr cli colord consolekit cracklib crypt cups cxx dbus doc dri dts dvd dvdr eds emboss encode evo exif fam firefox flac fontconfig fortran gdbm gif gnome gnome-keyring gnome-online-accounts gpm gstreamer gtk gtk3 iconv ipv6 jpeg lcms ldap libnotify mad mmx mng modules mp3 mp4 mpeg mudflap multilib nautilus ncurses nls nptl ogg opengl openmp pam pango pcre pdf png policykit ppds pppd pulseaudio python qt3support readline sdl session socialweb spell sqlite sse sse2 ssl startup-notification svg taglib tcpd tiff truetype udev udisks unicode upower usb vorbis wxwidgets x264 xcb xml xorg xulrunner xv xvid zlib" ALSA_CARDS="ali5451 als4000 atiixp atiixp-modem bt87x ca0106 cmipci emu10k1x ens1370 ens1371 es1938 es1968 fm801 hda-intel intel8x0 intel8x0m maestro3 trident usb-audio via82xx via82xx-modem ymfpci" ALSA_PCM_PLUGINS="adpcm alaw asym copy dmix dshare dsnoop empty extplug file hooks iec958 ioplug ladspa lfloat linear meter mmap_emul mulaw multi null plug rate route share shm softvol" APACHE2_MODULES="actions alias auth_basic authn_alias authn_anon authn_dbm authn_default authn_file authz_dbm authz_default authz_groupfile authz_host authz_owner authz_user autoindex cache cgi cgid dav dav_fs dav_lock deflate dir disk_cache env expires ext_filter file_cache filter headers include info log_config logio mem_cache mime mime_magic negotiation rewrite setenvif speling status unique_id userdir usertrack vhost_alias" CALLIGRA_FEATURES="kexi words flow plan sheets stage tables krita karbon braindump" CAMERAS="ptp2" COLLECTD_PLUGINS="df interface irq load memory rrdtool swap syslog" ELIBC="glibc" GPSD_PROTOCOLS="ashtech aivdm earthmate evermore fv18 garmin garmintxt gpsclock itrax mtk3301 nmea ntrip navcom oceanserver oldstyle oncore rtcm104v2 rtcm104v3 sirf superstar2 timing tsip tripmate tnt ubx" INPUT_DEVICES="evdev synaptics mouse keyboard" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LIBREOFFICE_EXTENSIONS="presenter-console presenter-minimizer" LINGUAS="en pt_BR" PHP_TARGETS="php5-3" PYTHON_TARGETS="python3_2 python2_7" RUBY_TARGETS="ruby18 ruby19" USERLAND="GNU" VIDEO_CARDS="intel" XTABLES_ADDONS="quota2 psd pknock lscan length2 ipv4options ipset ipp2p iface geoip fuzzy condition tee tarpit sysrq steal rawnat logmark ipmark dhcpmac delude chaos account"
Unset: CPPFLAGS, CTARGET, EMERGE_DEFAULT_OPTS, INSTALL_MASK, LC_ALL, PORTAGE_BUNZIP2_COMMAND, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS, USE_PYTHON

=================================================================
Package Settings
=================================================================
USE="cxx fortran gtk mudflap (multilib) nls nptl openmp (-altivec) -bootstrap -build -doc (-fixed-point) -gcj -graphite (-hardened) (-libssp) -lto -multislot -nocxx -nopie -nossp -objc -objc++ -objc-gc -test -vanilla"

sys-devel/gcc-4.5.3-r2 was built with the following:
CFLAGS="-march=core2 -O2 -pipe -O2"
CXXFLAGS="-march=core2 -O2 -pipe -O2"

Quote:

/var/tmp/portage/sys-devel/gcc-4.5.3-r2/temp/build.log


 * Package: sys-devel/gcc-4.5.3-r2
 * Repository: gentoo
 * Maintainer: toolchain@gentoo.org
 * USE: amd64 cxx elibc_glibc fortran gtk kernel_linux mudflap multilib nls nptl openmp userland_GNU
 * FEATURES: sandbox
>>> Unpacking source...
>>> Unpacking gcc-4.5.3.tar.bz2 to /var/tmp/portage/sys-devel/gcc-4.5.3-r2/work
>>> Unpacking gcc-4.5.3-patches-1.5.tar.bz2 to /var/tmp/portage/sys-devel/gcc-4.5.3-r2/work
>>> Unpacking gcc-4.5.3-uclibc-patches-1.0.tar.bz2 to /var/tmp/portage/sys-devel/gcc-4.5.3-r2/work
>>> Unpacking gcc-4.5.3-piepatches-v0.4.7.tar.bz2 to /var/tmp/portage/sys-devel/gcc-4.5.3-r2/work
>>> Unpacking gcc-4.4.3-specs-0.2.0.tar.bz2 to /var/tmp/portage/sys-devel/gcc-4.5.3-r2/work
* Applying Gentoo patches ...
* 00_all_gcc-4.1-alpha-mieee-default.patch ...
 [ ok ]
* 01_all_gcc-4.1-alpha-asm-mcpu.patch ...
 [ ok ]
* 03_all_gcc43-java-nomulti.patch ...
 [ ok ]
* 08_all_gcc-4.1-cross-compile.patch ...
 [ ok ]
* 09_all_gcc-4.5-Wtrampolines.patch ...
 [ ok ]
* 10_all_gcc-default-format-security.patch ...
 [ ok ]
* 10_all_gcc-default-fortify-source.patch ...
 [ ok ]
* 11_all_gcc-netbsd-symbolic.patch ...
 [ ok ]
* 14_all_gcc-sparc64-bsd.patch ...
 [ ok ]
* 15_all_gcc-libgomp-no-werror.patch ...
 [ ok ]
* 22_all_4.6_pr45094_arm-dword-move.patch ...
 [ ok ]
* 23_all_4.6_pr45886_ARM_PCS_VFP.patch ...
 [ ok ]
* 27_all_gcj-glibc-2.15-pr50888.patch ...
 [ ok ]
* 30_all_gcc-4.5-ppc-msingle-pic-base.patch ...
 [ ok ]
* 31_all_gcc-4.4-ppc-fpic-mrelocatable.patch ...
 [ ok ]
* 33_all_armhf.patch ...
 [ ok ]
* 40_all_gcc-4.4-libiberty.h-asprintf.patch ...
 [ ok ]
* 47_all_arm-unbreak-armv4t.patch ...
 [ ok ]
* 51_all_gcc-3.4-libiberty-pic.patch ...
 [ ok ]
* 53_all_gcc4-superh-default-multilib.patch ...
 [ ok ]
* 61_all_gcc4-ia64-noteGNUstack.patch ...
 [ ok ]
* 64_all_gcc-hppa-64bit-pr52408.patch ...
 [ ok ]
* 74_all_sh-pr24836.patch ...
 [ ok ]
* 77_all_pr51106_4.5.4_ice-move_insn.patch ...
 [ ok ]
* 92_all_freebsd-pie.patch ...
 [ ok ]
* 93_all_gcc-4.5-cloog-dl.patch ...
 [ ok ]
* 94_all_gcc-4.5-pch-nostdinc.patch ...
 [ ok ]
* 95_all_arm-pr43440.patch ...
 [ ok ]
* 99_all_testsuite-01-Wformat.patch ...
 [ ok ]
* 99_all_testsuite-02-Wtrampolines.patch ...
 [ ok ]
* 99_all_testsuite-03-check-lto.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_gcc45_Makefile.in.patch ...
 [ ok ]
* 20_all_gcc45_gcc.c.patch ...
 [ ok ]
* 21_all_gcc44_decl-tls-model.patch ...
 [ ok ]
* 30_all_gcc45_esp.h.patch ...
 [ ok ]
* 33_all_gcc45_config_rs6000_linux64.h.patch ...
 [ ok ]
* 35_all_gcc45_config_crtbeginp.patch ...
 [ ok ]
* 40_all_gcc44_cp_lang-specs.h.patch ...
 [ ok ]
* 41_all_gcc44_objc_lang-specs.h.patch ...
 [ ok ]
* 42_all_gcc44_objcp_lang-specs.h.patch ...
 [ ok ]
* 60_all_gcc44_invoke.texi.patch ...
 [ ok ]
* Done with patching
* updating multilib directories to be: ../lib64 ../lib32
* Running elibtoolize in: gcc-4.5.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
* Touching libjava/aclocal.m4
* Touching libjava/Makefile.in
* Touching libjava/configure
* Applying gcc-spec-env.patch ...
 [ ok ]
>>> Source unpacked in /var/tmp/portage/sys-devel/gcc-4.5.3-r2/work
>>> Compiling source in /var/tmp/portage/sys-devel/gcc-4.5.3-r2/work/gcc-4.5.3 ...
* CFLAGS="-march=core2 -O2 -pipe -O2"
* CXXFLAGS="-march=core2 -O2 -pipe -O2"
* Configuring gcc ...
* configuring for GCC_LANG: c,c++,fortran

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

* Configuring GCC with:
* --prefix=/usr
* --bindir=/usr/x86_64-pc-linux-gnu/gcc-bin/4.5.3
* --includedir=/usr/lib/gcc/x86_64-pc-linux-gnu/4.5.3/include
* --datadir=/usr/share/gcc-data/x86_64-pc-linux-gnu/4.5.3
* --mandir=/usr/share/gcc-data/x86_64-pc-linux-gnu/4.5.3/man
* --infodir=/usr/share/gcc-data/x86_64-pc-linux-gnu/4.5.3/info
* --with-gxx-include-dir=/usr/lib/gcc/x86_64-pc-linux-gnu/4.5.3/include/g++-v4
* --host=x86_64-pc-linux-gnu
* --build=x86_64-pc-linux-gnu
* --disable-altivec
* --disable-fixed-point
* --without-ppl
* --without-cloog
* --disable-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.5.3/python
* --enable-checking=release
* --disable-libgcj
* --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.5.3-r2 p1.5, pie-0.4.7

/var/tmp/portage/sys-devel/gcc-4.5.3-r2/work/gcc-4.5.3/configure --prefix=/usr --bindir=/usr/x86_64-pc-linux-gnu/gcc-bin/4.5.3 --includedir=/usr/lib/gcc/x86_64-pc-linux-gnu/4.5.3/include --datadir=/usr/share/gcc-data/x86_64-pc-linux-gnu/4.5.3 --mandir=/usr/share/gcc-data/x86_64-pc-linux-gnu/4.5.3/man --infodir=/usr/share/gcc-data/x86_64-pc-linux-gnu/4.5.3/info --with-gxx-include-dir=/usr/lib/gcc/x86_64-pc-linux-gnu/4.5.3/include/g++-v4 --host=x86_64-pc-linux-gnu --build=x86_64-pc-linux-gnu --disable-altivec --disable-fixed-point --without-ppl --without-cloog --disable-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.5.3/python --enable-checking=release --disable-libgcj --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.5.3-r2 p1.5, pie-0.4.7
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.5.3-r2/work/build':
configure: error: C compiler cannot create executables
See `config.log' for more details.
* ERROR: sys-devel/gcc-4.5.3-r2 failed (compile phase):
* failed to run configure
*
* Call stack:
* ebuild.sh, line 85: Called src_compile
* environment, line 4046: Called toolchain_src_compile
* environment, line 4682: Called gcc_do_configure
* environment, line 2279: 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.5.3-r2',
* the complete build log and the output of 'emerge -pqv =sys-devel/gcc-4.5.3-r2'.
*
* Please include /var/tmp/portage/sys-devel/gcc-4.5.3-r2/work/build/gcc-build-logs.tar.bz2 in your bug report
*
* The complete build log is located at '/var/tmp/portage/sys-devel/gcc-4.5.3-r2/temp/build.log'.
* The ebuild environment file is located at '/var/tmp/portage/sys-devel/gcc-4.5.3-r2/temp/environment'.
* S: '/var/tmp/portage/sys-devel/gcc-4.5.3-r2/work/gcc-4.5.3'


Anyone could help me?

Thank you all.
Back to top
View user's profile Send private message
claudecat
n00b
n00b


Joined: 26 Mar 2012
Posts: 12
Location: Md, Usa

PostPosted: Fri Jun 22, 2012 9:12 pm    Post subject: Reply with quote

No expert here, but I ran into this recently when gcc was upgraded and I did a depclean too soon. Fixed it by doing:

Code:
gcc-config 1

_________________
Don't crush that dwarf, hand me the pliers...
Back to top
View user's profile Send private message
khayyam
Veteran
Veteran


Joined: 07 Jun 2012
Posts: 1252

PostPosted: Fri Jun 22, 2012 9:24 pm    Post subject: Re: Problems with emerge gcc - compilation error Reply with quote

andrebvs wrote:
CFLAGS="-march=core2 -O2 -pipe"

andrebvs ... that should be "-02" ('oh' 'two') not "-O2" ('zero' 'two') .. hence the "can not create executables" error. So, correct the CFLAGS, CXXFLAGS, etc ... and it should then work.

best ... khay
Back to top
View user's profile Send private message
andrebvs
n00b
n00b


Joined: 12 Sep 2005
Posts: 9
Location: Sao Carlos

PostPosted: Fri Jun 22, 2012 9:45 pm    Post subject: Reply with quote

Claudecat,

Thanks for the tip, but didn't work here.

Quote:

#gcc-config -l
* gcc-config: Profile does not exist or invalid setting for /etc/env.d/gcc/x86_64-pc-linux-gnu-4.5.3
[1] x86_64-pc-linux-gnu-4.5.3 *
#gcc-config 1
* gcc-config: Profile does not exist or invalid setting for /etc/env.d/gcc/x86_64-pc-linux-gnu-4.5.3
* Switching native-compiler to x86_64-pc-linux-gnu-4.5.3 ... [ ok ]


And after this, when i tried to compile gcc again, same error.

Khay,

In my CFLAGS it was -O2 (oh two) and not -02 (zero two). But thanks for the help.

Anyone has any other ideia??
Back to top
View user's profile Send private message
krinn
Advocate
Advocate


Joined: 02 May 2003
Posts: 3673

PostPosted: Fri Jun 22, 2012 9:48 pm    Post subject: Re: Problems with emerge gcc - compilation error Reply with quote

khayyam wrote:
andrebvs wrote:
CFLAGS="-march=core2 -O2 -pipe"

andrebvs ... that should be "-02" ('oh' 'two') not "-O2" ('zero' 'two') .. hence the "can not create executables" error. So, correct the CFLAGS, CXXFLAGS, etc ... and it should then work.

best ... khay


except it's O2 already in the quote you've made
in fact, it's inverse in your own quote -> -02 ('oh'..) and -O2 ('zero'...)
Need a coffee :)

andrebvs: the real answer should be there...
Quote:
See `config.log' for more details.

and location should be /var/tmp/portage/sys-devel/gcc-4.5.3-r2/work/build/

Post that file if you can't figure out its content yourself.
Back to top
View user's profile Send private message
Jaglover
Advocate
Advocate


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

PostPosted: Fri Jun 22, 2012 9:57 pm    Post subject: Reply with quote

Do you have a working GCC in your system? Does gcc -v return something sane?
_________________
Please learn how to denote units correctly!
Back to top
View user's profile Send private message
andrebvs
n00b
n00b


Joined: 12 Sep 2005
Posts: 9
Location: Sao Carlos

PostPosted: Sat Jun 23, 2012 2:25 am    Post subject: Reply with quote

Krinn,

Here the config.log file
Quote:

This file contains any messages produced by compilers while
running configure, to aid debugging if configure makes a mistake.

It was created by configure, which was
generated by GNU Autoconf 2.64. Invocation command line was

$ /var/tmp/portage/sys-devel/gcc-4.5.3-r2/work/gcc-4.5.3/configure --prefix=/usr --bindir=/usr/x86_64-pc-linux-gnu/gcc-bin/4.5.3 --includedir=/usr/lib/gcc/x86_64-pc-linux-gnu/4.5.3/include --datadir=/usr/share/gcc-data/x86_64-pc-linux-gnu/4.5.3 --mandir=/usr/share/gcc-data/x86_64-pc-linux-gnu/4.5.3/man --infodir=/usr/share/gcc-data/x86_64-pc-linux-gnu/4.5.3/info --with-gxx-include-dir=/usr/lib/gcc/x86_64-pc-linux-gnu/4.5.3/include/g++-v4 --host=x86_64-pc-linux-gnu --build=x86_64-pc-linux-gnu --disable-altivec --disable-fixed-point --without-ppl --without-cloog --disable-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.5.3/python --enable-checking=release --disable-libgcj --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.5.3-r2 p1.5, pie-0.4.7

## --------- ##
## Platform. ##
## --------- ##

hostname = buda-linux
uname -m = x86_64
uname -r = 3.2.12-gentoo
uname -s = Linux
uname -v = #1 SMP Tue Jun 19 19:58:23 BRT 2012

/usr/bin/uname -p = Intel(R) Core(TM) i5 CPU M 480 @ 2.67GHz
/bin/uname -X = unknown

/bin/arch = unknown
/usr/bin/arch -k = unknown
/usr/convex/getsysinfo = unknown
/usr/bin/hostinfo = unknown
/bin/machine = unknown
/usr/bin/oslevel = unknown
/bin/universe = unknown

PATH: /usr/lib64/portage/bin/ebuild-helpers
PATH: /usr/local/sbin
PATH: /usr/local/bin
PATH: /usr/sbin
PATH: /usr/bin
PATH: /sbin
PATH: /bin
PATH: /opt/bin
PATH: /usr/x86_64-pc-linux-gnu/gcc-bin/4.5.3


## ----------- ##
## Core tests. ##
## ----------- ##

configure:2435: checking build system type
configure:2449: result: x86_64-pc-linux-gnu
configure:2496: checking host system type
configure:2509: result: x86_64-pc-linux-gnu
configure:2529: checking target system type
configure:2542: result: x86_64-pc-linux-gnu
configure:2596: checking for a BSD-compatible install
configure:2664: result: /usr/bin/install -c
configure:2675: checking whether ln works
configure:2697: result: yes
configure:2701: checking whether ln -s works
configure:2705: result: yes
configure:2712: checking for a sed that does not truncate output
configure:2776: result: /bin/sed
configure:2785: checking for gawk
configure:2801: found /usr/bin/gawk
configure:2812: result: gawk
configure:4024: checking for x86_64-pc-linux-gnu-gcc
configure:4040: found /usr/bin/x86_64-pc-linux-gnu-gcc
configure:4051: result: x86_64-pc-linux-gnu-gcc
configure:4320: checking for C compiler version
configure:4329: x86_64-pc-linux-gnu-gcc --version >&5
x86_64-pc-linux-gnu-gcc (Gentoo 4.5.3-r2 p1.5, pie-0.4.7) 4.5.3
Copyright (C) 2010 Free Software Foundation, Inc.
This is free software; see the source for copying conditions. There is NO
warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.

configure:4340: $? = 0
configure:4329: x86_64-pc-linux-gnu-gcc -v >&5
Using built-in specs.
COLLECT_GCC=/usr/x86_64-pc-linux-gnu/gcc-bin/4.5.3/x86_64-pc-linux-gnu-gcc
COLLECT_LTO_WRAPPER=/usr/libexec/gcc/x86_64-pc-linux-gnu/4.5.3/lto-wrapper
Target: x86_64-pc-linux-gnu
Configured with: /var/tmp/portage/sys-devel/gcc-4.5.3-r2/work/gcc-4.5.3/configure --prefix=/usr --bindir=/usr/x86_64-pc-linux-gnu/gcc-bin/4.5.3 --includedir=/usr/lib/gcc/x86_64-pc-linux-gnu/4.5.3/include --datadir=/usr/share/gcc-data/x86_64-pc-linux-gnu/4.5.3 --mandir=/usr/share/gcc-data/x86_64-pc-linux-gnu/4.5.3/man --infodir=/usr/share/gcc-data/x86_64-pc-linux-gnu/4.5.3/info --with-gxx-include-dir=/usr/lib/gcc/x86_64-pc-linux-gnu/4.5.3/include/g++-v4 --host=x86_64-pc-linux-gnu --build=x86_64-pc-linux-gnu --disable-altivec --disable-fixed-point --without-ppl --without-cloog --disable-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.5.3/python --enable-checking=release --disable-libgcj --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.5.3-r2 p1.5, pie-0.4.7'
Thread model: posix
gcc version 4.5.3 (Gentoo 4.5.3-r2 p1.5, pie-0.4.7)
configure:4340: $? = 0
configure:4329: x86_64-pc-linux-gnu-gcc -V >&5
x86_64-pc-linux-gnu-gcc: '-V' option must have argument
configure:4340: $? = 1
configure:4329: x86_64-pc-linux-gnu-gcc -qversion >&5
x86_64-pc-linux-gnu-gcc: unrecognized option '-qversion'
x86_64-pc-linux-gnu-gcc: no input files
configure:4340: $? = 1
configure:4360: checking for C compiler default output file name
configure:4382: x86_64-pc-linux-gnu-gcc -march=core2 -O2 -pipe -O2 -Wl,-O1 -Wl,--as-needed conftest.c >&5
/usr/lib/../x86_64-pc-linux-gnu/bin/ld: cannot find crtbegin.o: No such file or directory
/usr/lib/../x86_64-pc-linux-gnu/bin/ld: cannot find -lgcc
/usr/lib/../x86_64-pc-linux-gnu/bin/ld: cannot find -lgcc_s
collect2: ld returned 1 exit status
configure:4386: $? = 1
configure:4423: result:
configure: failed program was:
| /* confdefs.h */
| #define PACKAGE_NAME ""
| #define PACKAGE_TARNAME ""
| #define PACKAGE_VERSION ""
| #define PACKAGE_STRING ""
| #define PACKAGE_BUGREPORT ""
| #define PACKAGE_URL ""
| /* end confdefs.h. */
|
| int
| main ()
| {
|
| ;
| return 0;
| }
configure:4429: error: in `/var/tmp/portage/sys-devel/gcc-4.5.3-r2/work/build':
configure:4433: error: C compiler cannot create executables
See `config.log' for more details.

## ---------------- ##
## Cache variables. ##
## ---------------- ##

ac_cv_build=x86_64-pc-linux-gnu
ac_cv_env_AR_FOR_TARGET_set=
ac_cv_env_AR_FOR_TARGET_value=
ac_cv_env_AR_set=
ac_cv_env_AR_value=
ac_cv_env_AS_FOR_TARGET_set=
ac_cv_env_AS_FOR_TARGET_value=
ac_cv_env_AS_set=
ac_cv_env_AS_value=
ac_cv_env_CCC_set=
ac_cv_env_CCC_value=
ac_cv_env_CC_FOR_TARGET_set=
ac_cv_env_CC_FOR_TARGET_value=
ac_cv_env_CC_set=
ac_cv_env_CC_value=
ac_cv_env_CFLAGS_set=set
ac_cv_env_CFLAGS_value='-march=core2 -O2 -pipe -O2'
ac_cv_env_CPPFLAGS_set=set
ac_cv_env_CPPFLAGS_value=
ac_cv_env_CPP_set=
ac_cv_env_CPP_value=
ac_cv_env_CXXFLAGS_set=set
ac_cv_env_CXXFLAGS_value='-march=core2 -O2 -pipe -O2'
ac_cv_env_CXX_FOR_TARGET_set=
ac_cv_env_CXX_FOR_TARGET_value=
ac_cv_env_CXX_set=
ac_cv_env_CXX_value=
ac_cv_env_DLLTOOL_FOR_TARGET_set=
ac_cv_env_DLLTOOL_FOR_TARGET_value=
ac_cv_env_DLLTOOL_set=
ac_cv_env_DLLTOOL_value=
ac_cv_env_GCC_FOR_TARGET_set=
ac_cv_env_GCC_FOR_TARGET_value=
ac_cv_env_GCJ_FOR_TARGET_set=
ac_cv_env_GCJ_FOR_TARGET_value=
ac_cv_env_GFORTRAN_FOR_TARGET_set=
ac_cv_env_GFORTRAN_FOR_TARGET_value=
ac_cv_env_LDFLAGS_set=set
ac_cv_env_LDFLAGS_value='-Wl,-O1 -Wl,--as-needed'
ac_cv_env_LD_FOR_TARGET_set=
ac_cv_env_LD_FOR_TARGET_value=
ac_cv_env_LD_set=
ac_cv_env_LD_value=
ac_cv_env_LIBS_set=
ac_cv_env_LIBS_value=
ac_cv_env_LIPO_FOR_TARGET_set=
ac_cv_env_LIPO_FOR_TARGET_value=
ac_cv_env_LIPO_set=
ac_cv_env_LIPO_value=
ac_cv_env_NM_FOR_TARGET_set=
ac_cv_env_NM_FOR_TARGET_value=
ac_cv_env_NM_set=
ac_cv_env_NM_value=
ac_cv_env_OBJCOPY_set=
ac_cv_env_OBJCOPY_value=
ac_cv_env_OBJDUMP_FOR_TARGET_set=
ac_cv_env_OBJDUMP_FOR_TARGET_value=
ac_cv_env_OBJDUMP_set=
ac_cv_env_OBJDUMP_value=
ac_cv_env_RANLIB_FOR_TARGET_set=
ac_cv_env_RANLIB_FOR_TARGET_value=
ac_cv_env_RANLIB_set=
ac_cv_env_RANLIB_value=
ac_cv_env_STRIP_FOR_TARGET_set=
ac_cv_env_STRIP_FOR_TARGET_value=
ac_cv_env_STRIP_set=
ac_cv_env_STRIP_value=
ac_cv_env_WINDMC_FOR_TARGET_set=
ac_cv_env_WINDMC_FOR_TARGET_value=
ac_cv_env_WINDMC_set=
ac_cv_env_WINDMC_value=
ac_cv_env_WINDRES_FOR_TARGET_set=
ac_cv_env_WINDRES_FOR_TARGET_value=
ac_cv_env_WINDRES_set=
ac_cv_env_WINDRES_value=
ac_cv_env_build_alias_set=set
ac_cv_env_build_alias_value=x86_64-pc-linux-gnu
ac_cv_env_host_alias_set=set
ac_cv_env_host_alias_value=x86_64-pc-linux-gnu
ac_cv_env_target_alias_set=
ac_cv_env_target_alias_value=
ac_cv_host=x86_64-pc-linux-gnu
ac_cv_path_SED=/bin/sed
ac_cv_path_install='/usr/bin/install -c'
ac_cv_prog_AWK=gawk
ac_cv_prog_CC=x86_64-pc-linux-gnu-gcc
ac_cv_target=x86_64-pc-linux-gnu
acx_cv_prog_LN=ln
gcc_cv_libc_provides_ssp=yes

## ----------------- ##
## Output variables. ##
## ----------------- ##

AR=''
AR_FOR_BUILD='$(AR)'
AR_FOR_TARGET=''
AS=''
AS_FOR_BUILD='$(AS)'
AS_FOR_TARGET=''
AWK='gawk'
BISON=''
BUILD_CONFIG=''
CC='x86_64-pc-linux-gnu-gcc'
CC_FOR_BUILD='$(CC)'
CC_FOR_TARGET=''
CFLAGS='-march=core2 -O2 -pipe -O2'
CFLAGS_FOR_BUILD=''
CFLAGS_FOR_TARGET=''
COMPILER_AS_FOR_TARGET=''
COMPILER_LD_FOR_TARGET=''
COMPILER_NM_FOR_TARGET=''
CONFIGURE_GDB_TK=''
CPP=''
CPPFLAGS=''
CXX=''
CXXFLAGS='-march=core2 -O2 -pipe -O2'
CXXFLAGS_FOR_BUILD=''
CXXFLAGS_FOR_TARGET=''
CXX_FOR_BUILD='$(CXX)'
CXX_FOR_TARGET=''
DEBUG_PREFIX_CFLAGS_FOR_TARGET=''
DEFS=''
DLLTOOL=''
DLLTOOL_FOR_BUILD='$(DLLTOOL)'
DLLTOOL_FOR_TARGET=''
ECHO_C=''
ECHO_N='-n'
ECHO_T=''
EGREP=''
EXEEXT=''
EXPECT=''
FLAGS_FOR_TARGET=''
FLEX=''
GCC_FOR_TARGET=''
GCC_SHLIB_SUBDIR=''
GCJ_FOR_BUILD='$(GCJ)'
GCJ_FOR_TARGET=''
GDB_TK=''
GFORTRAN_FOR_BUILD='$(GFORTRAN)'
GFORTRAN_FOR_TARGET=''
GNATBIND=''
GNATMAKE=''
GREP=''
INSTALL_DATA='${INSTALL} -m 644'
INSTALL_GDB_TK=''
INSTALL_PROGRAM='${INSTALL}'
INSTALL_SCRIPT='${INSTALL}'
LD=''
LDFLAGS='-Wl,-O1 -Wl,--as-needed'
LDFLAGS_FOR_BUILD=''
LD_FOR_BUILD='$(LD)'
LD_FOR_TARGET=''
LEX=''
LIBOBJS=''
LIBS=''
LIPO=''
LIPO_FOR_TARGET=''
LN='ln'
LN_S='ln -s'
LTLIBOBJS=''
M4=''
MAINT=''
MAINTAINER_MODE_FALSE=''
MAINTAINER_MODE_TRUE=''
MAKEINFO=''
NM=''
NM_FOR_BUILD='$(NM)'
NM_FOR_TARGET=''
OBJCOPY=''
OBJDUMP=''
OBJDUMP_FOR_TARGET=''
OBJEXT=''
PACKAGE_BUGREPORT=''
PACKAGE_NAME=''
PACKAGE_STRING=''
PACKAGE_TARNAME=''
PACKAGE_URL=''
PACKAGE_VERSION=''
PATH_SEPARATOR=':'
RANLIB=''
RANLIB_FOR_BUILD='$(RANLIB)'
RANLIB_FOR_TARGET=''
RAW_CXX_FOR_TARGET=''
RPATH_ENVVAR=''
RUNTEST=''
SED='/bin/sed'
SHELL='/bin/sh'
STRIP=''
STRIP_FOR_TARGET=''
SYSROOT_CFLAGS_FOR_TARGET=''
TOPLEVEL_CONFIGURE_ARGUMENTS='/var/tmp/portage/sys-devel/gcc-4.5.3-r2/work/gcc-4.5.3/configure --prefix=/usr --bindir=/usr/x86_64-pc-linux-gnu/gcc-bin/4.5.3 --includedir=/usr/lib/gcc/x86_64-pc-linux-gnu/4.5.3/include --datadir=/usr/share/gcc-data/x86_64-pc-linux-gnu/4.5.3 --mandir=/usr/share/gcc-data/x86_64-pc-linux-gnu/4.5.3/man --infodir=/usr/share/gcc-data/x86_64-pc-linux-gnu/4.5.3/info --with-gxx-include-dir=/usr/lib/gcc/x86_64-pc-linux-gnu/4.5.3/include/g++-v4 --host=x86_64-pc-linux-gnu --build=x86_64-pc-linux-gnu --disable-altivec --disable-fixed-point --without-ppl --without-cloog --disable-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.5.3/python --enable-checking=release --disable-libgcj --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.5.3-r2 p1.5, pie-0.4.7'\'''
WINDMC=''
WINDMC_FOR_BUILD='$(WINDMC)'
WINDMC_FOR_TARGET=''
WINDRES=''
WINDRES_FOR_BUILD='$(WINDRES)'
WINDRES_FOR_TARGET=''
YACC=''
ac_ct_CC=''
ac_ct_CXX=''
bindir='/usr/x86_64-pc-linux-gnu/gcc-bin/4.5.3'
build='x86_64-pc-linux-gnu'
build_alias='x86_64-pc-linux-gnu'
build_configargs=''
build_configdirs='build-libiberty build-texinfo build-byacc build-flex build-bison build-m4 build-fixincludes'
build_cpu='x86_64'
build_libsubdir='build-x86_64-pc-linux-gnu'
build_noncanonical='x86_64-pc-linux-gnu'
build_os='linux-gnu'
build_subdir='build-x86_64-pc-linux-gnu'
build_tooldir=''
build_vendor='pc'
clooginc=''
clooglibs=''
compare_exclusions=''
config_shell='/bin/sh'
configdirs='intl mmalloc libiberty opcodes bfd readline tcl tk itcl libgui zlib libcpp libdecnumber gmp mpfr mpc ppl cloog libelf libiconv texinfo byacc flex bison binutils gas ld fixincludes gcc cgen sid sim gdb make patch prms send-pr gprof etc expect dejagnu ash bash bzip2 m4 autoconf automake libtool diff rcs fileutils shellutils time textutils wdiff find uudecode hello tar gzip indent recode release sed utils guile perl gawk findutils gettext zip fastjar gnattools'
datadir='/usr/share/gcc-data/x86_64-pc-linux-gnu/4.5.3'
datarootdir='${prefix}/share'
do_compare=''
docdir='${datarootdir}/doc/${PACKAGE}'
dvidir='${docdir}'
enable_esp=''
exec_prefix='NONE'
extra_host_libiberty_configure_flags=''
extra_mpc_gmp_configure_flags=''
extra_mpc_mpfr_configure_flags=''
extra_mpfr_configure_flags=''
gmpinc=''
gmplibs=''
host='x86_64-pc-linux-gnu'
host_alias='x86_64-pc-linux-gnu'
host_configargs=''
host_cpu='x86_64'
host_noncanonical='x86_64-pc-linux-gnu'
host_os='linux-gnu'
host_subdir='.'
host_vendor='pc'
htmldir='${docdir}'
includedir='/usr/lib/gcc/x86_64-pc-linux-gnu/4.5.3/include'
infodir='/usr/share/gcc-data/x86_64-pc-linux-gnu/4.5.3/info'
libdir='${exec_prefix}/lib'
libelfinc=''
libelflibs=''
libexecdir='${exec_prefix}/libexec'
localedir='${datarootdir}/locale'
localstatedir='${prefix}/var'
mandir='/usr/share/gcc-data/x86_64-pc-linux-gnu/4.5.3/man'
oldincludedir='/usr/include'
pdfdir='${docdir}'
poststage1_ldflags=''
poststage1_libs=''
pplinc=''
ppllibs=''
prefix='/usr'
program_transform_name='s,y,y,'
psdir='${docdir}'
sbindir='${exec_prefix}/sbin'
sharedstatedir='${prefix}/com'
stage1_cflags=''
stage1_checking=''
stage1_languages=''
stage1_ldflags=''
stage1_libs=''
stage2_werror_flag=''
sysconfdir='${prefix}/etc'
target='x86_64-pc-linux-gnu'
target_alias=''
target_configargs=''
target_configdirs='target-libgcc target-libiberty target-libgloss target-newlib target-libgomp target-libstdc++-v3 target-libmudflap target-libssp target-libgfortran target-boehm-gc target-libffi target-zlib target-qthreads target-libjava target-libobjc target-libada target-examples target-groff target-gperf target-rda'
target_cpu='x86_64'
target_noncanonical='x86_64-pc-linux-gnu'
target_os='linux-gnu'
target_subdir='x86_64-pc-linux-gnu'
target_vendor='pc'
tooldir=''

## ------------------- ##
## File substitutions. ##
## ------------------- ##

alphaieee_frag=''
host_makefile_frag='/dev/null'
ospace_frag=''
serialization_dependencies=''
target_makefile_frag=''

## ----------- ##
## confdefs.h. ##
## ----------- ##

/* confdefs.h */
#define PACKAGE_NAME ""
#define PACKAGE_TARNAME ""
#define PACKAGE_VERSION ""
#define PACKAGE_STRING ""
#define PACKAGE_BUGREPORT ""
#define PACKAGE_URL ""

configure: exit 77


Jaglover,

Here the output of gcc -v
Quote:

# gcc -v
Using built-in specs.
COLLECT_GCC=/usr/x86_64-pc-linux-gnu/gcc-bin/4.5.3/gcc
COLLECT_LTO_WRAPPER=/usr/libexec/gcc/x86_64-pc-linux-gnu/4.5.3/lto-wrapper
Target: x86_64-pc-linux-gnu
Configured with:
/var/tmp/portage/sys-devel/gcc-4.5.3-r2/work/gcc-4.5.3/configure
--prefix=/usr --bindir=/usr/x86_64-pc-linux-gnu/gcc-bin/4.5.3
--includedir=/usr/lib/gcc/x86_64-pc-linux-gnu/4.5.3/include
--datadir=/usr/share/gcc-data/x86_64-pc-linux-gnu/4.5.3
--mandir=/usr/share/gcc-data/x86_64-pc-linux-gnu/4.5.3/man
--infodir=/usr/share/gcc-data/x86_64-pc-linux-gnu/4.5.3/info
--with-gxx-include-dir=/usr/lib/gcc/x86_64-pc-linux-gnu/4.5.3/include/g++-v4
--host=x86_64-pc-linux-gnu --build=x86_64-pc-linux-gnu --disable-altivec
--disable-fixed-point --without-ppl --without-cloog --disable-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.5.3/python
--enable-checking=release --disable-libgcj
--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.5.3-r2
p1.5, pie-0.4.7'
Thread model: posix
gcc version 4.5.3 (Gentoo 4.5.3-r2 p1.5, pie-0.4.7)


I still didn't find out how to resolve this issue.
Back to top
View user's profile Send private message
khayyam
Veteran
Veteran


Joined: 07 Jun 2012
Posts: 1252

PostPosted: Sat Jun 23, 2012 6:04 am    Post subject: Re: Problems with emerge gcc - compilation error Reply with quote

krinn wrote:
except it's O2 already in the quote you've made in fact, it's inverse in your own quote -> -02 ('oh'..) and -O2 ('zero'...)

Yes, my bad. When I look at the output of the terminal the font is such that the two are the inverse of that used in ff, and as I've made this mistake myself in the past I'd assumed this was what was happening in the OP's case. Not having slept for 48hr probably didn't help!

best ... khay
Back to top
View user's profile Send private message
Jaglover
Advocate
Advocate


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

PostPosted: Sat Jun 23, 2012 6:44 am    Post subject: Reply with quote

Two more ideas.

First, you got this: * gcc-config: Profile does not exist or invalid setting for /etc/env.d/gcc/x86_64-pc-linux-gnu-4.5.3
I'd check /etc/env.d/gcc for invalid entries and remove them if found.

Second, I had once this problem myself and it was a typo in make.conf. Have a good look at your make.conf.
_________________
Please learn how to denote units correctly!
Back to top
View user's profile Send private message
andrebvs
n00b
n00b


Joined: 12 Sep 2005
Posts: 9
Location: Sao Carlos

PostPosted: Sun Jun 24, 2012 5:01 pm    Post subject: Reply with quote

Hey guys,

Thanks a lot for the help and the tips. I could not find out what was the problem, so i reinstall all my system.

Now it works just fine. lol.

Thanks again.
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Portage & Programming 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