您尚未登录。

#1 2012-05-28 16:33:52

jouyouyun
会员
注册时间: 2011-10-10
帖子: 267

error: CPU you selected does not support x86-64(已解决)

yaourt osdlyrics

checking for gcc... gcc
checking whether the C compiler works... no
configure: error: in `/tmp/yaourt-tmp-wen/aur-osdlyrics/src/osdlyrics-0.4.2':
configure: error: C compiler cannot create executables
See `config.log' for more details

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 osdlyrics configure 0.4.2, which was
generated by GNU Autoconf 2.69.  Invocation command line was

  $ ./configure --prefix=/usr --disable-mpd --disable-xmms2

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

hostname = yun
uname -m = x86_64
uname -r = 3.3.7-1-ARCH
uname -s = Linux
uname -v = #1 SMP PREEMPT Tue May 22 00:26:26 CEST 2012

/usr/bin/uname -p = unknown
/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/bin
PATH: /usr/bin
PATH: /bin
PATH: /usr/local/sbin
PATH: /usr/sbin
PATH: /sbin
PATH: /usr/bin/core_perl


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

configure:2541: checking for a BSD-compatible install
configure:2609: result: /usr/bin/install -c
configure:2620: checking whether build environment is sane
configure:2675: result: yes
configure:2826: checking for a thread-safe mkdir -p
configure:2865: result: /bin/mkdir -p
configure:2878: checking for gawk
configure:2894: found /usr/bin/gawk
configure:2905: result: gawk
configure:2916: checking whether make sets $(MAKE)
configure:2938: result: yes
configure:3038: checking for style of include used by make
configure:3066: result: GNU
configure:3137: checking for gcc
configure:3153: found /usr/bin/gcc
configure:3164: result: gcc
configure:3393: checking for C compiler version
configure:3402: gcc --version >&5
gcc (GCC) 4.7.0 20120505 (prerelease)
Copyright (C) 2012 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:3413: $? = 0
configure:3402: gcc -v >&5
Using built-in specs.
COLLECT_GCC=gcc
COLLECT_LTO_WRAPPER=/usr/lib/gcc/x86_64-unknown-linux-gnu/4.7.0/lto-wrapper
Target: x86_64-unknown-linux-gnu
Configured with: /build/src/gcc-4.7-20120505/configure --prefix=/usr --libdir=/usr/lib --libexecdir=/usr/lib --mandir=/usr/share/man --infodir=/usr/share/info --with-bugurl=https://bugs.archlinux.org/ --enable-languages=c,c++,ada,fortran,go,lto,objc,obj-c++ --enable-shared --enable-threads=posix --with-system-zlib --enable-__cxa_atexit --disable-libunwind-exceptions --enable-clocale=gnu --disable-libstdcxx-pch --enable-libstdcxx-time --enable-gnu-unique-object --enable-linker-build-id --with-ppl --enable-cloog-backend=isl --enable-lto --enable-gold --enable-ld=default --enable-plugin --with-plugin-ld=ld.gold --with-linker-hash-style=gnu --disable-multilib --disable-libssp --disable-build-with-cxx --disable-build-poststage1-with-cxx --enable-checking=release
Thread model: posix
gcc version 4.7.0 20120505 (prerelease) (GCC) 
configure:3413: $? = 0
configure:3402: gcc -V >&5
gcc: error: unrecognized command line option '-V'
gcc: fatal error: no input files
compilation terminated.
configure:3413: $? = 1
configure:3402: gcc -qversion >&5
gcc: error: unrecognized command line option '-qversion'
gcc: fatal error: no input files
compilation terminated.
configure:3413: $? = 1
configure:3433: checking whether the C compiler works
configure:3455: gcc -march=i686 -mtune=generic -O2 -pipe -fstack-protector --param=ssp-buffer-size=4 -D_FORTIFY_SOURCE=2  -Wl,-O1,--sort-common,--as-needed,-z,relro,--hash-style=gnu conftest.c -lm >&5
conftest.c:1:0: error: CPU you selected does not support x86-64 instruction set
configure:3459: $? = 1
configure:3497: result: no
configure: failed program was:
| /* confdefs.h */
| #define PACKAGE_NAME "osdlyrics"
| #define PACKAGE_TARNAME "osdlyrics"
| #define PACKAGE_VERSION "0.4.2"
| #define PACKAGE_STRING "osdlyrics 0.4.2"
| #define PACKAGE_BUGREPORT "http://code.google.com/p/osd-lyrics/issues/list"
| #define PACKAGE_URL ""
| #define PACKAGE "osdlyrics"
| #define VERSION "0.4.2"
| #define PROGRAM_NAME "OSD Lyrics"
| /* end confdefs.h.  */
| 
| int
| main ()
| {
| 
|   ;
|   return 0;
| }
configure:3502: error: in `/tmp/yaourt-tmp-wen/aur-osdlyrics/src/osdlyrics-0.4.2':
configure:3504: error: C compiler cannot create executables
See `config.log' for more details

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

