public inbox for gcc-help@gcc.gnu.org
 help / color / mirror / Atom feed
* gcc -2.95.2 cross-compilation problem for m68k-coff
@ 2001-01-11 20:02 Mahadev K Cholachagudda
  0 siblings, 0 replies; 3+ messages in thread
From: Mahadev K Cholachagudda @ 2001-01-11 20:02 UTC (permalink / raw)
  To: Gcc-Help@Gcc.Gnu.Org

Hello all,

	****please reply in CC to **** to mailto:kcmahadev@zilogindia.com as i am
not a subscriber of this list.

	I want to compile and build the gcc ( cross compiler) for m68k-coff on
Linux.
	I successfully built the cross compiler by using the FAQ provided by the
www.obsw.com and running the shell script. But i want to build the tools one
by one and I got the errors as below.

	I performed the following.

/home/kc> mkdir build-bin
/home/kc> cd build-bin
/home/kc/build-bin>
../binutils-2.9.1/configure --target=m68k-coff --prefix=/home/kc/gnu-tools

....
/home/kc/build-bin> make all install
/home/kc/build-bin> mkdir ../build-gcc
/home/kc/build-bin> cd ../build-gcc
/home/kc/build-bin>
../gcc-2.95.2/configure --target=m68k-coff --prefix=/home/kc/gnu-tools --wit
h-local-prefix=/home/kc/gnu-tools --with-newlib --enable-languages="c"

..... successfully

/home/kc/build-bin> make all install
:
:
../../gcc-2.95.2/gcc/libgcc2.c:41: stdlib.h: No such file or directory
../../gcc-2.95.2/gcc/libgcc2.c:42: unistd.h: No such file or directory
make[3]: *** [libgcc2.a] Error 1
make[3]: Leaving directory `/home/kc/build-gcc/gcc'
make[2]: *** [stmp-multilib-sub] Error 2
make[2]: Leaving directory `/home/kc/build-gcc/gcc'
make[1]: *** [stmp-multilib] Error 1
make[1]: Leaving directory `/home/kc/build-gcc/gcc'
make: *** [all-gcc] Error 2
/home/kc/build-bin>


Could any one point me where can i get these header files in order to
compile the gcc ?

Thanks for any help

With best regards,

\/ \/   Mahadev K. Cholachagudda
O . O   mailto:kcmahadev@zilogindia.com
 ( )


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

* RE: gcc -2.95.2 cross-compilation problem for m68k-coff
  2001-01-12  4:04 Axel Kittenberger
@ 2001-01-12 22:45 ` Mahadev K Cholachagudda
  0 siblings, 0 replies; 3+ messages in thread
From: Mahadev K Cholachagudda @ 2001-01-12 22:45 UTC (permalink / raw)
  To: gcc-help

Hi all,

Mike has posted this solution on crossgcc list. I followed the steps and Yes
i am able to build the m68k-coff cross compiler.

thanks,

With best regards,

\/ \/   Mahadev K. Cholachagudda
O . O   mailto:kcmahadev@zilogindia.com
 ( )

Hi, Mahadev.
I'm also works with m68k-coff, and succeed build on my windoze.
The problem you got is lack of header files, because gcc needs
them to build libgcc.a. Therefore, get newlib package and put
them in the directory the same as gcc (/home/kc), and run
configure script of gcc again. If you have put newlib in
other directory, it's ok, using
'--with-header=/somewhere/newlib/libc/include' with
configure script of gcc.


> -----Original Message-----
> From: Axel Kittenberger [ mailto:Anshil@gmx.net ]
> Sent: Friday, January 12, 2001 12:04 PM
> To: kcmahadev@zilogindia.com
> Cc: gcc-help@gcc.gnu.org
> Subject: RE: gcc -2.95.2 cross-compilation problem for m68k-coff
>
>
> You have to copy your target system headers into your installation
> directory first.
>
> The target system headers are those who define stdio routines and that
> stuff...
>
> > Could any one point me where can i get these header files in order to
> > compile the gcc ?
>
> Donnot know, on which os do you target?
>
> --
> Sent through GMX FreeMail - http://www.gmx.net

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

* RE: gcc -2.95.2 cross-compilation problem for m68k-coff
@ 2001-01-12  4:04 Axel Kittenberger
  2001-01-12 22:45 ` Mahadev K Cholachagudda
  0 siblings, 1 reply; 3+ messages in thread
From: Axel Kittenberger @ 2001-01-12  4:04 UTC (permalink / raw)
  To: kcmahadev; +Cc: gcc-help

You have to copy your target system headers into your installation
directory first.

The target system headers are those who define stdio routines and that
stuff...

> Could any one point me where can i get these header files in order to
> compile the gcc ?

Donnot know, on which os do you target?

-- 
Sent through GMX FreeMail - http://www.gmx.net

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

end of thread, other threads:[~2001-01-12 22:45 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2001-01-11 20:02 gcc -2.95.2 cross-compilation problem for m68k-coff Mahadev K Cholachagudda
2001-01-12  4:04 Axel Kittenberger
2001-01-12 22:45 ` Mahadev K Cholachagudda

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).