Path: utzoo!utgpu!news-server.csri.toronto.edu!cs.utexas.edu!samsung!think.com!paperboy!meissner From: meissner@osf.org (Michael Meissner) Newsgroups: comp.sys.m88k Subject: Re: Tektronix XD8810 and gcc Message-ID: Date: 21 Nov 90 17:36:46 GMT References: <621@ecgcurly.UUCP> <9511@orca.wv.tek.com> Sender: news@OSF.ORG Organization: Open Software Foundation Lines: 43 In-reply-to: andrew@frip.WV.TEK.COM's message of 13 Nov 90 16:50:17 GMT In article <9511@orca.wv.tek.com> andrew@frip.WV.TEK.COM (Andrew Klossner) writes: | Roy Kern writes: | | "Some engineers over at Tektronix mentioned to me that they had | downloaded gcc (gnu c compiler) from Data General and were | using it on their 88's. Well I too have downloaded it from DG, | but it doesn't like my stdlib.h file. Is there anyone there at | tek that uses gcc and can tell me what I'm doing wrong, or what | I haven't set up correctly?." | | I'm the engineer that did this, and I discussed it with Roy by | telephone. Briefly, I bypassed the Green Hills compiler entirely by | building DG's compiler on a 68k box running GCC-68k. This created a | cross-compiler. I ran the compiler source through the cross-compiler | to get assembly source, which I moved to an 88k system and built with | the standard Motorola assembler and loader. | | As a result, I didn't have to deal with GH/GNU language | inconsistencies, and had no header file problems. I dimly remember compiling GNU C with Greenhills early in the porting stage. Maybe something got 'fixed' in later releases, or the Tek version of the Greenhills compiler differed from the version that ran on AViiON's. Given that stdlib.h is the problem, I suspect it's in compiling symout.c (symout.c is trying to use offsetof, and the offsetof macro in stdlib.h works for GCC and PCC derived compilers). If stdlib.h was shipped in /usr/include that Greenhills likes, just add -I/usr/include to the CFLAGS. If not, ifdef the usage in symout.c. This is ok, since symout.c supplies the deprecaded gdb internal format debug information (-gg) that won't be used. | Kudos to Michael Meissner (now at OSF) and Tom Wood at Data General, | who did a superlative job on this compiler, and who didn't even think | about stonewalling when a competitor asked for the source code. Careful, I might need a new size in hats, :-). -- Michael Meissner email: meissner@osf.org phone: 617-621-8861 Open Software Foundation, 11 Cambridge Center, Cambridge, MA, 02142 Considering the flames and intolerance, shouldn't USENET be spelled ABUSENET?