Compiler cannot create executable [Solved]

Anything that pertains to Portage

Moderator: Moderators

Compiler cannot create executable [Solved]

Postby dhorifinn » Sat Jan 12, 2013 9:42

Hi all. Every time i try to install a package from portage i obtain such a result

Code: Select all
Calculating dependencies... done!

!!! The following installed packages are masked:
- net-wireless/broadcom-sta-5.100.82.112-r2::sabayon (masked by: Broadcom license(s))
A copy of the 'Broadcom' license is located at '/usr/portage/licenses/Broadcom'.

- www-plugins/adobe-flash-11.2.202.258::gentoo (masked by: AdobeFlash-10.3 license(s))
A copy of the 'AdobeFlash-10.3' license is located at '/usr/portage/licenses/AdobeFlash-10.3'.

- net-im/skype-4.1.0.20::gentoo (masked by: skype-4.0.0.7-copyright license(s))
A copy of the 'skype-4.0.0.7-copyright' license is located at '/usr/portage/licenses/skype-4.0.0.7-copyright'.

For more information, see the MASKED PACKAGES section in the emerge
man page or refer to the Gentoo Handbook.


>>> Verifying ebuild manifests

>>> Starting parallel fetch

>>> Emerging (1 of 2) media-gfx/scrot-0.8
 * scrot-0.8.tar.gz SHA256 SHA512 WHIRLPOOL size ;-) ...                                      [ ok ]
