LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Home Forums Tutorials Articles Register
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 12-01-2019, 02:00 AM   #1
dopaseraoxy
LQ Newbie
 
Registered: Nov 2019
Location: Canada
Distribution: Ubuntu
Posts: 9

Rep: Reputation: Disabled
Exclamation Sleep deprivation made me mess up my GCC install and I'm not sure how to fix it (Ch 6.21)


So basically I did a dumb.

I took a nap with my terminal open. Normally this wouldn't be a problem, but I lost my spot and forgot the last command I entered (during GCC). I pressed Ctrl + R to find it (make install) and accidentally hit enter... in my panic I hit Ctrl + C. Sleep deprivation is fun. I had no errors in my install before this (aside from restarting the project completely because I ran out of storage last time). This is Chapter 6.21.

Well needless to say it's not installing properly. I get an error during make that says it can't find the size of long long... Compile goes fine. Here's the error output:

Code:
checking size of long long... configure: error: in `/sources/gcc-9.2.0/build/gcc':
configure: error: cannot compute sizeof (long long)
See `config.log' for more details
make[1]: *** [Makefile:4264: configure-gcc] Error 1
make[1]: Leaving directory '/sources/gcc-9.2.0/build'
make: *** [Makefile:956: all] Error 2
I was thinking I'd just try to restart Chapter 6 as a whole but... realized I don't know how to do that. What files would I have to remove? Or is there a way to fix my mistake?
 
Old 12-01-2019, 02:34 AM   #2
spiky0011
Senior Member
 
Registered: Jan 2011
Location: PLANET-SPIKE
Distribution: /LFS/Debian
Posts: 2,511
Blog Entries: 1

Rep: Reputation: 412Reputation: 412Reputation: 412Reputation: 412Reputation: 412
Hi

Did you try rm -r GCC dir reuntar and build again?
if that fails you should have a backup of tools from the end of ch5 which you can use.
You can use that and start from ch6 again.
To use backup tools you unmount " dev, proc, run, sys, pts". look at ch 9.3 umount part.
Then rm everything in lfs except sources, then cp -a "backup-tools" to LFS start ch6
 
1 members found this post helpful.
Old 12-03-2019, 03:27 PM   #3
dopaseraoxy
LQ Newbie
 
Registered: Nov 2019
Location: Canada
Distribution: Ubuntu
Posts: 9

Original Poster
Rep: Reputation: Disabled
I ended up just restarting the whole thing and got it finished about half an hour ago. Yay me! (Remembered to back up the tools folder this time)
 
  


Reply



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] killall sleep to kill both foreground and background sleep processes? mintner Linux - Newbie 3 11-15-2019 06:10 PM
Second monitor connected as DVI enters sleep mode during boot (and never comes out of sleep); but works with VGA connection emacsomancer Linux - Hardware 21 05-24-2019 08:43 PM
I'm not sure how this happened but I'm sure there is a lesson in there somewhere mreff555 Linux - Newbie 6 09-24-2012 02:09 AM
Icons->Align to grid. Made a mess Lier Linux - Software 1 02-23-2005 05:01 PM
I made a ddclient mess =( ericnmu Linux - Software 2 11-08-2004 03:00 PM

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

All times are GMT -5. The time now is 05:14 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
Open Source Consulting | Domain Registration