Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
[solved] LFS from hardened gentoo
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Unsupported Software
View previous topic :: View next topic  
Author Message
bendeguz
Apprentice
Apprentice


Joined: 10 Feb 2010
Posts: 189

PostPosted: Tue Jun 29, 2010 9:29 pm    Post subject: [solved] LFS from hardened gentoo Reply with quote

Hi!

I'd like to play with Linux From Scratch from a hardened host.
Could it be a problem, that I have not regular gcc? (I guess it is a problem.)
Should I build a gcc by hand, and build LFS with that?

Thanks for helping...


Last edited by bendeguz on Thu Jul 01, 2010 5:00 pm; edited 1 time in total
Back to top
View user's profile Send private message
BradN
Advocate
Advocate


Joined: 19 Apr 2002
Posts: 2391
Location: Wisconsin (USA)

PostPosted: Tue Jun 29, 2010 10:05 pm    Post subject: Reply with quote

In general I don't think it's a big deal - you could try it and see what happens, but I think for best results you'll want to use the same compiler they use. That way you'll be less likely to be bitten by compiler weirdness from something they didn't test with.

If they offer a base installation tarball like gentoo does (or you can obtain one somehow), you should be able to play with that in a chroot much the same way as gentoo is installed.
Back to top
View user's profile Send private message
bendeguz
Apprentice
Apprentice


Joined: 10 Feb 2010
Posts: 189

PostPosted: Tue Jun 29, 2010 10:12 pm    Post subject: Reply with quote

You have to build everything from source.
Of course I will chroot into a base system, but I have to build it first.
So I will use the compiler in the handbook, but to build the toolchain
I'd like to use gentoo, so I can do other things while compiling.
Back to top
View user's profile Send private message
BradN
Advocate
Advocate


Joined: 19 Apr 2002
Posts: 2391
Location: Wisconsin (USA)

PostPosted: Tue Jun 29, 2010 10:16 pm    Post subject: Reply with quote

In that case you should be able to use gentoo to build the base system as long as LFS uses the same gcc ABIs as gentoo (if you've done something exotic like using uclibc somewhere or maybe using a different CHOST, this might cause problems).

Base packages are usually pretty well tested from just about every angle so it should work okay.

If you do run into problems from using hardened gcc, I think you can still install a "normal" gcc as well and switch to that to build LFS.
Back to top
View user's profile Send private message
bendeguz
Apprentice
Apprentice


Joined: 10 Feb 2010
Posts: 189

PostPosted: Thu Jul 01, 2010 4:59 pm    Post subject: Reply with quote

Thank you!
So, I will try with the hardened compiler to see if it works...
Back to top
View user's profile Send private message
bendeguz
Apprentice
Apprentice


Joined: 10 Feb 2010
Posts: 189

PostPosted: Fri Aug 06, 2010 7:55 am    Post subject: Reply with quote

So, I've built the basic temporary system which I can chroot into.
When I did the glibc sanity check I got errors, so I continue the installation with an LFS livecd host.
The check passes with the LFS livecd.
Maybe I should build the temporary tools again, with a non-hardened host. :S

So boys and girls, don't build LFS from a hardened gentoo.
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Unsupported Software All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum