how to compile cygwin from sources in cygwin(win 7)?

Marco Atzeri
Mon Jul 4 14:39:00 GMT 2016

On 04/07/2016 14:34, wrote:
> when i compiled cygwin2.5.2-1 from source code  in cygwin 2.2.1-1(win 7),i got a error:
> c++wrap -O2 -g -fno-rtti -fno-exceptions -fno-use-cxa-atexit -Wall -Wstrict-aliasing -Wwrite-strings -fno-common -pipe -fbuiltin -fmessage-length=0 -MMD -Werror -fmerge-constants -ftracer -c -o autoload.o ../../../../cygwinSrc/winsup/cygwin/
> ccwrap -g -O2 -Wall -Wstrict-aliasing -Wwrite-strings -fno-common -pipe -fbuiltin -fmessage-length=0 -MMD -Werror -fmerge-constants -ftracer -c -o base64.o ../../../../cygwinSrc/winsup/cygwin/libc/base64.c
> c++wrap -O2 -g -fno-rtti -fno-exceptions -fno-use-cxa-atexit -Wall -Wstrict-aliasing -Wwrite-strings -fno-common -pipe -fbuiltin -fmessage-length=0 -MMD -Werror -fmerge-constants -ftracer -c -o bsdlib.o ../../../../cygwinSrc/winsup/cygwin/libc/
> c++wrap -O2 -g -fno-rtti -fno-exceptions -fno-use-cxa-atexit -Wall -Wstrict-aliasing -Wwrite-strings -fno-common -pipe -fbuiltin -fmessage-length=0 -MMD -Werror -fmerge-constants -ftracer -c -o ctype.o ../../../../cygwinSrc/winsup/cygwin/
> c++wrap -O2 -g -fno-rtti -fno-exceptions -fno-use-cxa-atexit -Wall -Wstrict-aliasing -Wwrite-strings -fno-common -pipe -fbuiltin -fmessage-length=0 -MMD -Werror -fmerge-constants -ftracer -c -o cxx.o ../../../../cygwinSrc/winsup/cygwin/
> ../../../../cygwinSrc/winsup/cygwin/ error: unknown option after '#pragma GCC diagnostic' kind [-Werror=pragmas]
>  #pragma GCC diagnostic ignored "-Wc++14-compat"
>                                 ^
> cc1plus: all warnings being treated as errors
> ../../../../cygwinSrc/winsup/cygwin/../Makefile.common:41: recipe for target 'cxx.o' failed
> make[3]: *** [cxx.o] Error 1
> make[3]: Leaving directory '/cygwinObj/i686-pc-cygwin/winsup/cygwin'
> Makefile:81: recipe for target 'cygwin' failed
> make[2]: *** [cygwin] Error 1
> make[2]: Leaving directory '/cygwinObj/i686-pc-cygwin/winsup'
> Makefile:8947: recipe for target 'all-target-winsup' failed
> make[1]: *** [all-target-winsup] Error 2
> make[1]: Leaving directory '/cygwinObj'
> Makefile:853: recipe for target 'all' failed
> make: *** [all] Error 2
> -------------------------

it works fine for me.
How have you configured ?

Problem reports:
Unsubscribe info:

More information about the Cygwin mailing list