public inbox for cygwin@cygwin.com
 help / color / mirror / Atom feed
From: <harryren0524@sina.com>
To: "cygwin" <cygwin@cygwin.com>
Subject: how to build cygwin from source?
Date: Tue, 05 Jul 2016 12:46:00 -0000	[thread overview]
Message-ID: <20160705124632.D422BC8009B@webmail.sinamail.sina.com.cn> (raw)

I configured like this:
mkdir /oss/src
mkdir /oss/build
mkdir /oss/install 
cd build
/oss/src/configure --prefix=/oss/install

make >& make.out
make install > install.log 2>&1

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?

             reply	other threads:[~2016-07-05 12:46 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2016-07-05 12:46 harryren0524 [this message]
2016-07-05 12:54 ` Marco Atzeri
     [not found] <20160705153750.EF9C74060D@webmail.sinamail.sina.com.cn>
2016-07-05 16:09 ` Marco Atzeri

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20160705124632.D422BC8009B@webmail.sinamail.sina.com.cn \
    --to=harryren0524@sina.com \
    --cc=cygwin@cygwin.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).