X-Recipient: archive-cygwin@delorie.com
DomainKey-Signature: a=rsa-sha1; c=nofws; d=sourceware.org; h=list-id
	:list-unsubscribe:list-subscribe:list-archive:list-post
	:list-help:sender:message-id:date:from:to:references:subject
	:content-type; q=dns; s=default; b=YE6pNCD5//me9a6//UJZK6MJ76GGc
	DZYdaQk+mSZ+/omx+fmwcNm2JvPbh3LYfsThj1xryPsYiGIg2ZDzV8AvKHv289/3
	EG/zXEv9UeSrL26Qdvfs3zgF2FQe4s7EErU1GlSwupKTgb8+UJDoll250wltigzz
	g7nDpfEcFbGfFM=
DKIM-Signature: v=1; a=rsa-sha1; c=relaxed; d=sourceware.org; h=list-id
	:list-unsubscribe:list-subscribe:list-archive:list-post
	:list-help:sender:message-id:date:from:to:references:subject
	:content-type; s=default; bh=zRtjEJmOdB9ph+4giHaHmoDF5Gc=; b=XrT
	NZn1Cz6XihUpf1zi17V/GYg157gm4Zn36rI3yL94NqBgm4vT6j6xutQNEbqV7rs9
	Uq51fyzPEf24eoyVwYHmaF/z9MPYUrD8NTWZST0fkLfxdxzEsGqqsdqgsbY1+QPQ
	W7bCIZH3Jo3uAxPLbtyY9o9NlrQ5sU8iLC433z7A=
Mailing-List: contact cygwin-help@cygwin.com; run by ezmlm
List-Id: <cygwin.cygwin.com>
List-Subscribe: <mailto:cygwin-subscribe@cygwin.com>
List-Archive: <http://sourceware.org/ml/cygwin/>
List-Post: <mailto:cygwin@cygwin.com>
List-Help: <mailto:cygwin-help@cygwin.com>, <http://sourceware.org/ml/#faqs>
Sender: cygwin-owner@cygwin.com
Mail-Followup-To: cygwin@cygwin.com
Delivered-To: mailing list cygwin@cygwin.com
Authentication-Results: sourceware.org; auth=none
X-Virus-Found: No
X-Spam-SWARE-Status: No, score=0.0 required=5.0 tests=BAYES_05,FREEMAIL_FROM,RCVD_IN_DNSWL_NONE,RCVD_IN_SORBS_SPAM,SPF_PASS autolearn=no version=3.3.2 spammy=GCC6.4, gcc6.4, Linking, 26Zuo6aOe
X-HELO: mail-oi0-f43.google.com
X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;        d=1e100.net; s=20161025;        h=x-gm-message-state:message-id:date:from:to:references:subject         :user-agent;        bh=fT/8BiYp9cGaKVtSvrNrN0gacLY1YBK4uki3V49WEaU=;        b=aaX/1ND/BrvJ1ZGUheE8QPFtRC6AIjcaQXM7FYD3Z5Bb3L9KeLLoxp/77TGlytaLnt         1nm/8SOclWWNu2BbZbzMgmT2o7AEaR/8qVOUlnvePKMIono3/WfSARsM8tSzMuMCBXZN         Tly5iLI+W8FFoA+k1Jq9tOG89s0JHNOylbYrucAP+o3Bp9A8HHnTRIXdrM6ATHhdfuXP         +607iBx44DVaL6C1zTddLX9atSS70fKDj7mbp22EON/ZkX7e8BnpItdFMPH3qw97naMD         M7MT13ALvkHLin7oFrL3i6buP/ujYxhroCqHzz3u9ABpJ90u9hZuMkMvXIuMKonVw8OJ         PIfg==
X-Gm-Message-State: AMCzsaX4/pPOgRh4E5NfKtRPLhSBgviAPQ47SYxnpUUWDMdk6vdSwzWw	GDoP3GYWgs6buR1aZAb7lw2QEg==
X-Google-Smtp-Source: AOwi7QC8vlSyNrK0LOOEJraY0IBBFfW62PR+UwZWWlFgxeoJjoz4l8a/NHRn5a8xUSUFCSzj2GN+lg==
X-Received: by 10.157.16.37 with SMTP id h34mr138992ote.469.1506551404369;        Wed, 27 Sep 2017 15:30:04 -0700 (PDT)
Message-ID: <59cc266b.8d409d0a.cc500.02e7@mx.google.com>
Date: Wed, 27 Sep 2017 15:30:03 -0700 (PDT)
From: Steven Penny <svnpenn@gmail.com>
X-Google-Original-From: Steven Penny
To: cygwin@cygwin.com
References: <CAJygYd2i5i7HWb5Zk2KMyDuLitOM4OjOB4aez9C-_Day+1kZPA@mail.gmail.com>
Subject: Re: Error Linking LTO programs using GCC6.4
Content-Type: text/plain; charset=utf8; format=flowed
User-Agent: Tryst/2.0.1 (github.com/svnpenn/tryst)

On Wed, 27 Sep 2017 14:42:43, =?UTF-8?B?5Y+26Zuo6aOe?= wrote:
> This is actually not the same issue at
> https://cygwin.com/ml/cygwin/2017-09/msg00236.html
> 
> In my case, it is caused by latest binutils 2.28 , when using 2.25
> everything is fine (even with gcc-6.4)
> 
> Maybe we should hold back upgrading binutils , or maybe it need a more
> recent version? There seems to be binutils 2.29.1 now

Actually, it is the same issue:

    $ cygcheck -s | grep -e binutils -e gcc
    mingw64-x86_64-binutils                 2.25.0.1.23f238d-1     OK
    mingw64-x86_64-gcc-core                 6.3.0-1                OK
    mingw64-x86_64-gcc-g++                  6.3.0-1                OK

    $ cat z.cpp
    #include <iostream>
    main() {
      std::cout << "cout test\n";
    }

    $ x86_64-w64-mingw32-g++ -static -o z z.cpp
    $ ./z
    cout test

So, with both your post and my post, the issue is fixed by not using:

- binutils 2.28.1
- mingw64-x86_64-binutils 2.28.1
- mingw64-i686-binutils 2.28.1

which leaves the last working version:

- binutils 2.25.0
- mingw64-x86_64-binutils 2.25.0
- mingw64-i686-binutils 2.25.0


--
Problem reports:       http://cygwin.com/problems.html
FAQ:                   http://cygwin.com/faq/
Documentation:         http://cygwin.com/docs.html
Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple

