Hi,
 I get the following error message when I try to compile hwloc 1.0.2 on Cygwin. 
Configure and make logs are attached.

$ uname -a
CYGWIN_NT-6.1-WOW64 msnehalem1 1.7.6(0.230/5/3) 2010-08-16 16:06 i686 Cygwin

======================================== make.log 
====================================
...
  CC     lstopo-lstopo-cairo.o
In file included from 
/usr/lib/gcc/i686-pc-cygwin/4.3.4/../../../../include/w32api/windows.h:87,
                 from 
/cygdrive/c/Users/jayesh/ANL/hwloc-1.0.2/include/hwloc/config.h:112,
                 from 
/cygdrive/c/Users/jayesh/ANL/hwloc-1.0.2/include/hwloc.h:17,
                 from lstopo.h:10,
                 from lstopo-cairo.c:44:
/usr/lib/gcc/i686-pc-cygwin/4.3.4/../../../../include/w32api/winspool.h:255: 
error: two or more data
 types in declaration specifiers
/usr/lib/gcc/i686-pc-cygwin/4.3.4/../../../../include/w32api/winspool.h:270: 
error: two or more data
 types in declaration specifiers
/usr/lib/gcc/i686-pc-cygwin/4.3.4/../../../../include/w32api/winspool.h:291: 
error: two or more data
 types in declaration specifiers
/usr/lib/gcc/i686-pc-cygwin/4.3.4/../../../../include/w32api/winspool.h:316: 
error: two or more data
 types in declaration specifiers
/usr/lib/gcc/i686-pc-cygwin/4.3.4/../../../../include/w32api/winspool.h:571: 
error: two or more data
 types in declaration specifiers
/usr/lib/gcc/i686-pc-cygwin/4.3.4/../../../../include/w32api/winspool.h:594: 
error: two or more data
 types in declaration specifiers
