[linux-sh:03247] Re: The current kernel for a Jornada 680 SH3

Kaz Kojima <[email protected]> Sat, 29 May 2004 07:59:06 +0900 (JST)
Newsgroups gmane.linux.ports.sh.general
Message-ID <[email protected]>
"Chris" <[email protected]> wrote:
> Thanks for the answers, I'm beginning to get the idea. However, I was 
> surprised to see that building gcc-sh 3.4.0 in Debian-386 breaks because of 
> two missing include files:
> 
> In file included from ./tm.h:10,
>                  from ../../gcc-3.4.0/gcc/libgcc2.c:43:
> ../../gcc-3.4.0/gcc/config/sh/linux.h:149:20: signal.h: No such file or 
> directory
> ../../gcc-3.4.0/gcc/config/sh/linux.h:150:26: sys/ucontext.h: No such file 
> or directory
> make[2]: *** [libgcc/./_muldi3.o] Error 1
> 
> Does this mean I used the wrong configure options (none in fact, although 
> I've read about common SH-related options), or are the files still missing 
> from 3.4.0 and have to be copied from the linux-sh tree?

At that point, you need libc + kernel headers for sh-linux target.
They can be fed from somewhere.  But wait, the story is not easy.
See

  http://sources.redhat.com/ml/crossgcc/2002-05/msg00094.html

and the thread starting from

  http://gcc.gnu.org/ml/gcc/2003-06/msg01472.html

That's why guys including me strongly recommend Dan's crosstool.

Regards,
	kaz