LinuxQuestions.org
Latest LQ Deal: Complete CCNA, CCNP & Red Hat Certification Training Bundle
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Linux From Scratch
User Name
Password
Linux From Scratch This Forum is for the discussion of LFS.
LFS is a project that provides you with the steps necessary to build your own custom Linux system.

Notices


Reply
  Search this Thread
Old 10-10-2017, 02:27 PM   #1
elc79
LQ Newbie
 
Registered: Oct 2017
Distribution: Debian
Posts: 11

Rep: Reputation: Disabled
(Solved) Confused with deleting source directories


Hi guys, when i read about LFS i say to my self "this is not for me" however my other side told me "why not?" and here i am. This is not my first so long install, i installed Gentoo before, i know LFS is a step up but after building the toolchain i think that i can do this.

For sure this is a simple question for many of you but after this building i have many heavy directories in my sources directory, and i want to know how many of that directories i have to preserve or if i can delete all these directories.

Also, the tools directory is heavy, about 2 gigas, i did not changed the owner nor did stripping step. What can i do if i want to have this toolchain to do any other job in the future?

Thank you very much.

Last edited by elc79; 10-18-2017 at 11:23 AM. Reason: Solved
 
Old 10-10-2017, 03:05 PM   #2
sr_ls_boy
Member
 
Registered: Apr 2015
Posts: 68

Rep: Reputation: Disabled
If you finished the LFS book you can delete the /tools and the /sources directories.
The book warns you that the /tools directory is no longer viable for future build. So,
it's worthless anyway.

The other side is your binaries and libs haven't been stripped. You might want to keep
a select few untarred in /sources, for debugging purposes. For me, since that is where
I compiled glibc I kept it there.
 
1 members found this post helpful.
Old 10-12-2017, 01:22 PM   #3
elc79
LQ Newbie
 
Registered: Oct 2017
Distribution: Debian
Posts: 11

Original Poster
Rep: Reputation: Disabled
What happens if i skip gcc tests in 6.20 step?
 
Old 10-12-2017, 02:09 PM   #4
hendrickxm
Member
 
Registered: Feb 2014
Posts: 215

Rep: Reputation: Disabled
Then you will have to make sure that everything is fine without knowing what the result of the tests is.
 
1 members found this post helpful.
Old 10-13-2017, 05:17 AM   #5
elc79
LQ Newbie
 
Registered: Oct 2017
Distribution: Debian
Posts: 11

Original Poster
Rep: Reputation: Disabled
Quote:
Originally Posted by hendrickxm View Post
Then you will have to make sure that everything is fine without knowing what the result of the tests is.
Compile gcc was about 7 hours, i begun make check and i'm scared of how many time will take this operation, there's a way to know how many time can take this operation? By the moment the only thing i see it's thousands of lines with fails (test for excess errors and test for errors) i don't know if this is good or bad.
 
Old 10-13-2017, 05:25 AM   #6
hendrickxm
Member
 
Registered: Feb 2014
Posts: 215

Rep: Reputation: Disabled
Personally I don't do all the tests but I sent through the book many times since v6.x. On what machine are you compiling?
If you use a correct host distro and you follow the book by the letter, the tests are not mandatory to get a working system.
 
1 members found this post helpful.
Old 10-13-2017, 05:48 AM   #7
elc79
LQ Newbie
 
Registered: Oct 2017
Distribution: Debian
Posts: 11

Original Poster
Rep: Reputation: Disabled
Quote:
Originally Posted by hendrickxm View Post
Personally I don't do all the tests but I sent through the book many times since v6.x. On what machine are you compiling?
If you use a correct host distro and you follow the book by the letter, the tests are not mandatory to get a working system.
It's a fresh Debian install on Virtualbox, i know the guide recommends Fedora but i prefer Debian, the vm have a very low resources, only one core and 1gb of ram (3g of swap).

I'm on a pc with Windows because my other pc with Linux it's even older and slower, it's a problem to build LFS with Windows as host?

Last edited by elc79; 10-13-2017 at 05:52 AM.
 
Old 10-13-2017, 05:59 AM   #8
elc79
LQ Newbie
 
Registered: Oct 2017
Distribution: Debian
Posts: 11

