This is the mail archive of the gcc-bugs@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]

c++/8319: warnings out of system headers


>Number:         8319
>Category:       c++
>Synopsis:       warnings out of system headers
>Confidential:   no
>Severity:       non-critical
>Priority:       medium
>Responsible:    unassigned
>State:          open
>Class:          rejects-legal
>Submitter-Id:   net
>Arrival-Date:   Wed Oct 23 01:46:01 PDT 2002
>Closed-Date:
>Last-Modified:
>Originator:     Sebastian Setzer
>Release:        unknown-1.0
>Organization:
>Environment:
gcc -v
Reading specs from ...sparc-sun-solaris2.5.1/3.2/specs
Configured with: .../configure --prefix=... --program-suffix=-3.2 --with-gnu-as --with-as=...bin/as --with-gnu-ld --with-ld=...bin/ld --enable-threads --enable-version-specific-runtime-libs --enable-languages=ada,c,c++
Thread model: posix
gcc version 3.2
>Description:
The problem described below disappears, if I DON'T set the
environment variables.
But now I get warnings out of system-headers
(which I shouldn't, should I ?)
.../3.2/include/c++/bits/stl_threads.h:  
In instantiation of `__gthread_mutex_t        
std::_Swap_lock_struct<0>::_S_swap_lock':  
.../3.2/include/c++/bits/stl_threads.h:122:
instantiated from here
.../3.2/include/c++/bits/stl_threads.h:115:
warning: aggregate
   has a partly bracketed initializer
.../3.2/include/c++/bits/stl_threads.h:115:
warning: aggregate
   has a partly bracketed initializer

> When I want to compile a simple Program which does an
> #include <iostream>
> I get errors like this one:
> -------------------------------------------------------
> In file included from .../3.2/include/c++/iosfwd:45,   
>                  from .../3.2/include/c++/ios:44,
>                  from .../3.2/include/c++/ostream:45,
>                  from .../3.2/include/c++/iostream:45,
>                  from read.cpp:1:
> .../3.2/include/c++/bits/stringfwd.h:49:
> template
>    with C linkage
> -------------------------------------------------------
> where ... is a quite long path.
> I've set the following environment variables:
> 
> set gcc32dir=/projects/tmp/setzersn/gcc3/install_02
> setenv GCC_EXEC_PREFIX      ${gcc32dir}/lib/gcc-lib/sparc-sun-solaris2.5.1/3.$
> setenv LIBRARY_PATH         ${gcc32dir}/lib/gcc-lib/sparc-sun-solaris2.5.1/3.2
> setenv C_INCLUDE_PATH       ${gcc32dir}/lib/gcc-lib/sparc-sun-solaris2.5.1/3.$
> setenv CPLUS_INCLUDE_PATH   ${gcc32dir}/lib/gcc-lib/sparc-sun-solaris2.5.1/3.$
> set     path = (${gcc32dir}/bin $path)
>
>How-To-Repeat:
Compile a program with #include <iostream> (On Solaris ?)
>Fix:

>Release-Note:
>Audit-Trail:
>Unformatted:


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