On 10/06/2019 08:28, Akira Urushibata via lfs-dev wrote: > While constructing LFS v.8.4 I encountered a segmentation fault in > Chapter 5 Section 35 "Stripping." > > I understand why this happened. I built up to Section 34, logged out > and logged in as lfs again. PATH found the newly compiled and installed > bash in /tools/bin and I ended up trying to strip a running program: > /tools/bin/bash . Though I haven't tried, I expect the same problem > with LFS 8.5 . >
If you log in as lfs, the PATH is set in .bashrc, that is, after bash has been launched. So, unless you have set PATH in the init scripts of the host to something beginning with /tools/bin, the bash running for lfs is the host bash (in /bin/bash). Of course, /tools/bin/bash will be run if you type "bash" as user lfs. But the book never instructs to do that. Pierre -- http://lists.linuxfromscratch.org/listinfo/lfs-dev FAQ: http://www.linuxfromscratch.org/faq/ Unsubscribe: See the above information page
