Skip to content

clang, sparc: missing compiler command line flags for linux kernel build #40792

Open
@arndb

Description

@arndb
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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    backend:SparcbugzillaIssues migrated from bugzillaclang:driver'clang' and 'clang++' user-facing binaries. Not 'clang-cl'

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions