[distcc] Compiling distcc 3.0 under Cygwin/WinXP

Perez, Aaron P. Aaron.Perez at hospira.com
Fri Jun 27 21:09:46 GMT 2008


All,

 

Has anyone successfully compiled distcc under Cygwin on Windows?

 

I could compile 2.18.3 but both distcc-3.0rc1 and distcc-3.0rc2 fail.

 

1. ./configure completes with no errors/warnings

2. make compiles source and generates distcc.exe, distccd.exe,
distccmon-test.exe, lsdistcc.exe. It also creates the ./_include_server
structure with various Python files but then dies on cl : Command line
error D2004 : '/W' requires an argument

 

Any ideas?

 

TIA,

    Aaron

 

config/make output:

bash$ ./configure

checking build system type... i686-pc-cygwin

checking host system type... i686-pc-cygwin

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 ANSI C... none needed

checking for socklen_t... 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 ANSI C... (cached) none needed

configure: Adding gcc options: -g -O2 -MD -W -Wall -Wimplicit
-Wuninitialized -Wshadow -Wpointer-arith -Wcast-align -Wwrite-strings
-Waggregate-return -Wstrict-prototypes -Wmissing-prototypes
-Wnested-externs -Wmissing-declarations

checking for strerror in -lcposix... no

checking whether make sets $(MAKE)... yes

checking for a BSD-compatible install... /usr/bin/install -c

checking for python2.5... no

checking for python-2.5... no

checking for python2.4... no

checking for python-2.4... no

checking for python... /cygdrive/c/Python25//python

checking for inline... inline

checking whether byte ordering is bigendian... no

checking how to run the C preprocessor... gcc -E

checking for egrep... 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 for unistd.h... (cached) yes

checking for sys/types.h... (cached) yes

checking sys/sendfile.h usability... no

checking sys/sendfile.h presence... no

checking for sys/sendfile.h... no

checking sys/signal.h usability... yes

checking sys/signal.h presence... yes

checking for sys/signal.h... yes

checking ctype.h usability... yes

checking ctype.h presence... yes

checking for ctype.h... yes

checking sys/resource.h usability... yes

checking sys/resource.h presence... yes

checking for sys/resource.h... yes

checking sys/socket.h usability... yes

checking sys/socket.h presence... yes

checking for sys/socket.h... yes

checking sys/select.h usability... yes

checking sys/select.h presence... yes

checking for sys/select.h... yes

checking for netinet/in.h... yes

checking for arpa/nameser.h... no

checking for resolv.h... no

checking float.h usability... yes

checking float.h presence... yes

checking for float.h... yes

checking mcheck.h usability... no

checking mcheck.h presence... no

checking for mcheck.h... no

checking alloca.h usability... yes

checking alloca.h presence... yes

checking for alloca.h... yes

checking sys/mman.h usability... yes

checking sys/mman.h presence... yes

checking for sys/mman.h... yes

checking sys/loadavg.h usability... no

checking sys/loadavg.h presence... no

checking for sys/loadavg.h... no

checking elf.h usability... yes

checking elf.h presence... yes

checking for elf.h... yes

checking fnmatch.h usability... yes

checking fnmatch.h presence... yes

checking for fnmatch.h... yes

checking for in_port_t... yes

checking for in_addr_t... yes

checking for library containing gethostent... no

checking for library containing setsockopt... none required

checking for library containing hstrerror... none required

checking for library containing inet_aton... none required

checking popt.h usability... yes

checking popt.h presence... yes

checking for popt.h... yes

checking whether to use included libpopt... no

checking return type of signal handlers... void

checking for getpagesize... yes

checking for sendfile... no

checking for setsid... yes

checking for flock... yes

checking for lockf... no

checking for hstrerror... yes

checking for strerror... yes

checking for setuid... yes

checking for setreuid... yes

checking for getuid... yes

checking for geteuid... yes

checking for mcheck... no

checking for wait4... yes

checking for wait3... yes

checking for waitpid... yes

checking for setgroups... yes

checking for snprintf... yes

checking for vsnprintf... yes

checking for vasprintf... yes

