* arch xtensa does not compile
@ 2005-06-25 14:08 Jan Dittmer
2005-06-25 16:28 ` Christian Zankel
0 siblings, 1 reply; 6+ messages in thread
From: Jan Dittmer @ 2005-06-25 14:08 UTC (permalink / raw)
To: czankel; +Cc: Linux kernel
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.
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,
--
Jan
http://l4x.org/k/
^ permalink raw reply [flat|nested] 6+ messages in thread
* Re: arch xtensa does not compile
2005-06-25 14:08 arch xtensa does not compile Jan Dittmer
@ 2005-06-25 16:28 ` Christian Zankel
2005-07-03 15:58 ` Jan Dittmer
0 siblings, 1 reply; 6+ messages in thread
From: Christian Zankel @ 2005-06-25 16:28 UTC (permalink / raw)
To: Jan Dittmer; +Cc: czankel, Linux kernel
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,
>
^ permalink raw reply [flat|nested] 6+ messages in thread
* Re: arch xtensa does not compile
2005-06-25 16:28 ` Christian Zankel
@ 2005-07-03 15:58 ` Jan Dittmer
2005-07-04 6:51 ` Christian Zankel
2005-07-10 3:42 ` Christian Zankel
0 siblings, 2 replies; 6+ messages in thread
From: Jan Dittmer @ 2005-07-03 15:58 UTC (permalink / raw)
To: Christian Zankel; +Cc: czankel, Linux kernel
Christian Zankel wrote:
> 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.
Current git tip (2.6.12-rc1-git5) still does not compile for me:
LD usr/built-in.o
AS arch/xtensa/kernel/align.o
AS arch/xtensa/kernel/entry.o
/usr/src/ctest/git/kernel/arch/xtensa/kernel/entry.S: Assembler messages:
/usr/src/ctest/git/kernel/arch/xtensa/kernel/entry.S:1612: Error: invalid register number (83) for 'rsr' instruction
make[2]: *** [arch/xtensa/kernel/entry.o] Error 1
make[1]: *** [arch/xtensa/kernel] Error 2
make: *** [_all] Error 2
I guess I'm using the wrong binutils version (2.15.94.0.2.2). Which is the
recommended gcc/binutils pair which is supposed to compile the kernel?
Reading specs from /usr/cc/xtensa/lib/gcc/xtensa-linux/3.4.4/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 --disable-libmudflap --with-newlib
--with-gnu-as --with-gnu-ld --enable-languages=c
Thread model: single
gcc version 3.4.4 20050513 (prerelease)
GNU ld version 2.15.94.0.2.2 20041220
Thanks,
--
Jan
^ permalink raw reply [flat|nested] 6+ messages in thread
* Re: arch xtensa does not compile
2005-07-03 15:58 ` Jan Dittmer
@ 2005-07-04 6:51 ` Christian Zankel
2005-07-10 3:42 ` Christian Zankel
1 sibling, 0 replies; 6+ messages in thread
From: Christian Zankel @ 2005-07-04 6:51 UTC (permalink / raw)
To: Jan Dittmer; +Cc: czankel, Linux kernel
Jan Dittmer wrote:
> Current git tip (2.6.12-rc1-git5) still does not compile for me:
> I guess I'm using the wrong binutils version (2.15.94.0.2.2). Which is the
> recommended gcc/binutils pair which is supposed to compile the kernel?
Unfortunately, I don't think the correct configuration is currently
checked into the binutils/gcc tree. I'll talk to Bob (he is the
maintainer for binutils+gcc for Xtensa) when I have a chance (Monday is
Independence Day). It compiles fine with a local copy of binutils+gcc
with the correct configuration.
BTW, I really like your website. Are you planing to release the script
files?
Thanks,
~Chris
^ permalink raw reply [flat|nested] 6+ messages in thread
* Re: arch xtensa does not compile
2005-07-03 15:58 ` Jan Dittmer
2005-07-04 6:51 ` Christian Zankel
@ 2005-07-10 3:42 ` Christian Zankel
2005-07-10 11:12 ` Jan Dittmer
1 sibling, 1 reply; 6+ messages in thread
From: Christian Zankel @ 2005-07-10 3:42 UTC (permalink / raw)
To: Jan Dittmer; +Cc: czankel, Linux kernel
Jan Dittmer wrote:
> I guess I'm using the wrong binutils version (2.15.94.0.2.2). Which is the
> recommended gcc/binutils pair which is supposed to compile the kernel?
Bob Wilson made some changes to binutils last week to address this
problem but he only submitted it to the latest binutils version.
With the latest gcc+binutils toolchain, the kernel compiles for me.
Note, however, that I just submitted a patch that is not in Linus' tree,
yet.
gcc version 3.4.5 20050707 (prerelease)
GNU ld version 2.16.91 20050707
Thanks,
Chris
^ permalink raw reply [flat|nested] 6+ messages in thread
* Re: arch xtensa does not compile
2005-07-10 3:42 ` Christian Zankel
@ 2005-07-10 11:12 ` Jan Dittmer
0 siblings, 0 replies; 6+ messages in thread
From: Jan Dittmer @ 2005-07-10 11:12 UTC (permalink / raw)
To: Christian Zankel; +Cc: czankel, Linux kernel
Christian Zankel wrote:
> Jan Dittmer wrote:
>
>>I guess I'm using the wrong binutils version (2.15.94.0.2.2). Which is the
>>recommended gcc/binutils pair which is supposed to compile the kernel?
>
>
> Bob Wilson made some changes to binutils last week to address this
> problem but he only submitted it to the latest binutils version.
>
> With the latest gcc+binutils toolchain, the kernel compiles for me.
> Note, however, that I just submitted a patch that is not in Linus' tree,
> yet.
>
> gcc version 3.4.5 20050707 (prerelease)
> GNU ld version 2.16.91 20050707
Yep, using GNU ld 20050710 and gcc 3.4.4 20050513 I get much further now.
CC init/version.o
LD init/built-in.o
LD .tmp_vmlinux1
arch/xtensa/kernel/built-in.o: In function `__down_interruptible':
: dangerous relocation: l32r: literal target out of range: .sched.literal
arch/xtensa/kernel/built-in.o: In function `__down_interruptible':
: dangerous relocation: l32r: literal target out of range: (.sched.literal+0x4)
arch/xtensa/kernel/built-in.o: In function `__down_interruptible':
: dangerous relocation: l32r: literal target out of range: (.sched.literal+0x8)
arch/xtensa/kernel/built-in.o: In function `__down_interruptible':
: dangerous relocation: l32r: literal target out of range: (.sched.literal+0xc)
arch/xtensa/kernel/built-in.o: In function `__down_interruptible':
: dangerous relocation: l32r: literal target out of range: (.sched.literal+0xc)
arch/xtensa/kernel/built-in.o: In function `__down':
: dangerous relocation: l32r: literal target out of range: .sched.literal
arch/xtensa/kernel/built-in.o: In function `__down':
: dangerous relocation: l32r: literal target out of range: (.sched.literal+0x4)
arch/xtensa/kernel/built-in.o: In function `__down':
: dangerous relocation: l32r: literal target out of range: (.sched.literal+0x8)
arch/xtensa/kernel/built-in.o: In function `__down':
: dangerous relocation: l32r: literal target out of range: (.sched.literal+0xc)
kernel/built-in.o: In function `schedule':
... lots more of these, until ...
rwsem.c:(.sched.text+0x290): dangerous relocation: l32r: literal target out of range: (. sched.literal+0x18)
rwsem.c:(.sched.text+0x297): dangerous relocation: l32r: literal target out of range: (. sched.literal+0x1c)
rwsem.c:(.sched.text+0x29c): dangerous relocation: l32r: literal target out of range: (. sched.literal+0x20)
rwsem.c:(.sched.text+0x2bb): dangerous relocation: l32r: literal target out of range: (. sched.literal+0x24)
make: *** [.tmp_vmlinux1] Error 1
Is the gcc version still too old? Or do I need some special config option?
Reading specs from /usr/cc/xtensa/lib/gcc/xtensa-linux/3.4.4/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 --disable-libmudflap --with-newlib --with-gnu-as --with-gnu-ld --enable-languages=c
Thread model: single
gcc version 3.4.4 20050513 (prerelease)
Thanks,
--
Jan
^ permalink raw reply [flat|nested] 6+ messages in thread
end of thread, other threads:[~2005-07-10 11:12 UTC | newest]
Thread overview: 6+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2005-06-25 14:08 arch xtensa does not compile Jan Dittmer
2005-06-25 16:28 ` Christian Zankel
2005-07-03 15:58 ` Jan Dittmer
2005-07-04 6:51 ` Christian Zankel
2005-07-10 3:42 ` Christian Zankel
2005-07-10 11:12 ` Jan Dittmer
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox