delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2016/07/04/08:34:45

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:date:reply-to:from:to:subject:mime-version
:content-type:content-transfer-encoding:message-id; q=dns; s=
default; b=ZtYQalt0bHJwWADdgd2Rc0n+yjvQXagp0S6nuTQEac59AiBhzwgVc
uFpj7dLnJtrCKVMS+zKT1/tI+rENhJGycavT/yXBncC5ZDq6bMw7PNXu9a4KdUjX
uc+xy33OIUv/V2FWHjIh2J3ken2DlnoEpWjpKmblHqyVEOMDmCMQBs=
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:date:reply-to:from:to:subject:mime-version
:content-type:content-transfer-encoding:message-id; s=default;
bh=PrCPQUfoJja+IsAB+9wNc3Mc0eQ=; b=AcUJKRpyMii94mLq19uEZ4+/boQ9
/26hMYcjW27qnJ+V2xdjMXsV8xVWq+JaXYumeOxQ8Ldu0uwrdLsJkMRtK1y2hiRG
y+CP/InK8piK7B68ZkpNMzhjswISCnECXJNfhkNybc1cizWfiQoYE5tQaweDDbPJ
KSKH+LgvdyQB+lg=
Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm
List-Id: <cygwin.cygwin.com>
List-Subscribe: <mailto:cygwin-subscribe AT cygwin DOT com>
List-Archive: <http://sourceware.org/ml/cygwin/>
List-Post: <mailto:cygwin AT cygwin DOT com>
List-Help: <mailto:cygwin-help AT cygwin DOT com>, <http://sourceware.org/ml/#faqs>
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: =?ISO-8859-1?Q?Yes, score=6.3 required=5.0 tests=BAYES_50,BODY_8BITS,FREEMAIL_ENVFROM_END_DIGIT,FREEMAIL_FROM,GARBLED_BODY,MIME_BASE64_BLANKS,RCVD_IN_DNSWL_LOW,SPF_PASS,XPRIO autolearn=no version=3.3.2 spammy==e7=ac=ac=e4=b8, =e4=b8=ad=ef=bc, H*UA:4.0, H*x:4.0?=
X-HELO: smtp2911-211.mail.sina.com.cn
X-Sender: harryren0524 AT sina DOT com
X-SMAIL-MID: 5530009063956
Date: Mon, 04 Jul 2016 20:34:12 +0800
Reply-To: harryren0524 AT sina DOT com
From: <harryren0524 AT sina DOT com>
To: "cygwin" <cygwin AT cygwin DOT com>
Subject: how to compile cygwin from sources in cygwin(win 7)?
MIME-Version: 1.0
X-MessageID: 577a57c41197114f
Message-Id: <20160704123412.754382E00BF@webmail.sinamail.sina.com.cn>
X-IsSubscribed: yes
X-MIME-Autoconverted: from base64 to 8bit by delorie.com id u64CYddv031080

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
-------------------------
then i commented  #pragma GCC diagnostic ignored "-Wc++14-compat" ,the building continued and then got another error:

rintl.o roundl.o scalbl.o scalbnl.o sinhl.o sinl.o sinl_internal.o sqrtl.o tanhl.o tanl.o tgammal.o truncl.o  version.o winver.o \
 /cygwinObj/i686-pc-cygwin/winsup/cygserver/libcygserver.a /cygwinObj/i686-pc-cygwin/newlib/libm/libm.a /cygwinObj/i686-pc-cygwin/newlib/libc/libc.a \
