[Summary (second posting)] compiling gcc on v5.1

From: Dieter Meinert <dieter.meinert_at_aip.de>
Date: Fri, 27 Apr 2001 14:30:36 +0200 (MEST)

-----BEGIN PGP SIGNED MESSAGE-----


Hi fellow managers, apparently my first posting of this summary
didn't make it to the list, and I had been unsubscribed somehow
and didn't realize it until recently.

So here it gos again:

Thanks to J.A. Gutierrez <spd_at_gtc1.cps.unizar.es> and
          Pavel Ganelin <ganelin_at_mail.com>
               (-> Brian Schau <brian.schau_at_compaq.com>)
          
J.A. Gutierrez suggested:
- - -------------------------------------------------------
1. Edit ~/gcc-2.95.2/gcc/configure
   Look for the lines that read:

     *-*-osf4*)
        
        change to

     *-*-osf[45]*)

   
        also:
     *-*-osf4.0[b-z] | *-*-osf4.[1-9]*| *-*-osf5*)


2.

AS="/usr/bin/as -oldas" \
../gcc-2.95.2/configure --prefix=/usr/local/gcc \
- - --enable-threads

make
make install
- - --------------------------------------------------------
I already had figured the first part when I wrote my request, and
the definition of the Environment variable AS did not work for
me, sorry!

Pavel Ganelin sent me the following URL:
http://groups.google.com/groups?q=osf+gcc&hl=en&lr=&safe=off&rnum=2&seld=953149436&ic=1

this contained a summary by Brian Schau <Brian.Schau_at_compaq.com>
which also specified the first part mentioned above, but had a
different solution for the second part:

- - ---------------------------------------------------------------
2. Then create a shell script called "as" in /sbin that contains:

        #!/bin/sh
        /usr/bin/as -oldas $*

   Make sure this is in your PATH ahead of /usr/bin/as
- - ---------------------------------------------------------------

This did the trick. Looks like somewhere in the gcc tree
configure cannot get its hands on as.


- - ------------------------------Original Message--------------------
Hi fellow-managers,

I need gcc/g++/g77 for several of our s/w packages, and I find
the compilation deliverd with the OS CD pack does not work when
it comes to g++, at least:

 It tells me something about an "Invalid .stabs/.stabn directive"
 anytime the compiler is called on a program.

So I try to compile gcc by myself, starting off with the native
cc, and already in stage1 compilation I get similar errors as
soon as xgcc ist called:

 mips-tfile, /tmp/ccg7bM0z.s:8 Invalid .stabs/.stabn directive, value not found
 line: #.stabs "/opt/aip/compiler/gcc-2.95.2.obj/gcc/",100,0,0,$Ltext0

 mips-tfile, /tmp/ccg7bM0z.s:9 Invalid .stabs/.stabn directive, value not found
 line: #.stabs "/opt/aip/compiler/gcc-2.95.2/gcc/libgcc2.c",100,0,0,$Ltext0

 mips-tfile, /tmp/ccg7bM0z.s:157 Segmentation fault
 line: #.stabs "DIunion:t167=168=u8s:166,0,64;ll:161,0,64;;",128,0,139,0

 make: *** [libgcc2.a] Error 1

Did anyone succeed in compiling a working gcc package on Tru64v5.1 ?
If yes, could you please give me some hints on what I'm missing ?

My Environment and configuration are as follows:

host: alphaev56-dec-osf5.1

CC = cc
CXX = cxx
cwd = /opt/gcc/gcc-2.95.2.obj

./configure --prefix=/opt/gcc/gcc-2.95.2.run





Tschüß,
                                                Dieter
 
  _____________________________*__________________________________
 / * dieter.meinert_at_aip.de \
 \ Dieter Meinert (- ** http://www.aip.de/~dieter/ \
  \__________________A______*__*___________________________________/
           (public pgp key from http://www.aip.de/~dieter/)

-----BEGIN PGP SIGNATURE-----
Version: 2.6.3ia
Charset: latin1

iQCVAwUBOulmaPYksnFoaQ6JAQHAxgQA380/SEyq7CgFZKhEEuU5t5d5Cfh1x7Md
+4Axpz6iKyin/PD4EnDAY3KYus/5UbAESJr55/e/qrlcYY+hNkbiREBemMISNSgo
4gzMuct+pMVGQi3arl01XSKWFLuUAzUKlHmE9bocMx0y4QtZemesvN4GFwM21HZ+
wfdq0mzAeMk=
=9W/m
-----END PGP SIGNATURE-----
Received on Fri Apr 27 2001 - 12:31:42 NZST

This archive was generated by hypermail 2.4.0 : Wed Nov 08 2023 - 11:53:42 NZDT