On 10/25/19 12:23 PM, capnhawkbill wrote:
I'm trying to make lfs for the first time but so far it isn't going
well.

Compiling gcc is giving me the error:
C compiler cannot create executables

make log:
http://ix.io/1ZKJ

Error:
configure: loading cache ./config.cache
checking for x86_64-pc-linux-gnu-gcc...

/mnt/lfs/sources/gcc-9.2.0/build/./prev-gcc/xgcc
-B/mnt/lfs/sources/gcc-9.2.0/build/./prev-gcc/
-B/tools/x86_64-pc-linux-gnu/bin/ -B/tools/x86_64-pc-linux-gnu/bin/
-B/tools/x86_64-pc-linux-gnu/lib/ -isystem /tools/x86_64-pc-linux-gnu/include
-isystem /tools/x86_64-pc-linux-gnu/sys-include   -fno-checking

checking whether the C compiler works... no
make[2]: Leaving directory '/mnt/lfs/sources/gcc-9.2.0/build'
make[1]: Leaving directory '/mnt/lfs/sources/gcc-9.2.0/build'

In build/int/config.log it says that ld cannot find ctr1.o and some
other files.

config.log:
http://ix.io/1ZKK

Error:
configure:2571:/mnt/lfs/sources/gcc-9.2.0/build/./prev-gcc/xgcc

-B/mnt/lfs/sources/gcc-9.2.0/build/./prev-gcc/  
-B/tools/x86_64-pc-linux-gnu/bin/
-B/tools/x86_64-pc-linux-gnu/bin/ -B/tools/x86_64-pc-linux-gnu/lib/
-isystem /tools/x86_64-pc-linux-gnu/include -isystem 
/tools/x86_64-pc-linux-gnu/sys-include
-fno-checking -g -O2 -fno-checking -gtoggle  -static-libstdc++ -static-libgcc  
conftest.c  >&5

/tools/x86_64-pc-linux-gnu/bin/ld: cannot find crt1.o: No such file or directory
/tools/x86_64-pc-linux-gnu/bin/ld: cannot find crti.o: No such file or directory
/tools/x86_64-pc-linux-gnu/bin/ld: cannot find -lc
/tools/x86_64-pc-linux-gnu/bin/ld: cannot find crtn.o: No such file or directory

Things I tried:
Rebuilding binutils and gcc from scratch. I deleted the extracted
folders and the installed files in /tools and started over.

Adding /tools/lib and /tools/x86_64-pc-linux-gnu/lib to $LIBRARY_PATH.
https://askubuntu.com/questions/251978/cannot-find-crti-o-no-such-file-or-directory

Making empty directory /tools/usr/lib.
https://stackoverflow.com/questions/91576/crti-o-file-missing

Searching the mail archives I couldn't find any useful answers except
fbbg but I copy pasted all the commands in the right order twice.

Extra info:
The host is on void-linux I'm installing lfs on a virtual drive that I
mounted normally.
I do have glibc-devel installed.
version-checkhttp://ix.io/1ZPc
I'm following lfs-stable 9.0

I would love some help because I really want to try to make my own
distro so help is really appreciated.

What package are you building?  Some things to consider:

1.  Is the output of the Host System Requirements OK?
2.  Are you strictly following the build process:

For each package:

a.    Using the tar program, extract the package to be built. In Chapter
      5, ensure you are the lfs user when extracting the package.
b.    Change to the directory created when the package was extracted.
c.    Follow the book's instructions for building the package.
d.    Change back to the sources directory.
e.    Delete the extracted source directory unless instructed otherwise.

Specifically, are you deleting the extracted source directory after each package is completed.

  -- Bruce
--
http://lists.linuxfromscratch.org/listinfo/lfs-support
FAQ: http://www.linuxfromscratch.org/blfs/faq.html
Unsubscribe: See the above information page

Do not top post on this list.

A: Because it messes up the order in which people normally read text.
Q: Why is top-posting such a bad thing?
A: Top-posting.
Q: What is the most annoying thing in e-mail?

http://en.wikipedia.org/wiki/Posting_style

Reply via email to