2017-09-26 16:54 GMT+08:00 Kai Ruottu <kai.ruottu@xxxxxxxxxxx>: > 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"... That is strange. Why would a "kernel" compiler cannot be used to a simple C application (and I can't find any kernel compiler in my Linux system) Yubin >> 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 >