This is the mail archive of the
mailing list for the GCC project.
Re: Building dejagnu with latest GCC
- From: Fergus Henderson <fjh at cs dot mu dot OZ dot AU>
- To: Richard Kenner <kenner at vlsi1 dot ultra dot nyu dot edu>
- Cc: gcc at gcc dot gnu dot org
- Date: Mon, 5 Aug 2002 00:43:06 +1000
- Subject: Re: Building dejagnu with latest GCC
- References: <10208041128.AA03448@vlsi1.ultra.nyu.edu>
On 04-Aug-2002, Richard Kenner <email@example.com> wrote:
> 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:
I agree, the output *is* confusing. It would be nicer if gcc would
prefix error messages with "error:" (like it prefixes warning messages
with "warning:"). This would make it easier to spot errors in cases such
as this one where an error is mixed with a bunch of warnings.
> make: 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 18.104.22.168 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: *** [unit.o] Error 1
> make: Leaving directory `/g/gcc/dejagnu-1.4.1/testsuite/libdejagnu'
Fergus Henderson <firstname.lastname@example.org> | "I have always known that the pursuit
The University of Melbourne | of excellence is a lethal habit"
WWW: <http://www.cs.mu.oz.au/~fjh> | -- the last words of T. S. Garp.