>>> Unpacking source...
>>> Unpacking scrot-0.8.tar.gz to /var/tmp/portage/media-gfx/scrot-0.8/work
>>> Source unpacked in /var/tmp/portage/media-gfx/scrot-0.8/work
>>> Compiling source in /var/tmp/portage/media-gfx/scrot-0.8/work/scrot-0.8 ...
./configure --prefix=/usr --build=x86_64-pc-linux-gnu --host=x86_64-pc-linux-gnu --mandir=/usr/share/man --infodir=/usr/share/info --datadir=/usr/share --sysconfdir=/etc --localstatedir=/var/lib --libdir=/usr/lib64
checking for a BSD-compatible install... /usr/bin/install -c
checking whether build environment is sane... yes
checking whether make sets $(MAKE)... yes
checking for working aclocal-1.4... missing                                                         
checking for working autoconf... found                                                               
checking for working automake-1.4... missing                                                         
checking for working autoheader... found
checking for working makeinfo... found
checking for x86_64-pc-linux-gnu-gcc... x86_64-pc-linux-gnu-gcc
checking for C compiler default output... configure: error: C compiler cannot create executables
See `config.log' for more details.

!!! Please attach the following file when seeking support:
!!! /var/tmp/portage/media-gfx/scrot-0.8/work/scrot-0.8/config.log
 * ERROR: media-gfx/scrot-0.8 failed (compile phase):
 *   econf failed
 *
 * Call stack:
 *          ebuild.sh, line   93:  Called src_compile
 *        environment, line 2099:  Called __eapi0_src_compile
 *   phase-helpers.sh, line  570:  Called econf
 *   phase-helpers.sh, line  501:  Called die
 * The specific snippet of code:
 *                      die "econf failed"
 *
 * If you need support, post the output of `emerge --info '=media-gfx/scrot-0.8'`,
 * the complete build log and the output of `emerge -pqv '=media-gfx/scrot-0.8'`.
 * The complete build log is located at '/var/tmp/portage/media-gfx/scrot-0.8/temp/build.log'.
 * The ebuild environment file is located at '/var/tmp/portage/media-gfx/scrot-0.8/temp/environment'.
 * Working directory: '/var/tmp/portage/media-gfx/scrot-0.8/work/scrot-0.8'
 * S: '/var/tmp/portage/media-gfx/scrot-0.8/work/scrot-0.8'

>>> Failed to emerge media-gfx/scrot-0.8, Log file:

>>>  '/var/tmp/portage/media-gfx/scrot-0.8/temp/build.log'

 * Messages for package media-gfx/scrot-0.8:

 * ERROR: media-gfx/scrot-0.8 failed (compile phase):
 *   econf failed
 *
 * Call stack:
 *          ebuild.sh, line   93:  Called src_compile
 *        environment, line 2099:  Called __eapi0_src_compile
 *   phase-helpers.sh, line  570:  Called econf
 *   phase-helpers.sh, line  501:  Called die
 * The specific snippet of code:
 *                      die "econf failed"
 *
 * If you need support, post the output of `emerge --info '=media-gfx/scrot-0.8'`,
 * the complete build log and the output of `emerge -pqv '=media-gfx/scrot-0.8'`.
 * The complete build log is located at '/var/tmp/portage/media-gfx/scrot-0.8/temp/build.log'.
 * The ebuild environment file is located at '/var/tmp/portage/media-gfx/scrot-0.8/temp/environment'.
 * Working directory: '/var/tmp/portage/media-gfx/scrot-0.8/work/scrot-0.8'
 * S: '/var/tmp/portage/media-gfx/scrot-0.8/work/scrot-0.8'


This is my make.conf file:
Code: Select all
# These settings were set by the catalyst build script that automatically built this stage
# Please consult /etc/make.conf.example for a more detailed example

# Compiler stuff
GRAPHITE="-floop-interchange -ftree-loop-distribution -floop-strip-mine -floop-block"
# Only enable Graphite via package.env
CHOST="x86_64-pc-linux-gnu"
CFLAGS="-march=native -02 -pipe"
CXXFLAGS="${CFLAGS}"
LDFLAGS="-Wl,-O1 -Wl,--as-needed"
MAKEOPTS="-j5"

# Portage stuff
ACCEPT_KEYWORDS="~amd64"
FEATURES="ccache parallel-fetch protect-owned splitdebug"
CCACHE_SIZE="2G"
CCACHE_DIR="/var/ccache"

LINGUAS="en en_US af ar az bg bn br bs ca cs cy da de el en_GB eo es et eu fa fi fr fy ga gl he hi h$

## USE ARRAYS ##
SAB_BAD="-kdeprefix -arts -qt3 -beagle -gnome -evo -mono -eds -apm -oss -branding -esd"
SAB_MEDIA="musicbrainz sdl pulseaudio wmf fame cdr dvi mp3rtp xine cddb alsa dvb dvd network dvdread$
SAB_CODECS="x264 gsm lame dv mp3 stream live openal theora ogg a52 win32codecs matroska xvid flac ff$
SAB_SYSTEM="cjk unicode gnutls nptl gcj udev kerberos acl dbus bash-completion lzo rar policykit xcb$
SAB_FILESYS="fat hfs jfs xfs ntfs reiserfs sysfs inotify"
SAB_PRINT="cups ppds foomatic-db gimpprint freetype xprint scanner"
SAB_XSYS="cairo X opengl png gif gtk qt4 qt3support xpm tiff xinerama aiglx svg gphoto2 dga lcd open$
SAB_DESKTOP="kdehiddenvisibility gmp libnotify rdesktop pda zeroconf kdeenablefinal visualization av$
SAB_BROWSER="nsplugin firefox mozdevelop xulrunner"
SAB_COMMS="jabber msn yahoo icq irc aim rss slp mail imap"

USE="${SAB_BAD} ${SAB_MEDIA} ${SAB_CODECS} ${SAB_SYSTEM} ${SAB_FILESYS} ${SAB_PRINT} ${SAB_XSYS} ${S$

## DEVICES ##
INPUT_DEVICES="evdev void"
VIDEO_CARDS="fbdev vesa radeonhd"
LIRC_DEVICES="audio audio_alsa serial pctv"
ALSA_CARDS="emu10k1x darla20 darla24 emu10k1 gina20 gina24 hdsp hdspm ice1712 indigo indigoio layla2$
CAMERAS="agfa_cl20 casio_qv dimagev dimera3500 kodak_dc120 kodak_dc210 kodak_dc240 kodak_dc3200 koda$

## OFFICE ##
LIBREOFFICE_EXTENSIONS="presenter-console presenter-minimizer pdfimport wiki-publisher"

## QEMU ##
QEMU_USER_TARGETS="alpha arm armeb cris i386 m68k microblaze mips mipsel ppc ppc64 ppc64abi32 sh4 sh$
QEMU_SOFTMMU_TARGETS="x86_64 arm cris i386 m68k microblaze mips mips64 mips64el mipsel ppc ppc64 ppc$

## PORTAGE CONFIG ##
source /var/lib/layman/make.conf
CONFIG_PROTECT="/usr/share/config/kdm /etc /etc/conf.d /etc/init.d"
CONFIG_PROTECT_MASK="/etc/skel"
SYNC="rsync://rsync.europe.gentoo.org/gentoo-portage"
APACHE2_MPMS="prefork"
GENTOO_MIRRORS="ftp://mirrors.tera-byte.com/pub/gentoo ftp://ftp.spline.inf.fu-berlin.de/mirrors/gen$

## FUCK KILL PYTHON 3 WITH FIRE ##
# Avoids python.eclass to compile stuff for Python 3
## OFFICE ##
LIBREOFFICE_EXTENSIONS="presenter-console presenter-minimizer pdfimport wiki-publisher"

## QEMU ##
QEMU_USER_TARGETS="alpha arm armeb cris i386 m68k microblaze mips mipsel ppc ppc64 ppc64abi32 sh4 sh$
QEMU_SOFTMMU_TARGETS="x86_64 arm cris i386 m68k microblaze mips mips64 mips64el mipsel ppc ppc64 ppc$

## PORTAGE CONFIG ##
source /var/lib/layman/make.conf
CONFIG_PROTECT="/usr/share/config/kdm /etc /etc/conf.d /etc/init.d"
CONFIG_PROTECT_MASK="/etc/skel"
SYNC="rsync://rsync.europe.gentoo.org/gentoo-portage"
APACHE2_MPMS="prefork"
GENTOO_MIRRORS="ftp://mirrors.tera-byte.com/pub/gentoo ftp://ftp.spline.inf.fu-berlin.de/mirrors/gen$

## FUCK KILL PYTHON 3 WITH FIRE ##
# Avoids python.eclass to compile stuff for Python 3
USE_PYTHON="2.7"
PYTHON_TARGETS="python2_7"

# Some more forced targets
PHP_TARGETS="php5-3"
RUBY_TARGETS="ruby18"

# Apache suEXEC default UMASK
# See bug 3544
SUEXEC_UMASK=022



and this is the log file:
Code: Select all
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.57.  Invocation command line was

  $ ./configure --prefix=/usr --build=x86_64-pc-linux-gnu --host=x86_64-pc-linux-gnu --mandir=/usr/share/man --infodir=/usr/share/info --datadir=/usr/share --sysconfdir=/etc --localstatedir=/var/lib --libdir=/usr/lib64

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

hostname = dhorifinn.localdomain
uname -m = x86_64
uname -r = 3.5.0-sabayon
uname -s = Linux
uname -v = #1 SMP Sun Nov 11 10:31:31 UTC 2012

/usr/bin/uname -p = Intel(R) Core(TM) i7 CPU 860 @ 2.80GHz
/bin/uname -X     = unknown

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

PATH: /usr/lib64/ccache/bin
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.6.3


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

configure:1268: checking for a BSD-compatible install
configure:1322: result: /usr/bin/install -c
configure:1333: checking whether build environment is sane
configure:1376: result: yes
configure:1391: checking whether make sets $(MAKE)
configure:1411: result: yes
configure:1443: checking for working aclocal-1.4
configure:1454: result: missing
configure:1458: checking for working autoconf
configure:1465: result: found
configure:1473: checking for working automake-1.4
configure:1484: result: missing
configure:1488: checking for working autoheader
configure:1495: result: found
configure:1503: checking for working makeinfo
configure:1510: result: found
configure:1533: checking for x86_64-pc-linux-gnu-gcc
configure:1549: found /usr/bin/x86_64-pc-linux-gnu-gcc
configure:1559: result: x86_64-pc-linux-gnu-gcc
configure:1841: checking for C compiler version
configure:1844: x86_64-pc-linux-gnu-gcc --version </dev/null >&5
x86_64-pc-linux-gnu-gcc (Gentoo Hardened 4.6.3 p1.3, pie-0.5.2) 4.6.3
Copyright (C) 2011 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:1847: $? = 0
configure:1849: x86_64-pc-linux-gnu-gcc -v </dev/null >&5
Using built-in specs.
Reading specs from /usr/lib/gcc/x86_64-pc-linux-gnu/4.6.3/vanilla.specs
Reading specs from /usr/lib/gcc/x86_64-pc-linux-gnu/4.6.3/hardenednossp.specs
Reading specs from /usr/lib/gcc/x86_64-pc-linux-gnu/4.6.3/hardenednopie.specs
COLLECT_GCC=/usr/x86_64-pc-linux-gnu/gcc-bin/4.6.3/x86_64-pc-linux-gnu-gcc
COLLECT_LTO_WRAPPER=/usr/libexec/gcc/x86_64-pc-linux-gnu/4.6.3/lto-wrapper
Target: x86_64-pc-linux-gnu
Configured with: /var/tmp/portage/sys-devel/gcc-4.6.3/work/gcc-4.6.3/configure --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++-v4 --host=x86_64-pc-linux-gnu --build=x86_64-pc-linux-gnu --disable-altivec --disable-fixed-point --with-ppl --with-cloog --disable-ppl-version-check --with-cloog-include=/usr/include/cloog-ppl --enable-lto --enable-nls --without-included-gettext --with-system-zlib --enable-obsolete --disable-werror --enable-secureplt --enable-multilib --enable-libmudflap --disable-libssp --enable-esp --enable-libgomp --with-python-dir=/share/gcc-data/x86_64-pc-linux-gnu/4.6.3/python --enable-checking=release --enable-objc-gc --enable-languages=c,c++,java,objc,obj-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 Hardened 4.6.3 p1.3, pie-0.5.2'
Thread model: posix
gcc version 4.6.3 (Gentoo Hardened 4.6.3 p1.3, pie-0.5.2)
configure:1852: $? = 0
configure:1854: x86_64-pc-linux-gnu-gcc -V </dev/null >&5
x86_64-pc-linux-gnu-gcc: error: unrecognized option '-V'
x86_64-pc-linux-gnu-gcc: fatal error: no input files
compilation terminated.
configure:1857: $? = 1
configure:1881: checking for C compiler default output
configure:1884: x86_64-pc-linux-gnu-gcc -march=native -02 -pipe  -Wl,-O1 -Wl,--as-needed conftest.c  >&5
x86_64-pc-linux-gnu-gcc: error: unrecognized option '-02'
configure:1887: $? = 1
configure: failed program was:
| #line 1860 "configure"
| /* confdefs.h.  */
|
| #define PACKAGE_NAME ""
| #define PACKAGE_TARNAME ""
| #define PACKAGE_VERSION ""
| #define PACKAGE_STRING ""
| #define PACKAGE_BUGREPORT ""
| #define PACKAGE "scrot"
| #define VERSION "0.8"
| /* end confdefs.h.  */
|
| int
| main ()
| {
|
|   ;
|   return 0;
| }
configure:1926: error: C compiler cannot create executables
See `config.log' for more details.

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

