Building ROOT with cygwin in Windows XP

Hello,

I am trying to build ROOT from source using cygwin/gcc on my Windows XP laptop.

I run ./configure win32gcc in cygwin and all seems to go well:


Checking for source directory … /home/sizzlegina/root
Configuring for win32gcc
Checking for GNU Make version >= 3.80 … ok
Checking for C compiler … gcc
Checking for C++ compiler … g++
Checking for linker (LD) … build/unix/wingcc_ld.sh
Checking for F77 compiler … no F77 compiler gfortran found
Checking for libX11 … /usr/lib
Checking for X11/Xlib.h … /usr/include
Checking for X11/xpm.h … /usr/include
Checking for X11/Xft/Xft.h … /usr/include
Checking for X11/extensions/shape.h … /usr/include
Checking for libXpm … /usr/lib
Checking for libXft … /usr/lib
Checking for libXext … /usr/lib
Checking for libpthread … /usr/lib
Checking for freetype-config … /usr/bin/freetype-config
Checking for libfreetype version >= 9.3.0 … ok
Checking whether to build included libfreetype6 … no
Checking for pcre-config … not found
Checking whether to build included libpcre … yes
Checking for zlib.h … /usr/include
Checking for libz … /usr/lib
Checking whether to build included zlib … no
Checking for lzma.h … no
Checking for liblzma … no
Checking whether to build included lzma … yes
Checking for GL/gl.h … no
Checking for libGL, or libMesaGL … no
Checking for libGLU, or libMesaGLU … no
Checking for mysql_config … not found
Checking for mysql.h … no
Checking for libmysqlclient_r, libmysqlclient, or mysqlclient … no
Checking for occi.h … no
Checking for libclntsh, or oci … no
Checking for libocci, or oraocci10 … no
Checking for libpq-fe.h … no
Checking for libpq … no
Checking for sql.h … no
Checking for libsqlod … no
Checking for sqlext.h … no
Checking for libiodbc, libodbc, or odbc32 … no
Checking for rfio_api.h … no
Checking for librfio, libdpm, libshift, shiftmd, or shift … no
Checking for rfio_api.h … no
Checking for stager_api.h … no
Checking for libshift, shiftmd, or shift … no
Checking for gfal_api.h … no
Checking for libgfal … no
Checking for ApMon.h … no
Checking for libapmoncpp … no
Checking for fftw3.h … no
Checking for libfftw3, or libfftw3-3 … no
Checking for fitsio.h … no
Checking for libcfitsio, or cfitsio … no
Checking for gvc.h … no
Checking for libgvc, or gvc … no
Checking for libgraph, or graph … no
Checking for libcdt, or cdt … no
Checking for libpathplan, or pathplan … no
Checking for libgvplugin_dot_layout, or gvplugin_dot_layout … no
Checking for libPythia6 … no
Checking for Pythia.h … no
Checking for libpythia8 … no
Checking for dcap.h … no
Checking for libdcap … no
Checking for chirp_reli.h … no
Checking for libchirp_client … no
Checking for hdfs.h … no
Checking for jni.h … no
Checking for libhdfs … no
Checking for libjvm … no
Checking for dns_sd.h … no
Checking for libdns_sd … no
Checking for libglite-api-wrapper … no
Checking for gapiUI.h … no
Checking for libgapiUI … no
Checking for jpeglib.h … no
Checking for png.h … no
Checking for tiffio.h … no
Checking for gif_lib.h … no
Checking for libjpeg … no
Checking for libtiff … no
Checking for libungif … no
Checking for libz … /usr/lib
Checking for libpng … no
Checking whether to build included libAfterImage … yes
Checking for ldap.h … no
Checking for libldap … no
check_header: Too few arguments
Checking for python, libpython, libpython, python, or Python … no
Checking for xml2-config … not found
Checking for libxml/tree.h … no
Checking for libxml2_a, or libxml2 … no
Checking whether to build xrootd … no
Checking for libssl … no
Checking for t_server.h … no
Checking for libsrp … no
Checking for libgmp … no
Checking for libmisc … no
Checking for pwauth.h … no
Checking for krb5.h … no
Checking for shadow passwords … no
Checking for gsl/gsl_version.h … no
Checking for gsl-config … not found
Checking whether to build libMathMore … no
Checking whether to build libGenVector … yes
Checking whether to build libCintex … yes
Checking whether to build libReflex … yes
Checking whether to build libRooFit … no
Checking whether to build libMinuit2 … no
Checking whether to build libUnuran … no
Checking whether to build libGdml … no
Checking whether to build libTable … no
Checking whether to build libTMVA … yes
Checking whether to build libMemStat … no
Checking for Clarens support … no
Checking for PEAC support … no
Checking whether to build afdsmgrd … no
Generating cint dictionaries.
Checking whether setresuid declared in /usr/include/unistd.h … no
Writing config/Makefile.config … done
Writing config/Makefile.comp … done
Writing include/RConfigure.h … done
Writing include/RConfigOptions.h … done
Writing bin/root-config … done
Writing etc/system.rootrc … done
Writing etc/system.rootauthrc … done
Writing etc/system.rootdaemonrc … done
Writing etc/root.mimes … done
Writing etc/daemons/rootd.rc.d … done
Writing etc/daemons/rootd.xinetd … done
Writing etc/daemons/proofd.rc.d … done
Writing etc/daemons/proofd.xinetd … done
Writing main/src/proofserv.sh … done
Writing main/src/roots.sh … done
Writing etc/daemons/xrootd.rc.d … done
Writing etc/daemons/olbd.rc.d … done
Writing etc/daemons/cmsd.rc.d … done
Writing bin/memprobe … done
Writing build/misc/root-help.el … done
Writing macros/html.C … done
Writing bin/thisroot.sh … done
Writing bin/thisroot.csh … done
Writing bin/genreflex … done
Writing bin/genreflex-rootcint … done
Writing config.status … done

