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: Boostrap failure on i386-unknown-freebsd4.7


Gerald Pfeifer wrote:
Mark, Jeffrey,

given the latest entries in both gcc/cp/ChangeLog and libstdc++/ChangeLog
my gut tells me there might be some relation between these entries and the
following new bootstrap failure on i386-unknown-freebsd4.7:

/files/pfeifer/OBJ-0116-2337/gcc/xgcc -shared-libgcc -B/files/pfeifer/OBJ-0116-2337/gcc/ -nostdinc++ -L/files/pfeifer/OBJ-0116-2337/i386-unknown-freebsd4.7/libstdc++-v3/src -L/files/pfeifer/OBJ-0116-2337/i386-unknown-freebsd4.7/libstdc++-v3/src/.libs -B/sw/gcc-current/i386-unknown-freebsd4.7/bin/ -B/sw/gcc-current/i386-unknown-freebsd4.7/lib/ -isystem /sw/gcc-current/i386-unknown-freebsd4.7/include -nostdinc++ -I/files/pfeifer/OBJ-0116-2337/i386-unknown-freebsd4.7/libstdc++-v3/include/i386-unknown-freebsd4.7 -I/files/pfeifer/OBJ-0116-2337/i386-unknown-freebsd4.7/libstdc++-v3/include -I/sw/test/gcc/cvs/libstdc++-v3/libsupc++ -I/sw/test/gcc/cvs/libstdc++-v3/libmath -g -O2 -fno-implicit-templates -Wall -Wno-format -W -Wwrite-strings -Winline -fdiagnostics-show-location=once -ffunction-sections -fdata-sections -c /sw/test/gcc/cvs/libstdc++-v3/src/bitset.cc  -fPIC -DPIC -o .libs/bitset.o
In file included from /files/pfeifer/OBJ-0116-2337/i386-unknown-freebsd4.7/libstdc++-v3/include/bits/locale_facets.h:1738,
                 from /files/pfeifer/OBJ-0116-2337/i386-unknown-freebsd4.7/libstdc++-v3/include/bits/basic_ios.h:41,
                 from /files/pfeifer/OBJ-0116-2337/i386-unknown-freebsd4.7/libstdc++-v3/include/ios:51,
                 from /files/pfeifer/OBJ-0116-2337/i386-unknown-freebsd4.7/libstdc++-v3/include/ostream:45,
                 from /files/pfeifer/OBJ-0116-2337/i386-unknown-freebsd4.7/libstdc++-v3/include/bitset:58,
                 from /sw/test/gcc/cvs/libstdc++-v3/src/bitset.cc:43:
/files/pfeifer/OBJ-0116-2337/i386-unknown-freebsd4.7/libstdc++-v3/include/i386-unknown-freebsd4.7/bits/messages_members.h: In
   constructor `std::messages_byname<_CharT>::messages_byname(const char*,
   unsigned int)':
/files/pfeifer/OBJ-0116-2337/i386-unknown-freebsd4.7/libstdc++-v3/include/i386-unknown-freebsd4.7/bits/messages_members.h:79: error: `
   _M_c_locale_messages' has not been declared
/files/pfeifer/OBJ-0116-2337/i386-unknown-freebsd4.7/libstdc++-v3/include/i386-unknown-freebsd4.7/bits/messages_members.h:80: error: `
   _M_c_locale_messages' has not been declared
gmake[4]: *** [bitset.lo] Error 1
gmake[4]: Leaving directory `/files/pfeifer/OBJ-0116-2337/i386-unknown-freebsd4.7/libstdc++-v3/src'

Is it possible that you updated locale/gnu and locale/ieee_1003.1-2001,
but missed local/generic in libstdc++/config?
It's plausible. I have attached a patch that should resolve the problem. Would you be willing to test it? It should be as simple as applying the patch and then restarting your compilation. If the compilation succeeds, the patch is presumably correct.

If the patch is correct and you want to check it in, feel free. Put your name on it if you desire. Otherwise, I will check it in.

Jeffrey D. Oldham
oldham@codesourcery.com
2003-01-16  Jeffrey D. Oldham  <oldham@codesourcery.com>

	* config/locale/generic/messages_members.h
	(messages_byname<_CharT>::messages_byname): Use this-> to refer to
	unqualified members of base clasess.
Index: config/locale/generic/messages_members.h
===================================================================
RCS file: /cvs/gcc/gcc/libstdc++-v3/config/locale/generic/messages_members.h,v
retrieving revision 1.2
diff -c -p -r1.2 messages_members.h
*** config/locale/generic/messages_members.h	6 Jan 2003 21:22:55 -0000	1.2
--- config/locale/generic/messages_members.h	17 Jan 2003 00:04:13 -0000
***************
*** 76,81 ****
       messages_byname<_CharT>::messages_byname(const char* __s, size_t __refs)
       : messages<_CharT>(__refs) 
       { 
!        _S_destroy_c_locale(_M_c_locale_messages);
!        _S_create_c_locale(_M_c_locale_messages, __s); 
       }
--- 76,81 ----
       messages_byname<_CharT>::messages_byname(const char* __s, size_t __refs)
       : messages<_CharT>(__refs) 
       { 
!        _S_destroy_c_locale(this->_M_c_locale_messages);
!        _S_create_c_locale(this->_M_c_locale_messages, __s); 
       }

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