Got CM12.1 compiled again.
Some things one has to do to finish the compiling process.
1.) Use an older linux distribution like debian jessie. Debian Sid and recent ubuntu versions have a problem with binutils - compiling CM12.1 is not possible at the moment.
2) One has to apply some commits. This is because clang makes problems and breaks the build. And because the commits only made their way into CM13, they have to be applied manually for CM12.1.
To be applied are these three:
If this is done, CM12.1 build just fine. Built it some minutes ago with debian jessie.
Having a similar problem with CM11. Do you know what version of binutils is necessary to compile successfully?