LinuxSir.cn,穿越时空的Linuxsir!

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

gcc求助!

[复制链接]
发表于 2009-11-27 16:05:43 | 显示全部楼层 |阅读模式
680i kvm-88 # ./configure
ERROR: "gcc" either does not exist or does not work
680i kvm-88 #

680i Desktop # gcc -v
使用内建 specs。
目标:x86_64-pc-linux-gnu
配置为:/var/tmp/portage/sys-devel/gcc-4.4.1/work/gcc-4.4.1/configure --prefix=/usr --bindir=/usr/x86_64-pc-linux-gnu/gcc-bin/4.4.1 --includedir=/usr/lib/gcc/x86_64-pc-linux-gnu/4.4.1/include --datadir=/usr/share/gcc-data/x86_64-pc-linux-gnu/4.4.1 --mandir=/usr/share/gcc-data/x86_64-pc-linux-gnu/4.4.1/man --infodir=/usr/share/gcc-data/x86_64-pc-linux-gnu/4.4.1/info --with-gxx-include-dir=/usr/lib/gcc/x86_64-pc-linux-gnu/4.4.1/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 --disable-checking --disable-werror --enable-secureplt --enable-multilib --enable-libmudflap --disable-libssp --enable-libgomp --enable-cld --enable-objc-gc --enable-languages=c,c++,java,objc,obj-c++,fortran --enable-shared --enable-threads=posix --enable-__cxa_atexit --enable-clocale=gnu --with-bugurl=http://bugs.gentoo.org/ --with-pkgversion='Gentoo 4.4.1 p1.0'
线程模型:posix
gcc 版本 4.4.1 (Gentoo 4.4.1 p1.0)
680i Desktop #
------------------------------------------------------
先附上参数,无法编译软件呢!GCC已经重装了阿!
发表于 2009-11-27 17:02:24 | 显示全部楼层
自己看看configure
看看哪里打印的那句话
这种问题问别人也帮不了你
回复 支持 反对

使用道具 举报

发表于 2009-11-27 17:19:48 | 显示全部楼层
为什么不emerge qemu-kvm,而要自己编译呢?
回复 支持 反对

使用道具 举报

 楼主| 发表于 2009-11-28 00:16:43 | 显示全部楼层
刚好有源代码,之前的LINUX MINT里面的源是83的。
--------------------------------------------------
现在的问题是所有的程序都无法编译,emerge也无法安装软件!
680i kvm-88 # emerge ibus-pinyin

* IMPORTANT: 1 news items need reading for repository 'gentoo'.
* Use eselect news to read news items.

Calculating dependencies ... done!

>>> Verifying ebuild manifests

>>> Starting parallel fetch

>>> Emerging (1 of 2) app-i18n/ibus-1.2.0.20091024
* ibus-1.2.0.20091024.tar.gz RMD160 SHA1 SHA256 size ;-) ...            [ ok ]
* checking ebuild checksums ;-) ...                                     [ ok ]
* checking auxfile checksums ;-) ...                                    [ ok ]
* checking miscfile checksums ;-) ...                                   [ ok ]
>>> Unpacking source...
>>> Unpacking ibus-1.2.0.20091024.tar.gz to /var/tmp/portage/app-i18n/ibus-1.2.0.20091024/work
>>> Source unpacked in /var/tmp/portage/app-i18n/ibus-1.2.0.20091024/work
>>> Compiling source in /var/tmp/portage/app-i18n/ibus-1.2.0.20091024/work/ibus-1.2.0.20091024 ...
* econf: updating ibus-1.2.0.20091024/config.guess with /usr/share/gnuconfig/config.guess
* econf: updating ibus-1.2.0.20091024/config.sub with /usr/share/gnuconfig/config.sub
./configure --prefix=/usr --build=x86_64-pc-linux-gnu --host=x86_64-pc-linux-gnu --mandir=/usr/share/man --infodir=/usr/share/info --datadir=/usr/share --sysconfdir=/etc --localstatedir=/var/lib --libdir=/usr/lib64 --disable-gtk-doc --enable-nls
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 for style of include used by make... GNU
checking for x86_64-pc-linux-gnu-gcc... x86_64-pc-linux-gnu-gcc
checking for C compiler default output file name...
configure: error: in `/var/tmp/portage/app-i18n/ibus-1.2.0.20091024/work/ibus-1.2.0.20091024':
configure: error: C compiler cannot create executables
See `config.log' for more details.

!!! Please attach the following file when seeking support:
!!! /var/tmp/portage/app-i18n/ibus-1.2.0.20091024/work/ibus-1.2.0.20091024/config.log
* ERROR: app-i18n/ibus-1.2.0.20091024 failed:
*   econf failed
*
* Call stack:
*     ebuild.sh, line   49:  Called src_compile
*   environment, line 3222:  Called econf '--disable-gtk-doc' '--enable-nls'
*     ebuild.sh, line  545:  Called die
* The specific snippet of code:
*                           die "econf failed"
*
* If you need support, post the output of 'emerge --info =app-i18n/ibus-1.2.0.20091024',
* the complete build log and the output of 'emerge -pqv =app-i18n/ibus-1.2.0.20091024'.
* The complete build log is located at '/var/lib/entropy/logs/app-i18n:ibus-1.2.0.20091024:20091127-161413.log'.
* The ebuild environment file is located at '/var/tmp/portage/app-i18n/ibus-1.2.0.20091024/temp/environment'.
* S: '/var/tmp/portage/app-i18n/ibus-1.2.0.20091024/work/ibus-1.2.0.20091024'

>>> Failed to emerge app-i18n/ibus-1.2.0.20091024, Log file:

>>>  '/var/lib/entropy/logs/app-i18n:ibus-1.2.0.20091024:20091127-161413.log'

* IMPORTANT: 1 news items need reading for repository 'gentoo'.
* Use eselect news to read news items.

680i kvm-88 #
回复 支持 反对

使用道具 举报

发表于 2009-11-28 01:57:59 | 显示全部楼层
configure: error: C compiler cannot create executables
See `config.log' for more details.
回复 支持 反对

使用道具 举报

发表于 2009-11-28 13:18:06 | 显示全部楼层
CFLAGS,LDFLAGS有没有设置正确?
回复 支持 反对

使用道具 举报

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

本版积分规则

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