Bryan Kadzban wrote: > Bruce Dubbs wrote: >> ERROR: couldn't execute "file": no such file or directory
> When I rebuilt this system a few months back, gcc was complaining about > file, but I figured it was either just me, or something nobody had seen > yet. Should have said something. > > Anyway, what I did was copy file, libmagic, and the magic data file from > /usr/share/misc from the host into the LFS system, then replaced them in > chapter 6. Not the cleanest fix, but it silenced the error. Installing > file earlier would work as well, of course. > > Assuming that file doesn't hardcode bits from the build system, I'd say > it should work to install it just before gcc. If it does hardcode bits, > then we'd have to install it twice (and therefore chapter 5 sounds > better). Probably need a full iterative comparison to know for sure... I can't imagine file doing anything kernel specific. It would work by opening the target file read only and looking for magic values along with using fstat to determine file type. The build time for me is about 13 seconds. Moving it up where GMP and MPFR are located in Chapter 6 would be a pretty trivial change. We'd also need to remember to update Appendix C. Dependencies. Test suite depends on: DejaGNU, Expect, and File. -- Bruce -- http://linuxfromscratch.org/mailman/listinfo/lfs-dev FAQ: http://www.linuxfromscratch.org/faq/ Unsubscribe: See the above information page