xry111 / lfs-book-i18n

Repository for LFS book translation (currently only Simplified Chinese).
https://lfs.xry111.site/zh_CN/
176 stars 10 forks source link

6.18.1. 安装 GCC 部分 --target=$LFS_TGT翻译少了一个词“之前” #39

Closed gengshuhui closed 6 months ago

gengshuhui commented 6 months ago

--target=$LFS_TGT 由于我们正在交叉编译 GCC,此时不可能用之前编译得到的 GCC 二进制程序

https://www.linuxfromscratch.org/lfs/view/development/chapter06/gcc-pass2.html

-target=$LFS_TGT
We are cross-compiling GCC, so it's impossible to build target libraries (libgcc and libstdc++) with the previously compiled GCC binaries
xry111 commented 6 months ago

I don't think using "previously" here is correct. This option makes the building system build target libraries with GCC pass 1, instead of the "just built" GCC pass 2 (if we don't pass --target=$LFS_TGT it'll use GCC pass 2 and the build may fail). And GCC pass 1 is exactly the "previous" built GCC here (it's prior to GCC pass 2).

I need to contact other LFS editors to see if the English book is just wrong. (Or maybe it's some English idiom I don't know but “之前” is just ambiguous in Chinese.)

xry111 commented 6 months ago

The English book has been reworded.