ac_cv_env_CC_set=
ac_cv_env_CC_value=
ac_cv_env_CFLAGS_set=set
ac_cv_env_CFLAGS_value='-march=native -02 -pipe'
ac_cv_env_CPPFLAGS_set=
ac_cv_env_CPPFLAGS_value=
ac_cv_env_LDFLAGS_set=set
ac_cv_env_LDFLAGS_value='-Wl,-O1 -Wl,--as-needed'
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_path_install='/usr/bin/install -c'
ac_cv_prog_CC=x86_64-pc-linux-gnu-gcc
ac_cv_prog_make_make_set=yes

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

ACLOCAL='/var/tmp/portage/media-gfx/scrot-0.8/work/scrot-0.8/missing aclocal-1.4'
AUTOCONF='autoconf'
AUTOHEADER='autoheader'
AUTOMAKE='/var/tmp/portage/media-gfx/scrot-0.8/work/scrot-0.8/missing automake-1.4'
CC='x86_64-pc-linux-gnu-gcc'
CFLAGS='-march=native -02 -pipe'
CPPFLAGS=''
DEFS=''
ECHO_C=''
ECHO_N='-n'
ECHO_T=''
EXEEXT=''
GIBLIB_CFLAGS=''
GIBLIB_CONFIG=''
GIBLIB_LIBS=''
INSTALL_DATA='${INSTALL} -m 644'
INSTALL_PROGRAM='${INSTALL}'
INSTALL_SCRIPT='${INSTALL}'
LDFLAGS='-Wl,-O1 -Wl,--as-needed'
LIBOBJS=''
LIBOBJS=''
LIBS=''
LTLIBOBJS=''
MAINT=''
MAINTAINER_MODE_FALSE=''
MAINTAINER_MODE_TRUE=''
MAKEINFO='makeinfo'
OBJEXT=''
PACKAGE='scrot'
PACKAGE_BUGREPORT=''
PACKAGE_NAME=''
PACKAGE_STRING=''
PACKAGE_TARNAME=''
PACKAGE_VERSION=''
PATH_SEPARATOR=':'
SET_MAKE=''
SHELL='/bin/sh'
VERSION='0.8'
ac_ct_CC=''
bindir='${exec_prefix}/bin'
build_alias='x86_64-pc-linux-gnu'
datadir='/usr/share'
exec_prefix='NONE'
host_alias='x86_64-pc-linux-gnu'
includedir='${prefix}/include'
infodir='/usr/share/info'
libdir='/usr/lib64'
libexecdir='${exec_prefix}/libexec'
localstatedir='/var/lib'
mandir='/usr/share/man'
oldincludedir='/usr/include'
prefix='/usr'
program_transform_name='s,x,x,'
sbindir='${exec_prefix}/sbin'
sharedstatedir='${prefix}/com'
sysconfdir='/etc'
target_alias=''

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

