LinuxSir.cn,穿越时空的Linuxsir!

 找回密码
 注册
搜索
热搜: shell linux mysql
查看: 783|回复: 4

[SOLVED] 编译gcc-3.3.6-r1报错

[复制链接]
发表于 2008-3-25 13:45:54 | 显示全部楼层 |阅读模式
最近安装jdk的时候

  1. applecore trc # emerge -pv sun-jdk

  2. These are the packages that would be merged, in order:

  3. Calculating dependencies... done!
  4. [ebuild  NS   ] sys-devel/gcc-3.3.6-r1  USE="fortran gtk nls (-altivec) -bootstrap -boundschecking -build -doc -gcj (-hardened) -ip28 -ip32r10k -libffi (-multilib) -multislot (-n32) (-n64) -nocxx -nopie -nossp -objc -test -vanilla" 0 kB
  5. [ebuild  N    ] app-portage/portage-utils-0.1.29  78 kB
  6. [ebuild  N    ] dev-java/java-config-wrapper-0.15  7 kB
  7. [ebuild  N    ] virtual/libstdc++-3.3  0 kB
  8. [ebuild  N    ] dev-java/java-config-2.1.5  39 kB
  9. [ebuild  N    ] dev-java/java-config-1.3.7  15 kB
  10. [ebuild  N    ] dev-java/sun-jdk-1.6.0.04  USE="X alsa -doc -examples -jce -nsplugin -odbc" 68,805 kB

  11. Total: 7 packages (6 new, 1 in new slot), Size of downloads: 68,941 kB
复制代码

gcc-3.3.6-r1是一个依赖包,但是这个东西却一直报错。

  1.         --with-pkgversion=Gentoo 3.3.6-r1 p1.5, ssp-3.3.6-1.0, pie-8.7.8

  2. /var/tmp/portage/sys-devel/gcc-3.3.6-r1/work/gcc-3.3.6/configure --prefix=/usr --bindir=/usr/i686-pc-linux-gnu/gcc-bin/3.3.6 --includedir=/usr/lib/gcc-lib/i686-pc-linux-gnu/3.3.6/include --datadir=/usr/share/gcc-data/i686-pc-linux-gnu/3.3.6 --mandir=/usr/share/gcc-data/i686-pc-linux-gnu/3.3.6/man --infodir=/usr/share/gcc-data/i686-pc-linux-gnu/3.3.6/info --with-gxx-include-dir=/usr/lib/gcc-lib/i686-pc-linux-gnu/3.3.6/include/g++-v3 --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-libunwind-exceptions --disable-multilib --disable-libgcj --with-arch=i686 --enable-languages=c,c++,treelang,f77 --enable-shared --enable-threads=posix --enable-__cxa_atexit --enable-clocale=gnu --with-bugurl=http://bugs.gentoo.org/ --with-pkgversion=Gentoo 3.3.6-r1 p1.5, ssp-3.3.6-1.0, pie-8.7.8
  3. *** This configuration is not supported in the following subdirectories:
  4.      target-libffi target-boehm-gc target-zlib target-libjava zlib fastjar target-libobjc
  5.     (Any other directories should still work fine.)
  6. Created "Makefile" in /var/tmp/portage/sys-devel/gcc-3.3.6-r1/work/build using "mt-frag"
  7. Configuring libiberty...
  8. configure: warning: p1.5,: invalid host type
  9. configure: error: can only configure for one host and one target at a time
  10. Configure in /var/tmp/portage/sys-devel/gcc-3.3.6-r1/work/build/libiberty failed, exiting.

  11. ERROR: sys-devel/gcc-3.3.6-r1 failed.
复制代码

不清楚这个p1.5到底是什么东西,为什么会说“invalid host type”。

