This is the mail archive of the gcc@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: Building dejagnu with latest 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'


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]