From mboxrd@z Thu Jan 1 00:00:00 1970 From: "Thomas A Condarcure" To: gcc-help@gcc.gnu.org Subject: Re: Problem Installing gcc 2.95.2 Date: Fri, 02 Mar 2001 16:15:00 -0000 Message-id: X-SW-Source: 2001-03/msg00024.html ---------------------- Forwarded by Thomas A Condarcure/RWS/Raytheon/US on 03/02/2001 05:15 PM --------------------------- From: Thomas A Condarcure on 03/02/2001 05:10 PM To: gcc-help@gcc-gnu.org cc: Subject: Re: Problem Installing gcc 2.95.2 To give a little more information on the problem I am having installing gcc 2.95.2 on a PowerPC machine running LynxOS 3.1.0a: I unpacked the 'tar' file from the directory /usr/gccsrc, and it created the directory /usr/gccsrc/gcc-2.95.2 for the unpacked files. I did the configure and make scripts from the directory /usr/gccsrc/gccobj. I added an entry in the case statement of the 'config.guess' file so that the configure script would substitute rs6000-unknown-lynxos for powerpc-unknown-lynxos and ignore the different version (2.* vs 3.*) when doing the configuration. When I tried this originally, I used parentheses instead of braces around a parameter in the list. This allowed the configure script to run successfully. I followed this with 'make bootstrap'. This ran for a little while but ran into a problem with the following error messages on the screen: In file included from /usr/lib/gcc-lib/ppc-xcoff-lynxos/2.9-gnupro-98r2/../../../../include /sys/wait.h : 18, from /usr/gccsrc/gcc-2.95.2/gcc/system.h : 237 from /usr/gccsrc/gcc-2.95.2/gcc/cccp.c : 23 /usr/gccsrc/gcc-2.95.2/gcc/resource.h(38) : error : parse error before 'HARD_REG_SET' /usr/gccsrc/gcc-2.95.2/gcc/resource.h(38) : warning : no semicolon at end of struct or union /usr/gccsrc/gcc-2.95.2/gcc/resource.h(42) : error : parse error before 'struct' /usr/gccsrc/gcc-2.95.2/gcc/resource.h(43) : error : parse error before 'struct' /usr/gccsrc/gcc-2.95.2/gcc/resource.h(45) : error : parse error before 'struct' /usr/gccsrc/gcc-2.95.2/gcc/resource.h(46) : warning : parameter names (without types) in function declaration /usr/gccsrc/gcc-2.95.2/gcc/resource.h(47) : warning : parameter names (without types) in function declaration /usr/gccsrc/gcc-2.95.2/gcc/resource.h(48) : error : parse error before 'int' /usr/gccsrc/gcc-2.95.2/gcc/resource.h(49) : warning : parameter names (without types) in function declaration /usr/gccsrc/gcc-2.95.2/gcc/resource.h(48) : error : parse error before 'find_free_register' /usr/gccsrc/gcc-2.95.2/gcc/resource.h(48) : error : parse error before 'char' /usr/gccsrc/gcc-2.95.2/gcc/resource.h(49) : warning : data definition has no type or storage class In file included from /usr/gccsrc/gcc-2.95.2/gcc/system.h : 237, from /usr/gccsrc/gcc-2.95.2/gcc/cccp.c : 23: /usr/lib/gcc-lib/ppc-xcoff-lynxos/2.9-gnupro-98r2/../../../../include/sys/wait.h(102) : warning : 'struct rusage' declared inside parameter list /usr/lib/gcc-lib/ppc-xcoff-lynxos/2.9-gnupro-98r2/../../../../include/sys/wait.h(102) : warning : its scope is only this definition or declaration, /usr/lib/gcc-lib/ppc-xcoff-lynxos/2.9-gnupro-98r2/../../../../include/sys/wait.h(102) : warning : which is probably not what you want. make[2]: *** [cccp.o] Error1 make[1]: *** [bootstrap] Error2 make: *** [bootstrap] Error2 At this point, the make script ends. I think the first error in resource.h(38) is due to no include file giving any definition for HARD_REG_SET, which causes the errors in lines 42, 43 and 45. Line 46, 47 and 49 are of the form: extern void clear_hashed_info_for_insn PROTO((rtx)); a function declatration with a PROTO macro. The include file 'resource.h' is from the gcc distribution. I don't know what the other errors are about. My machine has already has version 2.9 of gcc running on it, and it came from the LynxOS vendor, however it was not created with the fortran compiler installed, which is what I need. Does anyone have an idea why the 'make bootstrap' is crashing? Do I need to modify some of the distribution files for my platform? Any help will be greatly appreciated. Tom Condarcure Raytheon Systems Co. P.O. Box 11337 Bldg 805 MS F4 Tucson, AZ 85734 email: tacondarcure@west.raytheon.com