免费注册 查看新帖 |

Chinaunix

  平台 论坛 博客 文库
12下一页
最近访问板块 发新帖
查看: 9579 | 回复: 18

linux编译glibc,一直报错 [复制链接]

论坛徽章:
0
发表于 2010-03-23 19:37 |显示全部楼层
make版本号    GNU Make 3.81
gcc版本号     gcc version 4.4.2 20091027 (Red Hat 4.4.2-7) (GCC)
glibc版本号   #define RELEASE "stable"
              #define VERSION "2.11.1"
kernal版本号  2.6.31.5-127.fc12.i686.PAE

源码unpack到 /usr/local/src/glibc-2.11.1
创建对象文件 ../glibc-2.11.1/configure --prefix=/usr
出现这个提示:config.status: creating config.make
              config.status: creating Makefile
              config.status: creating config.h
              config.status: config.h is unchanged
              config.status: executing default commands
然后编译的时候出现这个错误:
make[2]: *** [/usr/local/src/glibc-build/math   /s_frexp.os] Error 1
make[2]: Leaving directory `/usr/local/src/glibc-2.11.1/math'
make[1]: *** [math/subdir_lib] Error 2
make[1]: Leaving directory `/usr/local/src/glibc-2.11.1'
make: *** [all] Error 2

../sysdeps/i386/fpu/s_frexp.S:66: Error: invalid identifier for ".ifdef"
../sysdeps/i386/fpu/s_frexp.S:66: Error: junk at end of line, first unrecognized character is `1'
../sysdeps/i386/fpu/s_frexp.S:66: Error: junk at end of line, first unrecognized character is `1'
../sysdeps/i386/fpu/s_frexp.S:66: Error: junk at end of line, first unrecognized character is `1'
../sysdeps/i386/fpu/s_frexp.S:66: Error: junk at end of line, first unrecognized character is `.'
../sysdeps/i386/fpu/s_frexp.S:66: Error: junk at end of line, first unrecognized character is `1'
../sysdeps/i386/fpu/s_frexp.S:66: Error: expected comma after name `' in .size directive
../sysdeps/i386/fpu/s_frexp.S:66: Error: ".endif" without ".if"
../sysdeps/i386/fpu/s_frexp.S:66: Error: junk `.get_pc_thunk.dx' after expression

论坛徽章:
0
发表于 2010-03-23 21:15 |显示全部楼层
你的binutils版本是多少?

论坛徽章:
0
发表于 2010-03-23 21:46 |显示全部楼层
Error: junk at end of line, first unrecognized character is `1'

这些是什么语言?

论坛徽章:
0
发表于 2010-03-23 22:05 |显示全部楼层
这是as在报错,说语法有问题,出现了非法字符

论坛徽章:
0
发表于 2010-03-24 20:13 |显示全部楼层
回复 2# qtdszws


GNU ld version 2.19.51.0.14-34.fc12 20090722
binutils是默认安装的吗?我自己没有装过

论坛徽章:
0
发表于 2010-03-24 20:17 |显示全部楼层
回复 4# qtdszws


    ../glibc-2.11.1/configure --prefix=/usr
语法错误是指什么。。我就打了这条命令

论坛徽章:
0
发表于 2010-03-24 20:41 |显示全部楼层
我已经有binutils这个软件了,是默认安装的

论坛徽章:
0
发表于 2010-03-24 20:46 |显示全部楼层
math的时候出错,libgcc和math有关系,但是是不是as的问题我不知道。是谁的问题我也不知道,lz保重。

论坛徽章:
0
发表于 2010-03-24 20:56 |显示全部楼层
回复 2# qtdszws


    我在编译glibc之前。在安装光盘内装了glibc-2.11-2(i686)的rpm包/。版本比现在的高。这个会有影响吗?

论坛徽章:
0
发表于 2010-03-24 23:24 |显示全部楼层
回复 9# nashty


    会,一般都是低版本编译高版本,高版本编译低版本会有问题。
您需要登录后才可以回帖 登录 | 注册

本版积分规则 发表回复

  

北京盛拓优讯信息技术有限公司. 版权所有 京ICP备16024965号-6 北京市公安局海淀分局网监中心备案编号:11010802020122 niuxiaotong@pcpop.com 17352615567
未成年举报专区
中国互联网协会会员  联系我们:huangweiwei@itpub.net
感谢所有关心和支持过ChinaUnix的朋友们 转载本站内容请注明原作者名及出处

清除 Cookies - ChinaUnix - Archiver - WAP - TOP