Xref: utzoo comp.sys.apollo:4586 gnu.gcc:1385 Path: utzoo!utgpu!jarvis.csri.toronto.edu!cs.utexas.edu!swrinde!zaphod.mps.ohio-state.edu!think!snorkelwacker!bloom-beacon!eru!luth!sunic!mcsun!tuvie!inst182 From: inst182@tuvie (Inst.f.Techn.Informatik) Newsgroups: comp.sys.apollo,gnu.gcc Subject: Re: GCC 1.37 for the Apollo Message-ID: <1140@tuvie> Date: 23 Feb 90 12:04:50 GMT References: <48c776b3.20b6d@apollo.HP.COM> Reply-To: inst182@tuvie.UUCP (Inst.f.Techn.Informatik) Followup-To: comp.sys.apollo Organization: Technical University of Vienna, EDP-Center Lines: 53 In article <48c776b3.20b6d@apollo.HP.COM> vasta@apollo.HP.COM (John Vasta) writes: >The changes required to get the GNU C compiler running on >Apollo 68K platforms are available via anonymous ftp from >labrea.stanford.edu in the form of a compressed tar file >named "/pub/gnu/apollo-gcc-1.37.tar.Z". >The size of the file is 84145 bytes. > [...] >John Vasta Hewlett-Packard Apollo Systems Division >vasta@apollo.hp.com M.S. CHA-01-LT >(508) 256-6600 x6362 300 Apollo Drive, Chelmsford, MA 01824 >UUCP: {decwrl!decvax, mit-eddie, attunix}!apollo!vasta I got the tar file from stanford and it compiled ok. Bootstrapping however did not work: [michael:95] make gcc -O -fstrength-reduce -I. -I. -I./config -DSTANDARD_STARTFILE_PREFIX=\"/usr/local/lib/\" -DSTANDARD_EXEC_PREFIX=\"/usr/local/lib/gcc-\" -c `echo ./gcc.c | sed 's,^\./,,'` In file included from gcc.c:131: /usr/include/stdio.h:30: parse error before `#' /usr/include/stdio.h:32: parse error before `#' gcc.c: In function main: gcc.c:1471: warning: argument passing between incompatible pointer types gcc.c:1473: warning: argument passing between incompatible pointer types gcc.c:1475: warning: argument passing between incompatible pointer types *** Exit 1 Stop. and in /usr/include/stdio.h is: extern struct _iobuf { unsigned char *_ptr #attribute[aligned(1)]; /* line 30 */ short _cnt; unsigned char *_base #attribute[aligned(1)]; short _flag; short _file; } _iob[]; Is it save to just copy stdio.h to /usr/local/lib/gcc-include/stdio.h and remove the offending `#attribute's??? Thanx in advance, mike ____ ____ / / / / / Michael K. Gschwind mike@vlsivie.at / / / / / Institute for VLSI-Design mike@vlsivie.uucp ---/ Technical University, Vienna e182202@awituw01.bitnet / Voice: (++43).1.58801 8151 ___/ Fax: (++43).1.569697