home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #31 / NN_1992_31.iso / spool / comp / os / linux / 21656 < prev    next >
Encoding:
Internet Message Format  |  1992-12-24  |  3.9 KB

  1. Path: sparky!uunet!cis.ohio-state.edu!news.sei.cmu.edu!drycas.club.cc.cmu.edu!ghod
  2. From: ghod@drycas.club.cc.cmu.edu
  3. Newsgroups: comp.os.linux
  4. Subject: Re: GNU make not working suddenly???
  5. Message-ID: <1992Dec24.210900.2792@drycas.club.cc.cmu.edu>
  6. Date: 24 Dec 92 21:09:00 -0500
  7. References: <1992Dec19.065912.23358@ucsu.Colorado.EDU>
  8. Organization: Carnegie Mellon Computer Club
  9. Lines: 84
  10.  
  11. In article <1992Dec19.065912.23358@ucsu.Colorado.EDU>, farrow@ucsu.Colorado.EDU (J. Scott Farrow) writes:
  12. > I haven't noticed anyone else having this problem, so here goes:
  13. > I just downloaded the 0.99 kernel source and went to compile it:
  14. >># make config
  15. >>sh Configure < config.in
  16. >>make: *** [config] Error 139
  17. >># 
  18. > I get similar results from doing a "make dep"
  19. >># make dep
  20. >>for i in init/*.c;do echo -n "init/";gcc -DKERNEL -E -M $i;done > .depend
  21. >>make: *** [dep] Segmentation fault (core dumped)
  22. >># 
  23. > A "make -v" gets me the following:
  24. >># make -v
  25. >>GNU Make version 3.62, by Richard Stallman and Roland McGrath.
  26. >>Copyright (C) 1988-1991 Free Software Foundation, Inc.
  27. >>This is free software; see the source for copying conditions.
  28. >>There is NO warranty; not even for MERCHANTABILITY or FITNESS FOR A
  29. >>PARTICULAR PURPOSE.
  30. >>
  31. >>expr: syntax error
  32. >>[: argument expected
  33. >>make: *** [Version] Segmentation fault (core dumped)
  34. >># 
  35. > That core dump certainly doesn't seem normal.  I'm running Linux 0.98-pl5, 
  36. > gcc 2.2.2d, and GNU make 3.62. Did GNU make break somewhere along the way? I 
  37. > downloaded a new binary from tsx-11 but got the same results.
  38. > Any clues?
  39. > Thanks in advance,
  40. > Scott
  41. > --
  42. > ------------------------------------------------------------------------------
  43. > J. Scott Farrow-Student SysAdmin/Programmer, University of Colorado at Boulder
  44. > Computing & Network Services, Boulder, Colorado, USA, phone: (303) 492-4428
  45. > Internet: farrow@spot.colorado.edu, farrow@cs.colorado.edu
  46.  
  47. FYI, I had the same error occur a couple of times. I had just installed the
  48. sources and had run a make already which had barfed partway through the
  49. compilation. I later traced the problem down to the Makefile in the 'fs'
  50. directory which, I think, may have a small error in it. More on that in a sec.
  51. Anyway, after the barf, I make a small change to the aforementioned Makefile
  52. and tried to run make again (from /usr/src/linux) and experienced the
  53. error #139 that you mention, along with the core dump. Previous experience has
  54. taught me that when weird things like that start happening, it's time to
  55. reboot (don't ask me to justify this -- it's a Murphy's Law kind of thing). 
  56. So I rebooted, and the problem promptly vanished. Strange eh?
  57.  
  58. Now, as for the Makefile in the /usr/src/linux/fs directory, a friend of mine
  59. and I were trying to fix the 'isofs' error that seems to crop up when you tell
  60. Configure that you don't want SCSI and you don't want isofs CD-ROM support. The
  61. trouble is that while SCSI support is excluded correctly, CD-ROM support isn't.
  62. Even though you may have answered 'no' to the 'Do you want CD-ROM' support
  63. query in the Configure script 'make dep' tries to compute the dependencies for
  64. it anyway and ends up failing when it gets to inode.c in the isofs directory.
  65. My friend and I think the trouble is in the Makefile. The targets 'depend' and 
  66. 'clean' both contain the following:
  67.  
  68. for i in $(SUBDIRS); do [etc... etc... etc...]
  69.  
  70. Seems to us though that SUBDIRS should actually be FS_SUBDIRS. I know it's
  71. supposed to be bad karma to alter the lesser Makefiles, but this seems to have
  72. done the trick.
  73.  
  74. Also, for anyone who cares, the amount of time needed to compile the 0.99 
  75. kernel on my puny system, which is a 16 Mhz 386SX with *no* math co-processor 
  76. and 4 megs of RAM is about an hour. This is without the SCSI support, since I
  77. have an IDE drive. This is the first time I've compiled the kernel for
  78. anything, so I'm mildly impressed with myself. And, naturally, I'm incredibly
  79. impressed with Linux.
  80.  
  81. -Bill
  82.  
  83. ghod@drycas.club.cc.cmu.edu  or  ghod@drycas.bitnet
  84.