make[1]: *** [lstopo-lstopo-cairo.o] Error 1
make[1]: Leaving directory `/cygdrive/c/Users/jayesh/ANL/hwloc-1.0.2/utils'
make: *** [all-recursive] Error 1
======================================== make.log 
====================================

Regards,
Jayesh
###
### Configuring hwloc distribution tarball
### Startup tests
###
checking build system type... i686-pc-cygwin
checking host system type... i686-pc-cygwin
checking target system type... i686-pc-cygwin
checking for a BSD-compatible install... /usr/bin/install -c
checking whether build environment is sane... yes
checking for a thread-safe mkdir -p... /usr/bin/mkdir -p
checking for gawk... gawk
checking whether make sets $(MAKE)... yes
checking how to create a ustar tar archive... gnutar
checking for hwloc version... 1.0.2
checking for gcc... gcc
checking whether the C compiler works... yes
checking for C compiler default output file name... a.exe
checking for suffix of executables... .exe
checking whether we are cross compiling... no
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 for style of include used by make... GNU
checking dependency style of gcc... gcc3
checking whether gcc and cc understand -c and -o together... yes
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 pkg-config... /usr/bin/pkg-config
checking pkg-config is at least version 0.9.0... yes

###
### Configuring hwloc core
###
checking hwloc building mode... standalone
configure: hwloc builddir: /cygdrive/c/Users/jayesh/ANL/hwloc-1.0.2
configure: hwloc srcdir: /cygdrive/c/Users/jayesh/ANL/hwloc-1.0.2
checking if want hwloc maintainer support... disabled
checking for hwloc directory prefix... (none)
checking for hwloc symbol prefix... hwloc_
checking for gcc option to accept ISO C99... -std=gnu99
checking size of void *... 4
checking which OS support to include... Windows
checking which CPU support to include... x86_32
checking whether diff accepts -u... -u
checking size of unsigned long... 4
checking size of unsigned int... 4
checking for __attribute__... yes
checking for __attribute__(aligned)... yes
checking for __attribute__(always_inline)... yes
checking for __attribute__(cold)... yes
checking for __attribute__(const)... yes
checking for __attribute__(deprecated)... yes
checking for __attribute__(format)... no
checking for __attribute__(hot)... yes
checking for __attribute__(malloc)... yes
checking for __attribute__(may_alias)... yes
checking for __attribute__(no_instrument_function)... yes
checking for __attribute__(nonnull)... no
checking for __attribute__(noreturn)... yes
checking for __attribute__(packed)... yes
checking for __attribute__(pure)... yes
checking for __attribute__(sentinel)... no
checking for __attribute__(unused)... yes
checking for __attribute__(warn_unused_result)... yes
checking for __attribute__(weak_alias)... yes
checking if gcc supports -fvisibility... no
checking enable symbol visibility... no
checking for inline compatibility keyword... __inline__
checking for strncasecmp... yes
checking whether function strncasecmp is declared... yes
checking for stdint.h... (cached) yes
checking for wchar_t... yes
checking for putwc... yes
checking locale.h usability... yes
checking locale.h presence... yes
checking for locale.h... yes
checking for setlocale... yes
checking langinfo.h usability... yes
checking langinfo.h presence... yes
checking for langinfo.h... yes
checking for nl_langinfo... yes
checking curses.h usability... no
checking curses.h presence... no
checking for curses.h... no
checking for KAFFINITY... no
checking for PROCESSOR_CACHE_TYPE... no
checking for CACHE_DESCRIPTOR... no
checking for LOGICAL_PROCESSOR_RELATIONSHIP... no
checking for SYSTEM_LOGICAL_PROCESSOR_INFORMATION... no
checking for GROUP_AFFINITY... no
checking for PROCESSOR_RELATIONSHIP... no
checking for NUMA_NODE_RELATIONSHIP... no
checking for CACHE_RELATIONSHIP... no
checking for PROCESSOR_GROUP_INFO... no
checking for GROUP_RELATIONSHIP... no
checking for SYSTEM_LOGICAL_PROCESSOR_INFORMATION_EX... no
checking for main in -lgdi32... yes
checking windows.h usability... yes
checking windows.h presence... yes
checking for windows.h... yes
checking sys/lgrp_user.h usability... no
checking sys/lgrp_user.h presence... no
checking for sys/lgrp_user.h... no
checking kstat.h usability... no
checking kstat.h presence... no
checking for kstat.h... no
checking infiniband/verbs.h usability... no
checking infiniband/verbs.h presence... no
checking for infiniband/verbs.h... no
checking whether _SC_NPROCESSORS_ONLN is declared... yes
checking whether _SC_NPROCESSORS_CONF is declared... yes
checking whether _SC_NPROC_ONLN is declared... no
checking whether _SC_NPROC_CONF is declared... no
checking whether _SC_LARGE_PAGESIZE is declared... no
checking mach/mach_host.h usability... no
checking mach/mach_host.h presence... no
checking for mach/mach_host.h... no
checking mach/mach_init.h usability... no
checking mach/mach_init.h presence... no
checking for mach/mach_init.h... no
checking sys/param.h usability... yes
checking sys/param.h presence... yes
checking for sys/param.h... yes
checking for sys/sysctl.h... no
checking for sysctl... no
checking for sysctlbyname... no
checking whether function sched_setaffinity is declared... no
checking for working CPU_SET... no
checking for working CPU_SET_S... no
checking for KERRIGHED... no
checking for lib... no
checking for bash... /usr/bin/sh
checking for ffs... yes
checking whether function ffs is declared... yes
checking for ffsl... no
checking for fls... no
checking for flsl... no
checking for clz... no
checking for clzl... no
checking for openat... yes
checking whether numa_bitmask_alloc is declared... no
checking pthread_np.h usability... no
checking pthread_np.h presence... no
checking for pthread_np.h... no
checking whether pthread_setaffinity_np is declared... no
checking whether pthread_getaffinity_np is declared... no
checking for sched_setaffinity... no
checking for sys/cpuset.h... no
checking for library containing pthread_getthrds_np... no
checking for cpuid... yes
checking for X... libraries , headers 

###
### Configuring hwloc documentation
###
checking if this is a developer build... no (doxygen generation is optional)
checking for doxygen... /usr/bin/doxygen
checking for pdflatex... /usr/bin/pdflatex
checking for makeindex... /usr/bin/makeindex
checking for fig2dev... /usr/bin/fig2dev
checking if can build doxygen docs... yes
checking for w3m... /usr/bin/w3m
checking for lynx... /usr/bin/lynx
checking if can build top-level README... yes
checking if will build doxygen docs... yes
checking if will install doxygen docs... yes
checking whether to enable "picky" compiler mode... no (default)

###
### Configuring hwloc command line utilities
###
checking for CAIRO... yes
checking for cairo_fill... yes
checking for final CAIRO support... yes
checking for gethostbyname... yes
checking for connect... yes
checking for remove... yes
checking for shmat... yes
checking for IceConnectionNumber in -lICE... yes
checking for X11/Xlib.h... yes
checking X11/Xutil.h usability... yes
checking X11/Xutil.h presence... yes
checking for X11/Xutil.h... yes
checking for XOpenDisplay in -lX11... yes
checking X11/keysym.h usability... yes
checking X11/keysym.h presence... yes
checking for X11/keysym.h... yes
checking for XOpenDisplay in -lX11... (cached) yes
checking for XML... yes
checking for xmlNewDoc... yes
checking for final XML support... yes
checking for xmllint... xmllint

###
### Configuring hwloc tests
###
checking for a sed that does not truncate output... /usr/bin/sed
checking for fgrep... /usr/bin/grep -F
checking for ld used by gcc... /usr/i686-pc-cygwin/bin/ld.exe
checking if the linker (/usr/i686-pc-cygwin/bin/ld.exe) is GNU ld... yes
checking for BSD- or MS-compatible name lister (nm)... /usr/bin/nm -B
checking the name lister (/usr/bin/nm -B) interface... BSD nm
checking whether ln -s works... yes
checking the maximum length of command line arguments... 8192
checking whether the shell understands some XSI constructs... yes
checking whether the shell understands "+="... yes
checking for /usr/i686-pc-cygwin/bin/ld.exe option to reload object files... -r
checking for objdump... objdump
checking how to recognize dependent libraries... file_magic ^x86 archive import|^x86 DLL
checking for ar... ar
checking for strip... strip
checking for ranlib... ranlib
checking command to parse /usr/bin/nm -B output from gcc object... ok
checking for dlfcn.h... yes
checking for as... as
checking for dlltool... dlltool
checking for objdump... (cached) objdump
checking for objdir... .libs
checking if gcc supports -fno-rtti -fno-exceptions... no
checking for gcc option to produce PIC... -DDLL_EXPORT -DPIC
checking if gcc PIC flag -DDLL_EXPORT -DPIC works... yes
checking if gcc static flag -static works... no
checking if gcc supports -c -o file.o... yes
checking if gcc supports -c -o file.o... (cached) yes
checking whether the gcc linker (/usr/i686-pc-cygwin/bin/ld.exe) supports shared libraries... yes
checking whether -lc should be explicitly linked in... yes
checking dynamic linker characteristics... Win32 ld.exe
checking how to hardcode library paths into programs... immediate
checking whether stripping libraries is possible... yes
checking if libtool supports shared libraries... yes
checking whether to build shared libraries... yes
checking whether to build static libraries... no
configure: creating ./config.status
config.status: creating Makefile
config.status: creating include/Makefile
config.status: creating src/Makefile
config.status: creating doc/Makefile
config.status: creating doc/doxygen-config.cfg
config.status: creating utils/Makefile
config.status: creating hwloc.pc
config.status: creating tests/Makefile
config.status: creating tests/linux/Makefile
config.status: creating tests/xml/Makefile
config.status: creating tests/ports/Makefile
config.status: creating tests/linux/gather-topology.sh
config.status: creating tests/linux/test-topology.sh
config.status: creating tests/xml/test-topology.sh
config.status: creating utils/test-hwloc-distrib.sh
config.status: creating include/private/config.h
config.status: creating include/hwloc/config.h
config.status: linking src/topology.c to tests/ports/topology.c
config.status: linking src/traversal.c to tests/ports/traversal.c
config.status: linking src/topology-synthetic.c to tests/ports/topology-synthetic.c
config.status: linking src/topology-solaris.c to tests/ports/topology-solaris.c
config.status: linking src/topology-aix.c to tests/ports/topology-aix.c
config.status: linking src/topology-osf.c to tests/ports/topology-osf.c
config.status: linking src/topology-windows.c to tests/ports/topology-windows.c
config.status: linking src/topology-darwin.c to tests/ports/topology-darwin.c
config.status: linking src/topology-freebsd.c to tests/ports/topology-freebsd.c
config.status: linking src/topology-hpux.c to tests/ports/topology-hpux.c
config.status: executing depfiles commands
config.status: executing chmoding-scripts commands
config.status: executing libtool commands
Making all in src
make[1]: Entering directory `/cygdrive/c/Users/jayesh/ANL/hwloc-1.0.2/src'
  CC     topology.lo
  CC     traversal.lo
  CC     topology-synthetic.lo
  CC     bind.lo
  CC     cpuset.lo
  CC     misc.lo
  CC     topology-xml.lo
  CC     topology-windows.lo
