home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #16 / NN_1992_16.iso / spool / comp / unix / bsd / 3224 < prev    next >
Encoding:
Internet Message Format  |  1992-07-30  |  2.2 KB

  1. Path: sparky!uunet!mcsun!uknet!axion!micromuse!hilly!peter
  2. From: peter@micromuse.co.uk (Peter Galbavy)
  3. Newsgroups: comp.unix.bsd
  4. Subject: Re: 386BSD: Anyone using gcc-2.x on 0.1?
  5. Message-ID: <peter.712488976@hilly>
  6. Date: 30 Jul 92 09:36:16 GMT
  7. References: <1992Jul29.155631.21213@thyme.jpl.nasa.gov> <1992Jul29.172744.1118@ms.uky.edu>
  8. Organization: MicroMuse Limited, London, England.
  9. Lines: 49
  10.  
  11. soward@slow.inslab.uky.edu (John Soward) writes:
  12.  
  13. >I tried to compile it (gcc2.2.2) but ran into a snag...then I found the  
  14. >binaries and patches on sonata.cc.purdue.edu...these seem to work...
  15. >I am currently trying to re-compile the Kernel with it...A few cahnges need to  
  16. >be made it looks like...I am currently stuck on src/i386/isa/npx.c:129
  17. >with: " impossible register constraint in `asm' " but I'm sure it's just some  
  18. >slight change from 1.39...
  19.  
  20.  
  21. Changes to kernel code (from memory, I am at work - BSD system at home):
  22.  
  23. 1   Change in ../../i386/*/npx.c the lines it comlains about to use "m"
  24.     instead of "g" - you will see what I mean when you look at it.
  25.  
  26. 2   Errors also include the warning about incompatible declarations (whatever)
  27.     of strlen() in ../../sys/systm.h (comment it out - works ok).
  28.  
  29.     ../../i386/??/math_emulate.c line 614 need changing from:
  30.  
  31.     tmp = & (long)REG(...)
  32.  
  33.     to
  34.  
  35.     tmp = & REG(...)
  36.  
  37.     as casting makes gcc-2.2.2 & operator barf (not too suprising really).
  38.  
  39. 3   ../../i386/??/pccons.c needs "=" signs added to array declarations. Try
  40.     compiling it and you will see the line numbers. Also there are a couple
  41.     of comments like "?* NNN */" the need the "?" changed to "/" (this may
  42.     be bit rot :-)
  43.  
  44. What else ? I can't remember...
  45.  
  46. *but* I have rebuilt the kernel using gcc-2.2.2 and it is *bigger* binary
  47. wise than the one built using 1.39, and of course doesn't work :-(
  48.  
  49. gcc-2.2.2 carries around lots of redundent c++ stuff, and makes a call
  50. to ___main (__main in libgcc2.c) which does c++ stuff. I have tried using
  51. -fno-builtin to no avail. When I get the portable up and running (soon,
  52. please :-) I will be able to investigate further, by which time the patches
  53. should be out :-) :-)
  54.  
  55. Sigh. One day.
  56. -- 
  57. Peter Galbavy
  58. Tech Support, Micromuse Ltd
  59. Phone: +44 71 352 7774        E-Mail: P.Galbavy@micromuse.co.uk
  60.