home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1993 #1 / NN_1993_1.iso / spool / comp / sys / sgi / bugs / 105 < prev    next >
Encoding:
Internet Message Format  |  1993-01-12  |  2.3 KB

  1. Path: sparky!uunet!zaphod.mps.ohio-state.edu!saimiri.primate.wisc.edu!ames!olivea!sgigate!sgi!quasar.mti.sgi.com!davea
  2. From: davea@quasar.mti.sgi.com (David B.Anderson)
  3. Newsgroups: comp.sys.sgi.bugs
  4. Subject: Re: bug in syms.h (building SPIM)?
  5. Message-ID: <upo9kv4@sgi.sgi.com>
  6. Date: 12 Jan 93 17:12:09 GMT
  7. Sender: davea@quasar.mti.sgi.com
  8. Organization: Silicon Graphics, Inc.  Mountain View, CA
  9. Lines: 59
  10.  
  11. In article <1993Jan12.131934.20309@shannon.ee.wits.ac.za> philip@concave.cs.wits.ac.za (Philip Machanick) writes:
  12. >I tried compiling a public domain MIPS architecture (SPIM), and ran
  13. >into several problems. Here is one that appears to be a bug in an
  14. >SGI header file, syms.h (4.0.5F; in 4.0.1, the "__mips" is replaced by
  15. >"mips"):
  16. >
  17. >There is a line
  18. >
  19. >#if __mips
  20. >
  21. >followed a few lines down by
  22. >
  23. >#else  /* !defined(__mips) */
  24. >
  25. >Surely "#if X" is not the same as "#if defined(X)" - so either the
  26. >"#if" or the comment is wrong.
  27.  
  28. This appears in several files. Ugh.  I fixed this just now
  29. for the next major release. Thanks for noticing the (minor) ugliness..
  30.  
  31. The compiler driver does -D__mips, which has the same meaning as
  32. -D__mips=1.  Since the value of __mips is 1, the result is the same, so
  33. you need not change anything (unless you wish to).  Changed to
  34. #ifdef __mips for the next major release for readability.
  35.  
  36. >More important - between the "#if" and the "#else" is
  37. >
  38. >#include "cmplrs/stsupport.h"
  39. >
  40. >which header file doesn't exist (nor does the directory cmplrs).
  41.  
  42. cmplrs headers are not installed by default, but they are on the
  43. compilers installation media for the machine.
  44.  
  45. Install
  46.         dev.cmplrs_hdr.internal
  47. Or if the compilers on that machine came from a 'maint' tape install:
  48.         maint_dev.dev_cmplrs_hdr.internal
  49.  
  50. Either of those will get you cmplrs/stsupport.h
  51.  
  52. Use
  53.         versions -I
  54. to see what is currently installed.
  55.  
  56.  
  57. >Any hints on how to work around this would be welcome. I would rather
  58. >not patch the header file unless reassured that this won't break
  59. >anything else.
  60.  
  61. Fixing the .h files won't break anything.
  62.  
  63. >For that matter if anyone has built SPIM or any other architecture
  64. >simulator it would be useful for a course I am giving soon.
  65.  
  66. Someone else will have to deal with this one.
  67.  
  68. Regards,
  69. [ David B. Anderson             (415)390-4263             davea@sgi.com ]
  70.