checking for asprintf... yes

checking for getcwd... yes

checking for getwd... yes

checking for mkdtemp... yes

checking for getrusage... yes

checking for strsignal... yes

checking for gettimeofday... yes

checking for getaddrinfo... no

checking for getnameinfo... no

checking for inet_ntop... yes

checking for inet_ntoa... yes

checking for strndup... yes

checking for strsep... yes

checking for mmap... yes

checking for strlcpy... yes

checking for getloadavg... no

checking whether snprintf is declared... yes

checking whether vsnprintf is declared... yes

checking whether vasprintf is declared... yes

checking whether asprintf is declared... yes

checking whether strndup is declared... yes

checking if mmap() supports MAP_FAILED...

checking for vararg macro support... yes

checking for __va_copy... yes

checking for C99 vsnprintf... yes

checking for working socketpair... yes

checking for struct sockaddr_storage.ss_family... yes

checking for pkg-config... no

checking for AVAHI... checking for the pthreads library -lpthreads... no

checking whether pthreads work without any flags... yes

checking for joinable pthread attribute... PTHREAD_CREATE_JOINABLE

checking if more special flags are required for pthreads... no

checking whether to check for GCC pthread/shared inconsistencies... no

configure: creating ./config.status

config.status: creating Makefile

config.status: creating popt/.stamp-conf

config.status: creating lzo/.stamp-conf

config.status: creating pump

config.status: creating src/config.h

config.status: src/config.h is unchanged

 

'make install' will install distcc as follows:

  man pages            /usr/local/man/man1

  documents            /usr/local/share/doc/distcc

  programs             /usr/local/bin

  system configuration /usr/local/etc

  shared data files    /usr/local/share/distcc

 

 

    distcc 3.0rc2 configured

 

    Copyright (C) 2002, 2003, 2004 by Martin Pool <mbp at samba.org>

    Portions Copyright 2005 Google Inc.

 

    This program is free software; you can redistribute it and/or

    modify it under the terms of the GNU General Public License

    as published by the Free Software Foundation; either version 2

    of the License, or (at your option) any later version.

 

    This program is distributed in the hope that it will be useful,

    but WITHOUT ANY WARRANTY; without even the implied warranty of

    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the

    GNU General Public License for more details.

 

    You should have received a copy of the GNU General Public License

    along with this program; if not, write to the Free Software

    Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA
02110-1301,

    USA.

 

After installing distcc, please complete the survey in the file
"survey.txt".

 

bash$ make

gcc -DHAVE_CONFIG_H -D_GNU_SOURCE -DSYSCONFDIR="\"/usr/local/etc\""
-DPKGDATADIR="\"/usr/local/share/distcc\"" -Isrc -I"./src" -I"./lzo"
-Werror -g -O2 -MD -W -Wall -Wimplicit -Wuninitialized -Wshadow
-Wpointer-arith -Wcast-align -Wwrite-strings -Waggregate-return
-Wstrict-prototypes -Wmissing-prototypes -Wnested-externs
-Wmissing-declarations  -o src/backoff.o -c src/backoff.c

.

.

.

gcc -DHAVE_CONFIG_H -D_GNU_SOURCE -DSYSCONFDIR="\"/usr/local/etc\""
-DPKGDATADIR="\"/usr/local/share/distcc\"" -Isrc -I"./src" -I"./lzo"
-Werror -g -O2 -MD -W -Wall -Wimplicit -Wuninitialized -Wshadow
-Wpointer-arith -Wcast-align -Wwrite-strings -Waggregate-return
-Wstrict-prototypes -Wmissing-prototypes -Wnested-externs
-Wmissing-declarations  -o lzo/minilzo.o -c lzo/minilzo.c

gcc -g -O2 -MD -W -Wall -Wimplicit -Wuninitialized -Wshadow
-Wpointer-arith -Wcast-align -Wwrite-strings -Waggregate-return
-Wstrict-prototypes -Wmissing-prototypes -Wnested-externs
-Wmissing-declarations   -o distcc.exe src/backoff.o src/climasq.o
src/clinet.o src/clirpc.o src/compile.o src/cpp.o src/distcc.o
src/remote.o src/ssh.o src/state.o src/strip.o src/timefile.o
src/traceenv.o src/include_server_if.o src/where.o src/emaillog.o
src/arg.o src/argutil.o src/cleanup.o src/compress.o src/trace.o
src/util.o src/io.o src/exec.o src/rpc.o src/tempfile.o src/bulk.o
src/help.o src/filename.o src/lock.o src/netutil.o src/pump.o
src/sendfile.o src/safeguard.o src/snprintf.o src/timeval.o src/dotd.o
src/hosts.o src/hostfile.o src/implicit.o src/loadfile.o lzo/minilzo.o
-lpopt

/usr/lib/gcc/i686-pc-cygwin/3.4.4/../../../../i686-pc-cygwin/bin/ld:
warning: auto-importing has been activated without --enable-auto-import
specified on the command line.

This should work unless it involves constant data structures referencing
symbols from auto-imported

DLLs.Info: resolving _h_errno by linking to __imp__h_errno (auto-import)

gcc -DHAVE_CONFIG_H -D_GNU_SOURCE -DSYSCONFDIR="\"/usr/local/etc\""
-DPKGDATADIR="\"/usr/local/share/distcc\"" -Isrc -I"./src" -I"./lzo"
-Werror -g -O2 -MD -W -Wall -Wimplicit -Wuninitialized -Wshadow
-Wpointer-arith -Wcast-align -Wwrite-strings -Waggregate-return
-Wstrict-prototypes -Wmissing-prototypes -Wnested-externs
-Wmissing-declarations  -o src/access.o -c src/access.c

.

.

.

gcc -DHAVE_CONFIG_H -D_GNU_SOURCE -DSYSCONFDIR="\"/usr/local/etc\""
-DPKGDATADIR="\"/usr/local/share/distcc\"" -Isrc -I"./src" -I"./lzo"
-Werror -g -O2 -MD -W -Wall -Wimplicit -Wuninitialized -Wshadow
-Wpointer-arith -Wcast-align -Wwrite-strings -Waggregate-return
-Wstrict-prototypes -Wmissing-prototypes -Wnested-externs
-Wmissing-declarations  -o src/fix_debug_info.o -c src/fix_debug_info.c

gcc -g -O2 -MD -W -Wall -Wimplicit -Wuninitialized -Wshadow
-Wpointer-arith -Wcast-align -Wwrite-strings -Waggregate-return
-Wstrict-prototypes -Wmissing-prototypes -Wnested-externs
-Wmissing-declarations   -o distccd.exe src/access.o src/daemon.o
src/dopt.o src/dparent.o src/dsignal.o src/ncpus.o src/prefork.o
src/stringmap.o src/serve.o src/setuid.o src/srvnet.o src/srvrpc.o
src/state.o src/stats.o src/fix_debug_info.o src/arg.o src/argutil.o
src/cleanup.o src/compress.o src/trace.o src/util.o src/io.o src/exec.o
src/rpc.o src/tempfile.o src/bulk.o src/help.o src/filename.o src/lock.o
src/netutil.o src/pump.o src/sendfile.o src/safeguard.o src/snprintf.o
src/timeval.o src/dotd.o src/hosts.o src/hostfile.o src/implicit.o
src/loadfile.o lzo/minilzo.o   -lpopt

gcc -DHAVE_CONFIG_H -D_GNU_SOURCE -DSYSCONFDIR="\"/usr/local/etc\""
-DPKGDATADIR="\"/usr/local/share/distcc\"" -Isrc -I"./src" -I"./lzo"
-Werror -g -O2 -MD -W -Wall -Wimplicit -Wuninitialized -Wshadow
-Wpointer-arith -Wcast-align -Wwrite-strings -Waggregate-return
-Wstrict-prototypes -Wmissing-prototypes -Wnested-externs
-Wmissing-declarations  -o src/mon.o -c src/mon.c

.

.

.

