could help me to fix the problem when install the gcc-7.2

Kai Ruottu kai.ruottu@wippies.com
Tue Sep 26 08:55:00 GMT 2017


Chen tom kirjoitti 26.9.2017 klo 11:09:

 > configure:4294: checking for C compiler version
 > configure:4303: gcc --version >&5
 > gcc (GCC) 8.0.0 20170912 (experimental)

You seem to have some ("kernel") compiler installed...

 > configure:4334: checking for C compiler default output file name
 > configure:4356: gcc conftest.c >&5
 > /usr/bin/ld: cannot find crtbegin.o: No such file or directory
 > /usr/bin/ld: cannot find -lgcc
 > /usr/bin/ld: cannot find -lgcc

But not much for creating normal user-made programs (executables")...

It is normal that a Unix-like system has a "kernel compiler" always, for
compiling the system's "kernel" (base operating system). But not the
"development system" for making even very simple C applications like
the "Hello World"...

 > configure: error: C compiler cannot create executables

So you got this error... Never tried to compile & link a simple C program
like "Hello World" ?  Before trying to build something as big a the GCC
compiler collection...

https://www.programiz.com/c-programming/examples/print-sentence



More information about the Gcc-help mailing list