[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Bug#775611: [sh]: FTBFS due to unknown compiler option '-m32'



Package: linux
Version: 3.16.7-ckt4-1
Severity: normal
Tags: patch

Hi!

The kernel package currently fails to build from source on sh4 since
the build scripts try to pass the '-m32' compiler option on gcc which
is not available with gcc on sh4 (also according to the manpage).

Selecting HAVE_C_RECORDMCOUNT in arch/sh/Kconfig (see attached patch
by Ben Hutchings) fixes the issues. However, I also suggest removing
the line "$cc .= " -m32";" for sh compiler options in scripts/
recordmcount.pl.

Thanks!
Adrian
diff --git a/arch/sh/Kconfig b/arch/sh/Kconfig
index 0f09f52..b2c9904 100644
--- a/arch/sh/Kconfig
+++ b/arch/sh/Kconfig
@@ -44,6 +44,7 @@ config SUPERH
   select OLD_SIGSUSPEND
   select OLD_SIGACTION
   select HAVE_ARCH_AUDITSYSCALL
+  select HAVE_C_RECORDMCOUNT
   help
     The SuperH is a RISC processor targeted for use in embedded systems
       and consumer electronics; it was also used in the Sega Dreamcast

Reply to: