LinuxSir.cn,穿越时空的Linuxsir!

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

编译GCC时出错,出错部分为mpfr.

[复制链接]
发表于 2010-6-12 14:03:37 | 显示全部楼层 |阅读模式
使用的系统平台是龙芯,宿主系统是我自己做的LFS系统。现在想更新一下系统。
我将mprf和gmp都解压到gcc目录打算一起编译,但是出错了,单独编译mprf其出错示意和一起编译是一样的,已排除时间问题。

NAS 02:45:09 build # make
make: Warning: File `Makefile' has modification time 2.7e+04 s in the future
[ -f stage_final ] || echo stage3 > stage_final
make[1]: Entering directory `/mnt/xg/tmp/xgstage0/build'
make[1]: Warning: File `Makefile' has modification time 2.7e+04 s in the future
make[2]: Entering directory `/mnt/xg/tmp/xgstage0/build'
make[2]: Warning: File `Makefile' has modification time 2.7e+04 s in the future
make[3]: Entering directory `/mnt/xg/tmp/xgstage0/build'
make[3]: Warning: File `Makefile' has modification time 2.7e+04 s in the future
rm -f stage_current
make[3]: warning:  Clock skew detected.  Your build may be incomplete.
make[3]: Leaving directory `/mnt/xg/tmp/xgstage0/build'
make[2]: warning:  Clock skew detected.  Your build may be incomplete.
make[2]: Leaving directory `/mnt/xg/tmp/xgstage0/build'
make[2]: Entering directory `/mnt/xg/tmp/xgstage0/build'
make[2]: Warning: File `Makefile' has modification time 2.7e+04 s in the future
make[3]: Entering directory `/mnt/xg/tmp/xgstage0/build/libiberty'
make[3]: Warning: File `Makefile' has modification time 2.7e+04 s in the future
make[4]: Entering directory `/mnt/xg/tmp/xgstage0/build/libiberty/testsuite'
make[4]: Warning: File `Makefile' has modification time 2.7e+04 s in the future
make[4]: Nothing to be done for `all'.
make[4]: warning:  Clock skew detected.  Your build may be incomplete.
make[4]: Leaving directory `/mnt/xg/tmp/xgstage0/build/libiberty/testsuite'
make[3]: warning:  Clock skew detected.  Your build may be incomplete.
make[3]: Leaving directory `/mnt/xg/tmp/xgstage0/build/libiberty'
make[3]: Entering directory `/mnt/xg/tmp/xgstage0/build/gmp'
make[3]: Warning: File `Makefile' has modification time 2.7e+04 s in the future
make  all-recursive
make[4]: Entering directory `/mnt/xg/tmp/xgstage0/build/gmp'
make[4]: Warning: File `Makefile' has modification time 2.7e+04 s in the future
Making all in tests
make[5]: Entering directory `/mnt/xg/tmp/xgstage0/build/gmp/tests'
make[5]: Warning: File `Makefile' has modification time 2.7e+04 s in the future
Making all in .
make[6]: Entering directory `/mnt/xg/tmp/xgstage0/build/gmp/tests'
make[6]: Warning: File `Makefile' has modification time 2.7e+04 s in the future
make[6]: Nothing to be done for `all-am'.
make[6]: warning:  Clock skew detected.  Your build may be incomplete.
make[6]: Leaving directory `/mnt/xg/tmp/xgstage0/build/gmp/tests'
Making all in devel
make[6]: Entering directory `/mnt/xg/tmp/xgstage0/build/gmp/tests/devel'
make[6]: Warning: File `Makefile' has modification time 2.7e+04 s in the future
make[6]: Nothing to be done for `all'.
make[6]: warning:  Clock skew detected.  Your build may be incomplete.
make[6]: Leaving directory `/mnt/xg/tmp/xgstage0/build/gmp/tests/devel'
Making all in mpn
make[6]: Entering directory `/mnt/xg/tmp/xgstage0/build/gmp/tests/mpn'
make[6]: Warning: File `Makefile' has modification time 2.7e+04 s in the future
make[6]: Nothing to be done for `all'.
make[6]: warning:  Clock skew detected.  Your build may be incomplete.
make[6]: Leaving directory `/mnt/xg/tmp/xgstage0/build/gmp/tests/mpn'
Making all in mpz
make[6]: Entering directory `/mnt/xg/tmp/xgstage0/build/gmp/tests/mpz'
make[6]: Warning: File `Makefile' has modification time 2.7e+04 s in the future
make[6]: Nothing to be done for `all'.
make[6]: warning:  Clock skew detected.  Your build may be incomplete.
make[6]: Leaving directory `/mnt/xg/tmp/xgstage0/build/gmp/tests/mpz'
Making all in mpq
make[6]: Entering directory `/mnt/xg/tmp/xgstage0/build/gmp/tests/mpq'
make[6]: Warning: File `Makefile' has modification time 2.7e+04 s in the future
make[6]: Nothing to be done for `all'.
make[6]: warning:  Clock skew detected.  Your build may be incomplete.
make[6]: Leaving directory `/mnt/xg/tmp/xgstage0/build/gmp/tests/mpq'
Making all in mpf
make[6]: Entering directory `/mnt/xg/tmp/xgstage0/build/gmp/tests/mpf'
make[6]: Warning: File `Makefile' has modification time 2.7e+04 s in the future
make[6]: Nothing to be done for `all'.
make[6]: warning:  Clock skew detected.  Your build may be incomplete.
make[6]: Leaving directory `/mnt/xg/tmp/xgstage0/build/gmp/tests/mpf'
Making all in rand
make[6]: Entering directory `/mnt/xg/tmp/xgstage0/build/gmp/tests/rand'
make[6]: Warning: File `Makefile' has modification time 2.7e+04 s in the future
make[6]: Nothing to be done for `all'.
make[6]: warning:  Clock skew detected.  Your build may be incomplete.
make[6]: Leaving directory `/mnt/xg/tmp/xgstage0/build/gmp/tests/rand'
Making all in misc
make[6]: Entering directory `/mnt/xg/tmp/xgstage0/build/gmp/tests/misc'
make[6]: Warning: File `Makefile' has modification time 2.7e+04 s in the future
make[6]: Nothing to be done for `all'.
make[6]: warning:  Clock skew detected.  Your build may be incomplete.
make[6]: Leaving directory `/mnt/xg/tmp/xgstage0/build/gmp/tests/misc'
Making all in cxx
make[6]: Entering directory `/mnt/xg/tmp/xgstage0/build/gmp/tests/cxx'
make[6]: Warning: File `Makefile' has modification time 2.7e+04 s in the future
make[6]: Nothing to be done for `all'.
make[6]: warning:  Clock skew detected.  Your build may be incomplete.
make[6]: Leaving directory `/mnt/xg/tmp/xgstage0/build/gmp/tests/cxx'
Making all in mpbsd
make[6]: Entering directory `/mnt/xg/tmp/xgstage0/build/gmp/tests/mpbsd'
make[6]: Warning: File `Makefile' has modification time 2.7e+04 s in the future
make[6]: Nothing to be done for `all'.
make[6]: warning:  Clock skew detected.  Your build may be incomplete.
make[6]: Leaving directory `/mnt/xg/tmp/xgstage0/build/gmp/tests/mpbsd'
make[5]: warning:  Clock skew detected.  Your build may be incomplete.
make[5]: Leaving directory `/mnt/xg/tmp/xgstage0/build/gmp/tests'
Making all in mpn
make[5]: Entering directory `/mnt/xg/tmp/xgstage0/build/gmp/mpn'
make[5]: Warning: File `Makefile' has modification time 2.7e+04 s in the future
make[5]: Nothing to be done for `all'.
make[5]: warning:  Clock skew detected.  Your build may be incomplete.
make[5]: Leaving directory `/mnt/xg/tmp/xgstage0/build/gmp/mpn'
Making all in mpz
make[5]: Entering directory `/mnt/xg/tmp/xgstage0/build/gmp/mpz'
make[5]: Warning: File `Makefile' has modification time 2.7e+04 s in the future
make[5]: Nothing to be done for `all'.
make[5]: warning:  Clock skew detected.  Your build may be incomplete.
make[5]: Leaving directory `/mnt/xg/tmp/xgstage0/build/gmp/mpz'
Making all in mpq
make[5]: Entering directory `/mnt/xg/tmp/xgstage0/build/gmp/mpq'
make[5]: Warning: File `Makefile' has modification time 2.7e+04 s in the future
make[5]: Nothing to be done for `all'.
make[5]: warning:  Clock skew detected.  Your build may be incomplete.
make[5]: Leaving directory `/mnt/xg/tmp/xgstage0/build/gmp/mpq'
Making all in mpf
make[5]: Entering directory `/mnt/xg/tmp/xgstage0/build/gmp/mpf'
make[5]: Warning: File `Makefile' has modification time 2.7e+04 s in the future
make[5]: Nothing to be done for `all'.
make[5]: warning:  Clock skew detected.  Your build may be incomplete.
make[5]: Leaving directory `/mnt/xg/tmp/xgstage0/build/gmp/mpf'
Making all in printf
make[5]: Entering directory `/mnt/xg/tmp/xgstage0/build/gmp/printf'
make[5]: Warning: File `Makefile' has modification time 2.7e+04 s in the future
make[5]: Nothing to be done for `all'.
make[5]: warning:  Clock skew detected.  Your build may be incomplete.
make[5]: Leaving directory `/mnt/xg/tmp/xgstage0/build/gmp/printf'
Making all in scanf
make[5]: Entering directory `/mnt/xg/tmp/xgstage0/build/gmp/scanf'
make[5]: Warning: File `Makefile' has modification time 2.7e+04 s in the future
make[5]: Nothing to be done for `all'.
make[5]: warning:  Clock skew detected.  Your build may be incomplete.
make[5]: Leaving directory `/mnt/xg/tmp/xgstage0/build/gmp/scanf'
Making all in cxx
make[5]: Entering directory `/mnt/xg/tmp/xgstage0/build/gmp/cxx'
make[5]: Warning: File `Makefile' has modification time 2.7e+04 s in the future
make[5]: Nothing to be done for `all'.
make[5]: warning:  Clock skew detected.  Your build may be incomplete.
make[5]: Leaving directory `/mnt/xg/tmp/xgstage0/build/gmp/cxx'
Making all in mpbsd
make[5]: Entering directory `/mnt/xg/tmp/xgstage0/build/gmp/mpbsd'
make[5]: Warning: File `Makefile' has modification time 2.7e+04 s in the future
make[5]: Nothing to be done for `all'.
make[5]: warning:  Clock skew detected.  Your build may be incomplete.
make[5]: Leaving directory `/mnt/xg/tmp/xgstage0/build/gmp/mpbsd'
Making all in demos
make[5]: Entering directory `/mnt/xg/tmp/xgstage0/build/gmp/demos'
make[5]: Warning: File `Makefile' has modification time 2.7e+04 s in the future
Making all in calc
make[6]: Entering directory `/mnt/xg/tmp/xgstage0/build/gmp/demos/calc'
make[6]: Warning: File `Makefile' has modification time 2.7e+04 s in the future
make  all-am
make[7]: Entering directory `/mnt/xg/tmp/xgstage0/build/gmp/demos/calc'
make[7]: Warning: File `Makefile' has modification time 2.7e+04 s in the future
make[7]: Nothing to be done for `all-am'.
make[7]: warning:  Clock skew detected.  Your build may be incomplete.
make[7]: Leaving directory `/mnt/xg/tmp/xgstage0/build/gmp/demos/calc'
make[6]: warning:  Clock skew detected.  Your build may be incomplete.
make[6]: Leaving directory `/mnt/xg/tmp/xgstage0/build/gmp/demos/calc'
Making all in expr
make[6]: Entering directory `/mnt/xg/tmp/xgstage0/build/gmp/demos/expr'
make[6]: Warning: File `Makefile' has modification time 2.7e+04 s in the future
make[6]: Nothing to be done for `all'.
make[6]: warning:  Clock skew detected.  Your build may be incomplete.
make[6]: Leaving directory `/mnt/xg/tmp/xgstage0/build/gmp/demos/expr'
make[6]: Entering directory `/mnt/xg/tmp/xgstage0/build/gmp/demos'
make[6]: Warning: File `Makefile' has modification time 2.7e+04 s in the future
make[6]: Nothing to be done for `all-am'.
make[6]: warning:  Clock skew detected.  Your build may be incomplete.
make[6]: Leaving directory `/mnt/xg/tmp/xgstage0/build/gmp/demos'
make[5]: warning:  Clock skew detected.  Your build may be incomplete.
make[5]: Leaving directory `/mnt/xg/tmp/xgstage0/build/gmp/demos'
Making all in tune
make[5]: Entering directory `/mnt/xg/tmp/xgstage0/build/gmp/tune'
make[5]: Warning: File `Makefile' has modification time 2.7e+04 s in the future
make[5]: Nothing to be done for `all'.
make[5]: warning:  Clock skew detected.  Your build may be incomplete.
make[5]: Leaving directory `/mnt/xg/tmp/xgstage0/build/gmp/tune'
Making all in doc
make[5]: Entering directory `/mnt/xg/tmp/xgstage0/build/gmp/doc'
make[5]: Warning: File `Makefile' has modification time 2.7e+04 s in the future
make[5]: Nothing to be done for `all'.
make[5]: warning:  Clock skew detected.  Your build may be incomplete.
make[5]: Leaving directory `/mnt/xg/tmp/xgstage0/build/gmp/doc'
make[5]: Entering directory `/mnt/xg/tmp/xgstage0/build/gmp'
make[5]: Warning: File `Makefile' has modification time 2.7e+04 s in the future
make[5]: Nothing to be done for `all-am'.
make[5]: warning:  Clock skew detected.  Your build may be incomplete.
make[5]: Leaving directory `/mnt/xg/tmp/xgstage0/build/gmp'
make[4]: warning:  Clock skew detected.  Your build may be incomplete.
make[4]: Leaving directory `/mnt/xg/tmp/xgstage0/build/gmp'
make[3]: warning:  Clock skew detected.  Your build may be incomplete.
make[3]: Leaving directory `/mnt/xg/tmp/xgstage0/build/gmp'
make[3]: Entering directory `/mnt/xg/tmp/xgstage0/build/intl'
make[3]: Warning: File `Makefile' has modification time 2.7e+04 s in the future
make[3]: Nothing to be done for `all'.
make[3]: warning:  Clock skew detected.  Your build may be incomplete.
make[3]: Leaving directory `/mnt/xg/tmp/xgstage0/build/intl'
make[3]: Entering directory `/mnt/xg/tmp/xgstage0/build/mpfr'
make[3]: Warning: File `.deps/zeta_ui.Plo' has modification time 2.8e+04 s in the future
Making all in tests
make[4]: Entering directory `/mnt/xg/tmp/xgstage0/build/mpfr/tests'
make[4]: Warning: File `.deps/tzeta_ui.Po' has modification time 2.8e+04 s in the future
make[4]: Nothing to be done for `all'.
make[4]: warning:  Clock skew detected.  Your build may be incomplete.
make[4]: Leaving directory `/mnt/xg/tmp/xgstage0/build/mpfr/tests'
make[4]: Entering directory `/mnt/xg/tmp/xgstage0/build/mpfr'
make[4]: Warning: File `.deps/zeta_ui.Plo' has modification time 2.8e+04 s in the future
/bin/sh ./libtool --tag=CC   --mode=compile gcc -DHAVE_INTTYPES_H=1 -DHAVE_STDINT_H=1 -DTIME_WITH_SYS_TIME=1 -DHAVE_LOCALE_H=1 -DHAVE_WCHAR_H=1 -DHAVE_STDARG=1 -DHAVE_SYS_TIME_H=1 -DHAVE_STDINT_H=1 -DHAVE_SETLOCALE=1 -DHAVE_GETTIMEOFDAY=1 -DHAVE_LONG_LONG=1 -DHAVE_INTMAX_T=1 -DMPFR_HAVE_FESETROUND=1 -DHAVE_ROUND=1 -DHAVE_TRUNC=1 -DHAVE_FLOOR=1 -DHAVE_CEIL=1 -DHAVE_NEARBYINT=1 -DLT_OBJDIR=\".libs/\" -DHAVE_ATTRIBUTE_MODE=1 -DHAVE_ALLOCA_H=1 -I. -I../../gcc-4.4.0/mpfr   -I/mnt/xg/tmp/xgstage0/build/./gmp -I/mnt/xg/tmp/xgstage0/build/./gmp/tune  -g -fkeep-inline-functions -MT mul.lo -MD -MP -MF .deps/mul.Tpo -c -o mul.lo ../../gcc-4.4.0/mpfr/mul.c
libtool: compile:  gcc -DHAVE_INTTYPES_H=1 -DHAVE_STDINT_H=1 -DTIME_WITH_SYS_TIME=1 -DHAVE_LOCALE_H=1 -DHAVE_WCHAR_H=1 -DHAVE_STDARG=1 -DHAVE_SYS_TIME_H=1 -DHAVE_STDINT_H=1 -DHAVE_SETLOCALE=1 -DHAVE_GETTIMEOFDAY=1 -DHAVE_LONG_LONG=1 -DHAVE_INTMAX_T=1 -DMPFR_HAVE_FESETROUND=1 -DHAVE_ROUND=1 -DHAVE_TRUNC=1 -DHAVE_FLOOR=1 -DHAVE_CEIL=1 -DHAVE_NEARBYINT=1 -DLT_OBJDIR=\".libs/\" -DHAVE_ATTRIBUTE_MODE=1 -DHAVE_ALLOCA_H=1 -I. -I../../gcc-4.4.0/mpfr -I/mnt/xg/tmp/xgstage0/build/./gmp -I/mnt/xg/tmp/xgstage0/build/./gmp/tune -g -fkeep-inline-functions -MT mul.lo -MD -MP -MF .deps/mul.Tpo -c ../../gcc-4.4.0/mpfr/mul.c -o mul.o
../../gcc-4.4.0/mpfr/mul.c: In function 'mpfr_mul':
../../gcc-4.4.0/mpfr/mul.c:315: error: impossible constraint in 'asm'
../../gcc-4.4.0/mpfr/mul.c:322: error: impossible constraint in 'asm'
../../gcc-4.4.0/mpfr/mul.c:323: error: impossible constraint in 'asm'
../../gcc-4.4.0/mpfr/mul.c:332: error: impossible constraint in 'asm'
../../gcc-4.4.0/mpfr/mul.c:333: error: impossible constraint in 'asm'
../../gcc-4.4.0/mpfr/mul.c:336: error: impossible constraint in 'asm'
../../gcc-4.4.0/mpfr/mul.c:337: error: impossible constraint in 'asm'
make[4]: *** [mul.lo] Error 1
make[4]: Leaving directory `/mnt/xg/tmp/xgstage0/build/mpfr'
make[3]: *** [all-recursive] Error 1
make[3]: Leaving directory `/mnt/xg/tmp/xgstage0/build/mpfr'
make[2]: *** [all-stage1-mpfr] Error 2
make[2]: Leaving directory `/mnt/xg/tmp/xgstage0/build'
make[1]: *** [stage1-bubble] Error 2
make[1]: Leaving directory `/mnt/xg/tmp/xgstage0/build'
make: *** [all] Error 2
发表于 2010-6-12 16:56:16 | 显示全部楼层
龙芯?会不会不支持这个硬件平台?
回复 支持 反对

使用道具 举报

发表于 2010-6-12 17:18:21 | 显示全部楼层
已经有好多编译后的文件了,是不是么有clean, 还是你为了显示错误信息,又一次make了
回复 支持 反对

使用道具 举报

 楼主| 发表于 2010-6-12 17:44:12 | 显示全部楼层
为了显示错误信息,我又make了一次
回复 支持 反对

使用道具 举报

发表于 2010-6-12 20:49:39 | 显示全部楼层
编译过程中,在龙机机上,使用本地文件系统还是网络文件系统?
网络文件系统,两机机时间可能不同步。

也可能是使用了 ntp 一类东东引起。

龙机机性能差,可能的话还是在其他机机做系统,或配合其他机机交叉编译器使用 distcc。

这里有补丁
http://comments.gmane.org/gmane.comp.lib.mpfr.general/389
http://gmplib.org:8000/gmp/rev/12a1d0bf21f0
回复 支持 反对

使用道具 举报

 楼主| 发表于 2010-6-13 09:46:02 | 显示全部楼层
Post by 聚焦深空;2096388
编译过程中,在龙机机上,使用本地文件系统还是网络文件系统?
网络文件系统,两机机时间可能不同步。

也可能是使用了 ntp 一类东东引起。

龙机机性能差,可能的话还是在其他机机做系统,或配合其他机机交叉编译器使用 distcc。

这里有补丁
http://comments.gmane.org/gmane.comp.lib.mpfr.general/389
http://gmplib.org:8000/gmp/rev/12a1d0bf21f0


使用的是NFS,我一开始也以为是两台机器时间不同步的问题,可是当我解决了时间的问题后还是一样的出错,另外,第一个连接打开后没有看到补丁啊。
回复 支持 反对

使用道具 举报

发表于 2010-6-13 19:46:54 | 显示全部楼层
说你什么好。
硕大补丁视而不见。
第二个是什么。
回复 支持 反对

使用道具 举报

 楼主| 发表于 2010-6-13 20:45:21 | 显示全部楼层
晕,第一个连接打开后没有看到说明,只看到网页的标题和左边的广告。刚回家换了台电脑,才看到第一个连接是说这个问题
回复 支持 反对

使用道具 举报

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

本版积分规则

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