* gcc 2.8.1 (Digital Unix)
@ 1999-05-10 4:00 Marchelm Bomers
1999-05-10 4:00 ` Philip van Ulden
0 siblings, 1 reply; 3+ messages in thread
From: Marchelm Bomers @ 1999-05-10 4:00 UTC (permalink / raw)
Is there anybody out there who has experience installing gcc on a Digital alpha?
I am trying to upgrade gcc (2.7.2.2) on a machine to 2.8.1.1, but am having
considerable difficulty, in particular with the std library. I have installed
the gcc compiler (correctly I hope - I did have to fix an odd problem or two),
but when `making` stdlib I get (in part) the following message:
test x"no" != xyes || c++ -c -g -O2 -fno-implicit-templates -I. -I./stl
-I../libio -I./../libio -nostdinc++ stdexcepti.cc -o pic/stdexcepti.o
c++ -c -g -O2 -fno-implicit-templates -I. -I./stl -I../libio -I./../libio
-nostdinc++ stdexcepti.cc
In file included from stdexcepti.cc:8:
stdexcept:40: parse error before `{'
stdexcept:44: virtual outside class declaration
stdexcept:44: non-member function `what()' cannot have `const' method qualifier
stdexcept: In function `const char * what()':
stdexcept:44: `_what' undeclared (first use this function)
stdexcept:44: (Each undeclared identifier is reported only once
stdexcept:44: for each function it appears in.)
Here is the relevant part of stdexcept.
#ifndef __STDEXCEPT__
#define __STDEXCEPT__
#ifdef __GNUG__
#pragma interface "stdexcept"
#endif
#include <exception>
#include <string>
extern "C++" {
class logic_error : public exception {
string _what;
public:
logic_error(const string& what_arg): _what (what_arg) { }
virtual const char* what () const { return _what.c_str (); }
};
I am not a qualified progarmmer so the above tends to bit a bit "greek" to me,
but I am under the impression that the error actaully relates to the following
statement in "stdexcept":
#include <exception>
Unfortunately there is no such file in the distribution, and using the one from
the current installation does not solve the problem. Nor does using "stdexcept"
AND "exception" from the current installation (gives a lot less errors but still
falls over in the end).
Any help gratefully received.
Tanx in advance.
Marchelm
--
**********************************************************
Marchelm B�mers B.Sc
Unix Programmer/Administrator/Postmaster
Monash University, IT Services, Gippsland Campus
Northways Rd., Churchill, Victoria 3842, Australia
Phone: (03) 51226963 Fax: (03) 51226719 (local)
Phone: +61 3 51226963 Fax: +61 3 51226719 (national)
Email: Marchelm.Bomers@its.monash.edu.au
**********************************************************
^ permalink raw reply [flat|nested] 3+ messages in thread* Re: gcc 2.8.1 (Digital Unix)
1999-05-10 4:00 gcc 2.8.1 (Digital Unix) Marchelm Bomers
@ 1999-05-10 4:00 ` Philip van Ulden
1999-05-16 4:00 ` Marchelm Bomers
0 siblings, 1 reply; 3+ messages in thread
From: Philip van Ulden @ 1999-05-10 4:00 UTC (permalink / raw)
Marchelm Bomers wrote:
>
> Is there anybody out there who has experience installing gcc on a Digital alpha?
> I am trying to upgrade gcc (2.7.2.2) on a machine to 2.8.1.1, but am having
> considerable difficulty, in particular with the std library. I have installed
> the gcc compiler (correctly I hope - I did have to fix an odd problem or two),
> but when `making` stdlib I get (in part) the following message:
>
> test x"no" != xyes || c++ -c -g -O2 -fno-implicit-templates -I. -I./stl
> -I../libio -I./../libio -nostdinc++ stdexcepti.cc -o pic/stdexcepti.o
> c++ -c -g -O2 -fno-implicit-templates -I. -I./stl -I../libio -I./../libio
> -nostdinc++ stdexcepti.cc
> In file included from stdexcepti.cc:8:
> stdexcept:40: parse error before `{'
> stdexcept:44: virtual outside class declaration
> stdexcept:44: non-member function `what()' cannot have `const' method qualifier
> stdexcept: In function `const char * what()':
> stdexcept:44: `_what' undeclared (first use this function)
> stdexcept:44: (Each undeclared identifier is reported only once
> stdexcept:44: for each function it appears in.)
>
> Here is the relevant part of stdexcept.
>
> #ifndef __STDEXCEPT__
> #define __STDEXCEPT__
>
> #ifdef __GNUG__
> #pragma interface "stdexcept"
> #endif
>
> #include <exception>
> #include <string>
>
> extern "C++" {
>
> class logic_error : public exception {
> string _what;
> public:
> logic_error(const string& what_arg): _what (what_arg) { }
> virtual const char* what () const { return _what.c_str (); }
> };
>
> I am not a qualified progarmmer so the above tends to bit a bit "greek" to me,
> but I am under the impression that the error actaully relates to the following
> statement in "stdexcept":
> #include <exception>
>
> Unfortunately there is no such file in the distribution, and using the one from
> the current installation does not solve the problem. Nor does using "stdexcept"
> AND "exception" from the current installation (gives a lot less errors but still
> falls over in the end).
>
> Any help gratefully received.
>
> Tanx in advance.
>
> Marchelm
> --
> **********************************************************
> Marchelm B�mers B.Sc
> Unix Programmer/Administrator/Postmaster
> Monash University, IT Services, Gippsland Campus
> Northways Rd., Churchill, Victoria 3842, Australia
>
> Phone: (03) 51226963 Fax: (03) 51226719 (local)
> Phone: +61 3 51226963 Fax: +61 3 51226719 (national)
> Email: Marchelm.Bomers@its.monash.edu.au
> **********************************************************
You should build both libstdc++ and gcc at the same time. unpack the
gcc tar in your libstc++ distribution, rename the gcc-2.8.1 directory to
gcc and then run a configure and a make from your libstdc++ dir.
Hope this helps.
Phil
--
________________________________________________
Philip van Ulden
Programmer Consultant
C-CAE, Faculty of Engineering & Applied Science
Memorial University of Newfoundland
Phone: (709) 737-8925
Email: philipv@engr.mun.ca
________________________________________________
^ permalink raw reply [flat|nested] 3+ messages in thread* Re: gcc 2.8.1 (Digital Unix)
1999-05-10 4:00 ` Philip van Ulden
@ 1999-05-16 4:00 ` Marchelm Bomers
0 siblings, 0 replies; 3+ messages in thread
From: Marchelm Bomers @ 1999-05-16 4:00 UTC (permalink / raw)
Philip
I did as you suggested but the build still failed. Eventually I discovered (with
help from a local lecturer) that the problem was the build picking up the old
libraries. When I removed them and rebuilt (with egcs 1.1.2 actually) ... hey
presto!, everything fell into place.
Tanx muchly for your assistance.
Marchelm
Philip van Ulden wrote:
<< snip snip >>
>
> You should build both libstdc++ and gcc at the same time. unpack the
> gcc tar in your libstc++ distribution, rename the gcc-2.8.1 directory to
> gcc and then run a configure and a make from your libstdc++ dir.
>
> Hope this helps.
>
> Phil
> --
> ________________________________________________
>
> Philip van Ulden
> Programmer Consultant
> C-CAE, Faculty of Engineering & Applied Science
> Memorial University of Newfoundland
> Phone: (709) 737-8925
> Email: philipv@engr.mun.ca
> ________________________________________________
--
**********************************************************
Marchelm B�mers B.Sc
Unix Programmer/Administrator/Postmaster
Monash University, IT Services, Gippsland Campus
Northways Rd., Churchill, Victoria 3842, Australia
Phone: (03) 51226963 Fax: (03) 51226719 (local)
Phone: +61 3 51226963 Fax: +61 3 51226719 (national)
Email: Marchelm.Bomers@its.monash.edu.au
**********************************************************
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~1999-05-16 4:00 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
1999-05-10 4:00 gcc 2.8.1 (Digital Unix) Marchelm Bomers
1999-05-10 4:00 ` Philip van Ulden
1999-05-16 4:00 ` Marchelm Bomers
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox