home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #20 / NN_1992_20.iso / spool / comp / os / linux / 10132 < prev    next >
Encoding:
Internet Message Format  |  1992-09-08  |  3.9 KB

  1. Path: sparky!uunet!sun-barr!cs.utexas.edu!news
  2. From: jefftep@cs.utexas.edu (Jeffrey Grills)
  3. Newsgroups: comp.os.linux
  4. Subject: Re: GCC 2.2.2d problems
  5. Date: 7 Sep 1992 21:26:21 -0500
  6. Organization: CS Dept, University of Texas at Austin
  7. Lines: 92
  8. Message-ID: <lao3qdINN70h@ozona.cs.utexas.edu>
  9. References: <1992Sep7.190540.19563@odin.diku.dk>
  10. NNTP-Posting-Host: ozona.cs.utexas.edu
  11.  
  12. jablo@diku.dk (Jacob Martin Bohn Lorensen) writes:
  13. >Recently I got GCC 2.2.2d. I even used the install.2.x shell
  14. >script with no problems. :-)
  15. >
  16. >But when I try to compile the kernel, or any program bigger than
  17. >"hello world", cpp gets a signal 11 (SIGSEGV ?) and dumps core.
  18. >
  19. >Any suggestions?
  20. >
  21. >Mange venlige hilsener,
  22. >Jacob.
  23. >-- 
  24. >No signature yet !
  25.  
  26.  
  27. Ah, that problem.  Sorry I don't have a fix for you.  No one ever found
  28. a proper solution for me when I had that problem.  I will tell you (and
  29. everyone else) what I have done.
  30.  
  31. I *FINALLY* got the kernel compiled, after 5 weeks of trying!!!
  32.  
  33. You don't mention what version of the kernel you are using.  I've
  34. found GCC2.2.2d likes me a lot more under 0.97pl2.  I haven't tried
  35. anything later yet.
  36.  
  37. Anyways, while attempting to make the kernel, gcc would eventually
  38. SIGSEGV (from cc1), dump core, and die.  Then, afterwards, *any* program
  39. I would try to compile would cause gcc to die.  No idea why.  So, I
  40. reboot whenever this happens to me (still does).
  41.  
  42. I managed to get gcc to compile through to the chr_dev directories
  43. while making the kernel.  It died on console.c.  I rebooted, and tried
  44. to compile that file by hand, it died, I rebooted, and tried to compile
  45. it by hand without the -O6 option (which I assume is optimize).  It died
  46. a more spectacular (and informative) death.  This is a recreation of
  47. what happened (since I couldn't find script anywhere):
  48.  
  49.   % gcc -Wall -O6 -fomit-frame-pointer -c console.c
  50.   Segmentation fault (core dumped)
  51.  
  52. Here I rebooted.
  53.  
  54.   % gcc -Wall -fomit-frame-pointer -c console.c
  55.   console.c: In function 'scrup'
  56.   console.c:360: fixed or forbidden register was spilled.
  57.     this may be due to a compiler bug or to impossible asm statements
  58.  
  59. Well, I found that interesting.  I don't know quite what to make of that,
  60. but it reaffirmed my believe that the problem was in GGC.
  61.  
  62. I rebooted.  I tried to make again.
  63. It failed on console.c again.  I rebooted.  I compiled console.c again
  64. by hand, as in the first example.  To my suprised, it worked.  I
  65. tried make again.  Finally, after a little more tweaking in this
  66. manner, the kernel compiled.
  67.  
  68. I don't believe it was ever an install problem, because I don't think
  69. I could have gotten through the kernel at all.  It seems like a
  70. particularly obtrusive bug in gcc.  Last time I complained about
  71. this here, I got very few suggestions, but I did have about 10
  72. people mail me, telling me they had the same problem.  I don't think
  73. this is a very widespread problem, but I believe enough of us have
  74. it to warrent fixing it.
  75.  
  76. Here's my setup, so you people know:
  77.  
  78.   intel 386 33 64k cache
  79.   ami 05/05/91 bios
  80.   maxtor 7213a 200mb ide hd
  81.   tseng 4000 1mb video
  82.   linux 0.97pl2
  83.   rootimage 0.97.1
  84.   (in dos: dr dos 6.0 pl april 92)
  85.  
  86. I took the 'touch config.h' (or whatever) out of the Makefile to
  87. reduce the amount of work I had to do when recompiling.  I
  88. have tried diabling the cache.  I have tried running in non-turbo
  89. mode.  I have tried compiling on another motherboard (same HD
  90. and HD controller).  None of these were particularly sucessful....
  91.  
  92. Now, to patch to pl4, recompile (hopefully!), install X, and then
  93. I can start to work on more useful stuff, like slip and/or qic80 
  94. support...  (Smile)
  95.  
  96. Hope this helps you a little.  It's about the best advice I've seen
  97. on this problem.
  98.  
  99. -- 
  100. -------------------------+--------------------------------------------------
  101. jeff grills              | "Sometimes i see myself so clearly, because I
  102. jefftep@cs.utexas.edu    |   see nothing at all.  This feeling of emptiness
  103. Undergrad Lab, UT Austin |   flees my soul, leaving even less behind."  -me
  104.