Re: arch xtensa does not compile

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

 



Jan Dittmer wrote:
Hello Chris,

the recently merged xtensa arch does not (cross) compile successfully.
I'm using 2.6.12-git7 which seems to have all patches (1-8) merged.

I did have to make some more changes because of the other changes in Andrew's tree, but wasn't sure what other patches would make it in.
I'll submit the Xtensa patches shortly.

Thanks for the report.
~Chris


1. numnodes.h missing
$ make mrproper
$ make ARCH=xtensa CROSS_COMPILE=xtensa-linux- defconfig
$ make ARCH=xtensa CROSS_COMPILE=xtensa-linux-
  CHK     include/linux/version.h
  UPD     include/linux/version.h
  SYMLINK include/asm -> include/asm-xtensa
  SPLIT   include/linux/autoconf.h -> include/config/*
  Setting up cpu (linux_be) and platform (xt2000) symlinks
  HOSTCC  scripts/genksyms/genksyms.o
  SHIPPED scripts/genksyms/lex.c
  SHIPPED scripts/genksyms/parse.h
  SHIPPED scripts/genksyms/keywords.c
  HOSTCC  scripts/genksyms/lex.o
  SHIPPED scripts/genksyms/parse.c
  HOSTCC  scripts/genksyms/parse.o
  HOSTLD  scripts/genksyms/genksyms
  CC      scripts/mod/empty.o
  HOSTCC  scripts/mod/mk_elfconfig
  MKELF   scripts/mod/elfconfig.h
  HOSTCC  scripts/mod/file2alias.o
  HOSTCC  scripts/mod/modpost.o
  HOSTCC  scripts/mod/sumversion.o
  HOSTLD  scripts/mod/modpost
  HOSTCC  scripts/kallsyms
  HOSTCC  scripts/conmakehash
  CC      arch/xtensa/kernel/asm-offsets.s
In file included from include/linux/nodemask.h:82,
                 from include/linux/sched.h:17,
                 from arch/xtensa/kernel/asm-offsets.c:18:
include/linux/numa.h:7:26: asm/numnodes.h: No such file or directory
make[1]: *** [arch/xtensa/kernel/asm-offsets.s] Error 1
make: *** [arch/xtensa/kernel/asm-offsets.s] Error 2

2. O= support
$ mkdir /tmp/x
$ make mrproper
$ make ARCH=xtensa CROSS_COMPILE=xtensa-linux- O=/tmp/x defconfig
[ ... ]
$ make ARCH=xtensa CROSS_COMPILE=xtensa-linux- O=/tmp/x
  Using /usr/src/ctest/oo/kernel as source for kernel
  GEN    /tmp/x/Makefile
  CHK     include/linux/version.h
  UPD     include/linux/version.h
  SYMLINK include/asm -> include/asm-xtensa
  GEN    /tmp/x/Makefile
scripts/kconfig/conf -s arch/xtensa/Kconfig
#
# using defaults found in .config
#
  SPLIT   include/linux/autoconf.h -> include/config/*
  Setting up cpu (linux_be) and platform (xt2000) symlinks
/bin/sh: line 1: cd: include/asm-xtensa/: No such file or directory
/bin/sh: line 1: cd: include/asm-xtensa/xtensa: No such file or directory

then a lots of follow up errors.

$ xtensa-linux-gcc -v
Reading specs from /usr/cc/xtensa/lib/gcc-lib/xtensa-linux/3.3.6/specs
Configured with: ../configure --prefix=/usr/cc --exec-prefix=/usr/cc/xtensa --target=xtensa-linux --disable-shared --disable-werror --disable-nls
--disable-threads --disable-werror --with-newlib --with-gnu-as --with-gnu-ld --enable-languages=c
Thread model: single
gcc version 3.3.6
$ xtensa-linux-ld -v
GNU ld version 2.15.94.0.2.2 20041220

It would be nice if you could fix these issues.

Thanks,


-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to [email protected]
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Please read the FAQ at  http://www.tux.org/lkml/

[Index of Archives]     [Kernel Newbies]     [Netfilter]     [Bugtraq]     [Photo]     [Stuff]     [Gimp]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Video 4 Linux]     [Linux for the blind]     [Linux Resources]
  Powered by Linux