#define PACKAGE "scrot"
#define PACKAGE_BUGREPORT ""
#define PACKAGE_NAME ""
#define PACKAGE_STRING ""
#define PACKAGE_TARNAME ""
#define PACKAGE_VERSION ""
#define VERSION "0.8"

configure: exit 77


I tried to look for a solution into gentoo forum but the solutions they tried didn't worked. Any idea on qath's the problem?
Thanks.
Last edited by dhorifinn on Sat Jan 12, 2013 20:35, edited 1 time in total.
dhorifinn
Baby Hen
 
Posts: 5
Joined: Sat Jan 12, 2013 9:18

Re: Compiler cannot create executable

Postby sabayonino » Sat Jan 12, 2013 12:40

Hi

make sure you have full gcc enviroment installed
Code: Select all
# equo query installed gcc

Example :
Code: Select all
equo query installed gcc
>>  @@ Cercando...
>>      @@ Pacchetto: sys-devel/base-gcc-4.6.3 branch: 5, [__system__]
>>         Installato:    versione: 4.6.3 ~ tag: NoTag ~ revisione: 0
>>         Slot:          4.6
>>         Homepage:      http://gcc.gnu.org/
>>         Descrizione:   The GNU Compiler Collection
>>         Licenza:       FDL-1.2 GPL-3 LGPL-3 gcc-runtime-library-exception-3.1 libgcc libstdc++
>>      @@ Pacchetto: sys-devel/gcc-4.6.3 branch: 5, [__system__]
>>         Installato:    versione: 4.6.3 ~ tag: NoTag ~ revisione: 0
>>         Slot:          4.6
>>         Homepage:      http://gcc.gnu.org/
>>         Descrizione:   The GNU Compiler Collection
>>         Licenza:       FDL-1.2 GPL-3 LGPL-3 gcc-runtime-library-exception-3.1 libgcc libstdc++
>>      @@ Pacchetto: sys-devel/gcc-config-1.8 branch: 5, [__system__]
>>         Installato:    versione: 1.8 ~ tag: NoTag ~ revisione: 9999
>>         Slot:          0
>>         Homepage:      http://git.overlays.gentoo.org/gitweb/?p=proj/gcc-config.git
>>         Descrizione:   utility to manage compilers
>>         Licenza:       GPL-2
>>  Keyword:  gcc
>>  Trovati:  3 voci



