Hey everyone, since I have finally got a working LFS build after several attempts spanning a few years I decided to post a couple tips that helped me get a successful build
Configuration
As per the title, I used VirtualBox and had Ubuntu 13.04 as a host.
VirtualBox had the network type changed to bridged, but other than that I used default settings.
Ubuntu has most everything you need, it is missing gawk and bison so you will ned to install those with
apt-get. Run the script that is provided to ensure nothing else is missing, I am recalling off the top of my head and I am pretty sure it's just those.
Next, verify the sym links. They are most likely pointing to the wrong place.
Double check the following are point to the right place by typing:
- ls -la /bin/sh
- ls -la /usr/bin/awk
- ls -la /usr/bin/yacc
I'm fairly certain sh points to dash and awk not to gawk. If they're not pointing to the right place, remove them and then create the appropriate sym links.
Once that's done, that's pretty much all there is to it. Just make sure to make regular snapshots as you go through. I needed it once myself at the very end with the grub boot loader. I though I'd be smart and "correct" the grub.cfg file from hd0,1 to sdaX (the partition I had my LFS on). Needless to say it would suck pretty hard starting from scratch at that point had I not made a restore moments earlier (then again, I could've used a ISO to boot from).
Also, if you plan on using the latest kernel, install
bc first as it's a requirement. Also, I just did a make defconfig for the kernel and that is working fine (wasn't too adventurous to begin with
)
Anyways, hope that's of help to some
Now for me to tinker some more..