public inbox for gcc-prs@sourceware.org
help / color / mirror / Atom feed
* c++/8319: warnings out of system headers
@ 2002-10-23 1:46 setzersn
0 siblings, 0 replies; 2+ messages in thread
From: setzersn @ 2002-10-23 1:46 UTC (permalink / raw)
To: gcc-gnats
>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:
^ permalink raw reply [flat|nested] 2+ messages in thread
* c++/8319: warnings out of system headers
@ 2002-10-24 1:26 setzersn
0 siblings, 0 replies; 2+ messages in thread
From: setzersn @ 2002-10-24 1:26 UTC (permalink / raw)
To: nobody; +Cc: gcc-prs
The following reply was made to PR c++/8319; it has been noted by GNATS.
From: setzersn@gmx.de
To: gcc-gnats@gcc.gnu.org
Cc:
Subject: c++/8319: warnings out of system headers
Date: 23 Oct 2002 08:39:17 -0000
>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:
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2002-10-24 8:26 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2002-10-23 1:46 c++/8319: warnings out of system headers setzersn
2002-10-24 1:26 setzersn
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).