|
|
发表于 2005-2-7 12:28:02
|
显示全部楼层
lfs-5.1.1中的tcl版本是 tcl-8.4.6的。
你的怎么是.7的呢 :ask
tcl上一章的Adjusting the toolchain
是否正确做的呢?
- Caution
- It is imperative at this point to stop and ensure that the basic functions (compiling and linking) of the new toolchain are working as expected. For this we are going to perform a simple sanity check:
- echo 'main(){}' > dummy.c
- cc dummy.c
- readelf -l a.out | grep ': /tools'
- If everything is working correctly, there should be no errors, and the output of the last command will be (allowing for platform specific differences in dynamic linker name):
- [Requesting program interpreter: /tools/lib/ld-linux.so.2]
- Note especially that /tools/lib appears as the prefix of our dynamic linker.
- If you did not receive the output as shown above, or received no output at all, then something is seriously wrong. You will need to investigate and retrace your steps to find out where the problem is and correct it. There is no point in continuing until this is done. First, redo the sanity check using gcc instead of cc. If this works it means the /tools/bin/cc symlink is missing. Revisit the section called “GCC-3.3.3 - Pass 1” and fix the symlink. Second, ensure your PATH is correct. You can check this by running echo $PATH and verifying that /tools/bin is at the head of the list. If the PATH is wrong it could mean you're not logged in as user lfs or something went wrong back in the section called “Setting up the environment”. Third, something may have gone wrong with the specs file amendment above. In this case redo the specs file amendment ensuring to cut-and-paste the commands as was recommended.
- Once you are satisfied that all is well, clean up the test files:
- rm dummy.c a.out
复制代码
做这个测试,结果是什么? |
|