public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug c++/43865]  New: C++ in freestanding environment
@ 2010-04-23  9:13 sebastian dot huber at embedded-brains dot de
  2010-04-23  9:15 ` [Bug c++/43865] " sebastian dot huber at embedded-brains dot de
                   ` (7 more replies)
  0 siblings, 8 replies; 9+ messages in thread
From: sebastian dot huber at embedded-brains dot de @ 2010-04-23  9:13 UTC (permalink / raw)
  To: gcc-bugs

You can disable the requirement of a hosted environment for C++ and use the
freestanding environment via a configure option:

--disable-hosted-libstdcxx

This leads to build errors.  The configure command line was:

"$source_dir/configure" \
        "--prefix=/opt/rtems-4.10" \
        "--target=arm-rtems4.10" \
        --verbose \
        --enable-serial-configure \
        --with-gnu-as \
        --with-gnu-ld \
        --with-newlib \
        --disable-libstdcxx-pch \
        --disable-nls \
        --without-included-gettext \
        --disable-win32-registry \
        --enable-version-specific-runtime-libs \
        --enable-threads \
        --enable-newlib-io-c99-formats \
        --enable-languages=c,c++ \
        --disable-hosted-libstdcxx

The first observation is that the build looked successful (no errors from
make), but a

$ find -name libstdc++.a

reveals that no such library exists in the build tree.  Now lets try this

$ cd arm-rtems4.10/libstdc++-v3/src
$ make

and we have a compile error.  Output from

$ make -i

follows.


-- 
           Summary: C++ in freestanding environment
           Product: gcc
           Version: 4.5.0
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: c++
        AssignedTo: unassigned at gcc dot gnu dot org
        ReportedBy: sebastian dot huber at embedded-brains dot de


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=43865


^ permalink raw reply	[flat|nested] 9+ messages in thread

* [Bug c++/43865] C++ in freestanding environment
  2010-04-23  9:13 [Bug c++/43865] New: C++ in freestanding environment sebastian dot huber at embedded-brains dot de
@ 2010-04-23  9:15 ` sebastian dot huber at embedded-brains dot de
  2010-04-23  9:34 ` [Bug libstdc++/43865] " redi at gcc dot gnu dot org
                   ` (6 subsequent siblings)
  7 siblings, 0 replies; 9+ messages in thread
From: sebastian dot huber at embedded-brains dot de @ 2010-04-23  9:15 UTC (permalink / raw)
  To: gcc-bugs



------- Comment #1 from sebastian dot huber at embedded-brains dot de  2010-04-23 09:14 -------
Created an attachment (id=20470)
 --> (http://gcc.gnu.org/bugzilla/attachment.cgi?id=20470&action=view)
Compile errors from above "$ make -i".


-- 


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=43865


^ permalink raw reply	[flat|nested] 9+ messages in thread

* [Bug libstdc++/43865] C++ in freestanding environment
  2010-04-23  9:13 [Bug c++/43865] New: C++ in freestanding environment sebastian dot huber at embedded-brains dot de
  2010-04-23  9:15 ` [Bug c++/43865] " sebastian dot huber at embedded-brains dot de
@ 2010-04-23  9:34 ` redi at gcc dot gnu dot org
  2010-04-23 10:27 ` redi at gcc dot gnu dot org
                   ` (5 subsequent siblings)
  7 siblings, 0 replies; 9+ messages in thread
From: redi at gcc dot gnu dot org @ 2010-04-23  9:34 UTC (permalink / raw)
  To: gcc-bugs



-- 

redi at gcc dot gnu dot org changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|UNCONFIRMED                 |NEW
          Component|c++                         |libstdc++
     Ever Confirmed|0                           |1
   Last reconfirmed|0000-00-00 00:00:00         |2010-04-23 09:34:19
               date|                            |


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=43865


^ permalink raw reply	[flat|nested] 9+ messages in thread

* [Bug libstdc++/43865] C++ in freestanding environment
  2010-04-23  9:13 [Bug c++/43865] New: C++ in freestanding environment sebastian dot huber at embedded-brains dot de
  2010-04-23  9:15 ` [Bug c++/43865] " sebastian dot huber at embedded-brains dot de
  2010-04-23  9:34 ` [Bug libstdc++/43865] " redi at gcc dot gnu dot org
@ 2010-04-23 10:27 ` redi at gcc dot gnu dot org
  2010-04-27 22:27 ` redi at gcc dot gnu dot org
                   ` (4 subsequent siblings)
  7 siblings, 0 replies; 9+ messages in thread
From: redi at gcc dot gnu dot org @ 2010-04-23 10:27 UTC (permalink / raw)
  To: gcc-bugs

