home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #27 / NN_1992_27.iso / spool / comp / unix / bsd / 8933 < prev    next >
Encoding:
Internet Message Format  |  1992-11-16  |  1.5 KB

  1. Path: sparky!uunet!haven.umd.edu!darwin.sura.net!gatech!rutgers!cmcl2!prism.poly.edu!kapela
  2. From: kapela@prism.poly.edu (Theodore S. Kapela)
  3. Newsgroups: comp.unix.bsd
  4. Subject: Re: [386BSD] GCC 2.3.1 and kernel
  5. Keywords: 386BSD GCC kernel
  6. Message-ID: <1992Nov16.131930.3414@prism.poly.edu>
  7. Date: 16 Nov 92 13:19:30 GMT
  8. References: <1992Nov11.141408.167@dde.dk>
  9. Organization: Polytechnic University, New York
  10. Lines: 29
  11.  
  12. In article <1992Nov11.141408.167@dde.dk> kim@dde.dk (Kim Andersen) writes:
  13. >I finally got GCC 2.3.1 compiled (takes some time on a 4Mb machine).
  14. >
  15. >Tried compiling the kernel.
  16.  
  17. >Error when linking: symbol ___main undefined in init_main.
  18. >    (I guess this symbol comes from libgcc2)
  19. >Removed this undefined symbol in assembler input file.
  20. >
  21.  
  22. I compiled init_main.c with the old (1.39) cc.  ___main does indeed
  23. come from libgcc2.  A call to ___main() (__main() in libgcc2.c) is placed into
  24. any main() routines gcc 2.x.x finds (Had the same problem with 2.2.2) during
  25. compilation.
  26.  
  27. Also - DO KEEP YOUR ORIGINAL WORKING KERNEL AROUND.  The easiest place to
  28. leave it is /386bsd.alt.  This way, if you have problems with the old 
  29. kernel, you can just hit a key (okay, maybe you need to do it a few times)
  30. to get the bootstrap loader to look for alternate kernels.  If I remember
  31. correctly (from wdboot.c), the order is:
  32.  
  33. /386bsd /386bsd.alt /386bsd.old /vmunix /boot
  34.  
  35.  
  36. -- 
  37. ..............................................................................
  38.  Theodore S. Kapela                kapela@poly.edu
  39.  Center for Applied Large-Scale Computing    
  40.  Polytechnic University
  41.