Check gcc profile
Code: Select all
# gcc-config -l

Example :
Code: Select all
gcc-config -l
 [1] x86_64-pc-linux-gnu-4.6.3 *
 [2] x86_64-pc-linux-gnu-4.6.3-hardenednopie
 [3] x86_64-pc-linux-gnu-4.6.3-hardenednopiessp
 [4] x86_64-pc-linux-gnu-4.6.3-hardenednossp
 [5] x86_64-pc-linux-gnu-4.6.3-vanilla


(My profile is set to [1] ---> x86_64-pc-linux-gnu-4.6.3 * )

Set profile:
Code: Select all
# gcc-config <N_profile>


Then Run
Code: Select all
# source /etc/profile


Now you could compile your "world" :mrgreen:
User avatar
sabayonino
Sagely Hen
 
Posts: 1572
Joined: Sun Sep 21, 2008 1:12
Location: Italy

Re: Compiler cannot create executable

Postby dhorifinn » Sat Jan 12, 2013 13:13

Thanks for help. Lemme see: if i check for the config of gcc enviroment i obtain such a result

Code: Select all
dhorifinn massimiliano # equo query installed gcc
>>  @@ Cercando...
>>      @@ Pacchetto: sys-devel/base-gcc-4.6.3 branch: 5, [__system__]
>>         Installato:    versione: 4.6.3 ~ tag: NoTag ~ revisione: 0
>>         Slot:          4.6
>>         Homepage:      http://gcc.gnu.org/
>>         Descrizione:   The GNU Compiler Collection
>>         Licenza:       FDL-1.2 GPL-3 LGPL-3 gcc-runtime-library-exception-3.1 libgcc libstdc++
>>      @@ Pacchetto: sys-devel/gcc-4.6.3 branch: 5, [__system__]
>>         Installato:    versione: 4.6.3 ~ tag: NoTag ~ revisione: 0
>>         Slot:          4.6
>>         Homepage:      http://gcc.gnu.org/
>>         Descrizione:   The GNU Compiler Collection
>>         Licenza:       FDL-1.2 GPL-3 LGPL-3 gcc-runtime-library-exception-3.1 libgcc libstdc++
>>      @@ Pacchetto: sys-devel/gcc-config-1.7.3 branch: 5, [__system__]
>>         Installato:    versione: 1.7.3 ~ tag: NoTag ~ revisione: 0
>>         Slot:          0
>>         Homepage:      http://git.overlays.gentoo.org/gitweb/?p=proj/gcc-config.git
>>         Descrizione:   utility to manage compilers
>>         Licenza:       GPL-2
>>  Keyword:  gcc
>>  Trovati:  3 voci