gcc -DHAVE_CONFIG_H -D_GNU_SOURCE -DSYSCONFDIR="\"/usr/local/etc\""
-DPKGDATADIR="\"/usr/local/share/distcc\"" -Isrc -I"./src" -I"./lzo"
-Werror -g -O2 -MD -W -Wall -Wimplicit -Wuninitialized -Wshadow
-Wpointer-arith -Wcast-align -Wwrite-strings -Waggregate-return
-Wstrict-prototypes -Wmissing-prototypes -Wnested-externs
-Wmissing-declarations  -o src/rslave.o -c src/rslave.c

gcc -g -O2 -MD -W -Wall -Wimplicit -Wuninitialized -Wshadow
-Wpointer-arith -Wcast-align -Wwrite-strings -Waggregate-return
-Wstrict-prototypes -Wmissing-prototypes -Wnested-externs
-Wmissing-declarations   -o lsdistcc.exe src/lsdistcc.o src/clinet.o
src/io.o src/netutil.o src/trace.o src/util.o src/rslave.o
src/snprintf.o lzo/minilzo.o -lpopt

/usr/lib/gcc/i686-pc-cygwin/3.4.4/../../../../i686-pc-cygwin/bin/ld:
warning: auto-importing has been activated without --enable-auto-import
specified on the command line.

This should work unless it involves constant data structures referencing
symbols from auto-imported

DLLs.Info: resolving _h_errno by linking to __imp__h_errno (auto-import)

if test -z "/cygdrive/c/Python25//python"; then \

          echo "Not building include-server: No suitable python found";
\

        else                                            \

          mkdir -p "./_include_server" &&      \

          DISTCC_VERSION="3.0rc2"                       \

          SRCDIR="."                            \

          CPPFLAGS="-DHAVE_CONFIG_H -D_GNU_SOURCE
-DSYSCONFDIR="\"/usr/local/etc\"" -DPKGDATADIR="\"

/usr/local/share/distcc\"" -Isrc -I"./src" -I"./lzo" "
\

          /cygdrive/c/Python25//python "./include_server/setup.py" \

              build                                     \

                --build-base="./_include_server"  \

                --build-temp="./_include_server"; \

        fi

running build

running build_py

creating _include_server\lib.win32-2.5

creating _include_server\lib.win32-2.5\include_server

copying c:\temp\distccSource\distcc-3.0rc2\include_server\basics.py ->
./_include_server\lib.win32-2.5\include_server

.

.

.

copying c:\temp\distccSource\distcc-3.0rc2\include_server\__init__.py ->
./_include_server\lib.win32-2.5\include_server

running build_ext

building 'include_server.distcc_pump_c_extensions' extension

creating _include_server\Release

creating _include_server\Release\temp

creating _include_server\Release\temp\distccSource

creating _include_server\Release\temp\distccSource\distcc-3.0rc2

creating _include_server\Release\temp\distccSource\distcc-3.0rc2\src

creating _include_server\Release\temp\distccSource\distcc-3.0rc2\lzo

creating
_include_server\Release\temp\distccSource\distcc-3.0rc2\include_server

creating
_include_server\Release\temp\distccSource\distcc-3.0rc2\include_server\c
_extensions

C:\Program Files\Microsoft Visual Studio .NET 2003\Vc7\bin\cl.exe /c
/nologo /Ox /MD /W3 /GX /DNDEBUG -D_GNU_SOURCE=1 -Isrc -I./src -I./lzo
-Ic:\Python25\include -Ic:\Python25\PC
/Tcc:\temp\distccSource\distcc-3.0rc2\src/clirpc.c
/Fo./_include_server\Release\temp\distccSource\distcc-3.0rc2\src/clirpc.
obj -W -Wall -Wimplicit -Wuninitialized -Wshadow -Wpointer-arith
-Wcast-align -Waggregate-return -Wstrict-prototypes -Wnested-externs
-Werror -Wp,-U_FORTIFY_SOURCE

cl : Command line error D2004 : '/W' requires an argument

error: command '"C:\Program Files\Microsoft Visual Studio .NET
2003\Vc7\bin\cl.exe"' failed with exit status 2

make: *** [include-server] Error 1

bash$

 

-------------- next part --------------
HTML attachment scrubbed and removed


More information about the distcc mailing list