This is the mail archive of the
mailing list for the Cygwin project.
Re: how to compile cygwin from sources in cygwin(win 7)?
- From: Warren Young <wyml at etr-usa dot com>
- To: The Cygwin Mailing List <cygwin at cygwin dot com>
- Date: Tue, 5 Jul 2016 19:47:04 -0600
- Subject: Re: how to compile cygwin from sources in cygwin(win 7)?
- Authentication-results: sourceware.org; auth=none
- References: <20160704123412.754382E00BF@webmail.sinamail.sina.com.cn>
On Jul 4, 2016, at 6:34 AM, firstname.lastname@example.org wrote:
> ../../../../cygwinSrc/winsup/cygwin/cxx.cc:32:32: 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: http://cygwin.com/problems.html
Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple