public inbox for ecos-discuss@sourceware.org
 help / color / mirror / Atom feed
* [ECOS] gcc for sh-elf
@ 2000-11-18  8:28 Stephen Williams
  2000-12-05 20:27 ` Jonathan Larmour
  0 siblings, 1 reply; 3+ messages in thread
From: Stephen Williams @ 2000-11-18  8:28 UTC (permalink / raw)
  To: ecos-discuss

I'm setting myself up for Hitachi SH processors, and have tried to follow
the instructions for building the development tools for eCos. Binutils
seems to compile fine, but I'm stuck at the compiler.

The compiler proper seems to build, but it fails when trying to build
tcrtbegin, as shown below. I've tried a couple different snapshots with
identical results. Have I missed something?

make[3]: Entering directory `/usr/local/src/obj/sh-elf/gcc-20001101/gcc'
/usr/local/src/obj/sh-elf/gcc-20001101/gcc/xgcc -B/usr/local/src/obj/sh-elf/gcc-20001101/gcc/ -nostdinc -B/usr/local/src/obj/sh-elf/gcc-20001101/sh-elf/newlib/ -isystem /usr/local/src/obj/sh-elf/gcc-20001101/sh-elf/newlib/targ-include -isystem /usr/local/src/gcc-20001101/newlib/libc/include -B/usr/local/sh-elf/bin/ -B/usr/local/sh-elf/lib/ -isystem /usr/local/sh-elf/include -DCROSS_COMPILE -DIN_GCC    -W -Wall -Wwrite-strings -Wstrict-prototypes -Wmissing-prototypes -isystem ./include  -I. -I. -I/usr/local/src/gcc-20001101/gcc -I/usr/local/src/gcc-20001101/gcc/. -I/usr/local/src/gcc-20001101/gcc/config -I/usr/local/src/gcc-20001101/gcc/../include  -g0 \
  -finhibit-size-directive -fno-inline-functions \
  -fno-exceptions  -Dinhibit_libc \
  -c /usr/local/src/gcc-20001101/gcc/crtstuff.c -DCRT_BEGIN -o tcrtbegin.o
/tmp/ccAnVdas.s: Assembler messages:
/tmp/ccAnVdas.s:87: Error: operation combines symbols in different segments
make[3]: *** [tcrtbegin.o] Error 1
make[3]: Leaving directory `/usr/local/src/obj/sh-elf/gcc-20001101/gcc'
make[2]: *** [crtbegin.o] Error 2
make[2]: Leaving directory `/usr/local/src/obj/sh-elf/gcc-20001101/gcc'
make[1]: *** [stmp-multilib] Error 2
make[1]: Leaving directory `/usr/local/src/obj/sh-elf/gcc-20001101/gcc'
make: *** [all-gcc] Error 2
make: Leaving directory `/usr/local/src/obj/sh-elf/gcc-20001101'
69.9% CPU (Elapsed=22:10.13, sys=94.697, user=835.424)

-- 
Steve Williams                "The woods are lovely, dark and deep.
steve@icarus.com              But I have promises to keep,
steve@picturel.com            and lines to code before I sleep,
http://www.picturel.com       And lines to code before I sleep."


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

* Re: [ECOS] gcc for sh-elf
  2000-11-18  8:28 [ECOS] gcc for sh-elf Stephen Williams
@ 2000-12-05 20:27 ` Jonathan Larmour
  2000-12-05 20:41   ` Stephen Williams
  0 siblings, 1 reply; 3+ messages in thread
From: Jonathan Larmour @ 2000-12-05 20:27 UTC (permalink / raw)
  To: Stephen Williams; +Cc: ecos-discuss

Stephen Williams wrote:
> 
> I'm setting myself up for Hitachi SH processors, and have tried to follow
> the instructions for building the development tools for eCos. Binutils
> seems to compile fine, but I'm stuck at the compiler.
> 
> The compiler proper seems to build, but it fails when trying to build
> tcrtbegin, as shown below. I've tried a couple different snapshots with
> identical results. Have I missed something?
[snip compiler build error]

Probably not. It's simply a bug by the looks of it :(. I think you'd better
look at http://gcc.gnu.org/ and see about asking on the gcc mailing list.

Jifl
-- 
Red Hat, 35 Cambridge Place, Cambridge, UK. CB2 1NS  Tel: +44 (1223) 728762
"Plan to be spontaneous tomorrow."  ||  These opinions are all my own fault

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

* Re: [ECOS] gcc for sh-elf
  2000-12-05 20:27 ` Jonathan Larmour
@ 2000-12-05 20:41   ` Stephen Williams
  0 siblings, 0 replies; 3+ messages in thread
From: Stephen Williams @ 2000-12-05 20:41 UTC (permalink / raw)
  To: Jonathan Larmour; +Cc: ecos-discuss

Stephen Williams wrote:
> The compiler proper seems to build, but it fails when trying to build
> tcrtbegin, as shown below. I've tried a couple different snapshots with
> identical results. Have I missed something?


jlarmour@cygnus.co.uk said:
> Probably not. It's simply a bug by the looks of it :(. I think you'd
> better look at http://gcc.gnu.org/ and see about asking on the gcc
> mailing list.

I've long since given up on this and eCos. Getting the extraneous tools
compiled on my alpha was pretty much hopeless, and I was running out of
time to debug broken instructions.

I have my own C/C++ runtime that does not depend on tcrtbegin or newlib,
and patching gcc configuration to support uCR and sh turned out to be
faster. Less of a learning curve for me, too. I've had uCR working on
my Linux/alpha for a while now, so doing the needed SH specific stuff
and updating to more recent compilers went pretty smoothly.

I've got my SH7750 / SolutionEngine working pretty well, now.

Thanks for responding, though. Wish I had time to do something about it.
-- 
Steve Williams                "The woods are lovely, dark and deep.
steve@icarus.com              But I have promises to keep,
steve@picturel.com            and lines to code before I sleep,
http://www.picturel.com       And lines to code before I sleep."


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

end of thread, other threads:[~2000-12-05 20:41 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2000-11-18  8:28 [ECOS] gcc for sh-elf Stephen Williams
2000-12-05 20:27 ` Jonathan Larmour
2000-12-05 20:41   ` Stephen Williams

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).