Original Poster
Rep: Reputation: Disabled
make check ended with and error 2, and this is the summary
Quote:
root:/sources/gcc-7.2.0/build# ../contrib/test_summary | grep -A7 Summ.
=== g++ Summary ===

# of expected passes 2117
# of unexpected failures 76427
# of unexpected successes 181
# of expected failures 118
# of unresolved testcases 10328
# of unsupported tests 4988
--
=== gcc Summary ===

# of expected passes 1329
# of unexpected failures 56105
# of unexpected successes 42
# of expected failures 53
# of unresolved testcases 22615
# of unsupported tests 6399
--
=== libatomic Summary ===

# of unexpected failures 22
# of unresolved testcases 22
# of unsupported tests 5
=== libgomp tests ===


--
=== libgomp Summary ===

# of unexpected failures 821
# of unresolved testcases 809
# of unsupported tests 232
=== libitm tests ===


--
=== libitm Summary ===

# of unexpected failures 23
# of unresolved testcases 22
# of unsupported tests 1
=== libstdc++ tests ===


--
=== libstdc++ Summary ===


Compiler version: gcc
Platform: x86_64-pc-linux-gnu
configure flags: --prefix=/usr --enable-languages=c,c++ --disable-multilib --disable-bootstrap --with-system-zlib
EOF
Mail -s "Results for gcc testsuite on x86_64-pc-linux-gnu" gcc-testresults@gcc.gnu.org &&
root:/sources/gcc-7.2.0/build#
 
Old 10-13-2017, 08:44 AM   #9
elc79
LQ Newbie
 
Registered: Oct 2017
Distribution: Debian
Posts: 11

Original Poster
Rep: Reputation: Disabled
bzip2 it's not running

bzip2: error while loading shared libraries: libbz2.so.1.0: cannot open shared object file: No such file or directory

I removed and build it again, and it fails again, i run make check, no errors, i look at the files and it's there, so i don't what's wrong.
 
Old 10-15-2017, 10:05 AM   #10
elc79
LQ Newbie
 
Registered: Oct 2017
Distribution: Debian
Posts: 11

Original Poster
Rep: Reputation: Disabled
Something was wrong, i cleaned the folders and i'm running again from the untouched toolchain, it's sucks but now bzip works... and again i have to build glibc, binutils, gcc, etc.
 
Old 10-16-2017, 06:21 AM   #11
Keith Hedger
Senior Member
 
Registered: Jun 2010
Location: Wiltshire, UK
Distribution: Linux From Scratch, Slackware64, Partedmagic
Posts: 2,585

Rep: Reputation: 650Reputation: 650Reputation: 650Reputation: 650Reputation: 650Reputation: 650
Welcome to the wonderful world of LFS!
 
1 members found this post helpful.
Old 10-19-2017, 11:50 AM   #12
Wayne Sallee
Member
 
Registered: Jun 2011
Location: Florida
Distribution: The one that I built. (lfs)
Posts: 250

Rep: Reputation: 15
Quote:
Originally Posted by elc79 View Post
it's a problem to build LFS with Windows as host?
I assume you are talking about building lfs inside a linux system, inside, virtualbox, inside Windows.

That should be fine. I don't see any problem with that.

Wayne Sallee
Wayne@WayneSallee.com
http://www.WayneSallee.com
 
Old 10-19-2017, 12:58 PM   #13
elc79
LQ Newbie
 
Registered: Oct 2017
Distribution: Debian
Posts: 11

Original Poster
Rep: Reputation: Disabled
Quote:
Originally Posted by Keith Hedger View Post
Welcome to the wonderful world of LFS!
Haha, that was a good point for you


yes Wayne Sallee, Windows it's the OS of the pc, i installed Debian on Virtualbox, and i used that Debian to build LFS
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
[SOLVED] Deleting extracted source directories in Chapter 6. dlb101010 Linux From Scratch 4 12-19-2016 12:49 PM
Deleting directories sectore Linux From Scratch 1 04-10-2009 02:16 PM
Deleting directories NomadABC Linux - Newbie 2 02-10-2005 02:11 PM
Deleting Directories J_Bone Linux - Newbie 4 08-17-2003 04:19 PM
deleting directories AZDAVE Linux - Newbie 1 08-15-2003 10:05 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Linux From Scratch

All times are GMT -5. The time now is 11:56 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration