Subject: Crosscompiler download
To: NetBSD VAX Port <port-vax@netbsd.org>
From: Anders Hogrelius SdU <elt96ahs@mds.mdh.se>
List: port-vax
Date: 12/05/1999 17:43:14
Hello folks!

For those of you who like to try out my Sparc-Solaris/NetBSD-vax
Crosscompiler it's available for download at:

http://www.mds.mdh.se/~elt96ahs/downloads/NetBSD-vax/

The files are:
xgcc_egcs-2.91.66_solaris_NetBSD-vax.tar.gz
and libbfd-2.9.1.so
The crosscompiler works OK to compile kernels and will work for
other programs as well. Ld doesn't support dynamic linking yet.

Note that the following defines must be set in the bsd.*.mk because
for some reason they seem to be undefined when using make.
-D__vax__ -D__NetBSD__ -D__KPRINTF_ATTRIBUTE__ 
There seems to be some kind of bug in config also. One must edit
the kernel makefile and add -DINET and possibly -DINET6 to make
the sources compile. 
After unpacking the tar arch, you will need to put the location of
libbfd-2.9.1.so first in your LD_LIBRARY_PATH. It is also a good thing
to set MACHINE=vax, MACHINE_ARCH=vax, and CC=vax-unknown-netbsd1.4.1-gcc
before compiling.


NetBSD ld sources seems to be quite broken. There are references to
.c files that doesnt exist in the current sources. I tried compiling
ld on my vax, and that didn't work either.

The archive is a bit of a quick hack, and could possibly be shrunken
in size by using some links between some of the files. Perhaps someone
would be kind enough to repackage the stuff... :-)

-- 
cheers,

/Anders

 
"Let the future tell the truth and evaluate each one according 
to his work and accomplishments. The present is theirs, the 
future, for which I really worked, is mine." 
(Nikola Tesla, 1856-1943)

*******************************************************************
* Anders Hogrelius SdU   Phone : +46 21 381860   
* Tessingatan 12         E-mail: elt96ahs@mds.mdh.se         
* 72216 Vasteras