home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #31 / NN_1992_31.iso / spool / alt / lucidem / help / 826 < prev    next >
Encoding:
Text File  |  1992-12-29  |  2.1 KB  |  47 lines

  1. Newsgroups: alt.lucid-emacs.help
  2. Path: sparky!uunet!news.mentorg.com!scherzo!bcohen
  3. From: bcohen@scherzo.NoSubdomain.NoDomain (Bruce Cohen)
  4. Subject: Building lucid emacs with acc on Sun?
  5. Sender: news@news.mentorg.com (News User)
  6. Message-ID: <1992Dec29.164312.10629@news.mentorg.com>
  7. Date: Tue, 29 Dec 1992 16:43:12 GMT
  8. Nntp-Posting-Host: scherzo.mentorg.com
  9. Organization: Mentor Graphics Corporation
  10. Keywords: 
  11. Followup-To: 
  12. Lines: 33
  13.  
  14. I'm trying to bring up lemacs on a sun sparcstation under sunos 4.1.2
  15. using acc, the sun Ansi C compiler, since I have that installed and
  16. don't have immediate access to gcc, and don't want to spend the time to
  17. install *that* as well, if I don't have to.
  18.  
  19. However ... I get a whole bunch of warning messages that indicate that
  20. acc and gcc don't agree on the definition of Ansi C very well (and my
  21. book on the standard, the MicroSoft "Standard C Programmer's Reference"
  22. doesn't go into enough detail to tell me which one is right or whether
  23. I've fallen into one of those gray areas).  I'm getting error messages
  24. like:
  25.  
  26. "xdisp.c", line 1871: warning: improper pointer/integer combination: op "<"
  27. "emacs.c", line 226: warning: semantics of ">>" change in ANSI C; use explicit cast
  28.  
  29. and a bunch of others I've already cleaned up, most of them involving
  30. macros from lisp.h which break or bend the type system (assigning a 1 shifted
  31. left 31 positions to a signed integer, for instance, is not a Nice Thing To
  32. Do according to acc).
  33.  
  34. On top of that, the executable crashes on startup with a memory error:
  35. Fatal error (11).Memory fault(coredump)
  36.  while trying to initialize the environment variable alist (it appears
  37. to have a bogus string free list, but I still don't know why).
  38.  
  39. Has anyone out there tried building with acc and have knowledge of these
  40. problems, or knows enough about the vagaries of "Ansi C compliant"
  41. compilers to tell me the warnings are OK?  And if the crash sounds
  42. familiar, please contact me.
  43. ------------------------------------------------------------------------
  44. Bruce Cohen, Mentor Graphics Corpooration | email: Bruce_Cohen@mentorg.com
  45. 8005 SW Boeckman Road                     | phone: (503)685-1808
  46. Wilsonville, OR 97070-7777                |
  47.