LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux From Scratch (https://www.linuxquestions.org/questions/linux-from-scratch-13/)
-   -   Confused with deleting source directories (https://www.linuxquestions.org/questions/linux-from-scratch-13/confused-with-deleting-source-directories-4175615408/)

elc79 10-10-2017 02:27 PM

(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.

sr_ls_boy 10-10-2017 03:05 PM

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.

elc79 10-12-2017 01:22 PM

What happens if i skip gcc tests in 6.20 step?

hendrickxm 10-12-2017 02:09 PM

Then you will have to make sure that everything is fine without knowing what the result of the tests is.

elc79 10-13-2017 05:17 AM

Quote:

Originally Posted by hendrickxm (Post 5769246)
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.

hendrickxm 10-13-2017 05:25 AM

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.

elc79 10-13-2017 05:48 AM

Quote:

Originally Posted by hendrickxm (Post 5769438)
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?

elc79 10-13-2017 05:59 AM

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#

elc79 10-13-2017 08:44 AM

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.

elc79 10-15-2017 10:05 AM

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.

Keith Hedger 10-16-2017 06:21 AM

Welcome to the wonderful world of LFS! :)

Wayne Sallee 10-19-2017 11:50 AM

Quote:

Originally Posted by elc79 (Post 5769441)
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

elc79 10-19-2017 12:58 PM

Quote:

Originally Posted by Keith Hedger (Post 5770480)
Welcome to the wonderful world of LFS! :)

Haha, that was a good point for you :thumbsup: :p


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


All times are GMT -5. The time now is 08:32 AM.