Re: [coldfire-gnu-discuss] coldfire-toolchain: "make dep" fails
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [coldfire-gnu-discuss] coldfire-toolchain: "make dep" fails



Richard Sandiford wrote:
> Further to what Mark and Daniel said: I don't know if using 2.6 is an
> option for you, but we successfully built a linux-2.6.12-uc0 kernel as
> part of testing the toolchain.

OK, I give up ;-) There are some efforts to make 2.4.32 compilable with GCC 4.x
(http://lkml.org/lkml/2006/3/4/120), but those patches concentrate on x86.

I now tried to build 2.6.12-uc0 for the M5271EVB platform using the CodeSourcery
toolchain, but this fails as well:

$ make ARCH=m68knommu CROSS_COMPILE=m68k-uclinux-
  CHK     include/linux/version.h
  UPD     include/linux/version.h
  SYMLINK include/asm -> include/asm-m68knommu
  SPLIT   include/linux/autoconf.h -> include/config/*
  CC      arch/m68knommu/kernel/asm-offsets.s
  CHK     include/asm-m68knommu/asm-offsets.h
  UPD     include/asm-m68knommu/asm-offsets.h
  CC      init/main.o
  CHK     include/linux/compile.h
  UPD     include/linux/compile.h
  CC      init/version.o
  CC      init/do_mounts.o
In file included from include/linux/nfs_fs.h:15,
                 from init/do_mounts.c:11:
include/linux/pagemap.h: In function 'fault_in_pages_readable':
include/linux/pagemap.h:236: error: read-only variable '__gu_val' used as 'asm' output
include/linux/pagemap.h:236: error: read-only variable '__gu_val' used as 'asm' output
include/linux/pagemap.h:236: error: read-only variable '__gu_val' used as 'asm' output
include/linux/pagemap.h:236: warning: passing argument 1 of 'memcpy' discards qualifiers
from pointer target type
include/linux/pagemap.h:236: error: assignment of read-only variable '__gu_val'
include/linux/pagemap.h:242: error: read-only variable '__gu_val' used as 'asm' output
include/linux/pagemap.h:242: error: read-only variable '__gu_val' used as 'asm' output
include/linux/pagemap.h:242: error: read-only variable '__gu_val' used as 'asm' output
include/linux/pagemap.h:242: warning: passing argument 1 of 'memcpy' discards qualifiers
from pointer target type
include/linux/pagemap.h:242: error: assignment of read-only variable '__gu_val'
make[1]: *** [init/do_mounts.o] Error 1
make: *** [init] Error 2

Any further hints?

Michel