我的emerge --info

  1. applecore trc # emerge --info
  2. Portage 2.1.4.4 (default-linux/x86/2007.0, gcc-4.2.3, glibc-2.7-r1, 2.6.24-gentoo-r3 i686)
  3. =================================================================
  4. System uname: 2.6.24-gentoo-r3 i686 Intel(R) Pentium(R) D CPU 2.80GHz
  5. Timestamp of tree: Sun, 23 Mar 2008 09:30:01 +0000
  6. app-shells/bash:     3.2_p33
  7. dev-lang/python:     2.4.4-r9, 2.5.1-r5
  8. dev-python/pycrypto: 2.0.1-r6
  9. sys-apps/baselayout: 1.12.11.1
  10. sys-apps/sandbox:    1.2.18.1-r2
  11. sys-devel/autoconf:  2.13, 2.61-r1
  12. sys-devel/automake:  1.5, 1.7.9-r1, 1.8.5-r3, 1.9.6-r2, 1.10.1
  13. sys-devel/binutils:  2.18-r1
  14. sys-devel/gcc-config: 1.4.0-r4
  15. sys-devel/libtool:   1.5.26
  16. virtual/os-headers:  2.6.24
  17. ACCEPT_KEYWORDS="x86 ~x86"
  18. CBUILD="i686-pc-linux-gnu"
  19. CFLAGS="-march=prescott -O2 -pipe -fomit-frame-pointer"
  20. CHOST="i686-pc-linux-gnu"
  21. CONFIG_PROTECT="/etc /usr/kde/3.5/env /usr/kde/3.5/share/config /usr/kde/3.5/shutdown /usr/share/config"
  22. 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"
  23. CXXFLAGS="-march=prescott -O2 -pipe -fomit-frame-pointer"
  24. DISTDIR="/usr/portage/distfiles"
  25. FEATURES="distlocks metadata-transfer sandbox sfperms strict unmerge-orphans userfetch"
  26. GENTOO_MIRRORS="ftp://ftp.sjtu.edu.cn/gentoo"
  27. LANG="zh_CN.GB2312"
  28. LC_ALL="zh_CN.GB2312"
  29. LINGUAS="zh_CN"
  30. MAKEOPTS="-j3"
  31. PKGDIR="/usr/portage/packages"
  32. PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times --compress --force --whole-file --delete --stats --timeout=180 --exclude=/distfiles --exclude=/local --exclude=/packages"
  33. PORTAGE_TMPDIR="/var/tmp"
  34. PORTDIR="/usr/portage"
  35. PORTDIR_OVERLAY="/usr/portage/local/layman/gentoo-china"
  36. SYNC="rsync://61.135.158.199/gentoo-portage"
  37. USE="X acl alsa apache2 avi berkdb cairo cjk cli cracklib crypt dri dvb ffmpeg firefox fortran ftp gdbm gif glx gnome gpm gtk gtk2 gtkhtml icc iconv isdnlog javascript jpeg mad midi mmx mp3 mpeg mpeg4 msn mudflap mysql ncurses nls nptl nptlonly opengl openmp oss pam pcre pdf perl php png pppd python qq quicktime readline real reflection rmvb ruby session spl ssl svg tcpd tiff truetype unicode usb win32codecs wma x86 xml xml2 xorg xv zlib" 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 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 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"
  38. Unset:  CPPFLAGS, CTARGET, EMERGE_DEFAULT_OPTS, INSTALL_MASK, LDFLAGS, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS
复制代码

本帖子中包含更多资源

您需要 登录 才可以下载或查看,没有帐号?注册

x
发表于 2008-3-25 15:00:11 | 显示全部楼层
先安装 sys-libs/libstdc++-v3
再装java试试
回复 支持 反对

使用道具 举报

 楼主| 发表于 2008-3-25 17:06:39 | 显示全部楼层
Post by druggo;1830711
先安装 sys-libs/libstdc++-v3
再装java试试


就是应为这个sys-libs/libstdc++依赖了sys-devel/gcc-3.3.6-r1,所以才需要安装gcc-3.3.6

哎,蹊跷的事情都让我碰到了。最怕configure的时候报错
回复 支持 反对

使用道具 举报

 楼主| 发表于 2008-3-25 17:30:57 | 显示全部楼层
Post by druggo;1830711
先安装 sys-libs/libstdc++-v3
再装java试试


谢谢druggo,我先看错你的意思了,要

  1. emerge libstdc++-v3
复制代码


非常感谢,其实在gentoo forums上面也看到这个问题的帖子了,就是那个帖子不是英文的,虽然提到libstdc++-v3,但是没有懂什么意思。
回复 支持 反对

使用道具 举报

发表于 2008-3-25 18:22:43 | 显示全部楼层
把-march改成i686试试?
回复 支持 反对

使用道具 举报

您需要登录后才可以回帖 登录 | 注册

本版积分规则

快速回复 返回顶部 返回列表