LinuxSir.cn,穿越时空的Linuxsir!

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

请过来人指点一下(LFS V6.2 手册5.4.1问题)

[复制链接]
发表于 2006-10-12 18:30:30 | 显示全部楼层 |阅读模式
根据LFS V6.2 手册5.4.1章节所述, 把编译好的gcc用如下命令来建立一个连接: ln -vs gcc /tools/bin/cc. 但是我发现在编译的当前目录(/mnt/lfs/sources/gcc-build)根本没有gcc 这个可执行文件, 却有一个gcc文件夹. 我是否把这个文件夹给建立一个连接呢? gcc文件夹中也没有gcc 这个可执行文件,却有一个xgcc可执行文件, 我该如何处理呢? 谢谢.
发表于 2006-10-12 19:35:18 | 显示全部楼层
Obviously, you have done something wrong.

Please read the LFS handbook very carefully and follow its instructions step-by-step.
回复 支持 反对

使用道具 举报

 楼主| 发表于 2006-10-12 22:26:34 | 显示全部楼层
Thanks the host of d00m3d.
In order to read the manual  carefully , I have printed the manual. ;)
I am sure that I follow its instruction step-by-step strickly. What kind of mistake can cause this problem?

P.S
My host laptop OS is Fedora 5.
Doesn't patch any patches in gcc 4.0.3 when I complie this directory.
回复 支持 反对

使用道具 举报

发表于 2006-10-12 23:10:05 | 显示全部楼层
xgcc是编译gcc的一个中间产物,不明白为何在这里停下来了?

gcc的编译原理就是先有一个其它的编译器将gcc的源代码编译成xgcc再使用xgcc编译自己一遍生成gcc
回复 支持 反对

使用道具 举报

发表于 2006-10-13 00:13:04 | 显示全部楼层
ln -vs gcc /tools/bin/cc
这句的含义是,在/tools/bin建立一个软链接cc,指向同一目录下的gcc
而不是在当前目录建立的链接
回复 支持 反对

使用道具 举报

发表于 2006-10-13 01:49:48 | 显示全部楼层
Post by gzyui
ln -vs gcc /tools/bin/cc
这句的含义是,在/tools/bin建立一个软链接cc,指向同一目录下的gcc
而不是在当前目录建立的链接
That's right.
Post by nelson_xia
Thanks the host of d00m3d.
In order to read the manual  carefully , I have printed the manual. ;)
I am sure that I follow its instruction step-by-step strickly. What kind of mistake can cause this problem?

P.S
My host laptop OS is Fedora 5.
Doesn't patch any patches in gcc 4.0.3 when I complie this directory.
Before you create the symbolic link, you should install gcc.  Are you sure the installation is done smoothly?
回复 支持 反对

使用道具 举报

 楼主| 发表于 2006-10-13 09:34:58 | 显示全部楼层
非常感谢楼上的朋友那么晚还回答我的问题.

编译好后安装时没有任何错误出现, 这是否能保证我的安装是成功的呢?
我有一点还想问斑竹, 在编译的当前目录是否有gcc 这个可执行文件与安装与否有关系吗? 因为我的安装路径没有指定在我所编译的当前目录啊.

gzyui的意思我明白, 这也是我纳闷为什么在我编译的当前目录下没有这个可执行文件呢?

再次感谢.
回复 支持 反对

使用道具 举报

发表于 2006-10-13 12:55:11 | 显示全部楼层
To compile gcc, you should create a new working directory (e.g. gcc-build) along side with the gcc source tree.  This is recommended by gcc developers and is stated in the LFS handbook.  So, obviously, this build directory will not have any gcc executable files!

You should read the LFS handbook very carefully and understand WHY packages are compiled in such way, not just know WHAT to do.

There is a check point to determine whether your toolchain is working properly in later chapter of the book.

Good luck!
回复 支持 反对

使用道具 举报

 楼主| 发表于 2006-10-13 16:01:04 | 显示全部楼层
The problem has been sovled . Thanks.
回复 支持 反对

使用道具 举报

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

本版积分规则

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