NetBSD-Bugs archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

install/50102: bootstrap in Cygwin failed



>Number:         50102
>Category:       install
>Synopsis:       bootstrap in Cygwin failed
>Confidential:   no
>Severity:       serious
>Priority:       medium
>Responsible:    install-manager
>State:          open
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Thu Jul 30 02:45:00 +0000 2015
>Originator:     Xiang Zhiying
>Release:        pkgsrc-2015Q2
>Organization:
Agilent
>Environment:
CYGWIN_NT-6.1-WOW 5CB334000B 2.1.0(0.287/5/3) 2015-07-14 21:26 i686 Cygwin

>Description:
zhixiang@5CB334000B /usr/pkgsrc/bootstrap
$ ./bootstrap
===> bootstrap command: ./bootstrap
===> bootstrap started: Thu, Jul 30, 2015 10:29:12 AM
Working directory is: /usr/pkgsrc/bootstrap/work
===> running: /usr/bin/sed -e 's|@DEFAULT_INSTALL_MODE@|'0755'|' /usr/pkgsrc/sysutils/install-sh/files/install-sh.in > /usr/pkgsrc/bootstrap/work/bin/install-sh
===> running: /usr/bin/chmod +x /usr/pkgsrc/bootstrap/work/bin/install-sh
===> Creating default mk.conf in /usr/pkgsrc/bootstrap/work
===> running: /usr/bin/sh /usr/pkgsrc/bootstrap/work/bin/install-sh -d -o Administrators -g Administrators /usr/pkgsrc/bootstrap/work/sbin
===> running: /usr/bin/sh /usr/pkgsrc/bootstrap/work/bin/install-sh -d -o Administrators -g Administrators /usr/pkgsrc/bootstrap/work/share/mk
===> Bootstrapping mk-files
===> running: (cd /usr/pkgsrc/pkgtools/bootstrap-mk-files/files && env CP=/usr/bin/cp  OPSYS=Cygwin MK_DST=/usr/pkgsrc/bootstrap/work/share/mk ROOT_GROUP=Administrators ROOT_USER=Administrators SED=/usr/bin/sed SYSCONFDIR=/usr/pkg/etc /usr/bin/sh ./bootstrap.sh)
===> Bootstrapping bmake
===> running: /usr/bin/sh /usr/pkgsrc/bootstrap/work/bin/install-sh -d -o Administrators -g Administrators /usr/pkgsrc/bootstrap/work/bmake
===> running: (cd /usr/pkgsrc/bootstrap/work/bmake && /usr/bin/sh configure  --with-default-sys-path=/usr/pkgsrc/bootstrap/work/share/mk --prefix=/usr/pkgsrc/bootstrap/work )
checking for gcc... gcc
checking for C compiler default output file name... a.exe
checking whether the C compiler works... yes
checking whether we are cross compiling... no
checking for suffix of executables... .exe
checking for suffix of object files... o
checking whether we are using the GNU C compiler... yes
checking whether gcc accepts -g... yes
checking for gcc option to accept ISO C89... none needed
checking how to run the C preprocessor... gcc -E
checking for grep that handles long lines and -e... /usr/bin/grep
checking for egrep... /usr/bin/grep -E
checking for ANSI C header files... yes
checking for sys/types.h... yes
checking for sys/stat.h... yes
checking for stdlib.h... yes
checking for string.h... yes
checking for memory.h... yes
checking for strings.h... yes
checking for inttypes.h... yes
checking for stdint.h... yes
checking for unistd.h... yes
checking minix/config.h usability... no
checking minix/config.h presence... no
checking for minix/config.h... no
checking whether it is safe to define __EXTENSIONS__... yes
checking for gcc... (cached) gcc
checking whether we are using the GNU C compiler... (cached) yes
checking whether gcc accepts -g... (cached) yes
checking for gcc option to accept ISO C89... (cached) none needed
checking whether gcc needs -traditional... no
checking for a BSD-compatible install... /usr/bin/install -c
Using: BMAKE_PATH_MAX=1024
checking for ANSI C header files... (cached) yes
checking for sys/wait.h that is POSIX.1 compatible... yes
checking for dirent.h that defines DIR... yes
checking for library containing opendir... none required
checking ar.h usability... yes
checking ar.h presence... yes
checking for ar.h... yes
checking err.h usability... yes
checking err.h presence... yes
checking for err.h... yes
checking fcntl.h usability... yes
checking fcntl.h presence... yes
checking for fcntl.h... yes
checking paths.h usability... yes
checking paths.h presence... yes
checking for paths.h... yes
checking poll.h usability... yes
checking poll.h presence... yes
checking for poll.h... yes
checking ranlib.h usability... no
checking ranlib.h presence... no
checking for ranlib.h... no
checking for string.h... (cached) yes
checking sys/mman.h usability... yes
checking sys/mman.h presence... yes
checking for sys/mman.h... yes
checking sys/select.h usability... yes
checking sys/select.h presence... yes
checking for sys/select.h... yes
checking sys/socket.h usability... yes
checking sys/socket.h presence... yes
checking for sys/socket.h... yes
checking sys/sysctl.h usability... no
checking sys/sysctl.h presence... no
checking for sys/sysctl.h... no
checking sys/time.h usability... yes
checking sys/time.h presence... yes
checking for sys/time.h... yes
checking sys/uio.h usability... yes
checking sys/uio.h presence... yes
checking for sys/uio.h... yes
checking for unistd.h... (cached) yes
checking utime.h usability... yes
checking utime.h presence... yes
checking for utime.h... yes
checking sys/cdefs.h usability... yes
checking sys/cdefs.h presence... yes
checking for sys/cdefs.h... yes
checking whether sys/cdefs.h is compatible... yes
checking for __attribute__... no
checking whether byte ordering is bigendian... no
checking for an ANSI C-conforming const... yes
checking for off_t... yes
checking for pid_t... yes
checking for size_t... yes
checking whether sys_siglist is declared... yes
checking whether time.h and sys/time.h may both be included... yes
checking whether struct tm is in sys/time.h or time.h... time.h
checking return type of signal handlers... void
checking vfork.h usability... no
checking vfork.h presence... no
checking for vfork.h... no
checking for fork... yes
checking for vfork... yes
checking for working fork... yes
checking for working vfork... (cached) yes
checking for vprintf... no
checking for wait3 that fills in rusage... no
checking for err... no
checking for errx... no
checking for getcwd... no
checking for getenv... yes
checking for getopt... yes
checking for getwd... yes
checking for killpg... yes
checking for mmap... yes
checking for putenv... yes
checking for select... yes
checking for setenv... yes
checking for setpgid... yes
checking for setsid... yes
checking for sigaction... yes
checking for sigvec... no
checking for snprintf... yes
checking for strerror... yes
checking for strftime... yes
checking for strsep... yes
checking for strtod... yes
checking for strtol... yes
checking for sysctl... no
checking for unsetenv... yes
checking for vsnprintf... yes
checking for wait3... yes
checking for wait4... yes
checking for waitpid... yes
checking for warn... yes
checking for warnx... yes
checking for realpath... yes
checking for dirname... yes
checking for stresep... no
checking for strlcpy... yes
checking for emalloc in -lutil... no
checking whether stat file-mode macros are broken... no
checking for struct stat.st_rdev... yes
checking if compiler supports __func__
checking if diff -u works... no
checking for MACHINE & MACHINE_ARCH...
defaults: MACHINE=cygwin_nt-6.1-wow2, MACHINE_ARCH=i686
Using: MACHINE=cygwin_nt-6.1-wow2, MACHINE_ARCH=i686
Using: MKSRC=mk
configure: creating ./config.status
config.status: creating makefile
config.status: creating Makefile.config
config.status: creating make-bootstrap.sh
config.status: creating unit-tests/Makefile
config.status: creating config.h

