crt1.o: No such file: No such file or directory
While using gcc on a newly installed system you may get:
/usr/bin/ld: crt1.o: No such file: No such file or directory
This is a common problem, but with a simple solution.
On debian、Ubuntu:
apt-get install libc6-dev
On Fedora:
$ locate crt1.o
/usr/lib/crt1.o
$ rpm -qf /usr/lib/crt1.o
glibc-devel-X.X.X-XX
Then install the package glibc-devel-X.X.X-XX using yum, rpm, etc