LinuxSir.cn,穿越时空的Linuxsir!

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

这是为什么?编译binutils-2.15.94.2.2*通不过

[复制链接]
发表于 2006-6-28 18:30:45 | 显示全部楼层 |阅读模式
我装的是fedora5,
gcc编译器是4.1.0,
需要给gcc打补丁,
出现错误:
configure: error: installation or configuration problem: C compiler cannot create  executables.
lfs:/mnt/lfs/sources/binutils-build$ patch -Np1 -i ../binutils-2.15.94.0.2.2-gcc4 -1.patch
can't find file to patch at input line 10
Perhaps you used the wrong -p or --strip option?

兄弟们帮帮我呀!
发表于 2006-6-28 18:38:33 | 显示全部楼层
晕死~~又是这个问题~~

换个新版的 binutils-2.16 或以後再做吧!
回复 支持 反对

使用道具 举报

 楼主| 发表于 2006-6-28 19:20:06 | 显示全部楼层
谢谢,知道了。

建议修改LFSBOOK里的binutils版本。
回复 支持 反对

使用道具 举报

发表于 2006-6-28 19:54:03 | 显示全部楼层
你的patch打错位置了!
回复 支持 反对

使用道具 举报

发表于 2006-6-28 20:12:37 | 显示全部楼层
是的,patch 应该打在源码目录下
回复 支持 反对

使用道具 举报

 楼主| 发表于 2006-6-28 21:57:18 | 显示全部楼层
doom3d兄:
我该了版本:binutils-2.16.91.0.7.tar.bz2
可以解压,configure出错:
******************************
checking whether the C compiler (gcc  ) works... no
configure: error: installation or configuration problem: C compiler cannot create executables.
******************************
这是gcc的问题,我给gcc打补丁出错:
lfs:/mnt/lfs/sources/binutils-build$ patch -Np1 -i ../binutils-2.15.94.0.2.2-gcc4 -1.patch
can't find file to patch at input line 10
Perhaps you used the wrong -p or --strip option?
The text leading up to this was:
--------------------------
|Submitted By: Alexander E. Patrakov
|Date: 2005-10-10
|Initial Package Version: 2.15.94.0.2.2
|Upstream Status: Backport from 2.16.1
|Origin: Alexander E. Patrakov
|Description: Fixes compilation by gcc4 (e.g. from Fedora Core 4 hosts)
|
|--- binutils-2.15.94.0.2.2/gas/tc.h    2004-11-22 20:33:31.000000000 +0000
|+++ binutils-2.16.1/gas/tc.h   2005-02-17 13:46:00.000000000 +0000
--------------------------
File to patch:

这是什么问题?
回复 支持 反对

使用道具 举报

 楼主| 发表于 2006-6-28 21:58:55 | 显示全部楼层
哦,发了贴子,才看到留言,哈哈,我试一下
回复 支持 反对

使用道具 举报

 楼主| 发表于 2006-6-28 22:17:35 | 显示全部楼层
都不好意思了,这是在源码目录下打补丁出的错误:
lfs:/mnt/lfs/sources/binutils-2.16.91.0.7$ patch -Np1 -i ../binutils-2.15.94.0.2. 2-gcc4-1.patch
patching file gas/tc.h
Hunk #1 FAILED at 25.
1 out of 1 hunk FAILED -- saving rejects to file gas/tc.h.rej
patching file gas/as.h
Reversed (or previously applied) patch detected!  Skipping patch.
1 out of 1 hunk ignored -- saving rejects to file gas/as.h.rej
lfs:/mnt/lfs/sources/binutils-2.16.91.0.7$
回复 支持 反对

使用道具 举报

发表于 2006-6-28 22:26:51 | 显示全部楼层
参考 youbest的 手把手 那一篇吧。。
回复 支持 反对

使用道具 举报

 楼主| 发表于 2006-6-28 22:35:23 | 显示全部楼层
谢谢各位,我会认真看一下youbest的 手把手
回复 支持 反对

使用道具 举报

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

本版积分规则

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