Enabled support for asimage, astiff, builtin_afterimage, builtin_pcre, builtin_lzma, cintex, exceptions, explicitlink, genvector,
reflex, shared, tmva, x11, xft.

To build ROOT type:

make


I then type make and things go downhill:

g++ -O2 -pipe -Wall -Woverloaded-virtual -Iinclude -I/usr/X11R6/include -DINCLUDEDIR="/usr/include" -DOBJSUFFIX=".o" -o buil
d/rmkdepend/mainroot.o -c /home/sizzlegina/root/build/rmkdepend/mainroot.cxx
In file included from /usr/lib/gcc/i686-pc-cygwin/3.4.4/include/c++/i686-pc-cygwin/bits/gthr-default.h:43,
from /usr/lib/gcc/i686-pc-cygwin/3.4.4/include/c++/i686-pc-cygwin/bits/gthr.h:96,
from /usr/lib/gcc/i686-pc-cygwin/3.4.4/include/c++/i686-pc-cygwin/bits/c++io.h:37,
from /usr/lib/gcc/i686-pc-cygwin/3.4.4/include/c++/iosfwd:47,
from /usr/lib/gcc/i686-pc-cygwin/3.4.4/include/c++/bits/stl_algobase.h:70,
from /usr/lib/gcc/i686-pc-cygwin/3.4.4/include/c++/bits/char_traits.h:46,
from /usr/lib/gcc/i686-pc-cygwin/3.4.4/include/c++/string:47,
from /home/sizzlegina/root/build/rmkdepend/mainroot.cxx:28:
include/pthread.h:307: error: redefinition of struct timespec' /usr/include/sys/types.h:115: error: previous definition ofstruct timespec’
include/pthread.h:571: error: conflicting declaration ‘typedef struct ptw32_handle_t pthread_t’
/usr/include/cygwin/types.h:182: error: ‘pthread_t’ has a previous declaration as typedef struct __pthread_t*pthread_t' include/pthread.h:571: error: declaration oftypedef struct ptw32_handle_t pthread_t’
/usr/include/cygwin/types.h:182: error: conflicts with previous declaration typedef struct __pthread_t*pthread_t' include/pthread.h:571: error: declaration oftypedef struct ptw32_handle_t pthread_t’
/usr/include/cygwin/types.h:182: error: conflicts with previous declaration typedef struct __pthread_t*pthread_t' include/pthread.h:571: error: declaration oftypedef struct ptw32_handle_t pthread_t’
/usr/include/cygwin/types.h:182: error: conflicts with previous declaration typedef struct __pthread_t*pthread_t' include/pthread.h:572: error: conflicting declaration 'typedef struct pthread_attr_t_*pthread_attr_t' /usr/include/cygwin/types.h:186: error: 'pthread_attr_t' has a previous declaration astypedef struct pthread_attr_tpthread_at
tr_t’
include/pthread.h:572: error: declaration of typedef struct pthread_attr_t_*pthread_attr_t' /usr/include/cygwin/types.h:186: error: conflicts with previous declarationtypedef struct __pthread_attr_t
pthread_attr_t’
include/pthread.h:572: error: declaration of typedef struct pthread_attr_t_*pthread_attr_t' /usr/include/cygwin/types.h:186: error: conflicts with previous declarationtypedef struct pthread_attr_t*pthread_attr_t’
include/pthread.h:573: error: conflicting declaration 'typedef struct pthread_once_t
pthread_once_t’
/usr/include/cygwin/types.h:197: error: ‘pthread_once_t’ has a previous declaration as typedef struct pthread_once_t pthread_once _t' include/pthread.h:573: error: declaration oftypedef struct pthread_once_t
pthread_once_t’
/usr/include/cygwin/types.h:197: error: conflicts with previous declaration typedef struct pthread_once_t pthread_once_t' include/pthread.h:573: error: declaration oftypedef struct pthread_once_t
pthread_once_t’
/usr/include/cygwin/types.h:197: error: conflicts with previous declaration typedef struct pthread_once_t pthread_once_t' include/pthread.h:573: error: declaration oftypedef struct pthread_once_t
pthread_once_t’
/usr/include/cygwin/types.h:197: error: conflicts with previous declaration typedef struct pthread_once_t pthread_once_t' include/pthread.h:574: error: conflicting declaration 'typedef struct pthread_key_t_*pthread_key_t' /usr/include/cygwin/types.h:185: error: 'pthread_key_t' has a previous declaration astypedef struct pthread_key_t*pthread_key
t’
include/pthread.h:574: error: declaration of typedef struct pthread_key_t_*pthread_key_t' /usr/include/cygwin/types.h:185: error: conflicts with previous declarationtypedef struct pthread_key_tpthread_key_t’
include/pthread.h:574: error: declaration of typedef struct pthread_key_t_*pthread_key_t' /usr/include/cygwin/types.h:185: error: conflicts with previous declarationtypedef struct __pthread_key_t
pthread_key_t’
include/pthread.h:575: error: conflicting declaration 'typedef struct pthread_mutex_t
*pthread_mutex_t’
/usr/include/cygwin/types.h:183: error: ‘pthread_mutex_t’ has a previous declaration as typedef struct __pthread_mutex_t*pthread_ mutex_t' include/pthread.h:575: error: declaration oftypedef struct pthread_mutex_t
*pthread_mutex_t’
/usr/include/cygwin/types.h:183: error: conflicts with previous declaration typedef struct __pthread_mutex_t*pthread_mutex_t' include/pthread.h:575: error: declaration oftypedef struct pthread_mutex_t
pthread_mutex_t’
/usr/include/cygwin/types.h:183: error: conflicts with previous declaration typedef struct __pthread_mutex_t*pthread_mutex_t' include/pthread.h:576: error: conflicting declaration 'typedef struct pthread_mutexattr_t_*pthread_mutexattr_t' /usr/include/cygwin/types.h:187: error: 'pthread_mutexattr_t' has a previous declaration astypedef struct __pthread_mutexattr_t

