From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 1298 invoked by alias); 25 Jun 2018 12:08:23 -0000 Mailing-List: contact cygwin-help@cygwin.com; run by ezmlm Precedence: bulk List-Id: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: cygwin-owner@cygwin.com Mail-Followup-To: cygwin@cygwin.com Received: (qmail 1185 invoked by uid 89); 25 Jun 2018 12:08:22 -0000 Authentication-Results: sourceware.org; auth=none X-Virus-Found: No X-Spam-SWARE-Status: No, score=-2.3 required=5.0 tests=AWL,BAYES_00,RCVD_IN_DNSWL_NONE,SPF_PASS autolearn=ham version=3.3.2 spammy=Hx-languages-length:1036 X-HELO: atfriesa01.ssi-schaefer.com Received: from atfriesa01.ssi-schaefer.com (HELO atfriesa01.ssi-schaefer.com) (193.186.16.100) by sourceware.org (qpsmtpd/0.93/v0.84-503-g423c35a) with ESMTP; Mon, 25 Jun 2018 12:08:21 +0000 X-IPAS-Result: =?us-ascii?q?A2EZBACa2jBb/+shHKxSChwBAQEEAQEKAQGJS5Yfly4LE4g?= =?us-ascii?q?FOBQBAgEBAQEBAQICAoERhVSBCwImAmwIAQGDIaxTghyEW4NlgQKBC4l2gTaHN?= =?us-ascii?q?3iCNIJVApkvBwKBa40giBKFPZFtgVhIgSxwgzqBawGOZo82AQE?= Received: from samail03.wamas.com (HELO mailhost.salomon.at) ([172.28.33.235]) by atfriesa01.ssi-schaefer.com with ESMTP/TLS/DHE-RSA-AES256-GCM-SHA384; 25 Jun 2018 14:08:19 +0200 Received: from [172.28.42.244] by mailhost.salomon.at with esmtp (Exim 4.77) (envelope-from ) id 1fXQI6-00061k-Oh; Mon, 25 Jun 2018 14:08:18 +0200 X-Mozilla-News-Host: news://news.gmane.org:119 To: cygwin@cygwin.com From: Michael Haubenwallner Subject: linker error with gcc flag -mfunction-return=thunk Message-ID: <67f4ac9a-5fe8-14d2-031f-288bbfccfc7a@ssi-schaefer.com> Date: Mon, 25 Jun 2018 12:41:00 -0000 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:52.0) Gecko/20100101 Thunderbird/52.8.0 MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-IsSubscribed: yes X-SW-Source: 2018-06/txt/msg00274.txt.bz2 Hi, I'm encountering a package's configure script (openssh-7.7p1) that successfully tests for the compiler flag "-mfunction-return=thunk", which causes subsequent linker errors (and fails to identify zlib): relocation truncated to fit: R_X86_64_32S against `.text' The compiler used is gcc-7.3.0 with binutils-2.29.1.20171006 (current), and the easiest test case here is: $ echo 'int main() { return 0; }' > conftest.c $ gcc -mfunction-return=thunk conftest.c /tmp/ccv1Ird0.o:conftest.c:(.text+0x1a): relocation truncated to fit: R_X86_64_32S against `.text' collect2: error: ld returned 1 exit status Not sure though where to finally report this problem: * openssh, as they should do a link-test rather than compile-test * gcc, as their generated code is wrong for cygwin * binutils, as their ld is unable to link that code * cygwin, as the maintainers of cygwin support in binutils+gcc After all, openssh-7.7p1-1.src cygwin package currently fails to compile. Thanks! /haubi/ -- 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