Question about which tools to use, bugs, the best way to implement a function, etc should go here. Don't forget to see if your question is answered in the wiki first! When in doubt post here.
I was following the cross compiler tutorial, but stopped halfway when I wasn't able to make binutils without getting massive amounts of errors that I am unable to solve. I then downloaded the first toolchain for OS X at the bottom of the page, and decided to use the cross compiler in there for compiling my kernel. However, when I run the new version of GCC (found within the folders of the tool chain) I get the following error:
gcc: fatal error: -fuse-linker-plugin, but liblto_plugin.so not found
compilation terminated.
This happens, even though I have added the folder where the liblto_plugin.so can be found to my PATH and the LD_LIBRARY_PATH. I have the toolchain and kernel source et.c within my Documents folder on my HDD.
-fno-use-linker-plugin is the official flag to use. I still don't understand why some cross compilers insist on trying to use it though (I think it relates to the gcc version).