Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 249175 - conftest.c:1: error: bad value (native) for -march= switch
Summary: conftest.c:1: error: bad value (native) for -march= switch
Status: RESOLVED INVALID
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: New packages (show other bugs)
Hardware: x86 Linux
: High normal (vote)
Assignee: Gentoo Linux bug wranglers
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2008-11-28 16:10 UTC by Todor Ivanov
Modified: 2008-11-28 18:04 UTC (History)
0 users

See Also:
Package list:
Runtime testing required: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Todor Ivanov 2008-11-28 16:10:25 UTC
error:
Calculating dependencies... done!
>>> Verifying ebuild Manifests...

>>> Emerging (1 of 4) dev-util/pkgconfig-0.23 to /
 * pkg-config-0.23.tar.gz RMD160 SHA1 SHA256 size ;-) ...                                                                                              [ ok ]
 * checking ebuild checksums ;-) ...                                                                                                                   [ ok ]
 * checking auxfile checksums ;-) ...                                                                                                                  [ ok ]
 * checking miscfile checksums ;-) ...                                                                                                                 [ ok ]
 * checking pkg-config-0.23.tar.gz ;-) ...                                                                                                             [ ok ]
>>> Unpacking source...
>>> Unpacking pkg-config-0.23.tar.gz to /var/tmp/portage/dev-util/pkgconfig-0.23/work
>>> Source unpacked.
>>> Compiling source in /var/tmp/portage/dev-util/pkgconfig-0.23/work/pkg-config-0.23 ...
 * econf: updating pkg-config-0.23/config.guess with /usr/share/gnuconfig/config.guess
 * econf: updating pkg-config-0.23/config.sub with /usr/share/gnuconfig/config.sub
 * econf: updating pkg-config-0.23/glib-1.2.10/config.guess with /usr/share/gnuconfig/config.guess
 * econf: updating pkg-config-0.23/glib-1.2.10/config.sub with /usr/share/gnuconfig/config.sub
./configure --prefix=/usr --host=i686-pc-linux-gnu --mandir=/usr/share/man --infodir=/usr/share/info --datadir=/usr/share --sysconfdir=/etc --localstatedir=/var/lib --build=i686-pc-linux-gnu
checking for a BSD-compatible install... /usr/bin/install -c
checking whether build environment is sane... yes
checking for gawk... gawk
checking whether make sets $(MAKE)... yes
checking whether to enable maintainer-specific portions of Makefiles... no
checking build system type... i686-pc-linux-gnu
checking host system type... i686-pc-linux-gnu
checking for style of include used by make... GNU
checking for i686-pc-linux-gnu-gcc... i686-pc-linux-gnu-gcc
checking for C compiler default output file name... 
configure: error: C compiler cannot create executables
See `config.log' for more details.

!!! Please attach the following file when seeking support:
!!! /var/tmp/portage/dev-util/pkgconfig-0.23/work/pkg-config-0.23/config.log
 * 
 * ERROR: dev-util/pkgconfig-0.23 failed.
 * Call stack:
 *               ebuild.sh, line   49:  Called src_compile
 *             environment, line 2337:  Called econf
 *               ebuild.sh, line  513:  Called die
 * The specific snippet of code:
 *   			die "econf failed"
 *  The die message:
 *   econf failed
 * 
 * If you need support, post the topmost build error, and the call stack if relevant.
 * A complete build log is located at '/var/tmp/portage/dev-util/pkgconfig-0.23/temp/build.log'.
 * The ebuild environment file is located at '/var/tmp/portage/dev-util/pkgconfig-0.23/temp/environment'.
 * 

 * Messages for package dev-util/pkgconfig-0.23:

 * 
 * ERROR: dev-util/pkgconfig-0.23 failed.
 * Call stack:
 *               ebuild.sh, line   49:  Called src_compile
 *             environment, line 2337:  Called econf
 *               ebuild.sh, line  513:  Called die
 * The specific snippet of code:
 *   			die "econf failed"
 *  The die message:
 *   econf failed
 * 
 * If you need support, post the topmost build error, and the call stack if relevant.
 * A complete build log is located at '/var/tmp/portage/dev-util/pkgconfig-0.23/temp/build.log'.
 * The ebuild environment file is located at '/var/tmp/portage/dev-util/pkgconfig-0.23/temp/environment'.
 *

config.log :

>>> Unpacking source...
>>> Unpacking pkg-config-0.23.tar.gz to /var/tmp/portage/dev-util/pkgconfig-0.23/work
>>> Source unpacked.
>>> Compiling source in /var/tmp/portage/dev-util/pkgconfig-0.23/work/pkg-config-0.23 ...
 * econf: updating pkg-config-0.23/config.guess with /usr/share/gnuconfig/config.guess
 * econf: updating pkg-config-0.23/config.sub with /usr/share/gnuconfig/config.sub
 * econf: updating pkg-config-0.23/glib-1.2.10/config.guess with /usr/share/gnuconfig/config.guess
 * econf: updating pkg-config-0.23/glib-1.2.10/config.sub with /usr/share/gnuconfig/config.sub
./configure --prefix=/usr --host=i686-pc-linux-gnu --mandir=/usr/share/man --infodir=/usr/share/info --datadir=/usr/share --sysconfdir=/etc --localstatedir=/var/lib --build=i686-pc-linux-gnu
checking for a BSD-compatible install... /usr/bin/install -c
checking whether build environment is sane... yes
checking for gawk... gawk
checking whether make sets $(MAKE)... yes
checking whether to enable maintainer-specific portions of Makefiles... no
checking build system type... i686-pc-linux-gnu
checking host system type... i686-pc-linux-gnu
checking for style of include used by make... GNU
checking for i686-pc-linux-gnu-gcc... i686-pc-linux-gnu-gcc
checking for C compiler default output file name... 
configure: error: C compiler cannot create executables
See `config.log' for more details.