ac_cv_env_APP_INDICATOR_CFLAGS_set=
ac_cv_env_APP_INDICATOR_CFLAGS_value=
ac_cv_env_APP_INDICATOR_LIBS_set=
ac_cv_env_APP_INDICATOR_LIBS_value=
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='-march=i686 -mtune=generic -O2 -pipe -fstack-protector --param=ssp-buffer-size=4 -D_FORTIFY_SOURCE=2'
ac_cv_env_CPPFLAGS_set=
ac_cv_env_CPPFLAGS_value=
ac_cv_env_CPP_set=
ac_cv_env_CPP_value=
ac_cv_env_CURL_CFLAGS_set=
ac_cv_env_CURL_CFLAGS_value=
ac_cv_env_CURL_LIBS_set=
ac_cv_env_CURL_LIBS_value=
ac_cv_env_CXXFLAGS_set=set
ac_cv_env_CXXFLAGS_value='-march=i686 -mtune=generic -O2 -pipe -fstack-protector --param=ssp-buffer-size=4 -D_FORTIFY_SOURCE=2'
ac_cv_env_CXX_set=
ac_cv_env_CXX_value=
ac_cv_env_DBUS_GLIB_CFLAGS_set=
ac_cv_env_DBUS_GLIB_CFLAGS_value=
ac_cv_env_DBUS_GLIB_LIBS_set=
ac_cv_env_DBUS_GLIB_LIBS_value=
ac_cv_env_GTK2_CFLAGS_set=
ac_cv_env_GTK2_CFLAGS_value=
ac_cv_env_GTK2_LIBS_set=
ac_cv_env_GTK2_LIBS_value=
ac_cv_env_LDFLAGS_set=set
ac_cv_env_LDFLAGS_value=-Wl,-O1,--sort-common,--as-needed,-z,relro,--hash-style=gnu
ac_cv_env_LIBS_set=set
ac_cv_env_LIBS_value=-lm
ac_cv_env_MPD_CFLAGS_set=
ac_cv_env_MPD_CFLAGS_value=
ac_cv_env_MPD_LIBS_set=
ac_cv_env_MPD_LIBS_value=
ac_cv_env_NOTIFY_CFLAGS_set=
ac_cv_env_NOTIFY_CFLAGS_value=
ac_cv_env_NOTIFY_LIBS_set=
ac_cv_env_NOTIFY_LIBS_value=
ac_cv_env_PKG_CONFIG_LIBDIR_set=
ac_cv_env_PKG_CONFIG_LIBDIR_value=
ac_cv_env_PKG_CONFIG_PATH_set=
ac_cv_env_PKG_CONFIG_PATH_value=
ac_cv_env_PKG_CONFIG_set=
ac_cv_env_PKG_CONFIG_value=
ac_cv_env_SQLITE_CFLAGS_set=
ac_cv_env_SQLITE_CFLAGS_value=
ac_cv_env_SQLITE_LIBS_set=
ac_cv_env_SQLITE_LIBS_value=
ac_cv_env_X11_CFLAGS_set=
ac_cv_env_X11_CFLAGS_value=
ac_cv_env_X11_LIBS_set=
ac_cv_env_X11_LIBS_value=
ac_cv_env_XMKMF_set=
ac_cv_env_XMKMF_value=
ac_cv_env_XMMS2_CFLAGS_set=
ac_cv_env_XMMS2_CFLAGS_value=
ac_cv_env_XMMS2_LIBS_set=
ac_cv_env_XMMS2_LIBS_value=
ac_cv_env_build_alias_set=
ac_cv_env_build_alias_value=
ac_cv_env_host_alias_set=
ac_cv_env_host_alias_value=
ac_cv_env_target_alias_set=
ac_cv_env_target_alias_value=
ac_cv_path_install='/usr/bin/install -c'
ac_cv_path_mkdir=/bin/mkdir
ac_cv_prog_AWK=gawk
ac_cv_prog_ac_ct_CC=gcc
ac_cv_prog_make_make_set=yes

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