[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #1: Type: text/plain, Size: 1472 bytes --]



------- Comment #2 from redi at gcc dot gnu dot org  2010-04-23 10:27 -------
building 4.6.0 with --disable-hosted-libstdcxx I get

In file included from
../../../../gcc-4.x/libstdc++-v3/libsupc++/eh_call.cc:27:0:
/home/redi/src/gcc/buildfree/x86_64-unknown-linux-gnu/libstdc++-v3/include/cstdlib:60:40:
error: expected initializer before ‘_GLIBC_NORETURN’
/home/redi/src/gcc/buildfree/x86_64-unknown-linux-gnu/libstdc++-v3/include/cstdlib:62:38:
error: expected initializer before ‘_GLIBC_NORETURN’
In file included from
../../../../gcc-4.x/libstdc++-v3/libsupc++/eh_call.cc:33:0:
/home/redi/src/gcc/gcc-4.x/libstdc++-v3/../gcc/unwind-pe.h: In function
‘unsigned int size_of_encoded_value(unsigned char)’:
/home/redi/src/gcc/gcc-4.x/libstdc++-v3/../gcc/unwind-pe.h:88:3: error: ‘abort’
is not a member of ‘std’
/home/redi/src/gcc/gcc-4.x/libstdc++-v3/../gcc/unwind-pe.h: In function
‘_Unwind_Ptr base_of_encoded_value(unsigned char, _Unwind_Context*)’:
/home/redi/src/gcc/gcc-4.x/libstdc++-v3/../gcc/unwind-pe.h:120:3: error:
‘abort’ is not a member of ‘std’
/home/redi/src/gcc/gcc-4.x/libstdc++-v3/../gcc/unwind-pe.h: In function ‘const
unsigned char* read_encoded_value_with_base(unsigned char, _Unwind_Ptr, const
unsigned char*, _Unwind_Ptr*)’:
/home/redi/src/gcc/gcc-4.x/libstdc++-v3/../gcc/unwind-pe.h:257:4: error:
‘abort’ is not a member of ‘std’
make[4]: *** [eh_call.lo] Error 1


-- 


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=43865


^ permalink raw reply	[flat|nested] 9+ messages in thread

* [Bug libstdc++/43865] C++ in freestanding environment
  2010-04-23  9:13 [Bug c++/43865] New: C++ in freestanding environment sebastian dot huber at embedded-brains dot de
                   ` (2 preceding siblings ...)
  2010-04-23 10:27 ` redi at gcc dot gnu dot org
@ 2010-04-27 22:27 ` redi at gcc dot gnu dot org
  2010-04-27 22:34 ` [Bug libstdc++/43865] [4.5 Regression] " redi at gcc dot gnu dot org
                   ` (3 subsequent siblings)
  7 siblings, 0 replies; 9+ messages in thread
From: redi at gcc dot gnu dot org @ 2010-04-27 22:27 UTC (permalink / raw)
  To: gcc-bugs



------- Comment #3 from redi at gcc dot gnu dot org  2010-04-27 22:27 -------
Created an attachment (id=20501)
 --> (http://gcc.gnu.org/bugzilla/attachment.cgi?id=20501&action=view)
patch to fix freestanding build

this seems to fix the non-hosted build


-- 

redi at gcc dot gnu dot org changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
         AssignedTo|unassigned at gcc dot gnu   |redi at gcc dot gnu dot org
                   |dot org                     |
             Status|NEW                         |ASSIGNED


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=43865


^ permalink raw reply	[flat|nested] 9+ messages in thread

* [Bug libstdc++/43865] [4.5 Regression] C++ in freestanding environment
  2010-04-23  9:13 [Bug c++/43865] New: C++ in freestanding environment sebastian dot huber at embedded-brains dot de
                   ` (3 preceding siblings ...)
  2010-04-27 22:27 ` redi at gcc dot gnu dot org
@ 2010-04-27 22:34 ` redi at gcc dot gnu dot org
  2010-04-27 22:54 ` redi at gcc dot gnu dot org
                   ` (2 subsequent siblings)
  7 siblings, 0 replies; 9+ messages in thread
From: redi at gcc dot gnu dot org @ 2010-04-27 22:34 UTC (permalink / raw)
  To: gcc-bugs



------- Comment #4 from redi at gcc dot gnu dot org  2010-04-27 22:33 -------
This was caused by http://gcc.gnu.org/viewcvs?view=revision&revision=146604 and
I think it's a simple typo


-- 

redi at gcc dot gnu dot org changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |hubicka at gcc dot gnu dot
                   |                            |org
           Keywords|                            |build
            Summary|C++ in freestanding         |[4.5 Regression] C++ in
                   |environment                 |freestanding environment
   Target Milestone|---                         |4.5.1


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=43865


^ permalink raw reply	[flat|nested] 9+ messages in thread

* [Bug libstdc++/43865] [4.5 Regression] C++ in freestanding environment
  2010-04-23  9:13 [Bug c++/43865] New: C++ in freestanding environment sebastian dot huber at embedded-brains dot de
                   ` (4 preceding siblings ...)
  2010-04-27 22:34 ` [Bug libstdc++/43865] [4.5 Regression] " redi at gcc dot gnu dot org
@ 2010-04-27 22:54 ` redi at gcc dot gnu dot org
  2010-04-27 23:30 ` redi at gcc dot gnu dot org
  2010-04-27 23:31 ` [Bug libstdc++/43865] [4.5/4.6 " redi at gcc dot gnu dot org
  7 siblings, 0 replies; 9+ messages in thread
From: redi at gcc dot gnu dot org @ 2010-04-27 22:54 UTC (permalink / raw)
  To: gcc-bugs



------- Comment #5 from redi at gcc dot gnu dot org  2010-04-27 22:54 -------
Subject: Bug 43865

Author: redi
Date: Tue Apr 27 22:54:13 2010
New Revision: 158812

URL: http://gcc.gnu.org/viewcvs?root=gcc&view=rev&rev=158812
Log:
2010-04-27  Jonathan Wakely  <jwakely.gcc@gmail.com>

        PR libstdc++/43865
        * include/c_global/cstdlib (abort, exit): _GLIBCXX_NORETURN typo.


Modified:
    trunk/libstdc++-v3/ChangeLog
    trunk/libstdc++-v3/include/c_global/cstdlib


-- 


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=43865


^ permalink raw reply	[flat|nested] 9+ messages in thread

* [Bug libstdc++/43865] [4.5 Regression] C++ in freestanding environment
  2010-04-23  9:13 [Bug c++/43865] New: C++ in freestanding environment sebastian dot huber at embedded-brains dot de
                   ` (5 preceding siblings ...)
  2010-04-27 22:54 ` redi at gcc dot gnu dot org
@ 2010-04-27 23:30 ` redi at gcc dot gnu dot org
  2010-04-27 23:31 ` [Bug libstdc++/43865] [4.5/4.6 " redi at gcc dot gnu dot org
  7 siblings, 0 replies; 9+ messages in thread
From: redi at gcc dot gnu dot org @ 2010-04-27 23:30 UTC (permalink / raw)
  To: gcc-bugs



------- Comment #6 from redi at gcc dot gnu dot org  2010-04-27 23:30 -------
Subject: Bug 43865

Author: redi
Date: Tue Apr 27 23:30:21 2010
New Revision: 158816

URL: http://gcc.gnu.org/viewcvs?root=gcc&view=rev&rev=158816
Log:
2010-04-27  Jonathan Wakely  <jwakely.gcc@gmail.com>

        PR libstdc++/43865
        * include/c_global/cstdlib (abort, exit): _GLIBCXX_NORETURN typo.

Modified:
    branches/gcc-4_5-branch/libstdc++-v3/ChangeLog
    branches/gcc-4_5-branch/libstdc++-v3/include/c_global/cstdlib


-- 


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=43865


^ permalink raw reply	[flat|nested] 9+ messages in thread

* [Bug libstdc++/43865] [4.5/4.6 Regression] C++ in freestanding environment
  2010-04-23  9:13 [Bug c++/43865] New: C++ in freestanding environment sebastian dot huber at embedded-brains dot de
                   ` (6 preceding siblings ...)
  2010-04-27 23:30 ` redi at gcc dot gnu dot org
@ 2010-04-27 23:31 ` redi at gcc dot gnu dot org
  7 siblings, 0 replies; 9+ messages in thread
From: redi at gcc dot gnu dot org @ 2010-04-27 23:31 UTC (permalink / raw)
  To: gcc-bugs



------- Comment #7 from redi at gcc dot gnu dot org  2010-04-27 23:31 -------
fixed for 4.5.1 and 4.6.0


-- 

redi at gcc dot gnu dot org changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|ASSIGNED                    |RESOLVED
         Resolution|                            |FIXED
            Summary|[4.5 Regression] C++ in     |[4.5/4.6 Regression] C++ in
                   |freestanding environment    |freestanding environment


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=43865


^ permalink raw reply	[flat|nested] 9+ messages in thread

end of thread, other threads:[~2010-04-27 23:31 UTC | newest]

Thread overview: 9+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2010-04-23  9:13 [Bug c++/43865] New: C++ in freestanding environment sebastian dot huber at embedded-brains dot de
2010-04-23  9:15 ` [Bug c++/43865] " sebastian dot huber at embedded-brains dot de
2010-04-23  9:34 ` [Bug libstdc++/43865] " redi at gcc dot gnu dot org
2010-04-23 10:27 ` redi at gcc dot gnu dot org
2010-04-27 22:27 ` redi at gcc dot gnu dot org
2010-04-27 22:34 ` [Bug libstdc++/43865] [4.5 Regression] " redi at gcc dot gnu dot org
2010-04-27 22:54 ` redi at gcc dot gnu dot org
2010-04-27 23:30 ` redi at gcc dot gnu dot org
2010-04-27 23:31 ` [Bug libstdc++/43865] [4.5/4.6 " redi at gcc dot gnu dot org

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).