[comp.sys.next] g++ 1.39 installation. help

scott@erick.gac.edu (Scott Hess) (03/08/91)

In article <CNH5730.91Mar7215602@maraba.tamu.edu> cnh5730@maraba.tamu.edu writes:
   the following is in the README distributed with the g++-1.39.0.tar.Z:

   >*Very Important* [For non-GAS users]: If you do not use GAS, GNU C++
   >may need to use its own crt0.c, borrowed and modified from GNU Emacs.
   >You should verify that the crt0.c provided is fed suitable definitions
   >for correct compilation.  If you have GNU Emacs, and you are not
   >compiling to a SUN, consult your local GNU Emacs guru, to see what
   >sort of #defines are required for proper operation.

   Since the latest GAS distribution does not support the '040, obviously
   I will not be installing or using GAS.

You might want to try it, anyhow.  The '040 really isn't all that
different from the '030 - for instance, not so different as an
'030 compared to an '020 or an '020 compared to 68000/10/8.  Unless
you're using floating point (which I very much doubt a crt0.c file
would use :-), there would probably be no problems at all with using
gas, at least for a couple files.

Then again, don't be so sure that /bin/as isn't gas.  Though I can't
check without an OD-capable system at hand, I believe that NeXT
distributed as source with the other GNU source in 1.0.  Thus, I
would tend to believe that as is gas by another name.  Try it!

The main problems (of course) with using a non-NeXT gas center
around generating the right .o format . . . important, if you
wish to link with anything that's put out by NeXT, or don't
want to have to atom everything you create, or don't want to
have to port the gnu loader, too.

Later,
--
scott hess                      scott@gac.edu
Independent NeXT Developer	GAC Undergrad
<I still speak for nobody>
"Tried anarchy, once.  Found it had too many constraints . . ."
"I smoke the nose Lucifer . . . Banana, banana."

finn@theory.tn.cornell.edu (Lee Samuel Finn) (03/08/91)

In article <CNH5730.91Mar7215602@maraba.tamu.edu> cnh5730@maraba.tamu.edu writes:
>the following is in the README distributed with the g++-1.39.0.tar.Z:
>
>>*Very Important* [For non-GAS users]: If you do not use GAS, GNU C++
>>may need to use its own crt0.c, borrowed and modified from GNU Emacs.
>>You should verify that the crt0.c provided is fed suitable definitions
>>for correct compilation.  If you have GNU Emacs, and you are not
>>compiling to a SUN, consult your local GNU Emacs guru, to see what
>>sort of #defines are required for proper operation.
>
>Since the latest GAS distribution does not support the '040, obviously
>I will not be installing or using GAS.
>
>Can anyone enlighten me as to the best way to proceed with this crt0.c
>thing?
>
>thanks in advance.
>
>	chuck herrick <cnh5730@maraba.tamu.edu>

Can someone enlighten _me_ on why compiling gas for an '030 won't work? 
I thought the '040 was backwards compatible with the '030; ie., any 
'030 binary would work on the '040.

pclark@SRC.Honeywell.COM (Peter Clark) (03/09/91)

>Then again, don't be so sure that /bin/as isn't gas.  Though I can't
>check without an OD-capable system at hand, I believe that NeXT
>distributed as source with the other GNU source in 1.0.  Thus, I
>would tend to believe that as is gas by another name.  Try it!

My hunch is that /bin/as on the next is GAS 1.28, modified by next. Try:

localhost% strings /bin/as | grep as

For those of you without the spirit to try it for yourself, here's the last
few lines of the output. Note that the assembler knows about obj-c, and I'd
bet GAS straight off prep.ai.mit.edu doesn't.

objc_class
objc_meta_class
objc_class_vars
Bignum assumed to be binary bit-pattern
Internal Error:  Can't hash %s: %s
Gnu assembler version 1.28 (I guess.)

	Pete

ddj@zardoz.club.cc.cmu.edu (Doug DeJulio) (03/09/91)

In article <SCOTT.91Mar8082035@erick.gac.edu> scott@erick.gac.edu (Scott Hess) writes:
>Then again, don't be so sure that /bin/as isn't gas.

This is a transcript of something I just did.  I didn't edit it at
all, really.  Folks with 2.0 systems can verify this.

Script started on Fri Mar  8 19:53:29 1991
zardoz 1 % as -v
Gnu assembler version 1.28 (I guess.)
^Dzardoz 2 % 

script done on Fri Mar  8 19:53:37 1991

-- 
DdJ

rca@cs.brown.edu (Ronald C.F. Antony) (03/10/91)

In article <SCOTT.91Mar8082035@erick.gac.edu> scott@erick.gac.edu (Scott Hess) writes:
#In article <CNH5730.91Mar7215602@maraba.tamu.edu> cnh5730@maraba.tamu.edu writes:
#   the following is in the README distributed with the g++-1.39.0.tar.Z:
#
#   #*Very Important* [For non-GAS users]: If you do not use GAS, GNU C++
#   #may need to use its own crt0.c, borrowed and modified from GNU Emacs.
#   #You should verify that the crt0.c provided is fed suitable definitions
#   #for correct compilation.  If you have GNU Emacs, and you are not
#   #compiling to a SUN, consult your local GNU Emacs guru, to see what
#   #sort of #defines are required for proper operation.
#
#   Since the latest GAS distribution does not support the '040, obviously
#   I will not be installing or using GAS.
#
[...]
#Then again, don't be so sure that /bin/as isn't gas.  Though I can't
#check without an OD-capable system at hand, I believe that NeXT
#distributed as source with the other GNU source in 1.0.  Thus, I
#would tend to believe that as is gas by another name.  Try it!

Typing:

% as -v

yields:

Gnu assembler version 1.28 (I guess.)

The "(I guess.)" is part of the output and was not added by me...

Ronald
------------------------------------------------------------------------------
"The reasonable man adapts himself to the world; the unreasonable one persists
in trying to adapt the world to himself. Therefore all progress depends on the
unreasonable man."   G.B. Shaw   |  rca@cs.brown.edu or antony@browncog.bitnet