Relay-Version: version B 2.10 5/3/83; site utzoo.UUCP Posting-Version: version B 2.10.1 6/24/83; site mit-eddie.UUCP Path: utzoo!watmath!clyde!burl!ulysses!allegra!mit-eddie!don@haigha.ARPA From: don@haigha.ARPA Newsgroups: net.emacs Subject: Gnu Emacs on the Sun-2 Message-ID: <4221@mit-eddie.UUCP> Date: Fri, 10-May-85 17:03:52 EDT Article-I.D.: mit-eddi.4221 Posted: Fri May 10 17:03:52 1985 Date-Received: Sat, 11-May-85 04:20:13 EDT Sender: daemon@mit-eddi.UUCP Organization: MIT, Cambridge, MA Lines: 37 From: don@haigha.ARPA (Don Hopkins) I haven't been able to get it to compile. Running make in the src directory outputs: cc -O -Demacs -DDisplayDebug -c dispnew.c "dispnew.c", line 457: compiler error: expression causes compiler loop: try simplifying *** Error code 1 Stop. The offending code goes: set_window_height (XWINDOW (minibuf_window)->prev, newlength - 1); I made a local (non register) variable to hold XWINDOW (minibuf_window), and changed the code to use it. That line compiles, but there are many, many more lines that need to be fixed in the same way. I spent several hours going through and fixing these... It also bombs on some of the other Xxxxxx() macros. They're all defined as #define Xxxxxx(a) ((struct xxxxx *) (a).u.val) From the information that I have been able to gather, the reason that these don't work has to do with a C compiler bug that generates the wrong code for register pointers to bit fields in structures. There are several lines like #ifndef SUN register #endif SUN struct window *w = XWINDOW (selected_window); #ifndef SUN in there already. Evidently, there are a lot more needed. I have been told that Gnumacs compiles on Suns. Does this mean the compiler I am using is an older, broken version? I'm running Sun release 1.3 software. -Don