*BSD News Article 1755


Return to BSD News archive

Path: sserve!manuel!munnari.oz.au!spool.mu.edu!tulane!darwin.sura.net!gatech!bloom-beacon!eru.mt.luth.se!lunic!sunic2!chalmers.se!dtek.chalmers.se!dxper
From: dxper@dtek.chalmers.se (Per Anders Olausson)
Newsgroups: comp.unix.bsd
Subject: Re: Cross compiling for 386bsd using gcc 2.2.2
Message-ID: <12494@chalmers.se>
Date: 30 Jun 92 08:34:13 GMT
Article-I.D.: chalmers.12494
References: <1992Jun29.101909.25381@rtf.bt.co.uk> <1992Jun29.153602.14889@olymp.informatik.uni-bonn.de>
Sender: news@chalmers.se
Organization: Chalmers University of Technology, Gothenburg Sweden
Lines: 50

juengst@boss1.physik.uni-bonn.de (Henry G. Juengst) writes:


>In article <1992Jun29.101909.25381@rtf.bt.co.uk>, duplain@rtf.bt.co.uk (Andy Duplain) writes:
>> 	at an alarming rate :-)  Can anyone post, email or otherwise
>> 	inform me of the diffs to vanilla gcc 2.2.2 to allow a cross
>> 	compiler to be built ?
>Are the diffs available via anonymous ftp ? Are they part of gcc 2.2.3 ?

  Yes they are. Since I've already used these I might add that because they
are against GCC V2.0<--- some of the hunks will fail and some will have to be
patched by hand. Some of the info in the intro texts to them are wrong (notably
on of the configuration commands has an extra dash in it (remove it) but other
than that it should work ok. I did encounter some strange things with patch
when I patched it most notably an ending '}' wasn't added to one file.

  To compile GCC I used:

	make CC=gcc CFLAGS=-O LANGUAGES="c c++" [target]

  where target first was blank or at some point some files which failed me and
finally install... If you want to have the files somewhere else than in the
system paths then you're heading for trouble. Editing "prefix" in one in the
makefiles should do it, but I'm not sure that's all that is needed or indeed
if it is the right variable to tamper with.

  I did not compile libgcc2 but used the libs which came with 386bsd originally
but since then a lot of info has circulated here on how to fix compilation of
that too. (if you do it my way you will encounter a problem with a missing 
___main but I fixed that by adding my own piece of hunkydory i386:

	.globl ___main
	___main:
		ret

B-)

  Doing the right way though is probably better.

  Hope this helps.

pao


   
--
-------------------------------Andrew Olausson--------------------------------
------------------------------Systems Architect-------------------------------
----------------------------dxper@dtek.chalmers.se----------------------------
--------------------------------pao@proxxi.se---------------------------------