How can i update the gcc-config1.7.3 to 1.8 (sorry for i'm rly n00b)?
From equo console
equo install sys-devel/gcc-config it refresh mi 1.7.3 (maybe 1.8 is not in repo?). Trying to emerge it obviously it fails but it search and download 1.8.
dhorifinn
Baby Hen
 
Posts: 5
Joined: Sat Jan 12, 2013 9:18

Re: Compiler cannot create executable

Postby albfneto » Sat Jan 12, 2013 16:31

for the 3.6.3 version of GCC, seems to me that the newer gcc-config is not necessary.
therefore, you may try to correct the compiler bad misfunction using these commands:

Code: Select all
binutils-config -l  (see the NUMBER, example 1, see below)
sudo binutils-config 1


Then, try to sync and upgrade portage and compile something, example the gcc-config itself.
Image
ALBERTO FEDERMAN NETO
albfneto
albfneto@fcfrp.usp.br
Favorite Distros: Sabayon, Gentoo, Mandriva and OpenSUSE
User avatar
albfneto
Sagely Hen
 
Posts: 1297
Joined: Fri Nov 16, 2007 1:15
Location: Ribeirão Preto City, São Paulo State, Brazil

Re: Compiler cannot create executable

Postby dhorifinn » Sat Jan 12, 2013 17:27

albfneto wrote:for the 3.6.3 version of GCC, seems to me that the newer gcc-config is not necessary.
therefore, you may try to correct the compiler bad misfunction using these commands:

Code: Select all
binutils-config -l  (see the NUMBER, example 1, see below)
sudo binutils-config 1


Then, try to sync and upgrade portage and compile something, example the gcc-config itself.


Nothing to do. Same error as before.
dhorifinn
Baby Hen
 
Posts: 5
Joined: Sat Jan 12, 2013 9:18

Re: Compiler cannot create executable

Postby sabayonino » Sat Jan 12, 2013 18:33

Code: Select all
x86_64-pc-linux-gnu-gcc: error: unrecognized option '-02'


I see an error on your make.conf

CFLAGS="-march=native -02 -pipe"

02 is not "zero" and "2" but "O" uppercase ! and 2

Wrong
Code: Select all
CFLAGS="-march=native -02 -pipe"



Right
Code: Select all
CFLAGS="-march=native -O2 -pipe"
User avatar
sabayonino
Sagely Hen
 
Posts: 1572
Joined: Sun Sep 21, 2008 1:12
Location: Italy

Re: Compiler cannot create executable

Postby dhorifinn » Sat Jan 12, 2013 20:23

Ohi my... How noob i am!

You was right! It works.

Thanks alot to all of you guys! :)
dhorifinn
Baby Hen
 
Posts: 5
Joined: Sat Jan 12, 2013 9:18

Re: Compiler cannot create executable

Postby sabayonino » Sat Jan 12, 2013 20:36

dhorifinn wrote:Ohi my... How noob i am!

You was right! It works.

Thanks alot to all of you guys! :)

Nice.

pleaze mark this topic as "[SOLVED]"

tnx
User avatar
sabayonino
Sagely Hen
 
Posts: 1572
Joined: Sun Sep 21, 2008 1:12
Location: Italy


Return to Portage|Emerge Package Managers

Who is online

Users browsing this forum: No registered users and 1 guest