* sh64 build error - sh, kbuild or binutils problem?
@ 2008-05-31 20:22 Adrian Bunk
2008-06-01 5:30 ` Paul Mundt
0 siblings, 1 reply; 3+ messages in thread
From: Adrian Bunk @ 2008-05-31 20:22 UTC (permalink / raw)
To: sam, hjl.tools, lethal; +Cc: linux-kbuild, linux-sh, linux-kernel
cayman_defconfig fails to build with the following error
(using binutils 2.18.50.0.7):
<-- snip -->
...
LD drivers/macintosh/built-in.o
LD drivers/media/common/tuners/built-in.o
CC [M] drivers/media/common/tuners/tuner-xc2028.o
CC [M] drivers/media/common/tuners/tuner-simple.o
CC [M] drivers/media/common/tuners/tuner-types.o
CC [M] drivers/media/common/tuners/mt20xx.o
CC [M] drivers/media/common/tuners/tda8290.o
CC [M] drivers/media/common/tuners/tea5767.o
CC [M] drivers/media/common/tuners/tea5761.o
CC [M] drivers/media/common/tuners/tda9887.o
CC [M] drivers/media/common/tuners/xc5000.o
LD drivers/media/common/built-in.o
...
LD drivers/media/built-in.o
sh64-linux-ld: sh3 architecture of input file `drivers/media/common/built-in.o' is incompatible with sh5 outputmake[3]: *** [drivers/media/built-in.o] Error 1
<-- snip -->
Minimal example demonstrating the problem:
$ sh64-linux-ar rcs tmp.o
$ sh64-linux-ld -EL -r -o tmp2.o tmp.o
$ sh64-linux-ld -EL -r -o out.o tmp2.o
sh64-linux-ld: sh3 architecture of input file `tmp2.o' is incompatible with sh5 output
$
cu
Adrian
--
"Is there not promise of rain?" Ling Tan asked suddenly out
of the darkness. There had been need of rain for many days.
"Only a promise," Lao Er said.
Pearl S. Buck - Dragon Seed
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: sh64 build error - sh, kbuild or binutils problem?
2008-05-31 20:22 sh64 build error - sh, kbuild or binutils problem? Adrian Bunk
@ 2008-06-01 5:30 ` Paul Mundt
2008-06-01 19:53 ` Adrian Bunk
0 siblings, 1 reply; 3+ messages in thread
From: Paul Mundt @ 2008-06-01 5:30 UTC (permalink / raw)
To: Adrian Bunk; +Cc: sam, hjl.tools, linux-kbuild, linux-sh, linux-kernel
On Sat, May 31, 2008 at 11:22:39PM +0300, Adrian Bunk wrote:
> Minimal example demonstrating the problem:
>
> $ sh64-linux-ar rcs tmp.o
> $ sh64-linux-ld -EL -r -o tmp2.o tmp.o
> $ sh64-linux-ld -EL -r -o out.o tmp2.o
> sh64-linux-ld: sh3 architecture of input file `tmp2.o' is incompatible with sh5 output
> $
>
Yes, it's a binutils bug. I've hit this on SH-2A zImage builds too, and
hacked together a patch for it. I'll see about fixing it up fo sh64 too
and then posting it to the list.
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: sh64 build error - sh, kbuild or binutils problem?
2008-06-01 5:30 ` Paul Mundt
@ 2008-06-01 19:53 ` Adrian Bunk
0 siblings, 0 replies; 3+ messages in thread
From: Adrian Bunk @ 2008-06-01 19:53 UTC (permalink / raw)
To: Paul Mundt, sam, hjl.tools, linux-kbuild, linux-sh, linux-kernel
On Sun, Jun 01, 2008 at 02:30:47PM +0900, Paul Mundt wrote:
> On Sat, May 31, 2008 at 11:22:39PM +0300, Adrian Bunk wrote:
> > Minimal example demonstrating the problem:
> >
> > $ sh64-linux-ar rcs tmp.o
> > $ sh64-linux-ld -EL -r -o tmp2.o tmp.o
> > $ sh64-linux-ld -EL -r -o out.o tmp2.o
> > sh64-linux-ld: sh3 architecture of input file `tmp2.o' is incompatible with sh5 output
> > $
> >
> Yes, it's a binutils bug. I've hit this on SH-2A zImage builds too, and
> hacked together a patch for it. I'll see about fixing it up fo sh64 too
> and then posting it to the list.
Thanks :-)
Adrian
--
"Is there not promise of rain?" Ling Tan asked suddenly out
of the darkness. There had been need of rain for many days.
"Only a promise," Lao Er said.
Pearl S. Buck - Dragon Seed
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2008-06-01 19:53 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2008-05-31 20:22 sh64 build error - sh, kbuild or binutils problem? Adrian Bunk
2008-06-01 5:30 ` Paul Mundt
2008-06-01 19:53 ` Adrian Bunk
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox
all inboxes | Powered by JetHome®