public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
From: "chris at contemporary dot net.au" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug target/61026] New: sh-rtems4.11 build of 4.9.0 fails on FreeBSD 10 c++ (clang).
Date: Thu, 01 May 2014 09:01:00 -0000	[thread overview]
Message-ID: <bug-61026-4@http.gcc.gnu.org/bugzilla/> (raw)

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

            Bug ID: 61026
           Summary: sh-rtems4.11 build of 4.9.0 fails on FreeBSD 10 c++
                    (clang).
           Product: gcc
           Version: 4.9.0
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: target
          Assignee: unassigned at gcc dot gnu.org
          Reporter: chris at contemporary dot net.au

Building gcc-4.9.0 and gcc-4.8.2 for the sh-rtems4.11 on FreeBSD 10 using the
standard c++ compiler fails with ...

 [ Note config/sh/sh.c has a comment about this at the top ]

In file included from /usr/include/c++/v1/ostream:133:
/usr/include/c++/v1/locale:444:36: error: attempt to use a poisoned identifier
        __status = (unsigned char*)malloc(__nkw);
                                   ^
/usr/include/c++/v1/locale:1716:28: error: attempt to use a poisoned identifier
        __ob =
(char_type*)malloc(2*static_cast<size_t>(__nc)*sizeof(char_type));
                           ^
/usr/include/c++/v1/locale:1785:28: error: attempt to use a poisoned identifier
        __ob =
(char_type*)malloc(2*static_cast<size_t>(__nc)*sizeof(char_type));
                           ^
/usr/include/c++/v1/locale:2968:22: error: attempt to use a poisoned identifier
    _Tp* __t = (_Tp*)realloc(__owns ? __b.get() : 0, __new_cap);
                     ^
/usr/include/c++/v1/locale:3228:30: error: attempt to use a poisoned identifier
            __h.reset((char*)malloc(static_cast<size_t>(__wn - __wb.get() +
2)));
                             ^
/usr/include/c++/v1/locale:3527:32: error: attempt to use a poisoned identifier
        __hd.reset((char_type*)malloc(__n * sizeof(char_type)));
                               ^
fatal error: too many errors emitted, stopping now [-ferror-limit=]
14 warnings and 20 errors generated.

Configure ...

 ../gcc-4.9.0/configure --prefix=/home/chrisj/development/rtems/4.11
--bindir=/home/chrisj/development/rtems/4.11/bin
--exec_prefix=/home/chrisj/development/rtems/4.11
--includedir=/home/chrisj/development/rtems/4.11/include
--libdir=/home/chrisj/development/rtems/4.11/lib
--libexecdir=/home/chrisj/development/rtems/4.11/libexec
--mandir=/home/chrisj/development/rtems/4.11/share/man
--infodir=/home/chrisj/development/rtems/4.11/share/info
--datadir=/home/chrisj/development/rtems/4.11/share --build=x86_64-freebsd10.0
--host=x86_64-freebsd10.0 --target=sh-rtems4.11 --disable-libstdcxx-pch
--with-gnu-as --with-gnu-ld --verbose --with-newlib --with-system-zlib
--disable-nls --without-included-gettext --disable-win32-registry
--enable-version-specific-runtime-libs --disable-lto
--enable-newlib-io-c99-formats --enable-newlib-iconv
--enable-newlib-iconv-encodings=big5,cp775,cp850,cp852,cp855,cp866,euc_jp,euc_kr,euc_tw,iso_8859_1,iso_8859_10,iso_8859_11,iso_8859_13,iso_8859_14,iso_8859_15,iso_8859_2,iso_8859_3,iso_8859_4,iso_8859_5,iso_8859_6,iso_8859_7,iso_8859_8,iso_8859_9,iso_ir_111,koi8_r,koi8_ru,koi8_u,koi8_uni,ucs_2,ucs_2_internal,ucs_2be,ucs_2le,ucs_4,ucs_4_internal,ucs_4be,ucs_4le,us_ascii,utf_16,utf_16be,utf_16le,utf_8,win_1250,win_1251,win_1252,win_1253,win_1254,win_1255,win_1256,win_1257,win_1258
--enable-threads --disable-plugin --enable-languages=c,c++

$ uname -a
FreeBSD sync.rtems.org 10.0-STABLE FreeBSD 10.0-STABLE #0 ed891fe(stable/10):
Fri Apr 25 18:18:40 UTC 2014    
amar@build1.rtems.org:/usr/obj/usr/src/sys/build1  amd64


             reply	other threads:[~2014-05-01  9:01 UTC|newest]

Thread overview: 11+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2014-05-01  9:01 chris at contemporary dot net.au [this message]
2014-05-01 10:22 ` [Bug target/61026] " redi at gcc dot gnu.org
2014-05-01 21:45 ` joel at gcc dot gnu.org
2014-05-03  7:09 ` olegendo at gcc dot gnu.org
2014-05-03  7:51 ` olegendo at gcc dot gnu.org
2014-05-03  8:18 ` olegendo at gcc dot gnu.org
2014-05-03  8:21 ` olegendo at gcc dot gnu.org
2014-05-03  8:25 ` olegendo at gcc dot gnu.org
2014-05-05 11:08 ` jbglaw@lug-owl.de
2014-05-05 11:32 ` olegendo at gcc dot gnu.org
2014-05-05 11:47 ` jbglaw@lug-owl.de

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=bug-61026-4@http.gcc.gnu.org/bugzilla/ \
    --to=gcc-bugzilla@gcc.gnu.org \
    --cc=gcc-bugs@gcc.gnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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).