public inbox for cygwin@cygwin.com
 help / color / mirror / Atom feed
* Unable to build setup.exe
@ 2013-09-01 18:18 Мальгичев Кирилл
  0 siblings, 0 replies; only message in thread
From: Мальгичев Кирилл @ 2013-09-01 18:18 UTC (permalink / raw)
  To: cygwin

Hello,
I am trying to build setup.exe following instructions provided in
README file (http://sourceware.org/cgi-bin/cvsweb.cgi/~checkout~/setup/README?cvsroot=cygwin-apps).

So, I
1. Install latest 32-bit Cygwin from http://cygwin.com/install.html on
Windows XP
2. Install all required packeges as described in README file
3. Configure (/path/to/setup/bootstrap.sh)
4. Run make and got the following error:

  CXX      Exception.o
  CXX      find.o
  CXX      FindVisitor.o
  CXX      filemanip.o
In file included from /home/kirill/setup/ntdll.h:25:0,
                 from /home/kirill/setup/filemanip.cc:31:
/usr/i686-pc-mingw32/sys-root/mingw/include/ddk/ntapi.h:49:15: error:
conflicting declaration 'typedef void* PEXECUTION_STATE'
In file included from
/usr/i686-pc-mingw32/sys-root/mingw/include/windows.h:62:0,
                 from /home/kirill/setup/win32.h:53,
                 from /home/kirill/setup/filemanip.cc:30:
/usr/i686-pc-mingw32/sys-root/mingw/include/winbase.h:1973:33: error:
'PEXECUTION_STATE' has a previous declaration as 'typedef DWORD*
PEXECUTION_STATE'
Makefile:908: recipe for target `filemanip.o' failed
make[2]: *** [filemanip.o] Error 1
make[2]: Leaving directory `/home/kirill/setup-build'
Makefile:953: recipe for target `all-recursive' failed
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/home/kirill/setup-build'
Makefile:711: recipe for target `all' failed
make: *** [all] Error 2

This is not a big deal to fix it - I am just change PEXECUTION_STATE
definition in ntapi.h file to PDWORD. And rerun the build from the
beginning:
1. remove all files from build directory
2. Configure (/path/to/setup/bootstrap.sh)
3. Run make and got the new error:

  CXX      window.o
  CXX      csu_util/MD5Sum.o
  CXX      csu_util/rfc1738.o
  CXX      csu_util/version_compare.o
  CC       regex/regex.o
In file included from /home/Kirill/setup/regex/regex.c:65:0:
/home/Kirill/setup/regex/regexec.c: In function 'set_regs':
/home/Kirill/setup/regex/regexec.c:1421:5: error: implicit declaration
of function 'alloca' [-Werror=implicit-function-declaration]
/home/Kirill/setup/regex/regexec.c:1421:37: error: incompatible
implicit declaration of built-in function 'alloca' [-Werror]
/home/Kirill/setup/regex/regexec.c: In function 'build_trtable':
/home/Kirill/setup/regex/regexec.c:3325:42: error: incompatible
implicit declaration of built-in function 'alloca' [-Werror]
cc1: all warnings being treated as errors
Makefile:884: recipe for target `regex/regex.o' failed
make[2]: *** [regex/regex.o] Error 1
make[2]: Выход из каталога `/home/Kirill/setup_build'
Makefile:953: recipe for target `all-recursive' failed
make[1]: *** [all-recursive] Error 1
make[1]: Выход из каталога `/home/Kirill/setup_build'
Makefile:711: recipe for target `all' failed
make: *** [all] Error 2


Could you please point me what I am doing wrong, and how this error
can be fixed?

--
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] only message in thread

only message in thread, other threads:[~2013-09-01 18:18 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2013-09-01 18:18 Unable to build setup.exe Мальгичев Кирилл

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