[PATCH] New *-*-solaris2.x cross configury, including looser wchar_t requirements for all targets
Brad Spencer
spencer@infointeractive.com
Fri Sep 26 01:17:00 GMT 2003
On Thu, Sep 25, 2003 at 03:32:14PM -0500, Benjamin Kosnik wrote:
> In, thanks.
>
> If you could provide some feedback as to the 4 odd fails on solaris
> 2.8/2.9 I would appreciate it. There is a general lack of availability
> to debug these issues among the maintainers. Your feedback would be
> appreciated.
These are the only errors I got out of the testsuite with the the
sparc-sun-solaris2.8 native compiler, and all of them were problems
with the tests themselves, it seems. Which test failures were you
referring to?
FAIL: 27_io/basic_filebuf/close/char/1.cc execution test
This fails because filebuf_members-1.txt was not writable and the
system call underneath line 53 fails with EACCES. Changing the file
permissions made this test run fine.
The following tests all failed due to incorrect file permissions on
their associated (provided) input files. The tests all tried to do
something which required the file to be writable, and it wasn't.
Changing the file permissions made them work. This was a source of
seemingly endless entertainment. Unfortunately, I didn't track
exactly which files needed +w.
FAIL: 27_io/basic_filebuf/is_open/char/1.cc execution test
FAIL: 27_io/basic_filebuf/open/char/1.cc execution test
FAIL: 27_io/basic_filebuf/sbumpc/char/1-io.cc execution test
FAIL: 27_io/basic_filebuf/sbumpc/char/2-io.cc execution test
FAIL: 27_io/basic_filebuf/seekoff/char/1-io.cc execution test
FAIL: 27_io/basic_filebuf/seekoff/char/1-out.cc execution test
FAIL: 27_io/basic_filebuf/seekoff/char/2-io.cc execution test
FAIL: 27_io/basic_filebuf/seekoff/char/2-out.cc execution test
FAIL: 27_io/basic_filebuf/seekoff/char/3-io.cc execution test
FAIL: 27_io/basic_filebuf/seekoff/char/3-out.cc execution test
FAIL: 27_io/basic_filebuf/seekpos/char/1-io.cc execution test
FAIL: 27_io/basic_filebuf/seekpos/char/1-out.cc execution test
FAIL: 27_io/basic_filebuf/seekpos/char/2-io.cc execution test
FAIL: 27_io/basic_filebuf/seekpos/char/2-out.cc execution test
FAIL: 27_io/basic_filebuf/seekpos/char/3-io.cc execution test
FAIL: 27_io/basic_filebuf/seekpos/char/3-out.cc execution test
FAIL: 27_io/basic_filebuf/setbuf/char/1.cc execution test
FAIL: 27_io/basic_filebuf/sgetc/char/1-io.cc execution test
FAIL: 27_io/basic_filebuf/sgetc/char/2-io.cc execution test
FAIL: 27_io/basic_filebuf/sgetn/char/1-io.cc execution test
FAIL: 27_io/basic_filebuf/sgetn/char/2-io.cc execution test
FAIL: 27_io/basic_filebuf/snextc/char/1-io.cc execution test
FAIL: 27_io/basic_filebuf/snextc/char/2-io.cc execution test
FAIL: 27_io/basic_istream/seekg/char/fstream.cc execution test
FAIL: 27_io/basic_istream/tellg/char/fstream.cc execution test
[...]
The following tests all failed due to a missing "std::" on some
exception names. I fixed and confirmed this with each.
FAIL: 27_io/basic_filebuf/cons/wchar_t/10132-1.cc (test for excess
errors)
WARNING: 27_io/basic_filebuf/cons/wchar_t/10132-1.cc compilation
failed to produce executable
FAIL: 27_io/basic_istream/sentry/char/3983-fstream.cc (test for excess
errors)
WARNING: 27_io/basic_istream/sentry/char/3983-fstream.cc compilation
failed to produce executable
FAIL: 27_io/basic_istream/sentry/char/3983-sstream.cc (test for excess
errors)
WARNING: 27_io/basic_istream/sentry/char/3983-sstream.cc compilation
failed to produce executable
FAIL: 27_io/basic_ostream/sentry/char/3983-fstream.cc (test for excess
errors)
WARNING: 27_io/basic_ostream/sentry/char/3983-fstream.cc compilation
failed to produce executable
FAIL: 27_io/basic_ostream/sentry/char/3983-sstream.cc (test for excess
errors)
WARNING: 27_io/basic_ostream/sentry/char/3983-sstream.cc compilation
failed to produce executable
=== libstdc++ Summary ===
# of expected passes 2088
# of unexpected failures 31
# of expected failures 12
The 31 are those I've mentioned above. I've attached a patch for the
exceptions that were missing "std::".
--
------------------------------------------------------------------
Brad Spencer - spencer@infointeractive.com - "It's quite nice..."
Systems Architect | InfoInterActive Corp. | A Canadian AOL Company
-------------- next part --------------
Index: testsuite/27_io/basic_filebuf/cons/wchar_t/10132-1.cc
===================================================================
RCS file: /cvsroot/gcc/gcc/libstdc++-v3/testsuite/27_io/basic_filebuf/cons/wchar_t/10132-1.cc,v
retrieving revision 1.2
diff -u -p -r1.2 10132-1.cc
--- testsuite/27_io/basic_filebuf/cons/wchar_t/10132-1.cc 23 Sep 2003 20:02:53 -0000 1.2
+++ testsuite/27_io/basic_filebuf/cons/wchar_t/10132-1.cc 26 Sep 2003 01:10:16 -0000
@@ -46,7 +46,7 @@ int main()
{
delete fb;
}
- catch(exception& obj)
+ catch(std::exception& obj)
{
VERIFY( false );
}
Index: testsuite/27_io/basic_istream/sentry/char/3983-fstream.cc
===================================================================
RCS file: /cvsroot/gcc/gcc/libstdc++-v3/testsuite/27_io/basic_istream/sentry/char/3983-fstream.cc,v
retrieving revision 1.7
diff -u -p -r1.7 3983-fstream.cc
--- testsuite/27_io/basic_istream/sentry/char/3983-fstream.cc 23 Sep 2003 20:03:09 -0000 1.7
+++ testsuite/27_io/basic_istream/sentry/char/3983-fstream.cc 26 Sep 2003 01:10:17 -0000
@@ -136,27 +136,27 @@ void test03()
int i;
ifs_uc >> i;
}
- catch (bad_cast& obj)
+ catch (std::bad_cast& obj)
{ }
- catch (exception& obj)
+ catch (std::exception& obj)
{ test = false; }
try
{
ifs_uc >> arr;
}
- catch (bad_cast& obj)
+ catch (std::bad_cast& obj)
{ }
- catch (exception& obj)
+ catch (std::exception& obj)
{ test = false; }
try
{
ifs_uc >> ws;
}
- catch (bad_cast& obj)
+ catch (std::bad_cast& obj)
{ }
- catch (exception& obj)
+ catch (std::exception& obj)
{ test = false; }
try
@@ -164,9 +164,9 @@ void test03()
basic_string<unsigned char> s_uc(arr);
ifs_uc >> s_uc;
}
- catch (bad_cast& obj)
+ catch (std::bad_cast& obj)
{ }
- catch (exception& obj)
+ catch (std::exception& obj)
{ test = false; }
VERIFY( test );
Index: testsuite/27_io/basic_istream/sentry/char/3983-sstream.cc
===================================================================
RCS file: /cvsroot/gcc/gcc/libstdc++-v3/testsuite/27_io/basic_istream/sentry/char/3983-sstream.cc,v
retrieving revision 1.3
diff -u -p -r1.3 3983-sstream.cc
--- testsuite/27_io/basic_istream/sentry/char/3983-sstream.cc 23 Sep 2003 20:03:09 -0000 1.3
+++ testsuite/27_io/basic_istream/sentry/char/3983-sstream.cc 26 Sep 2003 01:10:17 -0000
@@ -136,27 +136,27 @@ void test03()
int i;
iss_uc >> i;
}
- catch (bad_cast& obj)
+ catch (std::bad_cast& obj)
{ }
- catch (exception& obj)
+ catch (std::exception& obj)
{ test = false; }
try
{
iss_uc >> arr;
}
- catch (bad_cast& obj)
+ catch (std::bad_cast& obj)
{ }
- catch (exception& obj)
+ catch (std::exception& obj)
{ test = false; }
try
{
iss_uc >> ws;
}
- catch (bad_cast& obj)
+ catch (std::bad_cast& obj)
{ }
- catch (exception& obj)
+ catch (std::exception& obj)
{ test = false; }
try
@@ -164,9 +164,9 @@ void test03()
basic_string<unsigned char> s_uc(arr);
iss_uc >> s_uc;
}
- catch (bad_cast& obj)
+ catch (std::bad_cast& obj)
{ }
- catch (exception& obj)
+ catch (std::exception& obj)
{ test = false; }
VERIFY( test );
Index: testsuite/27_io/basic_ostream/sentry/char/3983-fstream.cc
===================================================================
RCS file: /cvsroot/gcc/gcc/libstdc++-v3/testsuite/27_io/basic_ostream/sentry/char/3983-fstream.cc,v
retrieving revision 1.7
diff -u -p -r1.7 3983-fstream.cc
--- testsuite/27_io/basic_ostream/sentry/char/3983-fstream.cc 23 Sep 2003 20:03:15 -0000 1.7
+++ testsuite/27_io/basic_ostream/sentry/char/3983-fstream.cc 26 Sep 2003 01:10:18 -0000
@@ -135,9 +135,9 @@ void test03()
bool b = true;
ofs_uc << b;
}
- catch (bad_cast& obj)
+ catch (std::bad_cast& obj)
{ }
- catch (exception& obj)
+ catch (std::exception& obj)
{ test = false; }
VERIFY( test );
Index: testsuite/27_io/basic_ostream/sentry/char/3983-sstream.cc
===================================================================
RCS file: /cvsroot/gcc/gcc/libstdc++-v3/testsuite/27_io/basic_ostream/sentry/char/3983-sstream.cc,v
retrieving revision 1.3
diff -u -p -r1.3 3983-sstream.cc
--- testsuite/27_io/basic_ostream/sentry/char/3983-sstream.cc 23 Sep 2003 20:03:15 -0000 1.3
+++ testsuite/27_io/basic_ostream/sentry/char/3983-sstream.cc 26 Sep 2003 01:10:18 -0000
@@ -135,9 +135,9 @@ void test03()
bool b = true;
oss_uc << b;
}
- catch (bad_cast& obj)
+ catch (std::bad_cast& obj)
{ }
- catch (exception& obj)
+ catch (std::exception& obj)
{ test = false; }
VERIFY( test );
More information about the Libstdc++
mailing list