nashty 发表于 2010-03-23 19:37

linux编译glibc,一直报错

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: *** Error 1
make: Leaving directory `/usr/local/src/glibc-2.11.1/math'
make: *** Error 2
make: Leaving directory `/usr/local/src/glibc-2.11.1'
make: *** 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

qtdszws 发表于 2010-03-23 21:15

你的binutils版本是多少?

emmoblin 发表于 2010-03-23 21:46

Error: junk at end of line, first unrecognized character is `1'

这些是什么语言?

qtdszws 发表于 2010-03-23 22:05

这是as在报错,说语法有问题,出现了非法字符

nashty 发表于 2010-03-24 20:13

回复 2# qtdszws


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

nashty 发表于 2010-03-24 20:17

回复 4# qtdszws


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

nashty 发表于 2010-03-24 20:41

我已经有binutils这个软件了,是默认安装的

prolj 发表于 2010-03-24 20:46

math的时候出错,libgcc和math有关系,但是是不是as的问题我不知道。是谁的问题我也不知道,lz保重。

nashty 发表于 2010-03-24 20:56

回复 2# qtdszws


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

prolj 发表于 2010-03-24 23:24

回复 9# nashty


    会,一般都是低版本编译高版本,高版本编译低版本会有问题。
页: [1] 2
查看完整版本: linux编译glibc,一直报错