Re: missing asm/cachectl.h header
On Wed, 16 Jan 2008, Matthias Klose wrote:
> currently gcc-4.3 fails to build on m68k:
>
> libtool: compile: /build/buildd/gcc-4.3-4.3-20080112/build/./gcc/xgcc -B/build/buildd/gcc-4.3-4.3-20080112/build/./gcc/ -B/usr/m68k-linux-gnu/bin/ -B/usr/m68k-linux-gnu/lib/ -isystem /usr/m68k-linux-gnu/include -isystem /usr/m68k-linux-gnu/sys-include -DHAVE_CONFIG_H -I. -I../../../src/libffi -I. -I. -I../../../src/libffi/include -Iinclude -I../../../src/libffi/src -Wall -g -fexceptions -O2 -g -g -O2 -MT src/m68k/ffi.lo -MD -MP -MF src/m68k/.deps/ffi.Tpo -c ../../../src/libffi/src/m68k/ffi.c -fPIC -DPIC -o src/m68k/.libs/ffi.o
> ../../../src/libffi/src/m68k/ffi.c:13:26: error: asm/cachectl.h: No such file or directory
> ../../../src/libffi/src/m68k/ffi.c: In function 'ffi_prep_closure_loc':
> ../../../src/libffi/src/m68k/ffi.c:269: error: 'FLUSH_SCOPE_LINE' undeclared (first use in this function)
> ../../../src/libffi/src/m68k/ffi.c:269: error: (Each undeclared identifier is reported only once
> ../../../src/libffi/src/m68k/ffi.c:269: error: for each function it appears in.)
> ../../../src/libffi/src/m68k/ffi.c:270: error: 'FLUSH_CACHE_BOTH' undeclared (first use in this function)
> make[6]: *** [src/m68k/ffi.lo] Error 1
Fixed in mainline:
commit e92042e5c009d84ba741ec4a978a13f260e6ee24
Author: Matthew Wilcox <matthew@wil.cx>
Date: Sat Oct 13 14:31:27 2007 +0200
m68k: Export cachectl.h
libffi in GCC 4.2 needs cachectl.h to do its cache flushing. But we
don't currently export it. I believe this patch should do the trick.
Also queued up earlier today for the 2.6.23-stable tree.
Gr{oetje,eeting}s,
Geert
--
Geert Uytterhoeven -- There's lots of Linux beyond ia32 -- geert@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
Reply to: