home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #27 / NN_1992_27.iso / spool / gnu / ghostscr / bug / 1239 < prev    next >
Encoding:
Text File  |  1992-11-24  |  4.4 KB  |  101 lines

  1. Newsgroups: gnu.ghostscript.bug
  2. Path: sparky!uunet!cis.ohio-state.edu!pluto.logica.co.uk!gerry
  3. From: gerry@pluto.logica.co.uk (Gerry Magennis)
  4. Subject: Re: Compile error building GhostScript 2.5.2 on MIPS DEC OSF/1
  5. Message-ID: <009640DC.37BCC7E0.9802@logica.co.uk>
  6. Sender: gnulists@ai.mit.edu
  7. Reply-To: gerry@pluto.logica.co.uk
  8. Organization: Logica Industry Ltd, UK
  9. References: <RPB.92Nov20102930@brain.psy.ox.ac.uk>
  10. Distribution: gnu
  11. Date: Mon, 23 Nov 1992 17:21:37 GMT
  12. Approved: bug-ghostscript@prep.ai.mit.edu
  13. Lines: 86
  14.  
  15. In article <RPB.92Nov20102930@brain.psy.ox.ac.uk>, rpb@psy.ox.ac.UK
  16. (Ray Bellis) writes:
  17.  
  18. >I've been trying to build gs252 on a DECstation 5000/120 (MIPS)
  19. >running DEC/OSF 1 (v1.0).  I'm using the unix-cc makefile as the
  20. >DEC ANSI compiler is too verbose and strict to compile the software
  21. >at all.  Anyway, the problem is that the compiler won't compile
  22.  
  23. It's bad, isn't it :-)
  24.  
  25. >gdevmem1.c, with the compiler itself failing with a segmentation
  26. >violation:
  27. >
  28. >% cc -v -c gdevmem1.c
  29. >/usr/lib/cmplrs/cc/cfe -DLANGUAGE_C -Dunix -Dmips -Dhost_mips \
  30. >-D__LANGUAGE_C__ -D__unix__ -D__mips__ -D__host_mips__ -D_CFE \
  31. >-D__osf__ -D__DSO__ -DSYSTYPE_BSD -D_SYSTYPE_BSD -DMIPSEL _D__MIPSEL__ \
  32. >-I/usr/include2.20 -Xv -EL -Xg0 -O1 -std0 -XS/tmp/ctmst013103 \
  33. >gdevmem1.c > /tmp/ctmf013103
  34. >cfe: Fatal: gdevmem1.c: Segmentation violation
  35. >
  36. >Does anyone know what might cause this, and how it might be fixed?
  37. >
  38. >Thanks,
  39. >
  40. >Ray.
  41. >
  42. >
  43. >--
  44. >------------------------------------------------------------------------------
  45. >R. P. Bellis                E-Mail:    <rpb@psy.ox.ac.uk>
  46. >Dept. of Experimental Psychology    Whois:    (RB83)
  47. >University of Oxford            Tel:    +44 865 271419
  48. >South Parks Road            Fax:    +44 865 310447
  49. >Oxford OX1 3UD
  50. >------------------------------------------------------------------------------
  51.  
  52. I've been waiting for this one to come up.  I had the problem about 3 weeks
  53. ago, composed a post for this group with the above sort of info, went to post
  54. it and my NNTP server had timed out.  I then spent literally ages trying all
  55. the compiler debug switches to get some/any kind of useful output.  After
  56. greping through .5 Mbytes of compiler parser/syntax analyser output (oh what
  57. a hero I hear you cry), I still hadn't a clue.  In a fit of inspiration I read
  58. the code and noticed the comments about compilers having problems with casts
  59. for the COPY_FUNCTION emunerated type.  I've never programed in C before so
  60. the following fix is a pure hack, no flames please.
  61.  
  62. BTW, I went to post this code fragment after I'd found the fix but my NNTP
  63. server timed-out and lost the post again so I gave up in despair, lets hope
  64. this one get through!
  65.  
  66. In the switch statement at the end of gdevmem1.c, replace the copy_left
  67. and copy_right emunerations with their actual numeric values (4 and 0).
  68.  
  69. ------------ 515 ---------------------------------- 515 -----------------------
  70.    case copy_or + copy_left:        |    case copy_or + 4 /* + copy_left */:
  71.      prefetch_left; goto uor;       |      prefetch_left; goto uor;
  72.    case copy_or + copy_right:       |    case copy_or /* + copy_right */:
  73. ------------ 521 ---------------------------------- 521 -----------------------
  74.    case copy_store + copy_left:     |    case copy_store + 4 /* + copy_left */:
  75.      prefetch_left; goto ustore;    |      prefetch_left; goto ustore;
  76.    case copy_store + copy_right:    |    case copy_store /* + copy_right */:
  77. ------------ 527 ---------------------------------- 527 -----------------------
  78.    case copy_and + copy_left:       |    case copy_and + 4 /* + copy_left */:
  79.      prefetch_left; goto uand;      |      prefetch_left; goto uand;
  80.    case copy_and + copy_right:      |    case copy_and /* + copy_right */:
  81. -------------------------------------------------------------------------------
  82.  
  83. Number of difference sections found: 3
  84. Number of difference records found: 9
  85.  
  86.  
  87. The problem has been logged with DEC, its a brain dead compiler.  Funnily
  88. enough this all compiles fine on Alpha OSF/1 :-) but then I get all those nasty
  89. run time segmentation violations ... any kind soul out there got fixes for this
  90. one?
  91.  
  92. -Gerry
  93.  
  94. -------------------------------------------------------------------------------
  95. Gerard Magennis | Logica Industry Ltd, London UK | Internet: gerry@logica.co.uk
  96.  
  97.      "Born to drive, learned to walk later" - Californian bumper sticker
  98.      "Reality is a rather negotiable state" - Alan Rudolph
  99.      (now if some kind soul would only loan me a video of Choose Me ...)
  100.  
  101.