delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2018/06/25/08:08:36

X-Recipient: archive-cygwin AT delorie DOT 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:to:from:subject:message-id:date:mime-version
:content-type:content-transfer-encoding; q=dns; s=default; b=Yyu
aBc06dmJIYxzJcL4bxpBU+FaSyoWVzOmAEhugiGQgpRHkIY+GxyhsZ2fqoAOpO2t
s7fefmUacX7N39XAEEOGiCXEfV29KBmzyvVhkUmxNnkbj6o+K2Ac73PX8IWyDopV
UtOWSK3WXCnqsc/33p0G4dTfuj26GEcQ1il5V1y8=
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:to:from:subject:message-id:date:mime-version
:content-type:content-transfer-encoding; s=default; bh=hAhpw83BS
gbAEG4kyt0652HqqnQ=; b=OeJ/xllKLHgeI8h4SfEydv4sZol2DABQgpcn7For0
ThJKB1EgKiJ0zEuc7vQV8jrfVLNIFzy916ZphgJtrtwnSQTfRkcaKuEcASOM6BGf
TTbxZb5BTddxs6kcyFaG8u556nIxQzARe8VP6IIap5XT/E174rUKkSsMrwrxo5X0
9I=
Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm
List-Id: <cygwin.cygwin.com>
List-Subscribe: <mailto:cygwin-subscribe AT cygwin DOT com>
List-Archive: <http://sourceware.org/ml/cygwin/>
List-Post: <mailto:cygwin AT cygwin DOT com>
List-Help: <mailto:cygwin-help AT cygwin DOT com>, <http://sourceware.org/ml/#faqs>
Sender: cygwin-owner AT cygwin DOT com
Mail-Followup-To: cygwin AT cygwin DOT com
Delivered-To: mailing list cygwin AT cygwin DOT com
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
X-IPAS-Result: =?us-ascii?q?A2EZBACa2jBb/+shHKxSChwBAQEEAQEKAQGJS5Yfly4LE4g?= =?us-ascii?q?FOBQBAgEBAQEBAQICAoERhVSBCwImAmwIAQGDIaxTghyEW4NlgQKBC4l2gTaHN?= =?us-ascii?q?3iCNIJVApkvBwKBa40giBKFPZFtgVhIgSxwgzqBawGOZo82AQE?=
X-Mozilla-News-Host: news://news.gmane.org:119
To: cygwin AT cygwin DOT com
From: Michael Haubenwallner <michael DOT haubenwallner AT ssi-schaefer DOT com>
Subject: linker error with gcc flag -mfunction-return=thunk
Message-ID: <67f4ac9a-5fe8-14d2-031f-288bbfccfc7a@ssi-schaefer.com>
Date: Mon, 25 Jun 2018 14:08:18 +0200
User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:52.0) Gecko/20100101 Thunderbird/52.8.0
MIME-Version: 1.0
X-IsSubscribed: yes

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

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019