Symbols _fe_dfl_env and _fe_nomask_env not exported on x86_64

Corinna Vinschen corinna-cygwin@cygwin.com
Fri Jul 20 12:44:00 GMT 2018


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/


Thanks,
Corinna

-- 
Corinna Vinschen                  Please, send mails regarding Cygwin to
Cygwin Maintainer                 cygwin AT cygwin DOT com
Red Hat
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 833 bytes
Desc: not available
URL: <http://cygwin.com/pipermail/cygwin/attachments/20180720/5191605b/attachment.sig>


More information about the Cygwin mailing list