pthread_mutexattr_t’
include/pthread.h:576: error: declaration of typedef struct pthread_mutexattr_t_*pthread_mutexattr_t' /usr/include/cygwin/types.h:187: error: conflicts with previous declarationtypedef struct pthread_mutexattr_tpthread_mutexatt
r_t’
include/pthread.h:576: error: declaration of typedef struct pthread_mutexattr_t_*pthread_mutexattr_t' /usr/include/cygwin/types.h:187: error: conflicts with previous declarationtypedef struct __pthread_mutexattr_t
pthread_mutexatt
r_t’
include/pthread.h:577: error: conflicting declaration 'typedef struct pthread_cond_t
*pthread_cond_t’
/usr/include/cygwin/types.h:189: error: ‘pthread_cond_t’ has a previous declaration as typedef struct __pthread_cond_t*pthread_co nd_t' include/pthread.h:577: error: declaration oftypedef struct pthread_cond_t
pthread_cond_t’
/usr/include/cygwin/types.h:189: error: conflicts with previous declaration typedef struct __pthread_cond_t*pthread_cond_t' include/pthread.h:577: error: declaration oftypedef struct pthread_cond_t_pthread_cond_t’
/usr/include/cygwin/types.h:189: error: conflicts with previous declaration typedef struct __pthread_cond_t*pthread_cond_t' include/pthread.h:578: error: conflicting declaration 'typedef struct pthread_condattr_t_*pthread_condattr_t' /usr/include/cygwin/types.h:188: error: 'pthread_condattr_t' has a previous declaration astypedef struct __pthread_condattr_t
pt
hread_condattr_t’
include/pthread.h:578: error: declaration of typedef struct pthread_condattr_t_*pthread_condattr_t' /usr/include/cygwin/types.h:188: error: conflicts with previous declarationtypedef struct __pthread_condattr_t
pthread_condattr_
t’
include/pthread.h:578: error: declaration of typedef struct pthread_condattr_t_*pthread_condattr_t' /usr/include/cygwin/types.h:188: error: conflicts with previous declarationtypedef struct pthread_condattr_t*pthread_condattr
t’
include/pthread.h:580: error: conflicting declaration 'typedef struct pthread_rwlock_t
pthread_rwlock_t’
/usr/include/cygwin/types.h:198: error: ‘pthread_rwlock_t’ has a previous declaration as typedef struct __pthread_rwlock_t*pthrea d_rwlock_t' include/pthread.h:580: error: declaration oftypedef struct pthread_rwlock_t_pthread_rwlock_t’
/usr/include/cygwin/types.h:198: error: conflicts with previous declaration typedef struct __pthread_rwlock_t*pthread_rwlock_t' include/pthread.h:580: error: declaration oftypedef struct pthread_rwlock_t_pthread_rwlock_t’
/usr/include/cygwin/types.h:198: error: conflicts with previous declaration typedef struct __pthread_rwlock_t*pthread_rwlock_t' include/pthread.h:581: error: conflicting declaration 'typedef struct pthread_rwlockattr_t_*pthread_rwlockattr_t' /usr/include/cygwin/types.h:199: error: 'pthread_rwlockattr_t' has a previous declaration astypedef struct _pthread_rwlockattr
t
pthread_rwlockattr_t’
include/pthread.h:581: error: declaration of typedef struct pthread_rwlockattr_t_*pthread_rwlockattr_t' /usr/include/cygwin/types.h:199: error: conflicts with previous declarationtypedef struct __pthread_rwlockattr_t
pthread_rwlocka
ttr_t’
include/pthread.h:581: error: declaration of typedef struct pthread_rwlockattr_t_*pthread_rwlockattr_t' /usr/include/cygwin/types.h:199: error: conflicts with previous declarationtypedef struct __pthread_rwlockattr_t
pthread_rwlocka
ttr_t’
Running /home/sizzlegina/root/build/unix/compiledata.sh
Changing include/compiledata.h
Running /home/sizzlegina/root/cint/ROOT/configcint.mk
Changing cint/cint/inc/configcint.h
bin/rmkdepend.exe -R -fcint/cint/src/g__cfunc.d -Y -w 1000 – -pipe -Wall -Iinclude -DG__REGEXP -DG__UNIX -DG__SHAREDLIB -DG__OSF
DLL -DG__ROOT -DG__REDIRECTIO -DG__CYGWIN -DG__NEWSTDHEADER -DG__HAVE_CONFIG -DG__NOMAKEINFO -DG__CINTBODY -I/home/sizzlegina/root
/cint/cint/inc -I/home/sizzlegina/root/cint/cint/src -I/home/sizzlegina/root/cint/cint/src/dict -I. – /home/sizzlegina/root/cint
/cint/src/g__cfunc.c
make: bin/rmkdepend.exe: Command not found
make: *** [cint/cint/src/g__cfunc.o] Error 127

I am not having much luck trouble shooting this. It may be worth noting that I have a previous install of ROOT from binary in a directory C:\rootOld. I previously used this old installation in the directory C:\root, but I now want to be able to run ACLiC, so I’d like to have a build from source as well in a directory C:\cygwin\home\sizzlegina\root

Hi,

We don’t have cygwin with gcc3.4 (which is quite old anyway) anymore. You should try with gcc4.3, as we provide binaries for cygwin and gcc4.3 anyway.

Cheers, Bertrand.