Discussion:
[ORLinux] linux-next: error: 'EM_OPENRISC' undeclared
Geert Uytterhoeven
2014-05-19 08:48:51 UTC
Permalink
arch/openrisc/include/asm/syscall.h:77:9: error: 'EM_OPENRISC'
undeclared (first use in this function)
make[2]: *** [arch/openrisc/kernel/signal.o] Error 1
make[1]: *** [arch/openrisc/kernel] Error 2
arch/openrisc/include/asm/syscall.h:77:9: error: 'EM_OPENRISC'
undeclared (first use in this function)

http://kisskb.ellerman.id.au/kisskb/buildresult/11071283/

This failure has been there since a while. I had a quick look, but it's not
immediately clear to me where the definition should be added. Various
architectures define it in different places.

Gr{oetje,eeting}s,

Geert

--
Geert Uytterhoeven -- There's lots of Linux beyond ia32 -- geert at linux-m68k.org

In personal conversations with technical people, I call myself a hacker. But
when I'm talking to journalists I just say "programmer" or something like that.
-- Linus Torvalds
Christian Svensson
2014-05-19 23:13:53 UTC
Permalink
On Mon, May 19, 2014 at 9:48 AM, Geert Uytterhoeven
Post by Geert Uytterhoeven
arch/openrisc/include/asm/syscall.h:77:9: error: 'EM_OPENRISC'
undeclared (first use in this function)
make[2]: *** [arch/openrisc/kernel/signal.o] Error 1
make[1]: *** [arch/openrisc/kernel] Error 2
arch/openrisc/include/asm/syscall.h:77:9: error: 'EM_OPENRISC'
undeclared (first use in this function)
EM_OPENRISC is actually deprecated. See
https://sourceware.org/ml/binutils/2014-03/msg00089.html
It should be replaced with EM_OR1K.

Why it's an error I don't know, it's defined in include/elf/common.h:
#define EM_OPENRISC EM_OR1K

Loading...