LinuxSir.cn,穿越时空的Linuxsir!

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

第五章 glibc2.3.2 编译出错!!!!

[复制链接]
发表于 2003-6-14 19:56:19 | 显示全部楼层 |阅读模式
[lfs@localhost glibc-init-build]$ make
make -r PARALLELMFLAGS="" CVSOPTS="" -C ../glibc-2.3.2 objdir=`pwd` all
make[1]: Entering directory `/lfs/stage1/glibc-2.3.2'
make  -C csu subdir_lib
make[2]: Entering directory `/lfs/stage1/glibc-2.3.2/csu'
gawk -f ../scripts/gen-as-const.awk ../linuxthreads/sysdeps/i386/tcb-offsets.sym \
| gcc -B/stage1/bin/ -S -o - -std=gnu99 -02 -Wall -Winline -Wstrict-prototypes -Wwrite-strings -pipe      -I../include -I. -I/lfs/stage1/glibc-init-build/csu -I.. -I../libio  -I/lfs/stage1/glibc-init-build -I../sysdeps/i386/elf -I../linuxthreads/sysdeps/unix/sysv/linux/i386 -I../linuxthreads/sysdeps/unix/sysv/linux -I../linuxthreads/sysdeps/pthread -I../sysdeps/pthread -I../linuxthreads/sysdeps/unix/sysv -I../linuxthreads/sysdeps/unix -I../linuxthreads/sysdeps/i386/i686 -I../linuxthreads/sysdeps/i386 -I../sysdeps/unix/sysv/linux/i386 -I../sysdeps/unix/sysv/linux -I../sysdeps/gnu -I../sysdeps/unix/common -I../sysdeps/unix/mman -I../sysdeps/unix/inet -I../sysdeps/unix/sysv/i386 -I../sysdeps/unix/sysv -I../sysdeps/unix/i386 -I../sysdeps/unix -I../sysdeps/posix -I../sysdeps/i386/i686/fpu -I../sysdeps/i386/i686 -I../sysdeps/i386/i486 -I../sysdeps/i386/fpu -I../sysdeps/i386 -I../sysdeps/wordsize-32 -I../sysdeps/ieee754/ldbl-96 -I../sysdeps/ieee754/dbl-64 -I../sysdeps/ieee754/flt-32 -I../sysdeps/ieee754 -I../sysdeps/generic/elf -I../sysdeps/generic  -nostdinc -isystem /stage1/lib/gcc-lib/i686-pc-linux-gnu/3.2.2/include -isystem /stage1/include -D_LIBC_REENTRANT -include ../include/libc-symbols.h       -DHAVE_INITFINI -x c - \
        -MD -MF /lfs/stage1/glibc-init-build/tcb-offsets.h.dT -MT '/lfs/stage1/glibc-init-build/tcb-offsets.h.d /lfs/stage1/glibc-init-build/tcb-offsets.h' \
| sed -n 's/^.*@@@name@@@\([^@]*\)@@@value@@@[^0-9Xxa-fA-F-]*\([0-9Xxa-fA-F-][0-9Xxa-fA-F-]*\).*@@@end@@@.*$/#define \1 \2/p' > /lfs/stage1/glibc-init-build/tcb-offsets.hT
gcc: unrecognized option `-02'
In file included from ../include/libc-symbols.h:56,
                 from <command line>:1:
/lfs/stage1/glibc-init-build/config.h:3:3: #error "glibc cannot be compiled without optimization"
sed -e 's@ /lfs/stage1/glibc-init-build/@ $(common-objpfx)@g' -e 's@^/lfs/stage1/glibc-init-build/@$(common-objpfx)@g' -e 's@  *\.\.\/\([^      \]*\)@ $(..)\1@g' \
    /lfs/stage1/glibc-init-build/tcb-offsets.h.dT > /lfs/stage1/glibc-init-build/tcb-offsets.h.dT2
sed: can't read /lfs/stage1/glibc-init-build/tcb-offsets.h.dT: No such file or directory
make[2]: *** [/lfs/stage1/glibc-init-build/tcb-offsets.h] Error 2
make[2]: Leaving directory `/lfs/stage1/glibc-2.3.2/csu'
make[1]: *** [csu/subdir_lib] Error 2
make[1]: Leaving directory `/lfs/stage1/glibc-2.3.2'
make: *** [all] Error 2

是什么问题?
我一定要装上她 受不了了!!!!!!!!!!
发表于 2003-6-14 20:10:04 | 显示全部楼层
gcc: unrecognized option `-02'
是不是打错了,应该是字母O,不是数字零。
http://lfs.linuxsir.cn/htdocs/faq/#optimized-glibc-fail
 楼主| 发表于 2003-6-14 20:11:56 | 显示全部楼层

这是CONFIGURE的内容!

这里

本帖子中包含更多资源

您需要 登录 才可以下载或查看,没有帐号?注册

x
发表于 2003-6-14 20:20:43 | 显示全部楼层
你把CFLAGS打错了,是字母O,不是数字零
 楼主| 发表于 2003-6-14 20:39:49 | 显示全部楼层

那别的为什么没有出错呢?

我GCC BINUTILS 都是 02啊
发表于 2003-6-14 21:20:06 | 显示全部楼层
你设置了CFLAGS,会覆盖掉软件包自己的设置,而glibc自己要求优化,不要你来优化,所以你设置错了以后就编译不了。看我上面给你的那个链接。
您需要登录后才可以回帖 登录 | 注册

本版积分规则

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