Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

01-toolchain failing @ binutils build #13

Open
M0E-lnx opened this issue Jul 7, 2020 · 8 comments
Open

01-toolchain failing @ binutils build #13

M0E-lnx opened this issue Jul 7, 2020 · 8 comments

Comments

@M0E-lnx
Copy link

M0E-lnx commented Jul 7, 2020

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
Copy link

hyperclock commented Jul 8, 2020

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
Copy link

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

@M0E-lnx
Copy link
Author

M0E-lnx commented Jul 8, 2020

Nice!
Thank you

@emmett1
Copy link
Owner

emmett1 commented Jul 8, 2020

@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
Copy link

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
Copy link
Owner

emmett1 commented Jul 8, 2020

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

@hyperclock
Copy link

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
Copy link
Owner

emmett1 commented Jul 15, 2020

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants