LinuxSir.cn,穿越时空的Linuxsir!

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

无语了,是不是make.conf中对CFLAGS中的多余空白字符不能很好的区分?

[复制链接]
发表于 2007-11-20 10:03:54 | 显示全部楼层 |阅读模式
#emerge --update --deep --newuse world

下面是输出信息

config.status: creating kadmin/dbutil/Makefile
config.status: creating kadmin/passwd/Makefile
config.status: creating kadmin/passwd/unit-test/Makefile
config.status: creating kadmin/ktutil/Makefile
config.status: creating kadmin/server/Makefile
config.status: creating kadmin/testing/Makefile
config.status: creating kadmin/testing/scripts/Makefile
config.status: creating kadmin/testing/util/Makefile
config.status: creating include/autoconf.h
configure: configuring in lib/apputils
configure: running /bin/sh './configure' --prefix=/usr  '--prefix=/usr' '--host=i686-pc-linux-gnu' '--mandir=/usr/share/man' '--infodir=/usr/share/info' '--datadir=/usr/share' '--sysconfdir=/etc' '--localstatedir=/var/lib' '--without-krb4' '--without-tcl' '--disable-ipv6' '--enable-shared' '--with-system-et' '--with-system-ss' '--enable-dns-for-realm' '--enable-kdc-replay-cache' '--build=i686-pc-linux-gnu' 'CFLAGS=-O2 -mtune=k8 -march=athlon-xp -mfpmath=sse -mmmx -msse -msse2 -msse3 -m3dnow -fomit-frame-pointer -pipe' 'build_alias=i686-pc-linux-gnu' 'host_alias=i686-pc-linux-gnu' --cache-file=../.././config.cache --srcdir=.
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
configure: loading cache ../.././config.cache
configure: error: `CFLAGS' has changed since the previous run:
configure:   former value:  -O2 -mtune=k8 -march=athlon-xp   -mfpmath=sse -mmmx -msse      -msse2 -msse3 -m3dnow -fomit-frame-pointer -pipe
configure:   current value: -O2 -mtune=k8 -march=athlon-xp -mfpmath=sse -mmmx -msse -msse2 -msse3 -m3dnow -fomit-frame-pointer -pipe  ####其实这两行的差别就是中间多了几个空格和换行符
configure: error: changes in the environment can compromise the build
configure: error: run `make distclean' and/or `rm ../.././config.cache' and start over
configure: error: /bin/sh './configure' failed for lib/apputils
~~~~~~~~~~~~~~~~~~~~~~出错信息~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
!!! Please attach the following file when filing a report to bugs.gentoo.org:
!!! /var/tmp/portage/app-crypt/mit-krb5-1.5.3-r1/work/krb5-1.5.3/src/config.log
*
* ERROR: app-crypt/mit-krb5-1.5.3-r1 failed.
* Call stack:
*                  ebuild.sh, line 1701:  Called dyn_compile
*                  ebuild.sh, line 1039:  Called qa_call 'src_compile'
*                  ebuild.sh, line   44:  Called src_compile
*   mit-krb5-1.5.3-r1.ebuild, line   46:  Called econf '--without-krb4' '--without-tcl' '--disable-ipv6' '--enable-shared' '--with-system-et' '--with-system-ss' '--enable-dns-for-realm' '--enable-kdc-replay-cache'
*                  ebuild.sh, line  638:  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/app-crypt/mit-krb5-1.5.3-r1/temp/build.log'.
*

* Messages for package app-crypt/mit-krb5-1.5.3-r1:

*
* ERROR: app-crypt/mit-krb5-1.5.3-r1 failed.
* Call stack:
*                  ebuild.sh, line 1701:  Called dyn_compile
*                  ebuild.sh, line 1039:  Called qa_call 'src_compile'
*                  ebuild.sh, line   44:  Called src_compile
*   mit-krb5-1.5.3-r1.ebuild, line   46:  Called econf '--without-krb4' '--without-tcl' '--disable-ipv6' '--enable-shared' '--with-system-et' '--with-system-ss' '--enable-dns-for-realm' '--enable-kdc-replay-cache'
*                  ebuild.sh, line  638:  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/app-crypt/mit-krb5-1.5.3-r1/temp/build.log'.
*
发表于 2007-11-20 10:42:34 | 显示全部楼层
我跟你差不多。我以前编译都没问题
今天emerge --sync以后
编什么错什么。而且都是一样的错误信息。

!!! Please attach the following file when filing a report to bugs.gentoo.org:
!!! /var/tmp/portage/app-text/hunspell-1.1.9/work/hunspell-1.1.9/config.log
*
* ERROR: app-text/hunspell-1.1.9 failed.
* Call stack:
*               ebuild.sh, line 1701:  Called dyn_compile
*               ebuild.sh, line 1039:  Called qa_call 'src_compile'
*               ebuild.sh, line   44:  Called src_compile
*   hunspell-1.1.9.ebuild, line   42:  Called econf '--with-readline'
'--with-ui'
*               ebuild.sh, line  638:  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/app-text/hunspell-1.1.9/temp/build.log'.