ACLOCAL='${SHELL} /tmp/yaourt-tmp-wen/aur-osdlyrics/src/osdlyrics-0.4.2/missing --run aclocal-1.12'
ALL_LINGUAS=''
AMDEPBACKSLASH='\'
AMDEP_FALSE='#'
AMDEP_TRUE=''
AMTAR='$${TAR-tar}'
AM_DEFAULT_VERBOSITY=''
APP_INDICATOR_CFLAGS=''
APP_INDICATOR_LIBS=''
AR=''
AUTOCONF='${SHELL} /tmp/yaourt-tmp-wen/aur-osdlyrics/src/osdlyrics-0.4.2/missing --run autoconf'
AUTOHEADER='${SHELL} /tmp/yaourt-tmp-wen/aur-osdlyrics/src/osdlyrics-0.4.2/missing --run autoheader'
AUTOMAKE='${SHELL} /tmp/yaourt-tmp-wen/aur-osdlyrics/src/osdlyrics-0.4.2/missing --run automake-1.12'
AWK='gawk'
CATALOGS=''
CATOBJEXT=''
CC='gcc'
CCDEPMODE=''
CFLAGS='-march=i686 -mtune=generic -O2 -pipe -fstack-protector --param=ssp-buffer-size=4 -D_FORTIFY_SOURCE=2'
CPP=''
CPPFLAGS=''
CURL_CFLAGS=''
CURL_LIBS=''
CXX=''
CXXDEPMODE=''
CXXFLAGS='-march=i686 -mtune=generic -O2 -pipe -fstack-protector --param=ssp-buffer-size=4 -D_FORTIFY_SOURCE=2'
CYGPATH_W='echo'
DATADIRNAME=''
DBUS_GLIB_CFLAGS=''
DBUS_GLIB_LIBS=''
DEFS=''
DEPDIR='.deps'
ECHO_C=''
ECHO_N='-n'
ECHO_T=''
EGREP=''
EXEEXT=''
GETTEXT_PACKAGE=''
GMOFILES=''
GMSGFMT=''
GREP=''
GTK2_CFLAGS=''
GTK2_LIBS=''
HAVE_APP_INDICATOR_FALSE=''
HAVE_APP_INDICATOR_TRUE=''
INSTALL_DATA='${INSTALL} -m 644'
INSTALL_PROGRAM='${INSTALL}'
INSTALL_SCRIPT='${INSTALL}'
INSTALL_STRIP_PROGRAM='$(install_sh) -c -s'
INSTOBJEXT=''
INTLLIBS=''
INTLTOOL_CAVES_RULE=''
INTLTOOL_DESKTOP_RULE=''
INTLTOOL_DIRECTORY_RULE=''
INTLTOOL_EXTRACT=''
INTLTOOL_KBD_RULE=''
INTLTOOL_KEYS_RULE=''
INTLTOOL_MERGE=''
INTLTOOL_OAF_RULE=''
INTLTOOL_PERL=''
INTLTOOL_POLICY_RULE=''
INTLTOOL_PONG_RULE=''
INTLTOOL_PROP_RULE=''
INTLTOOL_SCHEMAS_RULE=''
INTLTOOL_SERVER_RULE=''
INTLTOOL_SERVICE_RULE=''
INTLTOOL_SHEET_RULE=''
INTLTOOL_SOUNDLIST_RULE=''
INTLTOOL_THEME_RULE=''
INTLTOOL_UI_RULE=''
INTLTOOL_UPDATE=''
INTLTOOL_V_MERGE=''
INTLTOOL_V_MERGE_OPTIONS=''
INTLTOOL_XAM_RULE=''
INTLTOOL_XML_NOMERGE_RULE=''
INTLTOOL_XML_RULE=''
INTLTOOL__v_MERGE_0=''
INTLTOOL__v_MERGE_=''
LDFLAGS='-Wl,-O1,--sort-common,--as-needed,-z,relro,--hash-style=gnu'
LIBICONV=''
LIBOBJS=''
LIBS='-lm'
LTLIBICONV=''
LTLIBOBJS=''
MAKEINFO='${SHELL} /tmp/yaourt-tmp-wen/aur-osdlyrics/src/osdlyrics-0.4.2/missing --run makeinfo'
MKDIR_P='/bin/mkdir -p'
MKINSTALLDIRS=''
MPD_CFLAGS=''
MPD_LIBS=''
MSGFMT=''
MSGFMT_OPTS=''
MSGMERGE=''
NOTIFY_CFLAGS=''
NOTIFY_LIBS=''
OBJEXT=''
OL_GUIDIR=''
OL_ICONDIR=''
PACKAGE='osdlyrics'
PACKAGE_BUGREPORT='http://code.google.com/p/osd-lyrics/issues/list'
PACKAGE_NAME='osdlyrics'
PACKAGE_STRING='osdlyrics 0.4.2'
PACKAGE_TARNAME='osdlyrics'
PACKAGE_URL=''
PACKAGE_VERSION='0.4.2'
PATH_SEPARATOR=':'
PKG_CONFIG=''
PKG_CONFIG_LIBDIR=''
PKG_CONFIG_PATH=''
POFILES=''
POSUB=''
PO_IN_DATADIR_FALSE=''
PO_IN_DATADIR_TRUE=''
RANLIB=''
SET_MAKE=''
SHELL='/bin/sh'
SQLITE_CFLAGS=''
SQLITE_LIBS=''
STRIP=''
USE_NLS=''
VERSION='0.4.2'
X11_CFLAGS=''
X11_LIBS=''
XGETTEXT=''
XMKMF=''
XMMS2_CFLAGS=''
XMMS2_LIBS=''
ac_ct_AR=''
ac_ct_CC='gcc'
ac_ct_CXX=''
am__EXEEXT_FALSE=''
am__EXEEXT_TRUE=''
am__fastdepCC_FALSE=''
am__fastdepCC_TRUE=''
am__fastdepCXX_FALSE=''
am__fastdepCXX_TRUE=''
am__include='include'
am__isrc=''
am__leading_dot='.'
am__nodep='_no'
am__quote=''
am__tar='$${TAR-tar} chof - "$$tardir"'
am__untar='$${TAR-tar} xf -'
bindir='${exec_prefix}/bin'
build=''
build_alias=''
build_cpu=''
build_os=''
build_vendor=''
datadir='${datarootdir}'
datarootdir='${prefix}/share'
docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
dvidir='${docdir}'
exec_prefix='NONE'
gmondir=''
host=''
host_alias=''
host_cpu=''
host_os=''
host_vendor=''
htmldir='${docdir}'
includedir='${prefix}/include'
infodir='${datarootdir}/info'
install_sh='${SHELL} /tmp/yaourt-tmp-wen/aur-osdlyrics/src/osdlyrics-0.4.2/install-sh'
intltool__v_merge_options_0=''
intltool__v_merge_options_=''
libdir='${exec_prefix}/lib'
libexecdir='${exec_prefix}/libexec'
localedir='${datarootdir}/locale'
localstatedir='${prefix}/var'
mandir='${datarootdir}/man'
mkdir_p='/bin/mkdir -p'
oldincludedir='/usr/include'
pdfdir='${docdir}'
prefix='/usr'
program_transform_name='s,x,x,'
psdir='${docdir}'
sbindir='${exec_prefix}/sbin'
sharedstatedir='${prefix}/com'
sysconfdir='${prefix}/etc'
target_alias=''

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

