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: how to compile cygwin from sources in cygwin(win 7)?

On Jul 4, 2016, at 6:34 AM, wrote:
> ../../../../cygwinSrc/winsup/cygwin/ error: unknown option after '#pragma GCC diagnostic' kind [-Werror=pragmas]
> #pragma GCC diagnostic ignored "-Wc++14-compat”

That says you’re using a GCC that doesn’t understand -Wc++14-compat, which means you’re not using the same GCC that Cygwin is normally built with.

Either you’re using the wrong GCC unintentionally or you’re using a custom GCC that was built without C++14 support.

> /cygwinObj/i686-pc-cygwin/winsup/cygwin/../../../../cygwinSrc/winsup/cygwin/math/complex_internal.h:138: multiple definition of `__mingw_raise_matherr’

I’m unsure about that one.  The “mingw” part may mean that you’re unintentionally using MinGW’s GCC instead of Cygwin’s, or it might just mean that cygwin1.dll is being built with Cygwin’s GCC in “MinGW mode,” meaning that the target isn’t linked to cygwin1.dll.

(Naturally cygwin1.dll is one of the few things in the stock Cygwin distribution that must be built as a native Windows API process.  The other major piece of that kind is setup.exe.  There’s also a few utility programs like cygcheck, which must be runnable while Cygwin is not working for whatever reason.)
Problem reports:
Unsubscribe info:

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