-lgcc /usr/lib/gcc/i686-pc-cygwin/4.9.3/../../../w32api/libkernel32.a /usr/lib/gcc/i686-pc-cygwin/4.9.3/../../../w32api/libntdll.a -Wl,-Map,cygwin.map
cabsl.o:在函数‘_mingw_raise_matherr’中:
/cygwinObj/i686-pc-cygwin/winsup/cygwin/../../../../cygwinSrc/winsup/cygwin/math/complex_internal.h:138: multiple definition of `__mingw_raise_matherr'
acoshl.o:/cygwinObj/i686-pc-cygwin/winsup/cygwin/../../../../cygwinSrc/winsup/cygwin/math/complex_internal.h:138:第一次在此定义
cacosl.o:在函数‘_mingw_raise_matherr’中:
/cygwinObj/i686-pc-cygwin/winsup/cygwin/../../../../cygwinSrc/winsup/cygwin/math/complex_internal.h:138: multiple definition of `__mingw_raise_matherr'
acoshl.o:/cygwinObj/i686-pc-cygwin/winsup/cygwin/../../../../cygwinSrc/winsup/cygwin/math/complex_internal.h:138:第一次在此定义
cargl.o:在函数‘_mingw_raise_matherr’中:
/cygwinObj/i686-pc-cygwin/winsup/cygwin/../../../../cygwinSrc/winsup/cygwin/math/complex_internal.h:138: multiple definition of `__mingw_raise_matherr'
acoshl.o:/cygwinObj/i686-pc-cygwin/winsup/cygwin/../../../../cygwinSrc/winsup/cygwin/math/complex_internal.h:138:第一次在此定义
casinl.o:在函数‘_mingw_raise_matherr’中:
/cygwinObj/i686-pc-cygwin/winsup/cygwin/../../../../cygwinSrc/winsup/cygwin/math/complex_internal.h:138: multiple definition of `__mingw_raise_matherr'
acoshl.o:/cygwinObj/i686-pc-cygwin/winsup/cygwin/../../../../cygwinSrc/winsup/cygwin/math/complex_internal.h:138:第一次在此定义
catanl.o:在函数‘_mingw_raise_matherr’中:
/cygwinObj/i686-pc-cygwin/winsup/cygwin/../../../../cygwinSrc/winsup/cygwin/math/complex_internal.h:138: multiple definition of `__mingw_raise_matherr'
acoshl.o:/cygwinObj/i686-pc-cygwin/winsup/cygwin/../../../../cygwinSrc/winsup/cygwin/math/complex_internal.h:138:第一次在此定义
ccosl.o:在函数‘_mingw_raise_matherr’中:
/cygwinObj/i686-pc-cygwin/winsup/cygwin/../../../../cygwinSrc/winsup/cygwin/math/complex_internal.h:138: multiple definition of `__mingw_raise_matherr'
acoshl.o:/cygwinObj/i686-pc-cygwin/winsup/cygwin/../../../../cygwinSrc/winsup/cygwin/math/complex_internal.h:138:第一次在此定义
cexpl.o:在函数‘_mingw_raise_matherr’中:
/cygwinObj/i686-pc-cygwin/winsup/cygwin/../../../../cygwinSrc/winsup/cygwin/math/complex_internal.h:138: multiple definition of `__mingw_raise_matherr'
acoshl.o:/cygwinObj/i686-pc-cygwin/winsup/cygwin/../../../../cygwinSrc/winsup/cygwin/math/complex_internal.h:138:第一次在此定义
cimagl.o:在函数‘_mingw_raise_matherr’中:
/cygwinObj/i686-pc-cygwin/winsup/cygwin/../../../../cygwinSrc/winsup/cygwin/math/complex_internal.h:138: multiple definition of `__mingw_raise_matherr'
acoshl.o:/cygwinObj/i686-pc-cygwin/winsup/cygwin/../../../../cygwinSrc/winsup/cygwin/math/complex_internal.h:138:第一次在此定义
clog10l.o:在函数‘_mingw_raise_matherr’中:
/cygwinObj/i686-pc-cygwin/winsup/cygwin/../../../../cygwinSrc/winsup/cygwin/math/complex_internal.h:138: multiple definition of `__mingw_raise_matherr'
acoshl.o:/cygwinObj/i686-pc-cygwin/winsup/cygwin/../../../../cygwinSrc/winsup/cygwin/math/complex_internal.h:138:第一次在此定义
clogl.o:在函数‘_mingw_raise_matherr’中:
/cygwinObj/i686-pc-cygwin/winsup/cygwin/../../../../cygwinSrc/winsup/cygwin/math/complex_internal.h:138: multiple definition of `__mingw_raise_matherr'
acoshl.o:/cygwinObj/i686-pc-cygwin/winsup/cygwin/../../../../cygwinSrc/winsup/cygwin/math/complex_internal.h:138:第一次在此定义
conjl.o:在函数‘_mingw_raise_matherr’中:
/cygwinObj/i686-pc-cygwin/winsup/cygwin/../../../../cygwinSrc/winsup/cygwin/math/complex_internal.h:138: multiple definition of `__mingw_raise_matherr'
acoshl.o:/cygwinObj/i686-pc-cygwin/winsup/cygwin/../../../../cygwinSrc/winsup/cygwin/math/complex_internal.h:138:第一次在此定义
cosl.o:在函数‘_mingw_raise_matherr’中:
/cygwinObj/i686-pc-cygwin/winsup/cygwin/../../../../cygwinSrc/winsup/cygwin/math/complex_internal.h:138: multiple definition of `__mingw_raise_matherr'
acoshl.o:/cygwinObj/i686-pc-cygwin/winsup/cygwin/../../../../cygwinSrc/winsup/cygwin/math/complex_internal.h:138:第一次在此定义
cpowl.o:在函数‘_mingw_raise_matherr’中:
/cygwinObj/i686-pc-cygwin/winsup/cygwin/../../../../cygwinSrc/winsup/cygwin/math/complex_internal.h:138: multiple definition of `__mingw_raise_matherr'
acoshl.o:/cygwinObj/i686-pc-cygwin/winsup/cygwin/../../../../cygwinSrc/winsup/cygwin/math/complex_internal.h:138:第一次在此定义
cprojl.o:在函数‘_mingw_raise_matherr’中:
/cygwinObj/i686-pc-cygwin/winsup/cygwin/../../../../cygwinSrc/winsup/cygwin/math/complex_internal.h:138: multiple definition of `__mingw_raise_matherr'
acoshl.o:/cygwinObj/i686-pc-cygwin/winsup/cygwin/../../../../cygwinSrc/winsup/cygwin/math/complex_internal.h:138:第一次在此定义
creall.o:在函数‘_mingw_raise_matherr’中:
/cygwinObj/i686-pc-cygwin/winsup/cygwin/../../../../cygwinSrc/winsup/cygwin/math/complex_internal.h:138: multiple definition of `__mingw_raise_matherr'
acoshl.o:/cygwinObj/i686-pc-cygwin/winsup/cygwin/../../../../cygwinSrc/winsup/cygwin/math/complex_internal.h:138:第一次在此定义
csinl.o:在函数‘_mingw_raise_matherr’中:
/cygwinObj/i686-pc-cygwin/winsup/cygwin/../../../../cygwinSrc/winsup/cygwin/math/complex_internal.h:138: multiple definition of `__mingw_raise_matherr'
acoshl.o:/cygwinObj/i686-pc-cygwin/winsup/cygwin/../../../../cygwinSrc/winsup/cygwin/math/complex_internal.h:138:第一次在此定义
csqrtl.o:在函数‘_mingw_raise_matherr’中:
/cygwinObj/i686-pc-cygwin/winsup/cygwin/../../../../cygwinSrc/winsup/cygwin/math/complex_internal.h:138: multiple definition of `__mingw_raise_matherr'
acoshl.o:/cygwinObj/i686-pc-cygwin/winsup/cygwin/../../../../cygwinSrc/winsup/cygwin/math/complex_internal.h:138:第一次在此定义
ctanl.o:在函数‘_mingw_raise_matherr’中:
/cygwinObj/i686-pc-cygwin/winsup/cygwin/../../../../cygwinSrc/winsup/cygwin/math/complex_internal.h:138: multiple definition of `__mingw_raise_matherr'
acoshl.o:/cygwinObj/i686-pc-cygwin/winsup/cygwin/../../../../cygwinSrc/winsup/cygwin/math/complex_internal.h:138:第一次在此定义
expl.o:在函数‘_mingw_raise_matherr’中:
/cygwinObj/i686-pc-cygwin/winsup/cygwin/../../../../cygwinSrc/winsup/cygwin/math/complex_internal.h:138: multiple definition of `__mingw_raise_matherr'
acoshl.o:/cygwinObj/i686-pc-cygwin/winsup/cygwin/../../../../cygwinSrc/winsup/cygwin/math/complex_internal.h:138:第一次在此定义
expm1l.o:在函数‘_mingw_raise_matherr’中:
/cygwinObj/i686-pc-cygwin/winsup/cygwin/../../../../cygwinSrc/winsup/cygwin/math/complex_internal.h:138: multiple definition of `__mingw_raise_matherr'
acoshl.o:/cygwinObj/i686-pc-cygwin/winsup/cygwin/../../../../cygwinSrc/winsup/cygwin/math/complex_internal.h:138:第一次在此定义
logl.o:在函数‘_mingw_raise_matherr’中:
/cygwinObj/i686-pc-cygwin/winsup/cygwin/../../../../cygwinSrc/winsup/cygwin/math/complex_internal.h:138: multiple definition of `__mingw_raise_matherr'
acoshl.o:/cygwinObj/i686-pc-cygwin/winsup/cygwin/../../../../cygwinSrc/winsup/cygwin/math/complex_internal.h:138:第一次在此定义
powil.o:在函数‘_mingw_raise_matherr’中:
/cygwinObj/i686-pc-cygwin/winsup/cygwin/../../../../cygwinSrc/winsup/cygwin/math/complex_internal.h:138: multiple definition of `__mingw_raise_matherr'
acoshl.o:/cygwinObj/i686-pc-cygwin/winsup/cygwin/../../../../cygwinSrc/winsup/cygwin/math/complex_internal.h:138:第一次在此定义
powl.o:在函数‘_mingw_raise_matherr’中:
/cygwinObj/i686-pc-cygwin/winsup/cygwin/../../../../cygwinSrc/winsup/cygwin/math/complex_internal.h:138: multiple definition of `__mingw_raise_matherr'
acoshl.o:/cygwinObj/i686-pc-cygwin/winsup/cygwin/../../../../cygwinSrc/winsup/cygwin/math/complex_internal.h:138:第一次在此定义
sinl.o:在函数‘_mingw_raise_matherr’中:
/cygwinObj/i686-pc-cygwin/winsup/cygwin/../../../../cygwinSrc/winsup/cygwin/math/complex_internal.h:138: multiple definition of `__mingw_raise_matherr'
acoshl.o:/cygwinObj/i686-pc-cygwin/winsup/cygwin/../../../../cygwinSrc/winsup/cygwin/math/complex_internal.h:138:第一次在此定义
sqrtl.o:在函数‘_mingw_raise_matherr’中:
/cygwinObj/i686-pc-cygwin/winsup/cygwin/../../../../cygwinSrc/winsup/cygwin/math/complex_internal.h:138: multiple definition of `__mingw_raise_matherr'
acoshl.o:/cygwinObj/i686-pc-cygwin/winsup/cygwin/../../../../cygwinSrc/winsup/cygwin/math/complex_internal.h:138:第一次在此定义
collect2: 错误:ld 返回 1
Makefile:671: recipe for target 'cygwin0.dll' failed
make[3]: *** [cygwin0.dll] 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

-----------------
what i should do?

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019