public inbox for gcc@gcc.gnu.org
 help / color / mirror / Atom feed
* Re: Building dejagnu with latest GCC
@ 2002-08-03 17:13 Richard Kenner
  2002-08-04  4:04 ` Jason Merrill
  0 siblings, 1 reply; 19+ messages in thread
From: Richard Kenner @ 2002-08-03 17:13 UTC (permalink / raw)
  To: gdr; +Cc: gcc

    Please put this 

       using namespace std;

    just after the "#include <strstream>" line -- line 35.
    Let me know how it went.

It's not line 35, but I think I know what you meant.  I get less errors,
but still get:

make[2]: Entering directory `/g/gcc/dejagnu-1.4.1/testsuite/libdejagnu'
Makefile:203: .deps/unit.P: No such file or directory
c++ -DPACKAGE=\"dejagnu\" -DVERSION=\"1.4.1\"  -I. -I.      -I../.. -g -c unit.c
c
In file included from /usr/local/include/c++/3.2/backward/strstream:51,
                 from ../../dejagnu.h:70,
                 from unit.cc:4:
/usr/local/include/c++/3.2/backward/backward_warning.h:32:2: warning: #warning T
his file includes at least one deprecated or antiquated header. Please consider
using one of the 32 headers found in section 17.4.1.2 of the C++ standard. Examp
les include substituting the <X> header for the <X.h> header for C++ includes, o
r <sstream> instead of the deprecated header <strstream.h>. To disable this warn
ing use -Wno-deprecated.
unit.cc: In function `int main(int, char**)':
unit.cc:46: ISO C++ forbids assignment of arrays
/usr/local/include/c++/3.2/streambuf:416: `std::basic_streambuf<_CharT,
   _Traits>* std::basic_streambuf<_CharT, _Traits>::setbuf(_CharT*, long int)
   [with _CharT = char, _Traits = std::char_traits<char>]' is protected
unit.cc:53: within this context
unit.cc:64: ISO C++ forbids assignment of arrays
unit.cc:72: ISO C++ forbids assignment of arrays
unit.cc:75: ISO C++ forbids assignment of arrays
unit.cc:83: ISO C++ forbids assignment of arrays
unit.cc:86: ISO C++ forbids assignment of arrays
unit.cc:94: ISO C++ forbids assignment of arrays
unit.cc:97: ISO C++ forbids assignment of arrays

^ permalink raw reply	[flat|nested] 19+ messages in thread
* Re: Building dejagnu with latest GCC
@ 2002-08-04  5:07 Richard Kenner
  2002-08-04  5:22 ` Gabriel Dos Reis
  0 siblings, 1 reply; 19+ messages in thread
From: Richard Kenner @ 2002-08-04  5:07 UTC (permalink / raw)
  To: gdr; +Cc: gcc

    Kenner, please could try to replace

        sb->setbuf(bbuuff, 5120);

    with

        sb->pubsetbuf(bbuuff, 5120);

    and report what happens?

That does it.  Thanks.

There really should be some web page capturing all this and giving
the versions of tools that are needed.

^ permalink raw reply	[flat|nested] 19+ messages in thread
* Re: Building dejagnu with latest GCC
@ 2002-08-04  4:28 Richard Kenner
  2002-08-04  4:46 ` Gabriel Dos Reis
  2002-08-04  7:43 ` Fergus Henderson
  0 siblings, 2 replies; 19+ messages in thread
From: Richard Kenner @ 2002-08-04  4:28 UTC (permalink / raw)
  To: jason; +Cc: gcc

    Does -fpermissive help?

I can't figure out how to add it except by modifying the Makefile, but when
I do, it *appears* to help, since it looks like it's changing errors
into warnings, but the command still fails.  I'm not sure why, though, since
the error message output is confusing:

make[2]: Entering directory `/g/gcc/dejagnu-1.4.1/testsuite/libdejagnu'
Makefile:203: .deps/unit.P: No such file or directory
c++ -DPACKAGE=\"dejagnu\" -DVERSION=\"1.4.1\"  -I. -I.      -I../.. -g -fpermiss
ive -c unit.cc
In file included from /usr/local/include/c++/3.2/backward/strstream:51,
                 from ../../dejagnu.h:70,
                 from unit.cc:4:
/usr/local/include/c++/3.2/backward/backward_warning.h:32:2: warning: #warning T
his file includes at least one deprecated or antiquated header. Please consider
using one of the 32 headers found in section 17.4.1.2 of the C++ standard. Examp
les include substituting the <X> header for the <X.h> header for C++ includes, o
r <sstream> instead of the deprecated header <strstream.h>. To disable this warn
ing use -Wno-deprecated.
unit.cc: In function `int main(int, char**)':
unit.cc:46: warning: ISO C++ forbids assignment of arrays
/usr/local/include/c++/3.2/streambuf:416: `std::basic_streambuf<_CharT,
   _Traits>* std::basic_streambuf<_CharT, _Traits>::setbuf(_CharT*, long int)
   [with _CharT = char, _Traits = std::char_traits<char>]' is protected
