|
|
以前一直都是用的x86,昨天帮人装系统(pentiumD+945),尝试用amd64.但是没装多久就碰到了这个问题。一个出在grub上,一个出在gcc上。
- checking for a BSD-compatible install... /usr/bin/install -c
- checking whether build environment is sane... yes
- checking for a thread-safe mkdir -p... /bin/mkdir -p
- checking for gawk... gawk
- checking whether make sets $(MAKE)... yes
- checking build system type... x86_64-pc-linux-gnu
- checking host system type... x86_64-pc-linux-gnu
- checking whether to enable maintainer-specific portions of Makefiles... no
- checking for x86_64-pc-linux-gnu-gcc... x86_64-pc-linux-gnu-gcc
- checking for x86_64-pc-linux-gnu-gcc... (cached) x86_64-pc-linux-gnu-gcc
- checking for C compiler default output file name... a.out
- checking whether the C compiler works... configure: error: cannot run C compiled programs.
- If you meant to cross compile, use `--host'.
- See `config.log' for more details.
复制代码
我在gentoo的handbook上看到有说明讲amd64不能用grub,需要用grub-static,所以grub的问题还可以解决。但是gcc的问题我找了不少资料都没有什么解决办法。(forums.gentoo.org上有人说用 USE="multilib" FEATURES="-sandbox" emerge gcc,但是也不行)
我估计后面还会碰到这个问题(例如glib什么的),所以这个问题不解决amd64的系统估计弄不好了。
请问各位有没有相关的经历和解决办法。
附上 emerge --info
- localhost ~ # emerge --info
- Portage 2.1.4.4 (hardened/amd64/multilib, gcc-4.1.1, glibc-2.5-r0, 2.6.24-gentoo-r3 x86_64)
- =================================================================
- System uname: 2.6.24-gentoo-r3 x86_64 Intel(R) Pentium(R) D CPU 3.00GHz
- Timestamp of tree: Mon, 17 Mar 2008 02:30:01 +0000
- app-shells/bash: 3.2_p17-r1
- dev-lang/python: 2.4.4-r9
- dev-python/pycrypto: 2.0.1-r6
- sys-apps/baselayout: 1.12.9
- sys-apps/sandbox: 1.2.18.1-r2
- sys-devel/autoconf: 2.61-r1
- sys-devel/automake: 1.9.6-r2, 1.10
- sys-devel/binutils: 2.18-r1
- sys-devel/gcc-config: 1.4.0-r4
- sys-devel/libtool: 1.5.26
- virtual/os-headers: 2.6.23-r3
- ACCEPT_KEYWORDS="amd64"
- CBUILD="x86_64-pc-linux-gnu"
- CFLAGS="-O2 -march=nocona -pipe -fomit-frame-pointer"
- CHOST="x86_64-pc-linux-gnu"
- CONFIG_PROTECT="/etc /usr/share/X11/xkb"
- CONFIG_PROTECT_MASK="/etc/env.d /etc/fonts/fonts.conf /etc/gconf /etc/php/apache2-php5/ext-active/ /etc/php/cgi-php5/ext-active/ /etc/php/cli-php5/ext-active/ /etc/revdep-rebuild /etc/terminfo /etc/udev/rules.d"
- CXXFLAGS="-O2 -march=nocona -pipe -fomit-frame-pointer"
- DISTDIR="/usr/portage/distfiles"
- FEATURES="autoconfig distlocks metadata-transfer sandbox sfperms strict unmerge-orphans userfetch"
- GENTOO_MIRRORS="ftp://ftp3.tsinghua.edu.cn/mirror/gentoo"
- LINGUAS="zh_CN"
- MAKEOPTS="-j3"
- PKGDIR="/usr/portage/packages"
- PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times --compress --force --whole-file --delete --stats --timeout=180 --exclude=/distfiles --exclude=/local --exclude=/packages"
- PORTAGE_TMPDIR="/var/tmp"
- PORTDIR="/usr/portage"
- SYNC="rsync://rsync.gentoo.org/gentoo-portage"
- USE="X alsa amd64 apache2 avi berkdb cairo cjk cracklib crypt dvb ffmpeg firefox ftp gif glx gnome gtk gtk2 gtkhtml hardened iconv javascript jpeg justify mad midi mp3 mpeg mpeg4
- msn multilib mysql nls nptl nptlonly opengl oss pam pdf php pic png python qq quicktime readline rmvb ruby ssl svg tcpd tiff truetype unicode urandom usb wma xml xml2 xorg xv zl
- ib" ALSA_CARDS="intel8x0" ALSA_PCM_PLUGINS="adpcm alaw asym copy dmix dshare dsnoop empty extplug file hooks iec958 ioplug ladspa lfloat linear meter mulaw multi null plug rate r
- oute 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 aut
- hz_owner authz_user autoindex cache 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" ELIBC="glibc" INPUT_DEVICES="keyboard mouse" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LINGUAS="zh_CN" USERLAND="GNU" VIDEO_CARDS="i810"
- Unset: CPPFLAGS, CTARGET, EMERGE_DEFAULT_OPTS, INSTALL_MASK, LANG, LC_ALL, LDFLAGS, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS, PORTDIR_OVERLAY
复制代码 |
|