!!! Please attach the following file when seeking support:
!!! /var/tmp/portage/dev-util/pkgconfig-0.23/work/pkg-config-0.23/config.log
 * 
 * ERROR: dev-util/pkgconfig-0.23 failed.
 * Call stack:
 *               ebuild.sh, line   49:  Called src_compile
 *             environment, line 2337:  Called econf
 *               ebuild.sh, line  513:  Called die
 * The specific snippet of code:
 *   			die "econf failed"
 *  The die message:
 *   econf failed
 * 
 * If you need support, post the topmost build error, and the call stack if relevant.
 * A complete build log is located at '/var/tmp/portage/dev-util/pkgconfig-0.23/temp/build.log'.
 * The ebuild environment file is located at '/var/tmp/portage/dev-util/pkgconfig-0.23/temp/environment'.
 * 
ubuntu etc # cat /var/tmp/portage/dev-util/pkgconfig-0.23/work/pkg-config-0.23/config.log 
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.61.  Invocation command line was

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

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

hostname = ubuntu
uname -m = i686
uname -r = 2.6.24-16-generic
uname -s = Linux
uname -v = #1 SMP Thu Apr 10 13:23:42 UTC 2008

/usr/bin/uname -p = Intel(R) Celeron(R) CPU 550 @ 2.00GHz
/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/local/sbin
PATH: /sbin
PATH: /usr/sbin
PATH: /usr/lib/portage/bin
PATH: /usr/local/bin
PATH: /bin
PATH: /usr/bin
PATH: /opt/bin
PATH: /usr/i486-pc-linux-gnu/gcc-bin/4.1.2
PATH: /usr/i686-pc-linux-gnu/gcc-bin/4.1.2


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

