public inbox for cygwin@cygwin.com
 help / color / mirror / Atom feed
* Re: how to build cygwin from source?
       [not found] <20160705153750.EF9C74060D@webmail.sinamail.sina.com.cn>
@ 2016-07-05 16:09 ` Marco Atzeri
  0 siblings, 0 replies; 3+ messages in thread
From: Marco Atzeri @ 2016-07-05 16:09 UTC (permalink / raw)
  To: harryren0524, cygwin

On 05/07/2016 17:37, harryren0524@sina.com wrote:
>> ../../../../cygwinSrc/winsup/cygwin/autoload.cc
>> but this is a relative path.
>> Have you some residual around of a previous build ?
>
> no,
> make distclean
> make
>

I don't see the need of "make distclean"
between "configure" and "make" on a empty build dir.


--
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

^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: how to build cygwin from source?
  2016-07-05 12:46 harryren0524
@ 2016-07-05 12:54 ` Marco Atzeri
  0 siblings, 0 replies; 3+ messages in thread
From: Marco Atzeri @ 2016-07-05 12:54 UTC (permalink / raw)
  To: cygwin

On 05/07/2016 14:46, harryren0524@sina.com wrote:
> I configured like this:
> mkdir /oss/src
> mkdir /oss/build
> mkdir /oss/install
> cd build
> /oss/src/configure --prefix=/oss/install

this is a call to a configure with absolute path

>
> 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

but this is a relative path.
Have you some residual around of a previous build ?


--
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

^ permalink raw reply	[flat|nested] 3+ messages in thread

* how to build cygwin from source?
@ 2016-07-05 12:46 harryren0524
  2016-07-05 12:54 ` Marco Atzeri
  0 siblings, 1 reply; 3+ messages in thread
From: harryren0524 @ 2016-07-05 12:46 UTC (permalink / raw)
  To: cygwin

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?

^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2016-07-05 16:09 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
     [not found] <20160705153750.EF9C74060D@webmail.sinamail.sina.com.cn>
2016-07-05 16:09 ` how to build cygwin from source? Marco Atzeri
2016-07-05 12:46 harryren0524
2016-07-05 12:54 ` Marco Atzeri

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).