* [SUMMARY] Installing gcc++
@ 1998-05-11 13:37 Susan Rodriguez
0 siblings, 0 replies; only message in thread
From: Susan Rodriguez @ 1998-05-11 13:37 UTC (permalink / raw)
To: tru64-unix-managers
This message is in MIME format. Since your mail reader does not understand
this format, some or all of this message may not be legible.
------ =_NextPart_000_01BD7CA7.509DE670
Content-Type: text/plain;
charset="iso-8859-1"
Content-Transfer-Encoding: quoted-printable
Many of you gave helpful tips on insalling gcc++. Thanks for the quick
responses.
The errors I was seeing were telling me that I had not built all the
compilers in the first stage of make. That is normal. GNU has you =
make
a simple C compiler witht DEC compiler, then in a later stage it uses
that interim compiler to finish the job. Kind of a neat concept there.
We did have to go back and repeat the whole installation. We missed =
and
option "--with-stabs" during the initial configure stage where the
Makefile is built for us. After that everything compiled fine and we
were able to add on libraries, a debugger, and successfully compile c++
programs.
Thanks again to:
> Sheila Hollenbaugh
> Clay Porter
> J. Michael Moody
> Laurent Deniel
> Knut Helleb=F8
> Olle Eriksson
> Brennan Neil x8044
> Daniel David Benson
> Paul A Sand
>=20
susrod@hbsi.com
original post:
We are trying install gcc on a DEC Alpha 4000 running DU4.0D. =20
We successfully compiled gzip, zcat, gunzip, zdiff, (etc.).
Then we ran the ./configure for gcc. That went fine. The next step:
make LANGUAGES=3D"c" did have a few problems but then went to do a lot =
of
"fixing". I crossed my fingers and went on.
The next step, make stage1, tries to copy some files into a directory =
it
creates called stage1. During this move it is failing to find some
files it wants to move.
My best guess would be that the previous step failed.
Am I missing some library header files or possibly some libraries
required to build this? Can anyone give me a few hints?
TIA
susrod@hbsi.com
RESPONSES:
> ----------
> From: Sheila Hollenbaugh[SMTP:shollen@valhalla.cs.wright.edu]
> Sent: Thursday, May 07, 1998 4:30 AM
> To: Susan Rodriguez
> Subject: Re: [Q] Installing gcc++
>=20
> The messages you are seeing are normal. Just proceed with the next
> step in the
> make process (remaking the compilers using the stage1 compiler).
>=20
>=20
> --=20
> Sheila Hollenbaugh Sr. Computer Systems Engineer (O-)
> Wright State University College of Engineering & Computer Science
> Dayton, OH 45435
> http://www.cs.wright.edu/people/staff/shollen/
> shollen@cs.wright.edu Voice: (937) 775-5077 FAX: (937) 775-5009
>=20
>=20
------------------------------
> ----------
> From: Clay Porter[SMTP:clay.porter@persimmon.com]
> Sent: Thursday, May 07, 1998 6:38 AM
> To: Susan Rodriguez
> Subject: RE: [Q] Installing gcc++
>=20
>=20
>=20
> > -----Original Message-----
> > From: alpha-osf-managers-owner@ornl.gov
> > [mailto:alpha-osf-managers-owner@ornl.gov]On Behalf Of Susan
> Rodriguez
> > Sent: Wednesday, May 06, 1998 7:06 PM
> > To: OSF Managers
> > Subject: [Q] Installing gcc++
> >
> >
> >
> > We are trying install gcc on a DEC Alpha 4000 running DU4.0D.
> >
> > We successfully compiled gzip, zcat, gunzip, zdiff, (etc.).
> >
> > Then we ran the ./configure for gcc. That went fine. The next =
step:
> > make LANGUAGES=3D"c" did have a few problems but then went to do a =
lot
> of
> > "fixing". I crossed my fingers and went on.
> >
> > The next step, make stage1, tries to copy some files into a
> directory it
> > creates called stage1. During this move it is failing to find some
> > files it wants to move.
> When you do the make LANGUAGES=3D"c" you are only making the C =
language
> portion of the compiler. If you were to leave that part off then you
> would
> be making all available compilers, i.e. C, C++, Objective-C. Because
> you
> didn't make all languages the copy partially fails because the other
> language files are not there. You can safely ignore the warning on
> the file
> copy.
>=20
> Disclaimer: I have not made gcc for Digitalis UNIX in about a year =
so
> some
> of the details are fuzzy. I am prety sure that you can ignore the
> file copy
> errors.
>=20
> Clay.
> >
> > My best guess would be that the previous step failed.
> >
> > Am I missing some library header files or possibly some libraries
> > required to build this? Can anyone give me a few hints?
> >
> > TIA
> >
> > susrod@hbsi.com
> >
> >
> >
>=20
>=20
> ----------
> From: J. Michael Moody[SMTP:Michael.Moody-1@ksc.nasa.gov]
> Sent: Thursday, May 07, 1998 4:21 AM
> To: Susan Rodriguez
> Subject: gcc on DEC.
>=20
>=20
> No Susan what is happening is it is trying to copy files you didn't
> build. You only built the C compiler. It is trying to copy the
> objective c and c++ files too. Just keep on keeping on. The
> instructions for building the compiler are correct.=20
> What happens is the first step is to build the gcc compiler with the
> native system compiler. The next step is to build the gcc compiler
> again but using the stage1 gcc compiler. You do this a couple of =
times
> and you end up with a clean gcc compiler system.
>=20
> I have done this many times on may kinds of unix boxes.
>=20
> Mike Moody
> moodym@yahoo.com
>=20
> ----------
> From: Laurent Deniel[SMTP:deniel@worldnet.fr]
> Sent: Thursday, May 07, 1998 3:27 AM
> To: Susan Rodriguez
> Subject: Re: [Q] Installing gcc++
>=20
>=20
> What are the problems in the first stage ?
>=20
> Do you use gnumake ?
>=20
> --
> Laurent DENIEL | E-mail: deniel@worldnet.fr
> Paris, FRANCE |
> deniel@fr.airsysatm.thomson-csf.com
> | WWW : http://www.worldnet.fr/~deniel
> All above opinions are personal, unless stated otherwise.
>=20
> ----------
> From: Knut Helleb=F8[SMTP:Knut.Hellebo@nho.hydro.com]
> Sent: Thursday, May 07, 1998 12:37 AM
> To: Susan Rodriguez
> Subject: Re: [Q] Installing gcc++
>=20
> Regards,
>=20
> I'd suggest two things:
>=20
> 1) Use GNUmake when 'making'
> 2) Get the latest gcc products from aeneas.mit.edu
> --=20
>=20
>=20
> ******************************************************************
> * Knut Helleb=F8 | DAMN GOOD COFFEE =
!!
> *
> * Norsk Hydro a.s | (and hot too)
> *
> * Phone: +47 55 996870, Fax: +47 55 996495 |
> *
> * Cellular Phone: +47 93092402 |
> *
> * E-mail: Knut.Hellebo@nho.hydro.com | Dale Cooper, FBI
> *
>=20
> ******************************************************************
>=20
> ----------
> From: Olle Eriksson[SMTP:olle@cb.uu.se]
> Sent: Wednesday, May 06, 1998 11:00 PM
> To: Susan Rodriguez
> Subject: Re: [Q] Installing gcc++
>=20
> It is normal that you get report of missing files during the
> stage1/stage2
> copying. This is because you did only build the basic C compiler in
> the
> first step while the copying is prepared to copy all compilers and
> libs.
> The failures can be ignored unless the make procedure terminates.
>=20
>=20
> ----------
> From: Brennan Neil x8044[SMTP:NBrennan@CitiPower.com.au]
> Sent: Wednesday, May 06, 1998 7:09 PM
> To: Susan Rodriguez
> Cc: Jirik Stephen x8373
> Subject: Installing g++
>=20
> =20
>=20
> =
----------------------------------------------------------------------
> -
>=20
>=20
> Hi Susan,
>=20
> I was passed your message by one of our DBAs (Steve Jirik, cc-ed
> above).
>=20
> I spent some time installing g++ on a DEC Alpha here (running OSF,
> sorry), and attach my notes. I hope they help; my basic guess is =
that
> you may be building in an environment where you don't have adequate
> privileges or the directory structure is confusing the configure
> script
> for some obscure reason.
>=20
> If you got zcat etc. working, I don't think it sounds like your
> problem
> is libraries, the C compiler stuff runs pretty lean and mean at the
> start. What kind of 'fixing' did the make do?
>=20
> Regards,
>=20
> Neil Brennan
> CitiPower
>=20
> =20
> =
----------------------------------------------------------------------
> -
>=20
> I went to a bookstore and asked the saleswoman, "Where's the
> self-help section?" She said if she told me, it would defeat the
> purpose.
>=20
> -- Steve Wright
>=20
>=20
>=20
>=20
> ----------
> From: Daniel David Benson[SMTP:bensond@ssds.ucdavis.edu]
> Sent: Wednesday, May 06, 1998 3:17 PM
> To: Susan Rodriguez
> Subject: Re: [Q] Installing gcc++=20
>=20
>=20
>=20
> Nah, you're ok. The make stage# steps try to copy over multiple
> languages,
> but since you only built one (C) then that's all it could find. This
> is at least my interpretation of the output. It's ignoreable.
>=20
> -Dan
>=20
>=20
> --=20
> =
----------------------------------------------------------------------
> Daniel David Benson =
bensond@ucdavis.edu
> System Administrator =
http://wwwcsif.cs.ucdavis.edu/~bensond
> Social Science Data Service pgp - finger =
bensond@aion.ucdavis.edu
> University of California, Davis Linux =
User
> =
----------------------------------------------------------------------
>=20
>=20
> ----------
> From: Paul A Sand[SMTP:pas@unh.edu]
> Sent: Wednesday, May 06, 1998 4:17 PM
> To: Susan Rodriguez
> Subject: Re: [Q] Installing gcc++
>=20
>=20
> Some error messages are innocuous. I would advise
> continuing on. My notes claim that these commands
> (in the gcc-<version> subdirectory):
>=20
> % ./configure
> % make LANGUAGES=3Dc
> % make stage1
> % make CC=3D"stage1/xgcc -Bstage1/" CFLAGS=3D"-g -O2"
> % make stage2
> % make CC=3D"stage2/xgcc -Bstage2/" CFLAGS=3D"-g -O2"
> % make compare
>=20
> Followed by (as root)
>=20
> # make install CC=3D"stage2/xgcc -Bstage2/" CFLAGS=3D"-g -O2"
> # cd /usr/local/lib/gcc-lib/alpha-dec-osf4.0?/<version>/include
> # chown -R root .
> # find . -type f -exec chmod go+r {} \;
> # find . -type d -exec chmod go+rx {} \;
>=20
> works. These last four steps I needed to get the protections
> in the installed include files correct, may not be necessary
> for you.
>=20
> --=20
> -- Paul A. Sand | I'm not smart enough to be happy
> about=20
> -- University of New Hampshire | thinking that hard.
> -- pas@unh.edu | (Larry Wall, comp.lang.perl)
> -- http://pubpages.unh.edu/~pas |=20
>=20
------ =_NextPart_000_01BD7CA7.509DE670
Content-Type: text/plain;
name="_build.txt"
Content-Transfer-Encoding: quoted-printable
Content-Disposition: attachment;
filename="_build.txt"
=0A=
Building a GNU environment=0A=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=0A=
=0A=
1. Get all relevant software=0A=
=0A=
- download from any GNU mirror site the following files:=0A=
=0A=
binutils-2.8.1, bison-1.25, cvs-1.9, flex-2.5.4, gcc-2.8.0, =
gdb-4.16,=0A=
glibc-2.0.6, gzip-1.2.4, less-332, libg++-2.8.0, libstdc++-2.8.0,=0A=
make-3.75, ncurses_1.9.9g, termcap-1.3, texinfo-3.11=0A=
=0A=
- extract via gzip and tar into separate subdirectories=0A=
=0A=
=0A=
3. Configure gcc build=0A=
=0A=
- read INSTALL!=0A=
=0A=
- set PATH so `/usr/bin' precedes `/usr/ucb'=0A=
=0A=
- ignore directions about moving g++ source tree to below current =
directory, g++ is now=0A=
part of normal build=0A=
=0A=
- disable current gcc (so broken, it breaks build)=0A=
=0A=
- run ./configure in gcc source directory with the following flags:=0A=
=0A=
./configure --with-stabs // We'll be using gdb=0A=
=0A=
=0A=
4. Build and install compilers:=0A=
=0A=
- build stage1 gcc with system cc:=0A=
=0A=
make clean // Just in case=0A=
make LANGUAGES=3Dc // More languages later=0A=
make stage1 =0A=
=0A=
- build stage2 gcc with stage1 gcc:=0A=
=0A=
make CC=3D"stage1/xgcc -Bstage1/" CFLAGS=3D"-g -O2" // Makes all =
languages=0A=
make stage2=0A=
=0A=
- build stage3 gcc with stage2 gcc:=0A=
=0A=
make CC=3D"stage2/xgcc -Bstage2/" CFLAGS=3D"-g -O2"=0A=
=0A=
- compare stage2 and stage3 compilers:=0A=
=0A=
make compare // Any differences are SERIOUS=0A=
=0A=
- up to now, you can have been making the compilers in any user =
directory=0A=
to perform the full install, you must alter all references in the =
Makefile=0A=
you have been using (you actually built it in the configure step =
above) to=0A=
now refer to your desired target directory=0A=
=0A=
cp Makefile Makefile.prev // Save previous=0A=
vi Makefile // Make your changes=0A=
prefix=3D/usr/local // Line 210=0A=
=0A=
- install the compiler driver, the compiler's passes and run-time =
support:=0A=
=0A=
make install CC=3D"stage2/xgcc -Bstage2/" CFLAGS=3D"-g -O"=0A=
=0A=
=0A=
9. Build C++ environment=0A=
=0A=
- SET SHELL VARIABLE (VERY IMPORTANT) (PUT IT IN YOUR .myprofile, =
TOO!)=0A=
=0A=
CC=3Dgcc=0A=
=0A=
=0A=
- create a ranlib utility (see: man ranlib) (We get a real one later, =
but this will do=0A=
for now) consisting of the following sh script:=0A=
=0A=
# /bin/sh=0A=
=0A=
if [ $# =3D "0" ]; then=0A=
echo "usage: ranlib [-t] ..."=0A=
elif [ $1 =3D "-t" ]; then=0A=
shift=0A=
ar -h $*=0A=
else=0A=
ar -qs $*=0A=
fi=0A=
=0A=
=0A=
- build libstdc++-2.8.0=0A=
=0A=
./configure --with-stabs=0A=
make=0A=
make install=0A=
=0A=
=0A=
10. Extract and build the 'texinfo' package first, it allows you to =
read GNU's own 'info'=0A=
documentation format. This is an extremely crap interface, but =
it's all they give=0A=
you.=0A=
=0A=
Make termcap-1.3 first:=0A=
=0A=
./configure=0A=
make =0A=
make install=0A=
=0A=
Then texinfo-3.11:=0A=
=0A=
./configure=0A=
make =0A=
make install=0A=
mkdir /usr/local/share/texmf/tex/texinfo/=0A=
cp ./doc/texinfo.tex /usr/local/share/texmf/tex/texinfo=0A=
mkdir /usr/local/share/texmf/tex/generic/dvips/=0A=
cp ./doc/epsf.tex /usr/local/share/texmf/tex/generic/dvips=0A=
=0A=
=0A=
11. Build: gdb-4.16=0A=
binutils-2.8.1=0A=
less-332=0A=
bison-1.25=0A=
flex-2.5.4=0A=
=0A=
./configure // Not =
permitted to update=0A=
make // =
termcap.h in /usr/include=0A=
make install=0A=
=0A=
If makeinfo coredumps in the installation of the termcap library =
(and it very likely will!),=0A=
make sure you have set CC=3Dgcc, and go back to 10. This should =
not happen the second time.=0A=
I think there is some sort of nasty interdependency happening =
here.=0A=
=0A=
=0A=
12. Build the the rest of the C++ libraries and the C++ STL. You now =
have more than enough=0A=
tools to get the STL properly extracted using only GNU tools. This =
is probably important.=0A=
=0A=
Build: libg++-2.8.0=0A=
=0A=
./configure=0A=
make=0A=
make install=0A=
=0A=
=0A=
14. Build gmake. I recommend using the system make for almost =
everything you need to do, but,=0A=
for some external packages (like POSIX threads, for instance) we =
need GNU make.=0A=
Unfortunately, there appears to be a bug in the makefile of =
make-3.76.1, so install=0A=
make-3.75. It also needs some hand carving:=0A=
=0A=
- in the file "make-3.75/glob/glob.h", delete the #ifdef on line 55 =
and its=0A=
corresponding #endif=0A=
=0A=
- in the Makefile, edit line 209. The expression "--infodir" should =
be "--info-dir"=0A=
=0A=
- now build as normal=0A=
=0A=
15. More builds:=0A=
=0A=
cvs-1.9=0A=
ncurses_1.9.9g // Overwrites earlier termcap.lib=0A=
gzip-1.2.4 // Edit Makefile: prefix=3D/usr/local=0A=
perl=0A=
groff=0A=
time=0A=
sh-utils=0A=
tar=0A=
=0A=
=0A=
16. GMP - Multiple precision arithmetic library: gmp-2.0.2=0A=
=0A=
./configure=0A=
make=0A=
make check=0A=
make install=0A=
=0A=
16. Renames:=0A=
=0A=
In /usr/local/bin, rename:=0A=
make gmake=0A=
nm gnm=0A=
tar gtar=0A=
=0A=
We want to be able to tell which of these we are using at all =
times.=0A=
=0A=
=0A=
Notes:=0A=
=0A=
We don't need to build any extra support for threads; DEC OSF1 UNIX =
uses the standard=0A=
POSIX 1003.1c-1995 threads interface, which uses the header file =
<pthread.h>.=0A=
=0A=
------ =_NextPart_000_01BD7CA7.509DE670
Content-Type: text/plain;
name="_alpha.txt"
Content-Transfer-Encoding: quoted-printable
Content-Disposition: attachment;
filename="_alpha.txt"
`alpha-*-osf1':=0A=
=0A=
Systems using processors that implement the DEC Alpha architecture=0A=
and are running the DEC Unix (OSF/1) operating system, for example=0A=
the DEC Alpha AXP systems.CC.)=0A=
=0A=
GNU CC writes a `.verstamp' directive to the assembler output file=0A=
unless it is built as a cross-compiler. It gets the version to=0A=
use from the system header file `/usr/include/stamp.h'. If you=0A=
install a new version of DEC Unix, you should rebuild GCC to pick=0A=
up the new version stamp.=0A=
=0A=
Note that since the Alpha is a 64-bit architecture,=0A=
cross-compilers from 32-bit machines will not generate code as=0A=
efficient as that generated when the compiler is running on a=0A=
64-bit machine because many optimizations that depend on being=0A=
able to represent a word on the target in an integral value on the=0A=
host cannot be performed. Building cross-compilers on the Alpha=0A=
for 32-bit machines has only been tested in a few cases and may=0A=
not work properly.=0A=
=0A=
`make compare' may fail on old versions of DEC Unix unless you add=0A=
`-save-temps' to `CFLAGS'. On these systems, the name of the=0A=
assembler input file is stored in the object file, and that makes=0A=
comparison fail if it differs between the `stage1' and `stage2'=0A=
compilations. The option `-save-temps' forces a fixed name to be=0A=
used for the assembler input file, instead of a randomly chosen=0A=
name in `/tmp'. Do not add `-save-temps' unless the comparisons=0A=
fail without that option. If you add `-save-temps', you will have=0A=
to manually delete the `.i' and `.s' files after each series of=0A=
compilations.=0A=
=0A=
GNU CC now supports both the native (ECOFF) debugging format used=0A=
by DBX and GDB and an encapsulated STABS format for use only with=0A=
GDB. See the discussion of the `--with-stabs' option of=0A=
`configure' below for more information on these formats and how to=0A=
select them.=0A=
=0A=
There is a bug in DEC's assembler that produces incorrect line=0A=
numbers for ECOFF format when the `.align' directive is used. To=0A=
work around this problem, GNU CC will not emit such alignment=0A=
directives while writing ECOFF format debugging information even=0A=
if optimization is being performed. Unfortunately, this has the=0A=
very undesirable side-effect that code addresses when `-O' is=0A=
specified are different depending on whether or not `-g' is also=0A=
specified.=0A=
=0A=
To avoid this behavior, specify `-gstabs+' and use GDB instead of=0A=
DBX. DEC is now aware of this problem with the assembler and=0A=
hopes to provide a fix shortly.=0A=
=0A=
=0A=
--with-stabs option of configure:=0A=
=0A=
On MIPS based systems and on Alphas, you must specify whether=0A=
you want GNU CC to create the normal ECOFF debugging format,=0A=
or to use BSD-style stabs passed through the ECOFF symbol=0A=
table. The normal ECOFF debug format cannot fully handle=0A=
languages other than C. BSD stabs format can handle other=0A=
languages, but it only works with the GNU debugger GDB.=0A=
=0A=
Normally, GNU CC uses the ECOFF debugging format by default;=0A=
if you prefer BSD stabs, specify `--with-stabs' when you=0A=
configure GNU CC.=0A=
=0A=
No matter which default you choose when you configure GNU CC,=0A=
the user can use the `-gcoff' and `-gstabs+' options to=0A=
specify explicitly the debug format for a particular=0A=
compilation.=0A=
=0A=
`--with-stabs' is meaningful on the ISC system on the 386,=0A=
also, if `--with-gas' is used. It selects use of stabs=0A=
debugging information embedded in COFF output. This kind of=0A=
debugging information supports C++ well; ordinary COFF=0A=
debugging information does not.=0A=
=0A=
`--with-stabs' is also meaningful on 386 systems running=0A=
SVR4. It selects use of stabs debugging information embedded=0A=
in ELF output. The C++ compiler currently (2.6.0) does not=0A=
support the DWARF debugging information normally used on 386=0A=
SVR4 platforms; stabs provide a workable alternative. This=0A=
requires gas and gdb, as the normal SVR4 tools can not=0A=
generate or interpret stabs.=0A=
------ =_NextPart_000_01BD7CA7.509DE670--
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~1998-05-11 13:37 UTC | newest]
Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
1998-05-11 13:37 [SUMMARY] Installing gcc++ Susan Rodriguez
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox