tuck@jason.cs.unc.edu (Russ Tuck) (03/02/90)
I can't get gcc-1.37 to compile on a Sun-4 running SunOS 4.0.3. I can get 1.37.1 to compile, but that doesn't help me because g++-1.37.0- must be built with gcc-1.37. And it's g++-1.37.0- (aka "xtar") that I really need (desperately!) to get running. First I tried compiling gcc-1.37 using gcc-1.37.1. Here are the compile errors I got from stmt.c: gcc -c -g -I. -I.. -I../config ../stmt.c ../stmt.c: In function expand_null_return_1: ../stmt.c:1437: `TARGET_EPILOGUE' undeclared (first use this function) ../stmt.c:1437: (Each undeclared identifier is reported only once ../stmt.c:1437: for each function it appears in.) ../stmt.c: In function expand_return: ../stmt.c:1526: `TARGET_EPILOGUE' undeclared (first use this function) ../stmt.c: In function expand_function_start: ../stmt.c:4678: `TARGET_EPILOGUE' undeclared (first use this function) ../stmt.c: In function expand_function_end: ../stmt.c:4916: `TARGET_EPILOGUE' undeclared (first use this function) (Note that TARGET_EPILOGUE doesn't appear on these lines, but the identifiers that do appear may be macros.) Then I tried compiling gcc-1.37 with the Sun cc. Here are the link errors I got: cc -g -o gccnew gcc.o version.o obstack.o ld: Undefined symbol _alloca This happens before the insn-*.h files are built, so I can't see what "cc" thinks of stmt.c. This looks like a "classic" Sun-4 problem I've heard about, something about a built-in alloca with a different name, but I don't know the solution. I'd be real surprised if gcc-1.37 didn't compile cleanly on a Sun-4, since I've had to trouble building previous versions for it. So if you can tell me what I'm doing wrong, or what to fix, please do! Thanks in advance for any help. Russ -- Russ Tuck tuck@cs.unc.edu UNC Dept. of Computer Science ...!mcnc!unc!tuck CB 3175, Sitterson Hall Chapel Hill, NC 27599-3175, USA (919) 962-1755 or 962-1700