public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug target/66634] New: Cross building native *-w64-mingw32 failed
@ 2015-06-23  2:06 dongsheng.song at gmail dot com
  2015-08-29 22:01 ` [Bug target/66634] " ntl21042 at kmhow dot com
  0 siblings, 1 reply; 2+ messages in thread
From: dongsheng.song at gmail dot com @ 2015-06-23  2:06 UTC (permalink / raw)
  To: gcc-bugs

https://gcc.gnu.org/bugzilla/show_bug.cgi?id=66634

            Bug ID: 66634
           Summary: Cross building native *-w64-mingw32 failed
           Product: gcc
           Version: 6.0
            Status: UNCONFIRMED
          Severity: major
          Priority: P3
         Component: target
          Assignee: unassigned at gcc dot gnu.org
          Reporter: dongsheng.song at gmail dot com
  Target Milestone: ---

The cross compiler building fine, but when use it to build the native compiler,
I got:

make[2]: Entering directory '/home/cauchy/obj/native/gcc-6-win64/gcc/gcc'
g++ -DIN_GCC     -DGENERATOR_FILE -fno-PIE  -no-pie -o build/genmddeps \
    build/genmddeps.o build/read-md.o build/errors.o
../build-x86_64-unknown-linux-gnu/libiberty/libiberty.a
g++: error: unrecognized command line option ‘-no-pie’
Makefile:2631: recipe for target 'build/genmddeps' failed

Checking the gcc-6-win64/gcc/gcc/config.log, I found:

configure:28726: checking for -fno-PIE option
configure:28737: x86_64-w64-mingw32-g++ -c -g  -fno-PIE  conftest.cpp >&5
configure:28737: $? = 0
configure:28745: result: yes
configure:28753: checking for -no-pie option
configure:28764: x86_64-w64-mingw32-g++ -o conftest.exe -g   -static-libstdc++
-static-libgcc -Wl,--stack,12582912 -no-pie conftest.cpp  >&5
configure:28764: $? = 0
configure:28773: result: yes

So the issue is gcc build script mixed up the target flags and the host flags.
>From gcc-bugs-return-489690-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Tue Jun 23 02:28:27 2015
Return-Path: <gcc-bugs-return-489690-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 47398 invoked by alias); 23 Jun 2015 02:28:27 -0000
Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm
Precedence: bulk
List-Id: <gcc-bugs.gcc.gnu.org>
List-Archive: <http://gcc.gnu.org/ml/gcc-bugs/>
List-Post: <mailto:gcc-bugs@gcc.gnu.org>
List-Help: <mailto:gcc-bugs-help@gcc.gnu.org>
Sender: gcc-bugs-owner@gcc.gnu.org
Delivered-To: mailing list gcc-bugs@gcc.gnu.org
Received: (qmail 46277 invoked by uid 55); 23 Jun 2015 02:28:22 -0000
From: "amker at gcc dot gnu.org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug tree-optimization/66449] [6 Regression] ICE: in build2_stat, at tree.c:4376 with -O3
Date: Tue, 23 Jun 2015 02:28:00 -0000
X-Bugzilla-Reason: CC
X-Bugzilla-Type: changed
X-Bugzilla-Watch-Reason: None
X-Bugzilla-Product: gcc
X-Bugzilla-Component: tree-optimization
X-Bugzilla-Version: 6.0
X-Bugzilla-Keywords:
X-Bugzilla-Severity: normal
X-Bugzilla-Who: amker at gcc dot gnu.org
X-Bugzilla-Status: NEW
X-Bugzilla-Resolution:
X-Bugzilla-Priority: P3
X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org
X-Bugzilla-Target-Milestone: 6.0
X-Bugzilla-Flags:
X-Bugzilla-Changed-Fields:
Message-ID: <bug-66449-4-hqWCXEbwcN@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-66449-4@http.gcc.gnu.org/bugzilla/>
References: <bug-66449-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: 7bit
X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2015-06/txt/msg02022.txt.bz2
Content-length: 642

https://gcc.gnu.org/bugzilla/show_bug.cgi?idf449

--- Comment #3 from amker at gcc dot gnu.org ---
Author: amker
Date: Tue Jun 23 02:27:49 2015
New Revision: 224769

URL: https://gcc.gnu.org/viewcvs?rev"4769&root=gcc&view=rev
Log:

        PR tree-optimization/66449
        * tree-ssa-loop-niter.c (loop_exits_before_overflow): Use
        POINTER_PLUS_EXPR for pointers.

        gcc/testsuite
        PR tree-optimization/66449
        * gcc.dg/vect/pr66449.c: New test.


Added:
    trunk/gcc/testsuite/gcc.dg/tree-ssa/pr66449.c
Modified:
    trunk/gcc/ChangeLog
    trunk/gcc/testsuite/ChangeLog
    trunk/gcc/tree-ssa-loop-niter.c


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

* [Bug target/66634] Cross building native *-w64-mingw32 failed
  2015-06-23  2:06 [Bug target/66634] New: Cross building native *-w64-mingw32 failed dongsheng.song at gmail dot com
@ 2015-08-29 22:01 ` ntl21042 at kmhow dot com
  0 siblings, 0 replies; 2+ messages in thread
From: ntl21042 at kmhow dot com @ 2015-08-29 22:01 UTC (permalink / raw)
  To: gcc-bugs

https://gcc.gnu.org/bugzilla/show_bug.cgi?id=66634

Berlos Cander <ntl21042 at kmhow dot com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |ntl21042 at kmhow dot com

--- Comment #1 from Berlos Cander <ntl21042 at kmhow dot com> ---
any chance of fixing this please?


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

end of thread, other threads:[~2015-08-29 22:01 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2015-06-23  2:06 [Bug target/66634] New: Cross building native *-w64-mingw32 failed dongsheng.song at gmail dot com
2015-08-29 22:01 ` [Bug target/66634] " ntl21042 at kmhow dot com

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