From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 63034 invoked by alias); 20 Jul 2018 12:37:22 -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 62537 invoked by uid 89); 20 Jul 2018 12:37:21 -0000 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 Received: from lb1-smtp-cloud8.xs4all.net (HELO lb1-smtp-cloud8.xs4all.net) (194.109.24.21) by sourceware.org (qpsmtpd/0.93/v0.84-503-g423c35a) with ESMTP; Fri, 20 Jul 2018 12:37:19 +0000 Received: from webmail.xs4all.nl ([IPv6:2001:888:0:22:194:109:20:200]) by smtp-cloud8.xs4all.net with ESMTPA id gUerftlGToj71gUerfATf2; Fri, 20 Jul 2018 14:37:17 +0200 Received: from a83-162-234-136.adsl.xs4all.nl ([83.162.234.136]) by webmail.xs4all.nl with HTTP (HTTP/1.1 POST); Fri, 20 Jul 2018 14:37:17 +0200 MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII; format=flowed Content-Transfer-Encoding: 7bit Date: Fri, 20 Jul 2018 13:36:00 -0000 From: Houder To: cygwin@cygwin.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@xs4all.nl> <20180720120106.GK27673@calimero.vinschen.de> Message-ID: <3050515feb64a3257646c495a0e3bb5e@xs4all.nl> X-Sender: houder@xs4all.nl User-Agent: XS4ALL Webmail X-IsSubscribed: yes X-SW-Source: 2018-07/txt/msg00196.txt.bz2 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 >> >> 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