unit.cc:53: within this context
unit.cc:64: warning: ISO C++ forbids assignment of arrays
unit.cc:72: warning: ISO C++ forbids assignment of arrays
unit.cc:75: warning: ISO C++ forbids assignment of arrays
unit.cc:83: warning: ISO C++ forbids assignment of arrays
unit.cc:86: warning: ISO C++ forbids assignment of arrays
unit.cc:94: warning: ISO C++ forbids assignment of arrays
unit.cc:97: warning: ISO C++ forbids assignment of arrays
make[2]: *** [unit.o] Error 1
make[2]: Leaving directory `/g/gcc/dejagnu-1.4.1/testsuite/libdejagnu'

^ permalink raw reply	[flat|nested] 19+ messages in thread
* Re: Building dejagnu with latest GCC
@ 2002-08-03 21:32 John David Anglin
  2002-08-03 23:09 ` Tim Prince
  0 siblings, 1 reply; 19+ messages in thread
From: John David Anglin @ 2002-08-03 21:32 UTC (permalink / raw)
  To: gcc; +Cc: kenner

>>    I didn't try it these last days but I think the CVS version (or the
>>    official 1.4.[12] release) compiles with current GCC.
>
> Odd.  I was trying the 1.4.1 release from ftp.gnu.org.

Personally, I like 1.4.  I've had problems with 1.4.[12] and cvs
versions running tests more than once, and being more restrictive
in command line arguments.  This causes problems running some
testsuites.  There was some previous discussion of this on the
list a few months ago.

Dave
-- 
J. David Anglin                                  dave.anglin@nrc.ca
National Research Council of Canada              (613) 990-0752 (FAX: 952-6605)

^ permalink raw reply	[flat|nested] 19+ messages in thread
* Re: Building dejagnu with latest GCC
@ 2002-08-03 15:49 Richard Kenner
  2002-08-03 16:04 ` Gabriel Dos Reis
  0 siblings, 1 reply; 19+ messages in thread
From: Richard Kenner @ 2002-08-03 15:49 UTC (permalink / raw)
  To: gdr; +Cc: gcc

    I didn't try it these last days but I think the CVS version (or the
    official 1.4.[12] release) compiles with current GCC.

Odd.  I was trying the 1.4.1 release from ftp.gnu.org.

^ permalink raw reply	[flat|nested] 19+ messages in thread
* Re: Building dejagnu with latest GCC
@ 2002-08-03 15:44 Richard Kenner
  2002-08-03 15:48 ` Gabriel Dos Reis
  0 siblings, 1 reply; 19+ messages in thread
From: Richard Kenner @ 2002-08-03 15:44 UTC (permalink / raw)
  To: gdr; +Cc: gcc

    This seems to be a dejagnu problem.  

Is there a version that can be compiled with the current GCC?

    Which version of g++ + libstdc++-v3 are you using?

The 3.2 branch as of around noon today.

^ permalink raw reply	[flat|nested] 19+ messages in thread
* Building dejagnu with latest GCC
@ 2002-08-03 15:29 Richard Kenner
  2002-08-03 15:42 ` Gabriel Dos Reis
  2002-08-05 12:08 ` Mike Stump
  0 siblings, 2 replies; 19+ messages in thread
From: Richard Kenner @ 2002-08-03 15:29 UTC (permalink / raw)
  To: gcc

I'm trying to recreate my tool environment, but I get the follow.
I don't know C++, so don't know if this represents a GCC or Dejagnu
problem.  Any help would be appreciated.

(I'm still looking for a pointer to the versions of tools that GCC
maintainers should be using, by the way.)

make[2]: Entering directory `/g/gcc/dejagnu-1.4.1/testsuite/libdejagnu'
Makefile:203: .deps/unit.P: No such file or directory
c++ -DPACKAGE=\"dejagnu\" -DVERSION=\"1.4.1\"  -I. -I.      -I../.. -g -c unit.c
c
In file included from /usr/local/include/c++/3.2/backward/strstream:51,
                 from ../../dejagnu.h:70,
                 from unit.cc:4:
/usr/local/include/c++/3.2/backward/backward_warning.h:32:2: warning: #warning T
his file includes at least one deprecated or antiquated header. Please consider
using one of the 32 headers found in section 17.4.1.2 of the C++ standard. Examp
les include substituting the <X> header for the <X.h> header for C++ includes, o
r <sstream> instead of the deprecated header <strstream.h>. To disable this warn
ing use -Wno-deprecated.
In file included from unit.cc:4:
../../dejagnu.h: In function `char* testout(int)':
../../dejagnu.h:115: ISO C++ forbids declaration of `ostrstream' with no type
../../dejagnu.h:115: parse error before `(' token
../../dejagnu.h:116: `oss' undeclared (first use this function)
../../dejagnu.h:116: (Each undeclared identifier is reported only once for each
   function it appears in.)
../../dejagnu.h:116: `ios' undeclared (first use this function)
../../dejagnu.h:116: parse error before `::' token
../../dejagnu.h:117: `ends' undeclared (first use this function)
../../dejagnu.h: At global scope:
../../dejagnu.h:126: 'string' is used as a type, but is not defined as a type.
../../dejagnu.h:138: type specifier omitted for parameter `string'
../../dejagnu.h:138: parse error before `)' token
../../dejagnu.h:145: `string' was not declared in this scope
../../dejagnu.h:145: parse error before `)' token
../../dejagnu.h:156: `string' was not declared in this scope
../../dejagnu.h:156: parse error before `)' token
../../dejagnu.h:167: `string' was not declared in this scope
../../dejagnu.h:167: parse error before `)' token
../../dejagnu.h:178: `string' was not declared in this scope
../../dejagnu.h:178: parse error before `)' token
../../dejagnu.h:199: ISO C++ forbids declaration of `ostream' with no type
../../dejagnu.h:199: `ostream' is neither function nor member function; cannot
   be declared friend
../../dejagnu.h:199: parse error before `&' token
../../dejagnu.h:203: semicolon missing after declaration of `TestState'
../../dejagnu.h: In member function `void TestState::testrun(...)':
../../dejagnu.h:139: `b' undeclared (first use this function)
../../dejagnu.h:140: `s' undeclared (first use this function)
../../dejagnu.h: In member function `void TestState::pass(...)':
../../dejagnu.h:148: `lastmsg' undeclared (first use this function)
../../dejagnu.h:149: `cout' undeclared (first use this function)
../../dejagnu.h:149: `endl' undeclared (first use this function)
../../dejagnu.h: In member function `void TestState::pass(const char*)':
../../dejagnu.h:152: parse error before `int'
../../dejagnu.h: In member function `void TestState::fail(const char*)':
../../dejagnu.h:163: parse error before `int'
../../dejagnu.h: In member function `void TestState::untested(const char*)':
../../dejagnu.h:174: parse error before `int'
../../dejagnu.h: In member function `void TestState::unresolved(const char*)':
../../dejagnu.h:185: parse error before `int'
../../dejagnu.h: At global scope:
../../dejagnu.h:203: ISO C++ forbids defining types within return type
../../dejagnu.h:203: extraneous `int' ignored
../../dejagnu.h:203: semicolon missing after declaration of `class TestState'
../../dejagnu.h:206: parse error before `)' token
unit.cc:17: 'string' is used as a type, but is not defined as a type.
unit.cc: In function `int main(int, char**)':
unit.cc:46: ISO C++ forbids assignment of arrays
unit.cc:51: `streambuf' undeclared (first use this function)
unit.cc:51: `sb' undeclared (first use this function)
unit.cc:55: `class TestClass1' has no member named `tname'
unit.cc:57: `class TestClass1' has no member named `tname'
unit.cc:59: `class TestClass1' has no member named `tname'
unit.cc:64: ISO C++ forbids assignment of arrays
unit.cc:72: ISO C++ forbids assignment of arrays
unit.cc:75: ISO C++ forbids assignment of arrays
unit.cc:83: ISO C++ forbids assignment of arrays
unit.cc:86: ISO C++ forbids assignment of arrays
unit.cc:94: ISO C++ forbids assignment of arrays
unit.cc:97: ISO C++ forbids assignment of arrays

^ permalink raw reply	[flat|nested] 19+ messages in thread

end of thread, other threads:[~2002-08-05 19:08 UTC | newest]

Thread overview: 19+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2002-08-03 17:13 Building dejagnu with latest GCC Richard Kenner
2002-08-04  4:04 ` Jason Merrill
2002-08-04  4:31   ` Gabriel Dos Reis
  -- strict thread matches above, loose matches on Subject: below --
2002-08-04  5:07 Richard Kenner
2002-08-04  5:22 ` Gabriel Dos Reis
2002-08-04  4:28 Richard Kenner
2002-08-04  4:46 ` Gabriel Dos Reis
2002-08-04  7:43 ` Fergus Henderson
2002-08-04  7:50   ` Gabriel Dos Reis
2002-08-03 21:32 John David Anglin
2002-08-03 23:09 ` Tim Prince
2002-08-04 10:32   ` John David Anglin
2002-08-03 15:49 Richard Kenner
2002-08-03 16:04 ` Gabriel Dos Reis
2002-08-03 15:44 Richard Kenner
2002-08-03 15:48 ` Gabriel Dos Reis
2002-08-03 15:29 Richard Kenner
2002-08-03 15:42 ` Gabriel Dos Reis
2002-08-05 12:08 ` Mike Stump

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).