[m-users.] compiling under cygwin

Maxime Van Assche mvanassche at odaseontologies.com
Tue Aug 16 21:51:22 AEST 2016


Thanks, that worked perfectly!

-----Original Message-----
From: Julien Fischer [mailto:jfischer at opturion.com] 
Sent: lundi 15 août 2016 07:56
To: Maxime Van Assche <mvanassche at odaseontologies.com>
Cc: users at lists.mercurylang.org
Subject: Re: [m-users.] compiling under cygwin


Hi,

On Fri, 12 Aug 2016, Maxime Van Assche wrote:

> There seems to be a small issue compiling the 14.01.1 compiler under latest Cygwin packages (gcc 5.4.0) With the fd_set type, not defined in sys/types.h anymore?
> Any clues?
>
> Thanks,
>
>
> /tmp/mmake.EjyJMc:1075: warning: undefined variable 'EXTRAOPTS'
> ../scripts/mgnuc --no-mercury-stdlib-dir --grade hlc.gc.pregen       -- -DNDEBUG -DNEW -DCLEAR_CACHES -DCOMPUTED_TABLE -DEQUAL_TEST -DUSE_ITE_CONSTANT -DRESTRICT_SET    -I../browser -I../library -I../runtime -I../boehm_gc -I../boehm_gc/include    -c bryant.c -o bryant.o
> In file included from ../runtime/mercury_tabling.h:22:0,
>                 from ../runtime/mercury_stack_layout.h:42,
>                 from ../runtime/mercury_ho_call.h:24,
>                 from ../runtime/mercury.h:36,
>                 from ../runtime/mercury_imp.h:42,
>                 from bryant.c:107:
> ../runtime/mercury_reg_workarounds.h:62:19: error: unknown type name 'fd_set'
>   void MR_fd_zero(fd_set *fdset);

As a workaround you can put

     EXTRA_MGNUCFLAGS = --no-ansi

in Mmake.params.

Julien.


More information about the users mailing list