/* confdefs.h */
#define PACKAGE_NAME "osdlyrics"
#define PACKAGE_TARNAME "osdlyrics"
#define PACKAGE_VERSION "0.4.2"
#define PACKAGE_STRING "osdlyrics 0.4.2"
#define PACKAGE_BUGREPORT "http://code.google.com/p/osd-lyrics/issues/list"
#define PACKAGE_URL ""
#define PACKAGE "osdlyrics"
#define VERSION "0.4.2"
#define PROGRAM_NAME "OSD Lyrics"

configure: exit 77

系统是重装的,以前也装过 64 位的,没有出现过问题。CPU : intel core I3 。error: CPU you selected does not support x86-64  这是什么情况?
下载源码编译安装都没有问题。

最近编辑记录 jouyouyun (2012-05-28 20:27:21)

离线

#2 2012-05-28 17:34:21

phoenixlzx
晩ご飯だよー
注册时间: 2011-08-19
帖子: 1,789
个人网站

Re: error: CPU you selected does not support x86-64(已解决)

不支持64位?i3的按说都支持才对

还有为什么你的GCC是4.7.0,我这里都4.7.3了捏?

升级一下试试看吧。或者是你那里没装好?

离线

#3 2012-05-28 18:45:58

jtshs256
论坛版主
注册时间: 2011-08-19
帖子: 294

Re: error: CPU you selected does not support x86-64(已解决)

CFLAGS 设了些什么?⋯⋯

离线

#4 2012-05-28 20:05:24

jouyouyun
会员
注册时间: 2011-10-10
帖子: 267

Re: error: CPU you selected does not support x86-64(已解决)

gcc-4.7.0-6 已经为最新,

$  grep -q "^flags.*\blm\b" /proc/cpuinfo && echo "x86_64" || echo "not x86_64"
x86_64

CPU 支持64位

离线

#5 2012-05-28 20:25:24

jouyouyun
会员
注册时间: 2011-10-10
帖子: 267

Re: error: CPU you selected does not support x86-64(已解决)

找到原因了,因为我上次装的是 32 位系统,这次换了 64 位,为了省事就把 32 位中常用的配置文件给拷到了 64 位系统中了。而 /etc/makepkg.conf 文件中需要写清架构,因此出错。
/etc/makepkg.conf

#########################################################################
# ARCHITECTURE, COMPILE FLAGS
#########################################################################
#
CARCH="x86_64"
CHOST="x86_64-unknown-linux-gnu"

#-- Exclusive: will only run on x86_64
# -march (or -mcpu) builds exclusively for an architecture
# -mtune optimizes for an architecture, but builds for whole processor family
CFLAGS="-march=x86-64 -mtune=generic -O2 -pipe -fstack-protector --param=ssp-buffer-size=4 -D_FORTIFY_SOURCE=2"
CXXFLAGS="-march=x86-64 -mtune=generic -O2 -pipe -fstack-protector --param=ssp-buffer-size=4 -D_FORTIFY_SOURCE=2"
LDFLAGS="-Wl,-O1,--sort-common,--as-needed,-z,relro,--hash-style=gnu"
#-- Make Flags: change this for DistCC/SMP systems
#MAKEFLAGS="-j2"

离线

#6 2012-06-02 01:49:12

ffwalle
机器人
注册时间: 2011-12-03
帖子: 393

Re: error: CPU you selected does not support x86-64(已解决)

-march可以选一个auto什么的参数,自动检测系统结构。


just for fun :-)

离线

#7 2012-06-27 10:45:39

yy语音
会员
注册时间: 2012-06-27
帖子: 1

Re: error: CPU you selected does not support x86-64(已解决)

just for fun :

离线

#8 2012-06-27 13:16:41

phoenixlzx
晩ご飯だよー
注册时间: 2011-08-19
帖子: 1,789
个人网站

Re: error: CPU you selected does not support x86-64(已解决)

ls是干什么的?

离线

#9 2012-06-27 15:24:38

sgsdxzy
Light
注册时间: 2012-05-17
帖子: 31

Re: error: CPU you selected does not support x86-64(已解决)

walle 说:

-march可以选一个auto什么的参数,自动检测系统结构。

对,是-march=native
不过这个貌似是CHOST的问题。

离线

#10 2012-06-30 15:57:51

ffwalle
机器人
注册时间: 2011-12-03
帖子: 393

Re: error: CPU you selected does not support x86-64(已解决)

sgsdxzy 说:
walle 说:

-march可以选一个auto什么的参数,自动检测系统结构。

对,是-march=native
不过这个貌似是CHOST的问题。

不晓得,没碰到。


just for fun :-)

离线

页脚