I am not trying to rebuild TrueNAS, I want to rebuild only the FreeBSD Kernel
I have cloned the Truenas/OS repository.
However, it does not compile because cc is not installed.
That's correct. TrueNAS is an appliance, and does not contain the tools to build kernels. End users are never expected to be engaging in this sort of activity. What exactly is your goal?
If you are a developer, you are expected to create a full build environment and create a release, which you can then upgrade to or install as though it was any other release.
If you are trying to add device drivers for unsupported devices or other misguided kernel modifications, it is probably best that you don't. These things often end in misadventures, and it is preferable to use devices that are known to work well on a TrueNAS system, rather than trying to add drivers for some dodgy kit.