LinuxQuestions.org
Review your favorite Linux distribution.
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 09-25-2020, 01:56 AM   #1
EVK
LQ Newbie
 
Registered: Sep 2020
Posts: 2

Rep: Reputation: Disabled
Stuck in Tester User While Installing gcc for the 3rd Time


I have encountered a problem while building LFS. On the 8.26 chapter while building gcc I accidentally forgot to press enter after rm -rf /usr/lib/gcc/$(gcc -dumpmachine)/10.2.0/include-fixed/bits/ and copy pasted

chown -v -R root:root \
/usr/lib/gcc/*linux-gnu/10.2.0/include{,-fixed}


this onto it, then ran the command. I haven't noticed my mistake until trying to build next package. There when I ran

./configure --prefix=/usr \
--with-internal-glib \
--disable-host-tool \
--docdir=/usr/share/doc/pkg-config-0.29.2


this command, I got an error:

checking whether we are cross compiling... configure: error: in `/sources/pkg-config-0.29.2':
configure: error: cannot run C compiled programs.
If you meant to cross compile, use `--host'.
See `config.log' for more details


I noticed my mistake, erased the files extracted from this package and went back to build gcc again. But this time when I ran

../configure --prefix=/usr \
LD=ld \
--enable-languages=c,c++ \
--disable-multilib \
--disable-bootstrap \
--with-system-zlib


I have seen basicly the same error as above:

checking whether we are cross compiling... configure: error: in `/sources/gcc-10.2.0/build':
configure: error: cannot run C compiled programs.
If you meant to cross compile, use `--host'.
See `config.log' for more details


I ran ls -l command in /sources directory and saw that the ownership of extracted package "gcc-10.2.0" is "tester users", and "pkg-config-0.29.2" is "tester 1000" , probably because I use chown -Rv tester . after I installed gcc (the directory of gcc should have been owned by tester and it is not because I made the mistake I mentioned above). But I am out of ideas at this point. Any help?

Last edited by EVK; 09-25-2020 at 09:31 AM.
 
Old 09-25-2020, 02:55 AM   #2
hendrickxm
Member
 
Registered: Feb 2014
Posts: 344

Rep: Reputation: Disabled
Remove the gcc directory, re-extract the tarball and re-do the part for gcc.
Don't type the commands by hand, use copy/paste.

Last edited by hendrickxm; 09-25-2020 at 02:56 AM.
 
Old 09-25-2020, 03:03 AM   #3
EVK
LQ Newbie
 
Registered: Sep 2020
Posts: 2

Original Poster
Rep: Reputation: Disabled
Quote:
Originally Posted by hendrickxm View Post
Remove the gcc directory, re-extract the tarball and re-do the part for gcc.
Don't type the commands by hand, use copy/paste.
I tried that, but it didn't work either. Still getting the same error. I guess I need to do what I should (which I don't know what it is) before extracting the package.

When I extract the package using "-xvf gcc-10.2.0.tar.xz", it extracts without problems. When I run command "chown -Rv root:root gcc-10.2.0", I see ownership of the extracted files change from tester:users to root:root. They should have been owned by tester at the beginning at all, right?

Last edited by EVK; 09-25-2020 at 05:16 AM.
 
  


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
Note for maintainers: util-linux tests and new "tester" user hazel Linux From Scratch 1 09-10-2020 05:02 PM
How to create folders in 2nd and 3rd partions and how to mount /home on 3rd Partition AnApproach2DigestLinux Linux - Newbie 1 12-06-2012 10:25 PM
how to understand user time, sys time, wait time, idle time of CPU guixingyi Linux - Server 1 08-24-2010 10:10 AM
Installing Mono-got stuck while installing gtk-sharp chutsu Linux - Software 11 01-18-2005 08:25 PM
3rd LFS build (this time on x86-64): about GCC and GLIBC and other questions... ParticleHunter Linux From Scratch 1 08-16-2004 10:47 AM

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

All times are GMT -5. The time now is 08:24 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