|
|

楼主 |
发表于 2004-7-31 13:16:10
|
显示全部楼层
NOTES:
0. This week, I have build two LFS-5.1.1 systems on
a) VMware 4.5.2 build 8848 with Slackware 10 installed, and
b) a legacy AMD K6-2/96M RAM/6.4G, with Mandrake 7.0(Air) installed.
Using the shell scripts based on the LFS official book.
1. In the Mandrake, the 'su - lfs' in the end of stage1/stage1.enter
hangs because of the 'exec /bin/bash ...' in the ~/.bash_profile,
I use 'su lfs' instead. But this is not a problem if the host system is
Slackware. Possible reason: The bash has a version number 2.03 in the
Mandrake.
2. In building ./stage1/08-gcc, the gcc-build/gcc/Makefile must be patched by
catalogs="$(CATALOGS)"; for cat in $$catalogs; do \ ....
in the target 'install-po'. This is caused by empty CATALOGS. This
problem goes away in the ./stage2/06-gcc. I have made a patch
'gcc-3.3.3-empty-catatlogs.patch' in the LFS-5.1.1 directory. YOU MUST
DO THIS PATCH MANUALLY!
3. In building ./stage2/06-gcc, 'make -k check' gets some 'FAIL's because of
some compilations timeout in the Mandrake. It seems no harm now.
4. In building ./stage2/24-perl, 'make test' hangs on testing Benchmark module.
Just type 'Ctrl-C' to stop testing if you will.
5. stage1/091-wget is not part of official LFS document. It's used by
stage1/{10,11, ...} packages and stage2. The wget is needed because
I don't download all the packages and patches in advance.
5. LFS ID: 13552. I like the LFS system which is I'm working on, more than this ID.
HOWTO:
0. As root, export LFS_HOME and LFS_VERSION. The LFS_HOME is the directory where
LFS-$LFS_VERSION resides in. Edit the lfs.conf to change the parameters.
1. [lfs.prepare] -> stage1/stage1.enter -> stage1/stage1.build
stage2/stage2.enter -> [stage2/stage2.prebuild] -> stage2/stage2.build
where the lfs.prepare and stage2/stage2.prebuild should be run ONLY once.
3. After running stage1/stage1.build, you may go to sleep or wait it to finish.
If you have a decent machine not like my Mandrake, stage1 is very fast.
Stage2 takes much more time than stage1 because of 'make test' or 'make -k check'.
If you are brave enough, you can comment it out.
In fact, after finishing stage1/08-gcc or stage2/06-gcc, everything following
should be OK.
4. SUGGESTION:
If you get 'fail's or 'error's in building Binutils, Glibc or GCC, it's better to
restart the whole stage1 or stage2 than just rebuilding Binutils, Glibc or GCC just
failed.
Hope This Helps, Enjoy LFS! |
|