Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
[SOLVED] Emerging sys-devel/gcc-4.6.3 fails during configure
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
Hydrael
n00b
n00b


Joined: 05 Jan 2013
Posts: 7

PostPosted: Sat Jan 05, 2013 1:46 pm    Post subject: [SOLVED] Emerging sys-devel/gcc-4.6.3 fails during configure Reply with quote

I'm currently trying to emerge steam-client-meta from the steam-overlay, which requires me to emerge gcc-4.6.3.

This however fails during configure for a reason I don't understand.
Here's my config.log, which shows the error message

Code:

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.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 --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.9, pie-0.5.2

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

hostname = bigone
uname -m = x86_64
uname -r = 3.5.7-gentoo
uname -s = Linux
uname -v = #3 SMP Wed Nov 28 17:41:07 GMT 2012

/usr/bin/uname -p = AMD Phenom(tm) II X4 940 Processor
/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.4.7
PATH: /opt/cuda/bin


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

configure:2228: checking build system type
configure:2242: result: x86_64-pc-linux-gnu
configure:2289: checking host system type
configure:2302: result: x86_64-pc-linux-gnu
configure:2322: checking target system type
configure:2335: result: x86_64-pc-linux-gnu
configure:2389: checking for a BSD-compatible install
configure:2457: result: /usr/bin/install -c
configure:2468: checking whether ln works
configure:2490: result: yes
configure:2494: checking whether ln -s works
configure:2498: result: yes
configure:2505: checking for a sed that does not truncate output
configure:2569: result: /bin/sed
configure:2578: checking for gawk
configure:2594: found /usr/bin/gawk
configure:2605: result: gawk
configure:3898: checking for x86_64-pc-linux-gnu-gcc
configure:3914: found /usr/bin/x86_64-pc-linux-gnu-gcc
configure:3925: result: x86_64-pc-linux-gnu-gcc
configure:4194: checking for C compiler version
configure:4203: x86_64-pc-linux-gnu-gcc --version >&5
x86_64-pc-linux-gnu-gcc (Gentoo 4.4.7 p1.1, pie-0.4.5) 4.4.7
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:4214: $? = 0
configure:4203: x86_64-pc-linux-gnu-gcc -v >&5
Using built-in specs.
Target: x86_64-pc-linux-gnu
Configured with: /var/tmp/portage/sys-devel/gcc-4.4.7/work/gcc-4.4.7/configure --prefix=/usr --bindir=/usr/x86_64-pc-linux-gnu/gcc-bin/4.4.7 --includedir=/usr/lib/gcc/x86_64-pc-linux-gnu/4.4.7/include --datadir=/usr/share/gcc-data/x86_64-pc-linux-gnu/4.4.7 --mandir=/usr/share/gcc-data/x86_64-pc-linux-gnu/4.4.7/man --infodir=/usr/share/gcc-data/x86_64-pc-linux-gnu/4.4.7/info --with-gxx-include-dir=/usr/lib/gcc/x86_64-pc-linux-gnu/4.4.7/include/g++-v4 --host=x86_64-pc-linux-gnu --build=x86_64-pc-linux-gnu --disable-altivec --disable-fixed-point --without-ppl --without-cloog --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.4.7/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.4.7 p1.1, pie-0.4.5'
Thread model: posix
gcc version 4.4.7 (Gentoo 4.4.7 p1.1, pie-0.4.5)
configure:4214: $? = 0
configure:4203: x86_64-pc-linux-gnu-gcc -V >&5
x86_64-pc-linux-gnu-gcc: '-V' option must have argument
configure:4214: $? = 1
configure:4203: 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:4214: $? = 1
configure:4234: checking for C compiler default output file name
configure:4256: x86_64-pc-linux-gnu-gcc -march=generic -pipe  -Wl,-O1 -Wl,--as-needed conftest.c  >&5
conftest.c:1: error: generic CPU can be used only for -mtune= switch
conftest.c:1: error: bad value (generic) for -march= switch
conftest.c:1: error: bad value (generic) for -march= switch
configure:4260: $? = 1
configure:4297: 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:4303: error: in `/var/tmp/portage/sys-devel/gcc-4.6.3/work/build':
configure:4307: 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=generic -pipe'
ac_cv_env_CPPFLAGS_set=set
ac_cv_env_CPPFLAGS_value=
ac_cv_env_CXXFLAGS_set=set
ac_cv_env_CXXFLAGS_value='-march=generic -pipe'
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_GOC_FOR_TARGET_set=
ac_cv_env_GOC_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_build_configargs_set=
ac_cv_env_build_configargs_value=
ac_cv_env_host_alias_set=set
ac_cv_env_host_alias_value=x86_64-pc-linux-gnu
ac_cv_env_host_configargs_set=
ac_cv_env_host_configargs_value=
ac_cv_env_target_alias_set=
ac_cv_env_target_alias_value=
ac_cv_env_target_configargs_set=
ac_cv_env_target_configargs_value=
ac_cv_have_x='have_x=yes ac_x_includes= ac_x_libraries='
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=generic -pipe'
CFLAGS_FOR_BUILD=''
CFLAGS_FOR_TARGET=''
COMPILER_AS_FOR_TARGET=''
COMPILER_LD_FOR_TARGET=''
COMPILER_NM_FOR_TARGET=''
CONFIGURE_GDB_TK=''
CPPFLAGS=''
CXX=''
CXXFLAGS='-march=generic -pipe'
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=''
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=''
GOC_FOR_BUILD='$(GOC)'
GOC_FOR_TARGET=''
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.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 --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.9, pie-0.5.2'\'''
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.6.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.6.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.6.3/include'
infodir='/usr/share/gcc-data/x86_64-pc-linux-gnu/4.6.3/info'
libdir='${exec_prefix}/lib'
libexecdir='${exec_prefix}/libexec'
localedir='${datarootdir}/locale'
localstatedir='${prefix}/var'
mandir='/usr/share/gcc-data/x86_64-pc-linux-gnu/4.6.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-libgloss target-newlib target-libgomp target-libstdc++-v3 target-libmudflap target-libssp target-libquadmath target-libgfortran target-boehm-gc target-libffi target-zlib target-qthreads target-libjava target-libobjc target-libada target-libgo 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



It is these lines that drive me insane:
Code:

configure:4234: checking for C compiler default output file name
configure:4256: x86_64-pc-linux-gnu-gcc -march=generic -pipe  -Wl,-O1 -Wl,--as-needed conftest.c  >&5
conftest.c:1: error: generic CPU can be used only for -mtune= switch
conftest.c:1: error: bad value (generic) for -march= switch
conftest.c:1: error: bad value (generic) for -march= switch


I never specified -march=generic anywhere.
My $CFLAGS in /etc/make.conf look like this

Code:

CFLAGS="-march=opteron -O2 -pipe"
CXXFLAGS="${CFLAGS}"
MAKEOPTS="-j5"


My CPU is a AMD Phenom II X4 940

gcc-config -l prints this:
Code:

[1] x86_64-pc-linux-gnu-4.4.7 *
[2] x86_64-pc-linux-gnu-4.5.4


Does anyone know, why -march=generic is being used or how I can change that?
Thanks in advance


Last edited by Hydrael on Sat Jan 05, 2013 7:31 pm; edited 2 times in total
Back to top
View user's profile Send private message
jrussia
Tux's lil' helper
Tux's lil' helper


Joined: 29 Aug 2012
Posts: 89
Location: Chicago

PostPosted: Sat Jan 05, 2013 4:45 pm    Post subject: Reply with quote

is it possible that you have a make.conf file in /etc/portage/ that is suppressing the one in /etc/ ?
Back to top
View user's profile Send private message
Hydrael
n00b
n00b


Joined: 05 Jan 2013
Posts: 7

PostPosted: Sat Jan 05, 2013 4:51 pm    Post subject: Reply with quote

Good thought, but the make.conf in /etc is the only one I have
Back to top
View user's profile Send private message
NeddySeagoon
Administrator
Administrator


Joined: 05 Jul 2003
Posts: 54212
Location: 56N 3W

PostPosted: Sat Jan 05, 2013 5:03 pm    Post subject: Reply with quote

Hydrael,

Please select x86_64-pc-linux-gnu-4.5.4 and try again.

If that fails, set -march=native, in place of your -march=opteron
_________________
Regards,

NeddySeagoon

Computer users fall into two groups:-
those that do backups
those that have never had a hard drive fail.
Back to top
View user's profile Send private message
Hydrael
n00b
n00b


Joined: 05 Jan 2013
Posts: 7

PostPosted: Sat Jan 05, 2013 5:17 pm    Post subject: Reply with quote

Unfortunately that didn't work either.

But what I found out now:
When manually invoking ebuild via
Code:

ebuild /usr/portage/sys-devel/gcc/gcc-4.6.3.ebuild compile

I get the same error.

However if I do this
Code:

cd /var/tmp/portage/sys-devel/gcc-4.6.3/work/gcc-4.6.3
./configure
make -j5

It compiles just fine.

There's got to be something I really messed up :/
Back to top
View user's profile Send private message
NeddySeagoon
Administrator
Administrator


Joined: 05 Jul 2003
Posts: 54212
Location: 56N 3W

PostPosted: Sat Jan 05, 2013 6:13 pm    Post subject: Reply with quote

Hydrael,

Post your
Code:
emerge --info
please
_________________
Regards,

NeddySeagoon

Computer users fall into two groups:-
those that do backups
those that have never had a hard drive fail.
Back to top
View user's profile Send private message
Hydrael
n00b
n00b


Joined: 05 Jan 2013
Posts: 7

PostPosted: Sat Jan 05, 2013 6:16 pm    Post subject: Reply with quote

Here you go

Code:

Portage 2.2.0_alpha149 (default/linux/amd64/10.0, gcc-4.4.7, glibc-2.15-r3, 3.5.7-gentoo x86_64)
=================================================================
System uname: Linux-3.5.7-gentoo-x86_64-AMD_Phenom-tm-_II_X4_940_Processor-with-gentoo-2.1
Timestamp of tree: Thu, 03 Jan 2013 21:45:01 +0000
ld GNU ld (GNU Binutils) 2.22
app-shells/bash:          4.2_p37
dev-java/java-config:     2.1.11-r3
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.13, 2.69
sys-devel/automake:       1.9.6-r3, 1.11.6
sys-devel/binutils:       2.22-r1
sys-devel/gcc:            4.4.7, 4.5.4
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 steam-overlay
ACCEPT_KEYWORDS="amd64"
ACCEPT_LICENSE="* -@EULA AdobeFlash-10.3"
CBUILD="x86_64-pc-linux-gnu"
CFLAGS="-march=opteron -O2 -pipe"
CHOST="x86_64-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/share/config /usr/share/gnupg/qualified.txt /usr/share/openvpn/easy-rsa /var/lib/hsqldb"
CONFIG_PROTECT_MASK="${EPREFIX}/etc/gconf /etc/ca-certificates.conf /etc/env.d /etc/env.d/java/ /etc/fonts/fonts.conf /etc/gconf /etc/gentoo-release /etc/php/apache2-php5.4/ext-active/ /etc/php/cgi-php5.4/ext-active/ /etc/php/cli-php5.4/ext-active/ /etc/revdep-rebuild /etc/sandbox.d /etc/terminfo /etc/texmf/language.dat.d /etc/texmf/language.def.d /etc/texmf/updmap.d /etc/texmf/web2c"
CXXFLAGS="-march=opteron -O2 -pipe"
DISTDIR="/usr/portage/distfiles"
FCFLAGS="-O2 -pipe"
FEATURES="assume-digests binpkg-logs config-protect-if-modified distlocks ebuild-locks fixlafiles merge-sync news parallel-fetch preserve-libs protect-owned sandbox sfperms strict unknown-features-warn unmerge-logs unmerge-orphans userfetch"
FFLAGS="-O2 -pipe"
GENTOO_MIRRORS="http://ftp.uni-erlangen.de/pub/mirrors/gentoo"
LANG="en_EN.UTF-8"
LC_ALL="en_US.utf-8"
LDFLAGS="-Wl,-O1 -Wl,--as-needed"
MAKEOPTS="-j5"
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="/var/lib/layman/steam"
SYNC="rsync://rsync.europe.gentoo.org/gentoo-portage"
USE="3ds X a52 aac aacplus aacs aalib acct ace acl acm acpi addressbook ads aes-ni aesicm aften aim aio akonadi alsa amd64 amr animgif ant antlr apache2 apm apng archive ares asn ass assistant attica audacious audio audiofile auth avcodec avconv avformat avfs awt backtrace barcode bash-completion bazaar bcel beeper berkdb big-tables bignums binary-drivers bineditor binfilter bittorrent bl blas blender blender-game blksha1 bluray bookmarks boost bpm branding bugzilla bzip2 cairo caps ccache cdda cdio cdr cdrom celt cg cgi checksum chipcard chm cli client cmake consolekit contactnotes corefonts cover coverart cpudetection cracklib crashreporter creds cron crypt cscope csharp css cuda cue cups curl cxx dbus dds declarative designer designer-plugin desktopglobe device-mapper dga dhcp dhcpcd diff doxygen dri drm dshow dso dvd dvdr dvi e2fsprogs ebook ecc editor eix encode equalizer examples extra fakevim fat ffmpeg firefox firefox-bookmarks flac flake flash fmod fontconfig fortran ftp ftpd fts3 fuse game-engine gcrypt gd gdbm geolocation geonames gif gimp git github glew glgd glib glsl glut gmail gme gnuplot gnutls gpg gphoto2 gpm gpu graphicsmagick graphviz grub gs gtk gtk2-perl gtk3 gtkspell h224 h281 h323 hal handbook hash hbci hddtemp hfs highlight html http httpd i18n ical iconv icq ics id3 id3tag imagemagick imaging imap innodb inotify iptables ipv6 ipython irc jabber jabbersearch jai java javadoc jfs jit jmf jni jpeg jpeg2k kate kde kdecards kdepim kontact kpathsea lastfm lastfmradio latex ldap libburn libkms libnotify libsamplerate lightning logrotate lua lvm mail matplotlib md5 md5sum mdadm mercurial midi mime mjpeg mmap mmx mmxext mng modules mouse mousewheel mp3 mpd mpeg mudflap multilib multimedia music mysql nas ncurses net netbeans nfs nfsv3 nls nptl nsplugin nss ntfs numpy ocr offensive ogg ogg123 ogm okteta okular opencl opengl openid openmp openssl openstreetmap optimized-qmake oscar osdmenu oss otr pam pcm pcre pdf pdf-writer perl phonon php pidgin pipe pixmaps pkcs11 plasma player playlist plugins png policykit posix ps pyside python python-bindings python2 qmake qt3 qt3support qt4 qthelp qtscript quota rar raw readline redeyes regex regexp rss rsync ruby samba scanner sdl secure-delete semantic-desktop server session setup sftp sha1 sha512 smartcard smbclient smtp sockets sound sql sqlite sqlite3 sse sse2 sse3 sse4 sse4_1 sse4a sse5 ssh ssl ssse3 subtitles subversion sudo suid svg swig syslog system-boost system-sqlite tcl tcpd tex tga themes threads thumbnail thunderbird tiff tools tor truetype udev unicode unix unlock-notify unzip upnp urandom usb utils valgrind vcd video vim vim-plugin vim-syntax vlc vnc vorbis wallpapers wav web webdav webkit webm wifi win32 wineappdb wma x264 xfs xinerama xml xmlreader xmlwriter xorgmodule xrandr xsettings xterm xvid xvmc youtube zeitgeist zip 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 proxy proxy_http" 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" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LIBREOFFICE_EXTENSIONS="presenter-console presenter-minimizer" PHP_TARGETS="php5-3" PYTHON_SINGLE_TARGET="python2_7" PYTHON_TARGETS="python2_7 python3_2" RUBY_TARGETS="ruby18 ruby19" USERLAND="GNU" VIDEO_CARDS="nv nvidia vesa" 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, PORTAGE_BUNZIP2_COMMAND, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS, USE_PYTHON
Back to top
View user's profile Send private message
NeddySeagoon
Administrator
Administrator


Joined: 05 Jul 2003
Posts: 54212
Location: 56N 3W

PostPosted: Sat Jan 05, 2013 6:24 pm    Post subject: Reply with quote

Hydrael,

You are still using gcc-4.4.7 and CFLAGS="-march=opteron -O2 -pipe"
gcc-4.5.4 is stable gcc now, so you should use it.

Everything looks OK. You don't say what didn't work. The newer gcc or -march=native ... or both.
_________________
Regards,

NeddySeagoon

Computer users fall into two groups:-
those that do backups
those that have never had a hard drive fail.
Back to top
View user's profile Send private message
Hydrael
n00b
n00b


Joined: 05 Jan 2013
Posts: 7

PostPosted: Sat Jan 05, 2013 6:29 pm    Post subject: Reply with quote

Sorry, my bad.
I had switched to gcc-4.5.4 and attempted emerging gcc-4.6.3, set -march to native and attempted emerging gcc-4.6.3 and then did both things at once and attempted emering gcc.
Since none of these attempts worked, I switched back to 4.4.7 and -march=opteron, because other than with emerging gcc-4.6.3 I hadn't had any problems with that configuration.

But since 4.5.4 is stable, I guess I'll switch over to 4.5.4 for real now
Back to top
View user's profile Send private message
NeddySeagoon
Administrator
Administrator


Joined: 05 Jul 2003
Posts: 54212
Location: 56N 3W

PostPosted: Sat Jan 05, 2013 7:08 pm    Post subject: Reply with quote

Hydrael,

I've changed my CFLAGS to use -march=opteron and reverted to gcc-4.5.4 but am unable to reproduce the issue.

Going back to gcc-4.4.7 is harder, as its no longer in the portage tree.

For a WAG, try testing versions of
Code:
sys-devel/autoconf:       2.13, 2.69
sys-devel/automake:       1.9.6-r3, 1.11.6, 1.12.6
sys-devel/binutils:       2.23.1
sys-devel/libtool:        2.4.2
sys-devel/make:           3.82-r4


Is your system otherwise up to date or has it been a while since you updated?

What do you have in /etc/portage/env/ if anything?
and in /etc/portage/package.env
The right answer is probably nothing but you can set per package CFLAGS in there.
_________________
Regards,

NeddySeagoon

Computer users fall into two groups:-
those that do backups
those that have never had a hard drive fail.
Back to top
View user's profile Send private message
Hydrael
n00b
n00b


Joined: 05 Jan 2013
Posts: 7

PostPosted: Sat Jan 05, 2013 7:24 pm    Post subject: Reply with quote

Thanks a lot - your last hint did the trick!

/etc/portage/env/sys-devel/gcc contained the -march=generic that was causing the problem.
I never put anything in that file knowingly, but changing the line to -march=opteron worked.

gcc-4.6.3 is compiling right now.

Thanks a lot again...I really appreciate the help
Back to top
View user's profile Send private message
NeddySeagoon
Administrator
Administrator


Joined: 05 Jul 2003
Posts: 54212
Location: 56N 3W

PostPosted: Sat Jan 05, 2013 7:36 pm    Post subject: Reply with quote

Hydrael,

That file does not exist until you create it.
Its intended for olds and ends like that thay you want different on a per package basis, you should delete it if its the same as the rest of your system.
_________________
Regards,

NeddySeagoon

Computer users fall into two groups:-
those that do backups
those that have never had a hard drive fail.
Back to top
View user's profile Send private message
Hydrael
n00b
n00b


Joined: 05 Jan 2013
Posts: 7

PostPosted: Sat Jan 05, 2013 7:39 pm    Post subject: Reply with quote

I suppose I must have created it a while ago and then forgot about it
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