我已经提交bugs.gentoo了!
回复 支持 反对

使用道具 举报

 楼主| 发表于 2007-11-20 11:31:38 | 显示全部楼层
呵呵  我是新手  还以为是我的设置有问题呢


刚刚发现所有的编译都和你的错误是一样的
回复 支持 反对

使用道具 举报

发表于 2007-11-20 12:42:19 | 显示全部楼层
你的make.conf也贴出来吧
回复 支持 反对

使用道具 举报

 楼主| 发表于 2007-11-20 13:19:46 | 显示全部楼层

这是我的make.conf,请各位帮我看看 谢谢了

先说说我的硬件
CPU: AMD Sempron 2800+ (32位)
显卡: ATI Radeon 9550
主板: Nvidia nforce3
还有普通键盘鼠标
一开始安装的时候使用的是x86
后来嫌里面的版本太老就升级为~x86
于是问题就多了

下面是我的make.conf



###############make.conf###########################
# These settings were set by the catalyst build script that automatically
# built this stage.
# Please consult /etc/make.conf.example for a more detailed example.
CFLAGS="-O2 -mtune=k8 -march=athlon-xp   -mfpmath=sse -mmmx -msse
         -msse2 -msse3 -m3dnow -fomit-frame-pointer -pipe"
CXXFLAGS="${CFLAGS}"
# This should not be changed unless you know exactly what you are doing.  You
# should probably be using a different stage, instead.
CHOST="i686-pc-linux-gnu"
CCACHE_SIZE="1G"

#############################################################3
MAKEOPTS="-j2"

#############################################################
GENTOO_MIRRORS="ftp://gentoo.anheng.com.cn/gentoo http://mirror.averse.net/pub/gentoo/"
SYNC="rsync://mirror.averse.net/gentoo-portage"

USE=" 3dnow 3dnowext aac acl acpi alsa arts
audiofile avahi bash-completion bzip2 cdparanoia cjk
cscope cpus  dbus  dga -dlloader dri dvd dvdread encode -eds -esd ffmpeg flac firefox
-fortran  ftp gd gif
-gnome gpm gstreamer gtk hal icq imagemagick imlib -ipv6 jabber jack java javascript
jpeg jpeg2k kde kdeenablefinal lame lcms libcaca libgda libwww mad md5sum
mdnsresponder-compat midi mmx modplug mozilla mp3 mpeg
mplayer msn nas nntp nptl nptlon  odbc ogg opengl pdf png qt3 qt4 qq  rdesktop
restrict-javascript rmvb session snmp sockets source svg symlink threads truetype unicode usb vcd
vim-pager vim-with-x
vim-syntax  win32codecs  wma X  xine xinerama xml xorg xscreensaver  xv"

############################################
INPUT_DEVICES="keyboard mouse"
VIDEO_CARDS="fglrx ati"
LINGUAS="zh_CN"
ACCEPT_KEYWORDS="~x86"
####################################
###gentoo-china-overlay#######
source /usr/portage/local/layman/make.conf
###################完######################

目前已有的问题除了上面提到的编译错误外
还有
1.显卡的问题

# emerge  --pretend  ati-drivers

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

Calculating dependencies... done!
[ebuild  N    ] x11-drivers/ati-drivers-8.42.3  USE="acpi (-multilib)"
[blocks B     ] x11-drivers/ati-drivers (is blocking x11-base/xorg-server-1.4-r2)



这个问题我搜了很久,好像大致的意见就是屏蔽掉最新的版本

2.在安装xorg-server时出现的错误

# emerge xorg-server
Calculating dependencies... done!
>>> Verifying ebuild Manifests...

>>> Emerging (1 of 1) x11-base/xorg-server-1.4-r2 to /
* xorg-server-1.4.tar.bz2 RMD160 SHA1 SHA256 size ;-) ...                [ ok ] * MesaLib-7.0.1.tar.bz2 RMD160 SHA1 SHA256 size ;-) ...                  [ ok ] * checking ebuild checksums ;-) ...                                      [ ok ] * checking auxfile checksums ;-) ...                                     [ ok ] * checking miscfile checksums ;-) ...                                    [ ok ] * checking xorg-server-1.4.tar.bz2 ;-) ...                               [ ok ] * checking MesaLib-7.0.1.tar.bz2 ;-) ...                                 [ ok ] * Forcing on xorg-x11 for new enough glxtokens.h...
!!! Error: Unrecognized option: xorg-x11
/usr/portage/x11-base/xorg-server/xorg-server-1.4-r2.ebuild: line 287:  5834 已 杀死               eselect opengl set --impl-headers ${OPENGL_DIR}
>>> Unpacking source...
>>> Unpacking xorg-server-1.4.tar.bz2 to /var/tmp/portage/x11-base/xorg-server-1.4-r2/work

