lfs-scripts icon indicating copy to clipboard operation
lfs-scripts copied to clipboard

01-toolchain failing @ binutils build

Open M0E-lnx opened this issue 4 years ago • 8 comments

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

M0E-lnx avatar Jul 07 '20 19:07 M0E-lnx

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 avatar Jul 08 '20 08:07 hyperclock

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

hyperclock avatar Jul 08 '20 11:07 hyperclock

Nice! Thank you

M0E-lnx avatar Jul 08 '20 12:07 M0E-lnx

@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 :)

emmett1 avatar Jul 08 '20 16:07 emmett1

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.

hyperclock avatar Jul 08 '20 16:07 hyperclock

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

emmett1 avatar Jul 08 '20 16:07 emmett1

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.

hyperclock avatar Jul 11 '20 23:07 hyperclock

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

emmett1 avatar Jul 15 '20 09:07 emmett1