Problems with the gcc compiler.

Hello, I have had problems with my gcc compiler when i compile C language codes. I've only begun to program C language, so it's the first time i program with C. I tested to compile my C code on my mac but it got errors. So i went to check if the code can compile on other devices, like my Raspberry Pi 3 Model B. And guess what? It worked without any problems! And it was the same code when i compiled it on my Mac... So is there any bugs or so on the gcc compiler on mac? Or maybe does MacOS BigSur have removed some important features to gcc to work properly? Any answers or questions are welcome!

[Here's the message i get when i compile.]

gister-global-dtors-with-atexit -fgnuc-version=4.2.1 -fobjc-runtime=macosx-11.0.0 -fmax-type-align=16 -fdiagnostics-show-option -fcolor-diagnostics -o /var/folders/mv/vytz2ltn3vd3n73c6p1zhdrm0000gn/T/C-test-72f411.o -x c C-test.c clang -cc1 version 12.0.0 (clang-1200.0.32.29) default target x86_64-apple-darwin20.5.0 ignoring nonexistent directory "/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/usr/local/include" ignoring nonexistent directory "/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/Library/Frameworks" #include "..." search starts here: #include <...> search starts here:  /usr/local/include  /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/clang/12.0.0/include  /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/usr/include  /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/include  /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/System/Library/Frameworks (framework directory) End of search list. C-test.c:3:1: warning: return type of 'main' is not 'int' [-Wmain-return-type] void main(void) ^ C-test.c:3:1: note: change return type to 'int' void main(void) ^~~~ int 1 warning generated.  "/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/ld" -demangle -lto_library /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/libLTO.dylib -no_deduplicate -dynamic -arch x86_64 -platform_version macos 11.0.0 11.1 -syslibroot /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk -o a.out -L/usr/local/lib /var/folders/mv/vytz2ltn3vd3n73c6p1zhdrm0000gn/T/C-test-72f411.o -lSystem /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/clang/12.0.0/lib/darwin/libclang_rt.osx.a

Problems with the gcc compiler.
 
 
Q