This is the mail archive of the cygwin mailing list for the Cygwin project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: Symbols _fe_dfl_env and _fe_nomask_env not exported on x86_64


On 2018-07-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?

File winsup/CVSChangeLogs.old/cygwin/ChangeLog.64 bit contains: (line 761 ff)

2013-02-08  Corinna Vinschen  <corinna@vinschen.de>

        * cygwin64.din (BASE): Set to 0x180040000.
        (_fe_dfl_env): Remove useless symbol.
        (_fe_nomask_env): Remove useless symbol.

File cygwin64.din does not exist anymore (as far as I can tell).

Has it been renamed x68_64.din?

Regards,

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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]