Open
Description
Bugzilla Link | 41447 |
Version | 8.0 |
OS | Linux |
Blocks | #4440 |
CC | @arndb,@nickdesaulniers |
Extended Description
I tried to build the Linux kernel for sparc32 and sparc64. Both work with few changes, but the Makefiles pass a number of options to the compiler that clang does not understand.
In particular, linux-5.1 passes
-mno-fpu
-fcall-used-g5
-fcall-used-g7
-mcpu=ultrasparc
-mcmodel=medlow
-ffixed-g4
-ffixed-g5
-fcall-used-g7
-mv8plus
Removing all of these from the Makefile gets it to compile almost all files, but I'm fairly sure this will not boot because some of the options are in fact required.