public inbox for linux-sh@vger.kernel.org
 help / color / mirror / Atom feed
* Build error at v2.6.33 of sh-2.6.git
@ 2010-03-18  6:41 Hitoshi Mitake
  2010-03-18  7:06 ` Magnus Damm
                   ` (5 more replies)
  0 siblings, 6 replies; 7+ messages in thread
From: Hitoshi Mitake @ 2010-03-18  6:41 UTC (permalink / raw)
  To: linux-sh


Hi SuperH folks,

I'm working on porting new board support to sh.

And I suffered build error when building the branch
specified the tag v2.6.33 at
sh-2.6.git ( 
http://git.kernel.org/?p=linux/kernel/git/lethal/sh-2.6.git;a=summary ).

Error message is like this:
% make ARCH=sh CROSS_COMPILE=sh-linux- arch/sh/kernel/cpu/sh3/entry.o

...

arch/sh/kernel/cpu/sh3/entry.S: Assembler messages:
arch/sh/kernel/cpu/sh3/entry.S:260: Error: offset out of range
arch/sh/kernel/cpu/sh3/entry.S:260: Error: value of 4294967280 too large 
for field of 2 bytes at 196
arch/sh/kernel/cpu/sh3/../../entry-common.S:60: Error: offset out of range
arch/sh/kernel/cpu/sh3/../../entry-common.S:60: Error: value of 
4294967280 too large for field of 2 bytes at 236
arch/sh/kernel/cpu/sh3/../../entry-common.S:178: Error: offset out of range
arch/sh/kernel/cpu/sh3/../../entry-common.S:178: Error: value of 
4294967280 too large for field of 2 bytes at 422
arch/sh/kernel/cpu/sh3/../../entry-common.S:326: Error: offset out of range
arch/sh/kernel/cpu/sh3/../../entry-common.S:326: Error: value of 
4294967280 too large for field of 2 bytes at 578

...

But I'm suspecting that the problem is the version of my cross compiler 
for sh.
The version of it is 3.4.5, quite old.
-v output of my cross compiler is this:

% sh-linux-gcc -v
Reading specs from 
/opt/crosstool/gcc-3.4.5-glibc-2.3.5/sh4-unknown-linux-gnu/lib/gcc/sh4-unknown-linux-gnu/3.4.5/specs
Configured with: 
/home/mitake/tool/crosstool-0.43-sh4a/build/sh4-unknown-linux-gnu/gcc-3.4.5-glibc-2.3.5/gcc-3.4.5/configure 
--target=sh4-unknown-linux-gnu --host=x86_64-host_unknown-linux-gnu 
--prefix=/opt/crosstool/gcc-3.4.5-glibc-2.3.5/sh4-unknown-linux-gnu 
--with-multilib-list=m4,m4-nofpu 
--with-headers=/opt/crosstool/gcc-3.4.5-glibc-2.3.5/sh4-unknown-linux-gnu/sh4-unknown-linux-gnu/include 
--with-local-prefix=/opt/crosstool/gcc-3.4.5-glibc-2.3.5/sh4-unknown-linux-gnu/sh4-unknown-linux-gnu 
--disable-nls --enable-threads=posix --enable-symvers=gnu 
--enable-__cxa_atexit --enable-languages=c,c++ --enable-shared 
--enable-c99 --enable-long-long
Thread model: posix
gcc version 3.4.5

I obtained this cross compiler with this project: 
http://kegel.com/crosstool/

So I have a question, is there the de fact standard of corss compiler 
building kit for SuperH arch?
If there is, could you tell me?

Thanks,
	Hitoshi

^ permalink raw reply	[flat|nested] 7+ messages in thread

* Re: Build error at v2.6.33 of sh-2.6.git
  2010-03-18  6:41 Build error at v2.6.33 of sh-2.6.git Hitoshi Mitake
@ 2010-03-18  7:06 ` Magnus Damm
  2010-03-18  7:09 ` Conrad Parker
                   ` (4 subsequent siblings)
  5 siblings, 0 replies; 7+ messages in thread
From: Magnus Damm @ 2010-03-18  7:06 UTC (permalink / raw)
  To: linux-sh

Hi Hitoshi-san,

On Thu, Mar 18, 2010 at 3:41 PM, Hitoshi Mitake
<mitake@dcl.info.waseda.ac.jp> wrote:
> So I have a question, is there the de fact standard of corss compiler
> building kit for SuperH arch?
> If there is, could you tell me?

I used to build cross compilers all the time. These days I use the
binary distribution provided by codesourcery.

http://www.codesourcery.com/sgpp/editions.html

Not sure about the status of upstream gcc, binutils and gdb. If the
specific version of gcc that you are building with fails, please make
sure to upgrade to the latest version and try again. I've also heard
that debian should build fine on sh4, so I guess they have whatever
patches that are needed.

Codesourcery also provide sources if you are interested.

Cheers,

/ magnus

^ permalink raw reply	[flat|nested] 7+ messages in thread

* Re: Build error at v2.6.33 of sh-2.6.git
  2010-03-18  6:41 Build error at v2.6.33 of sh-2.6.git Hitoshi Mitake
  2010-03-18  7:06 ` Magnus Damm
@ 2010-03-18  7:09 ` Conrad Parker
  2010-03-18  7:10 ` Paul Mundt
                   ` (3 subsequent siblings)
  5 siblings, 0 replies; 7+ messages in thread
From: Conrad Parker @ 2010-03-18  7:09 UTC (permalink / raw)
  To: linux-sh

On 18 March 2010 16:06, Magnus Damm <magnus.damm@gmail.com> wrote:
> Hi Hitoshi-san,
>
> On Thu, Mar 18, 2010 at 3:41 PM, Hitoshi Mitake
> <mitake@dcl.info.waseda.ac.jp> wrote:
>> So I have a question, is there the de fact standard of corss compiler
>> building kit for SuperH arch?
>> If there is, could you tell me?
>
> I used to build cross compilers all the time. These days I use the
> binary distribution provided by codesourcery.
>
> http://www.codesourcery.com/sgpp/editions.html
>
> Not sure about the status of upstream gcc, binutils and gdb. If the
> specific version of gcc that you are building with fails, please make
> sure to upgrade to the latest version and try again. I've also heard
> that debian should build fine on sh4, so I guess they have whatever
> patches that are needed.

info on the debian packages is here::

http://wiki.debian.org/SH4

cheers,

Conrad.

^ permalink raw reply	[flat|nested] 7+ messages in thread

* Re: Build error at v2.6.33 of sh-2.6.git
  2010-03-18  6:41 Build error at v2.6.33 of sh-2.6.git Hitoshi Mitake
  2010-03-18  7:06 ` Magnus Damm
  2010-03-18  7:09 ` Conrad Parker
@ 2010-03-18  7:10 ` Paul Mundt
  2010-03-18  7:51 ` Hitoshi Mitake
                   ` (2 subsequent siblings)
  5 siblings, 0 replies; 7+ messages in thread
From: Paul Mundt @ 2010-03-18  7:10 UTC (permalink / raw)
  To: linux-sh

On Thu, Mar 18, 2010 at 03:41:13PM +0900, Hitoshi Mitake wrote:
> But I'm suspecting that the problem is the version of my cross compiler 
> for sh.
> The version of it is 3.4.5, quite old.
> -v output of my cross compiler is this:
> 
> % sh-linux-gcc -v
> Reading specs from 
> /opt/crosstool/gcc-3.4.5-glibc-2.3.5/sh4-unknown-linux-gnu/lib/gcc/sh4-unknown-linux-gnu/3.4.5/specs
> Configured with: 
> /home/mitake/tool/crosstool-0.43-sh4a/build/sh4-unknown-linux-gnu/gcc-3.4.5-glibc-2.3.5/gcc-3.4.5/configure 
> --target=sh4-unknown-linux-gnu --host=x86_64-host_unknown-linux-gnu 
> --prefix=/opt/crosstool/gcc-3.4.5-glibc-2.3.5/sh4-unknown-linux-gnu 
> --with-multilib-list=m4,m4-nofpu 
> --with-headers=/opt/crosstool/gcc-3.4.5-glibc-2.3.5/sh4-unknown-linux-gnu/sh4-unknown-linux-gnu/include 
> --with-local-prefix=/opt/crosstool/gcc-3.4.5-glibc-2.3.5/sh4-unknown-linux-gnu/sh4-unknown-linux-gnu 
> --disable-nls --enable-threads=posix --enable-symvers=gnu 
> --enable-__cxa_atexit --enable-languages=c,c++ --enable-shared --enable-c99 
> --enable-long-long
> Thread model: posix
> gcc version 3.4.5
> 
> I obtained this cross compiler with this project: 
> http://kegel.com/crosstool/
> 
> So I have a question, is there the de fact standard of corss compiler 
> building kit for SuperH arch?
> If there is, could you tell me?
> 
As Magnus pointed out, the CodeSourcery one is the officially recommended
one to use. Note that this problem you are having is an issue with old
binutils versions on 64-bit hosts, which has been corrected in newer
versions of binutils. You can find more info about it in the archives, or
just use a newer toolchain.

^ permalink raw reply	[flat|nested] 7+ messages in thread

* Re: Build error at v2.6.33 of sh-2.6.git
  2010-03-18  6:41 Build error at v2.6.33 of sh-2.6.git Hitoshi Mitake
                   ` (2 preceding siblings ...)
  2010-03-18  7:10 ` Paul Mundt
@ 2010-03-18  7:51 ` Hitoshi Mitake
  2010-03-18  9:28 ` Nobuhiro Iwamatsu
  2010-03-19  5:40 ` Hitoshi Mitake
  5 siblings, 0 replies; 7+ messages in thread
From: Hitoshi Mitake @ 2010-03-18  7:51 UTC (permalink / raw)
  To: linux-sh

On 03/18/10 16:09, Conrad Parker wrote:
 > On 18 March 2010 16:06, Magnus Damm<magnus.damm@gmail.com>  wrote:
 >> Hi Hitoshi-san,
 >>
 >> On Thu, Mar 18, 2010 at 3:41 PM, Hitoshi Mitake
 >> <mitake@dcl.info.waseda.ac.jp>  wrote:
 >>> So I have a question, is there the de fact standard of corss compiler
 >>> building kit for SuperH arch?
 >>> If there is, could you tell me?
 >>
 >> I used to build cross compilers all the time. These days I use the
 >> binary distribution provided by codesourcery.
 >>
 >> http://www.codesourcery.com/sgpp/editions.html
 >>
 >> Not sure about the status of upstream gcc, binutils and gdb. If the
 >> specific version of gcc that you are building with fails, please make
 >> sure to upgrade to the latest version and try again. I've also heard
 >> that debian should build fine on sh4, so I guess they have whatever
 >> patches that are needed.
 >
 > info on the debian packages is here::
 >
 > http://wiki.debian.org/SH4
 >
 > cheers,
 >
 > Conrad.
 >

Thanks for your rapid and kind reply, Magnus, Conrad and Paul!

I'd like to test both of toolchain of codesourcery and debian package.
But I'm using Debian, so if debian package works fine, this will be
great help for me :)

Thanks a lot, folks!
        Hitoshi

^ permalink raw reply	[flat|nested] 7+ messages in thread

* Re: Build error at v2.6.33 of sh-2.6.git
  2010-03-18  6:41 Build error at v2.6.33 of sh-2.6.git Hitoshi Mitake
                   ` (3 preceding siblings ...)
  2010-03-18  7:51 ` Hitoshi Mitake
@ 2010-03-18  9:28 ` Nobuhiro Iwamatsu
  2010-03-19  5:40 ` Hitoshi Mitake
  5 siblings, 0 replies; 7+ messages in thread
From: Nobuhiro Iwamatsu @ 2010-03-18  9:28 UTC (permalink / raw)
  To: linux-sh

Hi,

2010/3/18 Hitoshi Mitake <mitake@dcl.info.waseda.ac.jp>:
> On 03/18/10 16:09, Conrad Parker wrote:
>> On 18 March 2010 16:06, Magnus Damm<magnus.damm@gmail.com>  wrote:
>>> Hi Hitoshi-san,
>>>
>>> On Thu, Mar 18, 2010 at 3:41 PM, Hitoshi Mitake
>>> <mitake@dcl.info.waseda.ac.jp>  wrote:
>>>> So I have a question, is there the de fact standard of corss compiler
>>>> building kit for SuperH arch?
>>>> If there is, could you tell me?
>>>
>>> I used to build cross compilers all the time. These days I use the
>>> binary distribution provided by codesourcery.
>>>
>>> http://www.codesourcery.com/sgpp/editions.html
>>>
>>> Not sure about the status of upstream gcc, binutils and gdb. If the
>>> specific version of gcc that you are building with fails, please make
>>> sure to upgrade to the latest version and try again. I've also heard
>>> that debian should build fine on sh4, so I guess they have whatever
>>> patches that are needed.
>>
>> info on the debian packages is here::
>>
>> http://wiki.debian.org/SH4
>>
>> cheers,
>>
>> Conrad.
>>
>
> Thanks for your rapid and kind reply, Magnus, Conrad and Paul!
>
> I'd like to test both of toolchain of codesourcery and debian package.
> But I'm using Debian, so if debian package works fine, this will be
> great help for me :)
>

I will update debian cross toolchain.
There is only a binary of the i386, but prepares amd64 now.
I upload it in the morning of tomorrow.

Best regards,
  Nobuhiro

-- 
Nobuhiro Iwamatsu
   iwamatsu at {nigauri.org / debian.org}
   GPG ID: 40AD1FA6

^ permalink raw reply	[flat|nested] 7+ messages in thread

* Re: Build error at v2.6.33 of sh-2.6.git
  2010-03-18  6:41 Build error at v2.6.33 of sh-2.6.git Hitoshi Mitake
                   ` (4 preceding siblings ...)
  2010-03-18  9:28 ` Nobuhiro Iwamatsu
@ 2010-03-19  5:40 ` Hitoshi Mitake
  5 siblings, 0 replies; 7+ messages in thread
From: Hitoshi Mitake @ 2010-03-19  5:40 UTC (permalink / raw)
  To: linux-sh

On 03/18/10 18:28, Nobuhiro Iwamatsu wrote:
 > Hi,
 >
 > 2010/3/18 Hitoshi Mitake<mitake@dcl.info.waseda.ac.jp>:
 >> On 03/18/10 16:09, Conrad Parker wrote:
 >>> On 18 March 2010 16:06, Magnus Damm<magnus.damm@gmail.com>    wrote:
 >>>> Hi Hitoshi-san,
 >>>>
 >>>> On Thu, Mar 18, 2010 at 3:41 PM, Hitoshi Mitake
 >>>> <mitake@dcl.info.waseda.ac.jp>    wrote:
 >>>>> So I have a question, is there the de fact standard of corss compiler
 >>>>> building kit for SuperH arch?
 >>>>> If there is, could you tell me?
 >>>>
 >>>> I used to build cross compilers all the time. These days I use the
 >>>> binary distribution provided by codesourcery.
 >>>>
 >>>> http://www.codesourcery.com/sgpp/editions.html
 >>>>
 >>>> Not sure about the status of upstream gcc, binutils and gdb. If the
 >>>> specific version of gcc that you are building with fails, please make
 >>>> sure to upgrade to the latest version and try again. I've also heard
 >>>> that debian should build fine on sh4, so I guess they have whatever
 >>>> patches that are needed.
 >>>
 >>> info on the debian packages is here::
 >>>
 >>> http://wiki.debian.org/SH4
 >>>
 >>> cheers,
 >>>
 >>> Conrad.
 >>>
 >>
 >> Thanks for your rapid and kind reply, Magnus, Conrad and Paul!
 >>
 >> I'd like to test both of toolchain of codesourcery and debian package.
 >> But I'm using Debian, so if debian package works fine, this will be
 >> great help for me :)
 >>
 >
 > I will update debian cross toolchain.
 > There is only a binary of the i386, but prepares amd64 now.
 > I upload it in the morning of tomorrow.

Hi Nobuhiro-san,

I tested your debian package of cross tool chain for amd64.
And it works fine! This is a very very big help!

Thanks for your great work!
        Hitoshi

^ permalink raw reply	[flat|nested] 7+ messages in thread

end of thread, other threads:[~2010-03-19  5:40 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2010-03-18  6:41 Build error at v2.6.33 of sh-2.6.git Hitoshi Mitake
2010-03-18  7:06 ` Magnus Damm
2010-03-18  7:09 ` Conrad Parker
2010-03-18  7:10 ` Paul Mundt
2010-03-18  7:51 ` Hitoshi Mitake
2010-03-18  9:28 ` Nobuhiro Iwamatsu
2010-03-19  5:40 ` Hitoshi Mitake

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox