public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
From: "devurandom at gmx dot net" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug bootstrap/55886] New: gcc/configure.ac problems lead to GCC 4.7.2 not building for x86_64-pc-mingw64
Date: Sun, 06 Jan 2013 14:08:00 -0000	[thread overview]
Message-ID: <bug-55886-4@http.gcc.gnu.org/bugzilla/> (raw)


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

             Bug #: 55886
           Summary: gcc/configure.ac problems lead to GCC 4.7.2 not
                    building for x86_64-pc-mingw64
    Classification: Unclassified
           Product: gcc
           Version: 4.7.2
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: bootstrap
        AssignedTo: unassigned@gcc.gnu.org
        ReportedBy: devurandom@gmx.net


gcc/configure.ac contains several checks for mingw hosts, which are tied to
mingw32 instead of generic mingw. This might lead to problems when
crosscompiling a x86_64-pc-mingw64 compiler.

Possibly problematic lines in gcc-4.7.2/gcc/configure.ac:
    case $host in                                                               
1453: *-*-mingw32*)
    use_cxa_atexit=yes

case $host_os in                                                                
1656:  win32 | pe | cygwin* | mingw32* | uwin*)
    if test "x$enable_win32_registry" != xno; then

[case $target_os in                                                             
2565:  win32 | pe | cygwin* | mingw32* | uwin*)
    # Need to check that we generated the correct relocation for the

    case $target_os in
3604:      cygwin* | pe | mingw32* | interix*)
    # Recent binutils allows the three-operand form of ".comm" on PE.  This

They should probably use mingw* instead of mingw32*.

At least the last one (gcc/configure.ac:3604) is wrong and leads to
HAVE_GAS_ALIGNED_COMM being undefined for mingw64, which makes gcc/options.c
(autogenerated file) fail to compile:
options.c:952:3: error: ‘HAVE_GAS_ALIGNED_COMM’ undeclared here (not in a
function)

See also: https://bugs.gentoo.org/show_bug.cgi?id=447708


             reply	other threads:[~2013-01-06 14:08 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2013-01-06 14:08 devurandom at gmx dot net [this message]
2013-02-13 22:33 ` [Bug bootstrap/55886] " devurandom at gmx dot net
2013-11-25 21:53 ` ktietz at gcc dot gnu.org
2021-08-19  2:26 ` jyong at gcc dot gnu.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-55886-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).