topology-windows.c: In function ‘hwloc_look_windows’:
topology-windows.c:212: warning: assignment from incompatible pointer type
topology-windows.c:213: warning: assignment from incompatible pointer type
  CC     topology-x86.lo
  CCLD   libhwloc.la
Creating library file: .libs/libhwloc.dll.a
make[1]: Leaving directory `/cygdrive/c/Users/jayesh/ANL/hwloc-1.0.2/src'
Making all in include
make[1]: Entering directory `/cygdrive/c/Users/jayesh/ANL/hwloc-1.0.2/include'
make[1]: Nothing to be done for `all'.
make[1]: Leaving directory `/cygdrive/c/Users/jayesh/ANL/hwloc-1.0.2/include'
Making all in utils
make[1]: Entering directory `/cygdrive/c/Users/jayesh/ANL/hwloc-1.0.2/utils'
  CC     lstopo-lstopo.o
lstopo.c: In function ‘add_process_objects’:
lstopo.c:99: warning: passing argument 2 of ‘hwloc_get_proc_cpubind’ makes pointer from integer without a cast
lstopo.c: In function ‘main’:
lstopo.c:294: warning: assignment makes pointer from integer without a cast
  CC     lstopo-lstopo-color.o
  CC     lstopo-lstopo-text.o
  CC     lstopo-lstopo-draw.o
  CC     lstopo-lstopo-fig.o
  CC     lstopo-lstopo-cairo.o
In file included from /usr/lib/gcc/i686-pc-cygwin/4.3.4/../../../../include/w32api/windows.h:87,
                 from /cygdrive/c/Users/jayesh/ANL/hwloc-1.0.2/include/hwloc/config.h:112,
                 from /cygdrive/c/Users/jayesh/ANL/hwloc-1.0.2/include/hwloc.h:17,
                 from lstopo.h:10,
                 from lstopo-cairo.c:44:
/usr/lib/gcc/i686-pc-cygwin/4.3.4/../../../../include/w32api/winspool.h:255: error: two or more data types in declaration specifiers
/usr/lib/gcc/i686-pc-cygwin/4.3.4/../../../../include/w32api/winspool.h:270: error: two or more data types in declaration specifiers
/usr/lib/gcc/i686-pc-cygwin/4.3.4/../../../../include/w32api/winspool.h:291: error: two or more data types in declaration specifiers
/usr/lib/gcc/i686-pc-cygwin/4.3.4/../../../../include/w32api/winspool.h:316: error: two or more data types in declaration specifiers
/usr/lib/gcc/i686-pc-cygwin/4.3.4/../../../../include/w32api/winspool.h:571: error: two or more data types in declaration specifiers
/usr/lib/gcc/i686-pc-cygwin/4.3.4/../../../../include/w32api/winspool.h:594: error: two or more data types in declaration specifiers
make[1]: *** [lstopo-lstopo-cairo.o] Error 1
make[1]: Leaving directory `/cygdrive/c/Users/jayesh/ANL/hwloc-1.0.2/utils'
make: *** [all-recursive] Error 1

Reply via email to