X-Recipient: archive-cygwin AT delorie DOT com DomainKey-Signature: a=rsa-sha1; c=nofws; d=sourceware.org; h=list-id :list-unsubscribe:list-subscribe:list-archive:list-post :list-help:sender:subject:to:references:from:message-id:date :mime-version:in-reply-to:content-type :content-transfer-encoding; q=dns; s=default; b=mT1u5DoE4L4kqeZv uyrw+eLeVdQOMwF4dGXuachO2Ec3voLZ471kasUdosrb7qL/Uh82c+kMWBH6elDJ aMmtIGzYF56gyeg2ZFPHw6VIjXgigpbSCY3iffZYFB/3LK974j0hto5OoHTNez5l A4aZSfrTP9exPeHovD4v1xVUGtw= DKIM-Signature: v=1; a=rsa-sha1; c=relaxed; d=sourceware.org; h=list-id :list-unsubscribe:list-subscribe:list-archive:list-post :list-help:sender:subject:to:references:from:message-id:date :mime-version:in-reply-to:content-type :content-transfer-encoding; s=default; bh=wbGop9dhQWL4t9H4S7AABC VIt1M=; b=R7cg/f9+miDB6T9DTSDPFNtrY+JMFXKdblhS4/jAbv9v0QrYVn/mYf ywXVW5q6yr6GqstLAgnIRk/217Em74NtIgOuJD3MzzUwnRyafMVVCEwIB0e+wmCb 08ErIOsPx9/1IyT1rBk4535CfzmUGb44Xs56g72/RQmS3rCyr/UwM= Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm List-Id: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: cygwin-owner AT cygwin DOT com Mail-Followup-To: cygwin AT cygwin DOT com Delivered-To: mailing list cygwin AT cygwin DOT com Authentication-Results: sourceware.org; auth=none X-Virus-Found: No X-Spam-SWARE-Status: No, score=-0.7 required=5.0 tests=AWL,BAYES_50,FREEMAIL_FROM,RCVD_IN_DNSWL_LOW,SPF_PASS autolearn=ham version=3.3.2 spammy=2211, cygwin2521, ctype.cc, bsdlibcc X-HELO: mail-qk0-f174.google.com X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:subject:to:references:from:message-id:date :user-agent:mime-version:in-reply-to:content-transfer-encoding; bh=X9aLXhDuqHpWPgX4/cBFQ41hXdsaQxZ2i7w/aN/SKjg=; b=OsQhOo9mtLr3MghtEb3f9kX3iv29lRDweaWLS3lLZOCTzl9qRYWHFQIC23j2as7xOa cIbB7hfN2RccEz0NCNCNyjdyNwLo0iNcLC233kLTXi59eJZhJ5FQsTqBHxnMamUM5gHy EhW3KWsxpERbSIYNq5Eiv3iQMGWxD/u9LGWKBwJnXBFnErdTpnICqQjodtTkGSq0Yb4f 5V9eNfmXIZzjnvkU5vDItS+NhTp9tjQ7iuTAMuaBzaF6hK0ktJZ2m/oCMWv9AyyrLscO lD9rg//ipeHuRkAAoBmOPqWGidjFQjv9UW+UyAeePvoFTdRZALYCVI/OYtDbg2JBk4lN /Qrw== X-Gm-Message-State: ALyK8tJBqQEfexHAFUj3xIrs16h2STfuNNb9phjDjqHbBC/S9IoVqdtU0DvK2keOATdK9g== X-Received: by 10.55.195.75 with SMTP id a72mr16866721qkj.4.1467643149227; Mon, 04 Jul 2016 07:39:09 -0700 (PDT) Subject: Re: how to compile cygwin from sources in cygwin(win 7)? To: cygwin AT cygwin DOT com References: <20160704123412 DOT 754382E00BF AT webmail DOT sinamail DOT sina DOT com DOT cn> From: Marco Atzeri Message-ID: <65149734-8087-74ef-fb09-38fdd1ad18b0@gmail.com> Date: Mon, 4 Jul 2016 16:38:56 +0200 User-Agent: Mozilla/5.0 (Windows NT 6.1; WOW64; rv:45.0) Gecko/20100101 Thunderbird/45.1.1 MIME-Version: 1.0 In-Reply-To: <20160704123412.754382E00BF@webmail.sinamail.sina.com.cn> Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 7bit X-IsSubscribed: yes On 04/07/2016 14:34, harryren0524 AT sina DOT 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