This is the mail archive of the crossgcc@cygnus.com mailing list for the crossgcc project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

Unix hosted cross gcc compiler for MSDOS target with NEWLIB


		Hello,

		I am trying to get a Unix hosted  cross  gcc  compiler  for
	MSDOS target. I have got the following sources:

		binutils-2.7.tar.gz
		gcc-2.7.2.2.tar.gz (patched with crossgcc-gcc-2.7.2.2.patch)
		newlib-1.7.1.tar.gz

		I know how to run the configure script, but  I  don't  know
	which arguments (target, mainly) I should pass to it. I have  tried
	different possibilities, but no one seems to be right. I  get  some
	error messages when  I  finally  link  a  C  program.  These  error
	messages (among others related to go32) say that functions provided
	by the operating system (i.e. read, open, close, ...) are not found
	in the libraries. I don't know why they have not been compiled  and
	archived in the libc.a library. Since the source files  (.S  files)
	come with the distribution, perhaps should I try to  compile  these
	routines by hand? I don't know if I  have  to  specify  go32  as  a
	target, or if msdos should be enough,  and  in  which  order  (i.e.
	i386-go32-msdos,       i386-unknown-msdos,       i386-unknown-none,
	i386-unknown-go32 ...). I have also tried to  get  the  lib*.a  and
	crt0.o files from a target machine (i.e, a PC), but it doesn't work
	neither.

		i386-unknown-msdos works  fine  for  binutils,  but  it  is
	rejected by gcc-2.7.2.2/configure,  which  accepts  i386-go32-msdos
	instead.

		Could anybody help me? I think all this work should already
	be done by someone!

		Thanks a lot.

	-------------------------------------------------------------------
	| Vicente Luque Centeno  |||    DATSI, Facultad de Inform'atica   |
	|                        |||   Universidad Polit'ecnica de Madrid |
	| Tel: 34 1 3367450      |||      Urbanizaci'on Montepr'incipe    |
	| Tel: 34 1 3367376      |||    Campus de Montegancedo s/n 28660  |
	| Fax: 34 1 3367373      |||   Boadilla del Monte, Madrid, SPAIN  |
	-------------------------------------------------------------------
	|  mailto:vluque@datsi.fi.upm.es  http://datsi.fi.upm.es/~vluque  |
	-------------------------------------------------------------------