[comp.unix.aux] GCC under A/UX

john@wizard.UUCP (John Danner) (06/03/89)

I downloaded the gcc binaries and applied the A/UX patches to my gcc sources
including both gcc-1.35.aux.diffs and gcc-1.35.aux.patch.1.  Unfortunately,
I am getting the following error on the first source file I try to compile:

make CC=gcc install
        gcc -c -g  -DAUX_ASM   -I./config c-parse.tab.c
Assembler: /tmp/cca00589.s
        aline 13915     : Warning: Table overflow: some optimizations lost (Labels)
        aline 8707      : Symbol Table Stack Overflow
*** Error code 1

Stop.

Any suggestions?

I want to generate some of the object files because they are needed by g++.
Is the person within Apple who successfully created the gcc binaries working
on compiling g++?

John Danner       Tandem Computers, Inc.
Net: pacbell!tandem!wizard!john@decwrl.dec.com
UUCP:...!decwrl!pacbell!tandem!wizard!john

rmtodd@uokmax.UUCP (Richard Michael Todd) (06/05/89)

In article <422@wizard.UUCP> john@wizard.UUCP (John Danner) writes:
>make CC=gcc install
>        gcc -c -g  -DAUX_ASM   -I./config c-parse.tab.c
>Assembler: /tmp/cca00589.s
>        aline 13915     : Warning: Table overflow: some optimizations lost (Labels)
>        aline 8707      : Symbol Table Stack Overflow
  This is because the A/UX assembler is as braindead as the A/UX compiler.
(Maybe someday the AT&T chaps will learn how to use malloc and not use
fixed-size tables.  Maybe.)  Compiling with -g causes the assembler to
overflow its tables, hence the "symbol table stack" overflow.  As the old
joke goes, "It hurts when I do that" "Don't do that!".  Taking out the -g
flag will allow you to compile successfully.  (The "Warning: Table overflow"
messages don't appear to affect anything.) 
-- 
Richard Todd   rmtodd@chinet.chi.il.us  or  rmtodd@uokmax.ecn.uoknor.edu  
                                    aka     ...!sun!texsun!uokmax!rmtodd
"Bible-punching heavyweight evangelistic boxing kangaroos..."

dwb@sticks.apple.com (David W. Berry) (06/06/89)

In article <422@wizard.UUCP> john@wizard.UUCP (John Danner) writes:
>I downloaded the gcc binaries and applied the A/UX patches to my gcc sources
>including both gcc-1.35.aux.diffs and gcc-1.35.aux.patch.1.  Unfortunately,
>I am getting the following error on the first source file I try to compile:
>
>make CC=gcc install
>        gcc -c -g  -DAUX_ASM   -I./config c-parse.tab.c
>Assembler: /tmp/cca00589.s
>        aline 13915     : Warning: Table overflow: some optimizations lost (Labels)
>        aline 8707      : Symbol Table Stack Overflow
>*** Error code 1
>
>Stop.
>
>Any suggestions?
	Unfortunately, gcc is too big for the assembler to cope with if
compiled with the -g option.  Try changing CFLAGS to not include -g.

>
>I want to generate some of the object files because they are needed by g++.
>Is the person within Apple who successfully created the gcc binaries working
>on compiling g++?
	Well, I've got it to compile, but haven't had time to do more than
that.  If somebody else is interested I can give them the changes necessary
to make it compile.  **THIS IS NOT ENOUGH TO MAKE IT WORK**  Unfortunately
the coff'izing changes for g++ require the assembler to understand the
.segment operator and the A/UX assembler doesn't.  Somebody will have to
cobble together something along the lines of the post loader or some such.
Opinions:  MINE, ALL MINE! (greedy evil chuckle)

David W. Berry		(A/UX Toolbox Engineer)
dwb@apple.com		973-5168@408.MaBell		AppleLink: berry1