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:
Code: Select all
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.
How would I go about solving this problem?