From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mx2.suse.de (mx2.suse.de [195.135.220.15]) by sourceware.org (Postfix) with ESMTPS id C39F3386197D for ; Thu, 11 Feb 2021 08:54:34 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.3.2 sourceware.org C39F3386197D Authentication-Results: sourceware.org; dmarc=none (p=none dis=none) header.from=suse.cz Authentication-Results: sourceware.org; spf=pass smtp.mailfrom=mliska@suse.cz X-Virus-Scanned: by amavisd-new at test-mx.suse.de Received: from relay2.suse.de (unknown [195.135.221.27]) by mx2.suse.de (Postfix) with ESMTP id 9E7A5AC6E; Thu, 11 Feb 2021 08:54:33 +0000 (UTC) Subject: Re: Collect2 issue To: Gary Oblock , "gcc@gcc.gnu.org" References: From: =?UTF-8?Q?Martin_Li=c5=a1ka?= Message-ID: Date: Thu, 11 Feb 2021 09:54:33 +0100 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:78.0) Gecko/20100101 Thunderbird/78.7.0 MIME-Version: 1.0 In-Reply-To: Content-Type: text/plain; charset=utf-8; format=flowed Content-Language: en-US Content-Transfer-Encoding: 7bit X-Spam-Status: No, score=-5.3 required=5.0 tests=BAYES_00, KAM_DMARC_STATUS, NICE_REPLY_A, RCVD_IN_MSPIKE_H3, RCVD_IN_MSPIKE_WL, SPF_HELO_NONE, SPF_PASS, TXREP autolearn=ham autolearn_force=no version=3.4.2 X-Spam-Checker-Version: SpamAssassin 3.4.2 (2018-09-13) on server2.sourceware.org X-BeenThere: gcc@gcc.gnu.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Gcc mailing list List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 11 Feb 2021 08:54:36 -0000 On 2/11/21 9:40 AM, Gary Oblock via Gcc wrote: > I'm running my new optimization (LTO with one partition) > on a SPEC17 test. > > I got the mysterious message > "collect2: error: ld returned 1 exit status" Hello. Can you please post full build log done with --verbose GCC argument? Thanks, Martin > > Now, first off, with my debugging on at full tilt and it's > clear my optimization bailed out after analyzing > the code without doing anything. > > Second, this is a canned test not modified by > me or anybody else for that matter so, it's > not a user error. > > Finally, reading various blogs it seems that > old object files hanging around can make > collect2 to go bonkers. Therefore, I used > specmake to clean the build and it didn't > help, not that this makes any sense with one > partition. > > By the way, for those of you that get upset > at the very notion of invoking LTO as one partition, > it's actually not that bad. I can compiler gcc > that way on a laptop in about 50 minuets using > only 4.7% of my memory! > > Any ideas?? What's happening, how to diagnose > what's happening, how to work around it, etc... > > Thanks, > > Gary > > > > CONFIDENTIALITY NOTICE: This e-mail message, including any attachments, is for the sole use of the intended recipient(s) and contains information that is confidential and proprietary to Ampere Computing or its subsidiaries. It is to be used solely for the purpose of furthering the parties' business relationship. Any unauthorized review, copying, or distribution of this email (or any attachments thereto) is strictly prohibited. If you are not the intended recipient, please contact the sender immediately and permanently delete the original and any copies of this email and any attachments thereto. >