安装xserver时一开始提示有好几个版本可以安装,google了之后就按照别人的提示改了/etc/portage/package.mask,我的这个文件具体内容如下
<x11-base/xorg-server-1.3.0.0
<x11-base/xorg-x11-7.2
>=x11-drivers/xf86-video-nsc-2.8.1
>=x11-drivers/xf86-video-s3virge-1.9.1
>=x11-drivers/xf86-video-i128-1.2.0
>=x11-drivers/xf86-video-trident-1.2.1
>=x11-drivers/xf86-video-neomagic-1.1.1
>=x11-drivers/xf86-video-cirrus-1.1.0
>=x11-drivers/xf86-input-evdev-1.1.2-r1
>=x11-drivers/xf86-video-v4l-0.1.1
>=x11-drivers/xf86-video-vesa-1.2.0
>=x11-drivers/xf86-video-tga-1.1.0
>=x11-drivers/xf86-video-s3-0.4.1
>=x11-drivers/xf86-video-tdfx-1.2.1
>=x11-drivers/xf86-video-glint-1.1.1
>=x11-drivers/xf86-input-void-1.1.0
>=x11-drivers/xf86-video-i740-1.1.0
>=x11-drivers/xf86-video-dummy-0.2.0
>=x11-drivers/xf86-input-keyboard-1.1.0
>=x11-drivers/xf86-video-imstt-1.1.0
>=x11-drivers/xf86-video-savage-2.1.1
>=x11-drivers/xf86-video-siliconmotion-1.4.1
>=x11-drivers/xf86-video-ark-0.6.0
>=x11-drivers/xf86-video-ati-6.6.0
>=x11-drivers/xf86-video-mga-1.4.1
>=x11-drivers/xf86-video-sis-0.9.1
>=x11-drivers/xf86-video-tseng-1.1.0
>=x11-drivers/xf86-input-joystick-1.1.0
>=x11-drivers/xf86-video-vga-4.1.0
>=x11-drivers/xf86-video-cyrix-1.1.0
>=x11-drivers/xf86-video-chips-1.1.1
>=x11-drivers/xf86-video-apm-1.1.1
>=x11-drivers/xf86-video-rendition-4.1.0
>=x11-drivers/xf86-input-mouse-1.1.1
>=x11-drivers/xf86-video-i810-1.6.0
>=x11-drivers/xf86-video-via-0.2.1-r1
>=x11-drivers/xf86-video-nv-1.1.2
>=x11-drivers/xf86-video-voodoo-1.1.0
>=media-libs/mesa-6.5
>=x11-apps/mesa-progs-6.5



唉!搞gentoo五六天了 就前天有幸搞定了图形界面  那个激动阿
后来改了~x86,生活就再也没有平静过了  寝食难安阿

还是搞不定现在

谢谢各位了
回复 支持 反对

使用道具 举报

发表于 2007-11-20 13:28:28 | 显示全部楼层
一个一个解决
make.conf里如果要换行,行末请加\
比如A="a b \
d"
否则程序只能理解为你那一行忘记了加末尾的引号
回复 支持 反对

使用道具 举报

 楼主| 发表于 2007-11-20 13:45:32 | 显示全部楼层
老大一句话 呵呵  恍然大悟阿
呵呵

那也就说说后面的那么多use emerge并没有识别了?
这可不是个小问题阿
回复 支持 反对

使用道具 举报

 楼主| 发表于 2007-11-20 14:30:48 | 显示全部楼层
现在又又问题了 ,还要请各位帮帮忙 呵呵

这个错误和二楼的兄弟一样了

*
* ERROR: media-libs/freeglut-2.4.0-r1 failed.
* Call stack:
*                  ebuild.sh, line 1701:  Called dyn_compile
*                  ebuild.sh, line 1039:  Called qa_call 'src_compile'
*                  ebuild.sh, line   44:  Called src_compile
*   freeglut-2.4.0-r1.ebuild, line   52:  Called die
* The specific snippet of code:
*      emake || die "emake failed"
*  The die message:
*   emake 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/media-libs/freeglut-2.4.0-r1/temp/build.log'.
*
* GNU info directory index is up-to-date.
回复 支持 反对

使用道具 举报

发表于 2007-11-21 00:22:01 | 显示全部楼层
你需要贴出来软件本身的错误信息
下面这行错误信息及以后的只对写ebuild的人有用
* ERROR: media-libs/freeglut-2.4.0-r1 failed.
回复 支持 反对

使用道具 举报

发表于 2007-11-21 03:11:19 | 显示全部楼层
这是我的结果,不知道和搂住一样否

> collect2: ld terminated with signal 11 [Segmentation fault]
> collect2: ld terminated with signal 11 [Segmentation fault]
> collect2: ld terminated with signal 11 [Segmentation fault]

Uhm, I don't think your HW is sane. Check your RAM w/ memtest, check whether
your CPU is not overheating etc.

--------------
虽然我没有超频或者怎么样,但是确实是有Segmentation fault
我重启了一遍机器。让CPU冷一下。然后编译顺利通过了。
如果你其他的可以编译,有其中几个不能的话,还可以提交到bugs.gentoo.org
回复 支持 反对

使用道具 举报

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

本版积分规则

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