emmett1 / lfs-scripts

Automated script to build Multilib LFS system + livecd
GNU General Public License v3.0
97 stars 46 forks source link

01-toolchain failing @ binutils build #13

Open M0E-lnx opened 4 years ago

M0E-lnx commented 4 years ago

I like this idea, so decided to give it a try and ran into a problem right way.

I'm using a fresh install of debian 10 as the host

Looks like the first step is binutils and it is compiling fine, but looks like during the make install step, it wants to create /tools/{lib,lib32} and it is failing due to permissions.

I did notice the readme says this script should ask for sudo password, but it did not. I have never built LFS manually, so I dont know if it's a good idea to run this whole 01-toolchain script as root.

Any advice would be welcomed.

Thanks

hyperclock commented 4 years ago

I'm working on getting this to build on Debian. I have it working to the point where it ends the 03-mkiso with an error, the rest seems to build. You will need a lot of tools for this. I do get asked for the sudo passwd.

Here is what I install to get this to build:

sudo apt install git gawk bison texinfo rsync subversion build-essential squashfs-tools libisoburn1 icu-devtools devscripts libarchive-tools nettle-dev libcrypto++-dev libextutils-pkgconfig-perl autoconf-archive nettle-dev libcrypto++-dev efitools efivar libarchive13 libarchive-dev

Do you have sudo installed and setup? If not you will need that.

The easiest way when doing a fresh install on Debian is to skip adding the root passwd during install, you will then get sudo added during the install.

Once I get this working as it should, I'll write a tutorial and post a link to it (if that's ok with the author of the scripts).

BTW - I have built LFS manually in the past, this script is awesome. You get a lot more the the LFS book and that within a few hours. I spent about 4 weeks on my build of LFS 6.3 back then.

hyperclock commented 4 years ago

I do have it working now, with 2 workarounds. I should have the site up and a tutorial ready by Friday.

M0E-lnx commented 4 years ago

Nice! Thank you

emmett1 commented 4 years ago

@M0E-lnx script 01-toolchain have some a little bit problem with working directory permission. It does not run fully as root, only some parts required root access thats why it use sudo.

@hyperclock debian always give problem when building LFS. If you can get it working on debian, dont forget share the workaround, i will put into README, very appreciate it :)

hyperclock commented 4 years ago

I built a iso today and was able to test it in Virtualbox. I do want to test again without the symlinks, I saw you made a change so I will test that.

It builds, but not "out-of-the-box" like it does with VenomLinux. So let me run a few more tests before saying this works. I only had it work twice, I like 4-5 tests before I declare something to work. I will run one test on Virtualbox and one on my extra PC tonight and will report back tomorrow.

emmett1 commented 4 years ago

Ok cool. Thank you for testing out the script. :D

hyperclock commented 4 years ago

So I ran a total of 12 tests using Debian 10 on 3 diffrent boxes. I have setup a quick tutorial on how I do this using Debian 10 as a host. I hope it's ok to link it here. It was done very quickly, so there will be fixes to that. https://werxlab.org/lfs/build-own-lfs-easy-with-debian-host-lfs-scripts/ is where it's at.

emmett1 commented 4 years ago

Thats good. I will add required packages for debian into readme and mention you and your website. Thanks for testing :D