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