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

Marco Atzeri marco.atzeri@gmail.com
Mon Jul 4 14:39:00 GMT 2016


On 04/07/2016 14:34, harryren0524@sina.com 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/autoload.cc
> 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/bsdlib.cc
> 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/ctype.cc
> 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/cxx.cc
> ../../../../cygwinSrc/winsup/cygwin/cxx.cc:32:32: 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:       http://cygwin.com/problems.html
FAQ:                   http://cygwin.com/faq/
Documentation:         http://cygwin.com/docs.html
Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple



More information about the Cygwin mailing list