[Mingw-users] Problems building gcc 8.1.0

Back to archive index

Eli Zaretskii eliz****@gnu*****
Thu Jul 5 01:49:39 JST 2018


> From: David Gressett <DGres****@amli-*****>
> Date: Mon, 2 Jul 2018 17:21:17 -0500
> 
> The first failure occurred when compiling libiberty. 
> 
> There were many changes and additions in the gcc 8.1.0 libiberty.
> 
> The failure occurred in the compilation of simple-object-elf.c
> 
> The error was an undefined constant ENOTSUP.
> 
> A brief bit of web searching revealed that ENOTSUP is a POSIX creation and should be in errno.h

I usually do

  #ifndef ENOTSUP
  #define ENOTSUP ENOSYS
  #endif

Since older MSVCRT didn't provide ENOTSUP, I think such a fallback is
a necessity for any MinGW compile.




More information about the MinGW-Users mailing list
Back to archive index