You can now run

        sh ./make-bootstrap.sh

to produce a fully functional bmake.

===> running: (cd /usr/pkgsrc/bootstrap/work/bmake && /usr/bin/sh make-bootstrap.sh)
gcc -c -g -O2 -I. -I/usr/pkgsrc/bootstrap/work/bmake -DHAVE_CONFIG_H -DMAKE_NATIVE -DUSE_META -DBMAKE_PATH_MAX=1024 -DMAKE_VERSION="" -DMACHINE="cygwin_nt-6.1-wow2" -DMACHINE_ARCH="i686" -D_PATH_DEFSYSPATH="/usr/pkgsrc/bootstrap/work/share/mk" -o main.o /usr/pkgsrc/bootstrap/work/bmake/main.c
gcc -c -g -O2 -I. -I/usr/pkgsrc/bootstrap/work/bmake -DHAVE_CONFIG_H -DMAKE_NATIVE -DUSE_META -DBMAKE_PATH_MAX=1024 -o arch.o /usr/pkgsrc/bootstrap/work/bmake/arch.c
gcc -c -g -O2 -I. -I/usr/pkgsrc/bootstrap/work/bmake -DHAVE_CONFIG_H -DMAKE_NATIVE -DUSE_META -DBMAKE_PATH_MAX=1024 -o buf.o /usr/pkgsrc/bootstrap/work/bmake/buf.c
gcc -c -g -O2 -I. -I/usr/pkgsrc/bootstrap/work/bmake -DHAVE_CONFIG_H -DMAKE_NATIVE -DUSE_META -DBMAKE_PATH_MAX=1024 -o compat.o /usr/pkgsrc/bootstrap/work/bmake/compat.c
gcc -c -g -O2 -I. -I/usr/pkgsrc/bootstrap/work/bmake -DHAVE_CONFIG_H -DMAKE_NATIVE -DUSE_META -DBMAKE_PATH_MAX=1024 -o cond.o /usr/pkgsrc/bootstrap/work/bmake/cond.c
gcc -c -g -O2 -I. -I/usr/pkgsrc/bootstrap/work/bmake -DHAVE_CONFIG_H -DMAKE_NATIVE -DUSE_META -DBMAKE_PATH_MAX=1024 -o dir.o /usr/pkgsrc/bootstrap/work/bmake/dir.c
gcc -c -g -O2 -I. -I/usr/pkgsrc/bootstrap/work/bmake -DHAVE_CONFIG_H -DMAKE_NATIVE -DUSE_META -DBMAKE_PATH_MAX=1024 -o for.o /usr/pkgsrc/bootstrap/work/bmake/for.c
gcc -c -g -O2 -I. -I/usr/pkgsrc/bootstrap/work/bmake -DHAVE_CONFIG_H -DMAKE_NATIVE -DUSE_META -DBMAKE_PATH_MAX=1024 -o getopt /usr/pkgsrc/bootstrap/work/bmake/getopt.c
gcc -c -g -O2 -I. -I/usr/pkgsrc/bootstrap/work/bmake -DHAVE_CONFIG_H -DMAKE_NATIVE -DUSE_META -DBMAKE_PATH_MAX=1024 -o hash.o /usr/pkgsrc/bootstrap/work/bmake/hash.c
gcc -c -g -O2 -I. -I/usr/pkgsrc/bootstrap/work/bmake -DHAVE_CONFIG_H -DMAKE_NATIVE -DUSE_META -DBMAKE_PATH_MAX=1024 -o job.o /usr/pkgsrc/bootstrap/work/bmake/job.c
gcc -c -g -O2 -I. -I/usr/pkgsrc/bootstrap/work/bmake -DHAVE_CONFIG_H -DMAKE_NATIVE -DUSE_META -DBMAKE_PATH_MAX=1024 -o make.o /usr/pkgsrc/bootstrap/work/bmake/make.c
gcc -c -g -O2 -I. -I/usr/pkgsrc/bootstrap/work/bmake -DHAVE_CONFIG_H -DMAKE_NATIVE -DUSE_META -DBMAKE_PATH_MAX=1024 -o make_malloc.o /usr/pkgsrc/bootstrap/work/bmake/make_malloc.c
gcc -c -g -O2 -I. -I/usr/pkgsrc/bootstrap/work/bmake -DHAVE_CONFIG_H -DMAKE_NATIVE -DUSE_META -DBMAKE_PATH_MAX=1024 -o parse.o /usr/pkgsrc/bootstrap/work/bmake/parse.c
gcc -c -g -O2 -I. -I/usr/pkgsrc/bootstrap/work/bmake -DHAVE_CONFIG_H -DMAKE_NATIVE -DUSE_META -DBMAKE_PATH_MAX=1024 -o sigcompat.o /usr/pkgsrc/bootstrap/work/bmake/sigcompat.c
gcc -c -g -O2 -I. -I/usr/pkgsrc/bootstrap/work/bmake -DHAVE_CONFIG_H -DMAKE_NATIVE -DUSE_META -DBMAKE_PATH_MAX=1024 -o str.o /usr/pkgsrc/bootstrap/work/bmake/str.c
gcc -c -g -O2 -I. -I/usr/pkgsrc/bootstrap/work/bmake -DHAVE_CONFIG_H -DMAKE_NATIVE -DUSE_META -DBMAKE_PATH_MAX=1024 -o strlist.o /usr/pkgsrc/bootstrap/work/bmake/strlist.c
gcc -c -g -O2 -I. -I/usr/pkgsrc/bootstrap/work/bmake -DHAVE_CONFIG_H -DMAKE_NATIVE -DUSE_META -DBMAKE_PATH_MAX=1024 -o suff.o /usr/pkgsrc/bootstrap/work/bmake/suff.c
gcc -c -g -O2 -I. -I/usr/pkgsrc/bootstrap/work/bmake -DHAVE_CONFIG_H -DMAKE_NATIVE -DUSE_META -DBMAKE_PATH_MAX=1024 -o targ.o /usr/pkgsrc/bootstrap/work/bmake/targ.c
gcc -c -g -O2 -I. -I/usr/pkgsrc/bootstrap/work/bmake -DHAVE_CONFIG_H -DMAKE_NATIVE -DUSE_META -DBMAKE_PATH_MAX=1024 -o trace.o /usr/pkgsrc/bootstrap/work/bmake/trace.c
gcc -c -g -O2 -I. -I/usr/pkgsrc/bootstrap/work/bmake -DHAVE_CONFIG_H -DMAKE_NATIVE -DUSE_META -DBMAKE_PATH_MAX=1024 -o var.o /usr/pkgsrc/bootstrap/work/bmake/var.c
gcc -c -g -O2 -I. -I/usr/pkgsrc/bootstrap/work/bmake -DHAVE_CONFIG_H -DMAKE_NATIVE -DUSE_META -DBMAKE_PATH_MAX=1024 -o util.o /usr/pkgsrc/bootstrap/work/bmake/util.c
/usr/pkgsrc/bootstrap/work/bmake/util.c: In function ?getcwd?:
/usr/pkgsrc/bootstrap/work/bmake/util.c:372:10: error: argument ?sz? doesn?t match prototype
      int sz;
          ^
In file included from /usr/include/sys/types.h:20:0,
                 from /usr/pkgsrc/bootstrap/work/bmake/make.h:87,
                 from /usr/pkgsrc/bootstrap/work/bmake/util.c:12:
/usr/include/sys/unistd.h:82:9: error: prototype declaration
 char *  _EXFUN(getcwd, (char *__buf, size_t __size ));
         ^
===> exited with status 1
aborted.

>How-To-Repeat:
1. Install a fresh Cygwin in Windows7 64bit
2. Install base package and gcc in Cygwin
3. Download 2015Q2 package and unzip it to /usr folder
4. cd to /usr/pkgsrc/bootstrap
5. run ./bootstrap
>Fix:



Home | Main Index | Thread Index | Old Index