public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
From: "oblivian at users dot sourceforge dot net" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug libstdc++/35816]  New: libstdc++ built during bootstrap is pulling in host g++ support for atomic builtins
Date: Thu, 03 Apr 2008 16:02:00 -0000	[thread overview]
Message-ID: <bug-35816-15855@http.gcc.gnu.org/bugzilla/> (raw)

When compiling a combined gcc + g++ + binutils, the configure script for the
libstdc++ library is using the host g++ rather than the last stage g++ for
determining atomic builtin support status.

While I probably need to compile the toolchain with CXXFLAGS=-march=i486, from
what I've read, to enable support for atomic builtins in the compiler, I did
not.  This resulted in a target g++ that did not support atomic builtins and a
libstdc++ that expected the compiler did because it got the value from checking
the host g++ rather than the final bootstrap stage g++.

The configure parameters were:
  --prefix=/$(TOOLS_DIR)/usr \
  --with-sysroot=/$(TOOLS_DIR) \
  --with-pic \
  --enable-shared \
  --enable-clocale=gnu \
  --enable-threads=posix \
  --enable-__cxa_atexit \
  --enable-languages=c,c++ \
  --enable-checking=release \
  --disable-werror \
  --enable-stage1-checking \
  --enable-bootstrap


-- 
           Summary: libstdc++ built during bootstrap is pulling in host g++
                    support for atomic builtins
           Product: gcc
           Version: 4.3.0
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: libstdc++
        AssignedTo: unassigned at gcc dot gnu dot org
        ReportedBy: oblivian at users dot sourceforge dot net


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


             reply	other threads:[~2008-04-03 16:02 UTC|newest]

Thread overview: 7+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2008-04-03 16:02 oblivian at users dot sourceforge dot net [this message]
2008-04-03 17:35 ` [Bug libstdc++/35816] " oblivian at users dot sourceforge dot net
2008-04-03 20:46 ` [Bug libstdc++/35816] libstdc++ build during bootstrap is optimizing away atomic builtin check oblivian at users dot sourceforge dot net
2008-04-14 22:49 ` bkoz at gcc dot gnu dot org
2008-04-14 23:54 ` bkoz at gcc dot gnu dot org
2008-04-15  0:27 ` bkoz at gcc dot gnu dot org
2008-04-15  0:27 ` bkoz at gcc dot gnu dot org

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-35816-15855@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).