delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2018/07/20/08:37:32

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:mime-version:content-type
:content-transfer-encoding:date:from:to:subject:in-reply-to
:references:message-id; q=dns; s=default; b=d9+1MWUGi5b2XTQkJUt3
JRjSQMAXlLpqK5AA3PaOoUegr6pXj4MJ35mZHDCfmMNfhdbldKNEhBXssEXoIhn4
Io/XjZ9VGXpncsl6/lrz/emNBvr9hytOvQAiAXaQdrn7tH6KXsFKlPsmirMEDKbv
nG42i8a4SsM4iGJlH8TqPKs=
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:mime-version:content-type
:content-transfer-encoding:date:from:to:subject:in-reply-to
:references:message-id; s=default; bh=Yp6j11pLQaaCEj4WV2wKQlSEHd
k=; b=q8thWmOSdtBdwDcyr+pK4bVl7e5g+ywsC+8bTxLctnXFpaytmpHM0TFDlk
PZf5ybtzZtubBQpP6JRzSUnFYoDe2Q5ZeE2vk01SSyKniGx+0BPhz4HJ6tAUdjMX
TX7z2hEPfbc210GaVlqlMmBeqvI7ph/Kl7Cnbfv1W8p5ANyjA=
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-Spam-SWARE-Status: No, score=-2.1 required=5.0 tests=AWL,BAYES_00,KAM_NUMSUBJECT,NORMAL_HTTP_TO_IP,RCVD_IN_DNSWL_LOW,SPF_PASS autolearn=ham version=3.3.2 spammy=exports, Hx-spam-relays-external:ESMTPA
X-HELO: lb1-smtp-cloud8.xs4all.net
MIME-Version: 1.0
Date: Fri, 20 Jul 2018 14:37:17 +0200
From: Houder <houder AT xs4all DOT nl>
To: cygwin AT cygwin DOT com
Subject: Re: Symbols _fe_dfl_env and _fe_nomask_env not exported on x86_64
In-Reply-To: <20180720120106.GK27673@calimero.vinschen.de>
References: <7a7e499a7abcb1ae5f614ee38b4530ec AT xs4all DOT nl> <20180720120106 DOT GK27673 AT calimero DOT vinschen DOT de>
Message-ID: <3050515feb64a3257646c495a0e3bb5e@xs4all.nl>
X-Sender: houder AT xs4all DOT nl
User-Agent: XS4ALL Webmail
X-IsSubscribed: yes

On 2018-07-20 14:01, Corinna Vinschen wrote:
> On Jul 20 01:00, Houder wrote:
>> L.S.,
>> 
>> This STC fails to compile on Cygwin for x86_64:
>> 
>> // gcc -Wall -o stc-fenv stc-fenv.c
>> // Linux: gcc -Wall -o stc-fenv stc-fenv.c -lm
>> #define _GNU_SOURCE
>> #include <fenv.h>
>> 
>> int main()
>> {
>>     fesetenv(FE_DFL_ENV);
>>     fesetenv(FE_NOMASK_ENV);
>> }
>> 
>> 64-@@ gcc -Wall -o stc-fenv stc-fenv.c
>> /tmp/cchxZMgV.o:stc-fenv.c:(.rdata$.refptr._fe_nomask_env[.refptr._fe_nomask_env]+0x0):
>> undefined reference to `_fe_nomask_env'
>> /tmp/cchxZMgV.o:stc-fenv.c:(.rdata$.refptr._fe_dfl_env[.refptr._fe_dfl_env]+0x0):
>> undefined reference to `_fe_dfl_env'
>> collect2: error: ld returned 1 exit status
>> 
>> However the STC does compile on x86.
>> 
>> Where has the machinery gone wrong?
> 
> The symbol export files were not correctly set up back then.  I pushed 
> a
> patch.  New snapshots should be uploaded shortly to
> https://cygwin.com/snapshots/

Thank you, Corinna!

     
https://cygwin.com/git/gitweb.cgi?p=newlib-cygwin.git;a=commit;h=e9f223877f42c31353bd8b522596cb5fe1b87388
     (Cygwin: move FP environment exports to common.din)

Agreed!

(have not tested any snapshot yet; will do.)

Henri

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