configure:1981: checking for a BSD-compatible install
configure:2037: result: /usr/bin/install -c
configure:2048: checking whether build environment is sane
configure:2091: result: yes
configure:2124: checking for gawk
configure:2140: found /bin/gawk
configure:2151: result: gawk
configure:2162: checking whether make sets $(MAKE)
configure:2183: result: yes
configure:2363: checking whether to enable maintainer-specific portions of Makefiles
configure:2372: result: no
configure:2469: checking build system type
configure:2487: result: i686-pc-linux-gnu
configure:2509: checking host system type
configure:2524: result: i686-pc-linux-gnu
configure:2558: checking for style of include used by make
configure:2586: result: GNU
configure:2619: checking for i686-pc-linux-gnu-gcc
configure:2635: found /usr/bin/i686-pc-linux-gnu-gcc
configure:2646: result: i686-pc-linux-gnu-gcc
configure:2924: checking for C compiler version
configure:2931: i686-pc-linux-gnu-gcc --version >&5
i686-pc-linux-gnu-gcc (GCC) 4.1.2 (Gentoo 4.1.2 p1.1)
Copyright (C) 2006 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:2934: $? = 0
configure:2941: i686-pc-linux-gnu-gcc -v >&5
Using built-in specs.
Target: i686-pc-linux-gnu
Configured with: /var/tmp/portage/sys-devel/gcc-4.1.2/work/gcc-4.1.2/configure --prefix=/usr --bindir=/usr/i686-pc-linux-gnu/gcc-bin/4.1.2 --includedir=/usr/lib/gcc/i686-pc-linux-gnu/4.1.2/include --datadir=/usr/share/gcc-data/i686-pc-linux-gnu/4.1.2 --mandir=/usr/share/gcc-data/i686-pc-linux-gnu/4.1.2/man --infodir=/usr/share/gcc-data/i686-pc-linux-gnu/4.1.2/info --with-gxx-include-dir=/usr/lib/gcc/i686-pc-linux-gnu/4.1.2/include/g++-v4 --host=i686-pc-linux-gnu --build=i686-pc-linux-gnu --disable-altivec --enable-nls --without-included-gettext --with-system-zlib --disable-checking --disable-werror --enable-secureplt --disable-multilib --enable-libmudflap --disable-libssp --disable-libgcj --with-arch=i686 --enable-languages=c,c++,treelang,fortran --enable-shared --enable-threads=posix --enable-__cxa_atexit --enable-clocale=gnu
Thread model: posix
gcc version 4.1.2 (Gentoo 4.1.2 p1.1)
configure:2944: $? = 0
configure:2951: i686-pc-linux-gnu-gcc -V >&5
i686-pc-linux-gnu-gcc: '-V' option must have argument
configure:2954: $? = 1
configure:2977: checking for C compiler default output file name
configure:3004: i686-pc-linux-gnu-gcc -O3 -march=native -pipe  -Wl,-O1 conftest.c  >&5
conftest.c:1: error: bad value (native) for -march= switch
conftest.c:1: error: bad value (native) for -mtune= switch
configure:3007: $? = 1
configure:3045: result: 
configure: failed program was:
| /* confdefs.h.  */
| #define PACKAGE_NAME ""
| #define PACKAGE_TARNAME ""
| #define PACKAGE_VERSION ""
| #define PACKAGE_STRING ""
| #define PACKAGE_BUGREPORT ""
| #define PACKAGE "pkg-config"
| #define VERSION "0.23"
| /* end confdefs.h.  */
| 
| int
| main ()
| {
| 
|   ;
|   return 0;
| }
configure:3052: error: C compiler cannot create executables
See `config.log' for more details.

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

ac_cv_build=i686-pc-linux-gnu
ac_cv_env_CCC_set=
ac_cv_env_CCC_value=
ac_cv_env_CC_set=
ac_cv_env_CC_value=
ac_cv_env_CFLAGS_set=set
ac_cv_env_CFLAGS_value='-O3 -march=native -pipe'
ac_cv_env_CPPFLAGS_set=
ac_cv_env_CPPFLAGS_value=
ac_cv_env_CPP_set=
ac_cv_env_CPP_value=
ac_cv_env_CXXCPP_set=
ac_cv_env_CXXCPP_value=
ac_cv_env_CXXFLAGS_set=set
ac_cv_env_CXXFLAGS_value='-O3 -march=native -pipe'
ac_cv_env_CXX_set=
ac_cv_env_CXX_value=
ac_cv_env_F77_set=
ac_cv_env_F77_value=
ac_cv_env_FFLAGS_set=
ac_cv_env_FFLAGS_value=
ac_cv_env_LDFLAGS_set=set
ac_cv_env_LDFLAGS_value=-Wl,-O1
ac_cv_env_LIBS_set=
ac_cv_env_LIBS_value=
ac_cv_env_build_alias_set=set
ac_cv_env_build_alias_value=i686-pc-linux-gnu
ac_cv_env_host_alias_set=set
ac_cv_env_host_alias_value=i686-pc-linux-gnu
ac_cv_env_target_alias_set=
ac_cv_env_target_alias_value=
ac_cv_host=i686-pc-linux-gnu
ac_cv_path_install='/usr/bin/install -c'
ac_cv_prog_AWK=gawk
ac_cv_prog_CC=i686-pc-linux-gnu-gcc
ac_cv_prog_make_make_set=yes

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

ACLOCAL='${SHELL} /var/tmp/portage/dev-util/pkgconfig-0.23/work/pkg-config-0.23/missing --run aclocal-1.7'
ALLOCA=''
AMDEPBACKSLASH='\'
AMDEP_FALSE='#'
AMDEP_TRUE=''
AMTAR='${SHELL} /var/tmp/portage/dev-util/pkgconfig-0.23/work/pkg-config-0.23/missing --run tar'
AR=''
AUTOCONF='${SHELL} /var/tmp/portage/dev-util/pkgconfig-0.23/work/pkg-config-0.23/missing --run autoconf'
AUTOHEADER='${SHELL} /var/tmp/portage/dev-util/pkgconfig-0.23/work/pkg-config-0.23/missing --run autoheader'
AUTOMAKE='${SHELL} /var/tmp/portage/dev-util/pkgconfig-0.23/work/pkg-config-0.23/missing --run automake-1.7'
AWK='gawk'
CC='i686-pc-linux-gnu-gcc'
CCDEPMODE=''
CFLAGS='-O3 -march=native -pipe'
CPP=''
CPPFLAGS=''
CXX=''
CXXCPP=''
CXXDEPMODE=''
CXXFLAGS='-O3 -march=native -pipe'
CYGPATH_W='echo'
DEFS=''
DEPDIR='.deps'
ECHO='echo'
ECHO_C=''
ECHO_N='-n'
ECHO_T=''
EGREP=''
EXEEXT=''
F77=''
FFLAGS=''
GLIB_CFLAGS=''
GLIB_LIBS=''
GREP=''
INSTALL_DATA='${INSTALL} -m 644'
INSTALL_PROGRAM='${INSTALL}'
INSTALL_SCRIPT='${INSTALL}'
INSTALL_STRIP_PROGRAM='${SHELL} $(install_sh) -c -s'
LDFLAGS='-Wl,-O1'
LIBOBJS=''
LIBS=''
LIBTOOL=''
LN_S=''
LTLIBOBJS=''
MAINT='#'
MAINTAINER_MODE_FALSE=''
MAINTAINER_MODE_TRUE='#'
MAKEINFO='${SHELL} /var/tmp/portage/dev-util/pkgconfig-0.23/work/pkg-config-0.23/missing --run makeinfo'
OBJEXT=''
PACKAGE='pkg-config'
PACKAGE_BUGREPORT=''
PACKAGE_NAME=''
PACKAGE_STRING=''
PACKAGE_TARNAME=''
PACKAGE_VERSION=''
PATH_SEPARATOR=':'
PKG_CONFIG=''
RANLIB=''
SED=''
SET_MAKE=''
SHELL='/bin/sh'
STRIP=''
USE_INSTALLED_GLIB_FALSE=''
USE_INSTALLED_GLIB_TRUE=''
VERSION='0.23'
WARN_CFLAGS=''
ac_ct_CC=''
ac_ct_CXX=''
ac_ct_F77=''
am__fastdepCC_FALSE=''
am__fastdepCC_TRUE=''
am__fastdepCXX_FALSE=''
am__fastdepCXX_TRUE=''
am__include='include'
am__leading_dot='.'
am__quote=''
bindir='${exec_prefix}/bin'
build='i686-pc-linux-gnu'
build_alias='i686-pc-linux-gnu'
build_cpu='i686'
build_os='linux-gnu'
build_vendor='pc'
datadir='/usr/share'
datarootdir='${prefix}/share'
docdir='${datarootdir}/doc/${PACKAGE}'
dvidir='${docdir}'
exec_prefix='NONE'
host='i686-pc-linux-gnu'
host_alias='i686-pc-linux-gnu'
host_cpu='i686'
host_os='linux-gnu'
host_vendor='pc'
htmldir='${docdir}'
includedir='${prefix}/include'
infodir='/usr/share/info'
install_sh='/var/tmp/portage/dev-util/pkgconfig-0.23/work/pkg-config-0.23/install-sh'
libdir='${exec_prefix}/lib'
libexecdir='${exec_prefix}/libexec'
localedir='${datarootdir}/locale'
localstatedir='/var/lib'
mandir='/usr/share/man'
oldincludedir='/usr/include'
pc_path=''
pdfdir='${docdir}'
prefix='/usr'
program_transform_name='s,x,x,'
psdir='${docdir}'
sbindir='${exec_prefix}/sbin'
sharedstatedir='${prefix}/com'
subdirs=''
sysconfdir='/etc'
target_alias=''

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

#define PACKAGE_NAME ""
#define PACKAGE_TARNAME ""
#define PACKAGE_VERSION ""
#define PACKAGE_STRING ""
#define PACKAGE_BUGREPORT ""
#define PACKAGE "pkg-config"
#define VERSION "0.23"

configure: exit 77



Reproducible: Always

Steps to Reproduce:
1.emerge syslog-ng
2.
3.

Actual Results:  
Got the error above described

Expected Results:  
Got syslog-ng installed
Comment 1 Jeroen Roovers (RETIRED) gentoo-dev 2008-11-28 18:03:50 UTC
It's nothing to do with pkgconfig. GCC 4.1.2 doesn't support -march=native.