Build error: ‘EM_RISCV’ undeclared

From: Stefan Wahren
Date: Sun Sep 12 2021 - 06:33:55 EST


Hi,

i tried to compile current torvalds tree
("78e709522d2c012cb0daad2e668506637bffb7c2") for arm/multi_v7_defconfig
and get the following build issue:

  UPD     include/generated/utsrelease.h
scripts/sorttable.c: In function ‘do_file’:
scripts/sorttable.c:352:7: error: ‘EM_RISCV’ undeclared (first use in
this function)
  case EM_RISCV:
       ^
scripts/sorttable.c:352:7: note: each undeclared identifier is reported
only once for each function it appears in

I assume this is caused by:

54fed35fd3939398be292e4090b0b1c5ff2238b4 ("riscv: Enable
BUILDTIME_TABLE_SORT")

Best regards
Stefan