Re: Build failure on Windows Xp

From: Tom Roberts <tjrob_at_fnal.gov>
Date: Fri, 1 Aug 2008 13:53:33 -0500


Philippe Canal wrote:
> The latest release of the build system works around the link.exe problem.
> In v5.16, your best bet is to simply rename cygwin's link.exe to some other
> name.

I thought I had taken care of that. It turns out my approach was insufficient. I had put $HOME/bin first into my PATH, and then put a symbolic link from the MS link.exe into $HOME/bin. This worked for building Geant4, and for building my program with a binary Root distribution and its shared objects. Apparently some part of the Root build is insensitive that cygwin symbolic link. Removing that link and renaming Cygwin's link.exe to link-cygwin.exe fixed the problem.

Thanks.

Tom Roberts

> Cheers,
> Philippe.
>
> -----Original Message-----
> From: owner-roottalk_at_root.cern.ch [mailto:owner-roottalk_at_root.cern.ch] On
> Behalf Of Tom Roberts
> Sent: Friday, August 01, 2008 10:09 AM
> To: 'ROOT Talk'
> Subject: [ROOT] Build failure on Windows Xp
>
> I am trying to build a static library of Root. I have already succeeded
> on Linux and Mac OS, and am now working on Windows.
>
> I chose Root 5.16 because I've had too many troubles with later releases
> (related to building and to plugins).
>
> I copied my own configure-disable-all to the Root 5.6 directory and ran
> it without problems (file attached below). It disables everything that
> can be disabled and still work on Linux and Mac OS X.
>
> On Windows I am using the Microsoft VC++ express edition (2005). This
> causes the problem that there are two version of link.exe: MS and
> cygwin. MS link was first in the path when configure was run (when I
> build Geant4 this is required). Unfortunately each version of link.exe
> gives an error:
>
> With cygwin link.exe first in PATH:
> link: invalid option -- D
> Try `link --help' for more information.
> make: *** [lib/libCint.dll] Error 1
> make: *** Waiting for unfinished jobs....
>
> With MS link.exe first in PATH:
> link.exe -lib /nologo /machine:I386 /out:./\libpcre-6.4.lib [...]
> link: invalid option -- l
> Try `link --help' for more information.
> NMAKE : fatal error U1077: 'link.exe' : return code '0x1'
> Stop.
> make: *** [pcre/src/pcre-6.4/Win32/libpcre-6.4.lib] Error 2
> make: *** Waiting for unfinished jobs....
> rm utils/src/RStl_tmp.cxx utils/src/rootcint_tmp.cxx
>
>
> How is this supposed to work? Which link.exe is it looking for? How can
> I fix this?
>
>
> Tom Roberts
>
> --- contents of configure-disable-all (it has 2 lines) ---
> ./configure --disable-afs --disable-alien --disable-asimage
> --disable-astiff --disable-builtin-afterimage --disable-castor
> --disable-cern --disable-chirp --disable-cint7 --disable-cintex
> --disable-clarens --disable-dcache --disable-exceptions
> --disable-explicitlink --disable-fftw3 --disable-gdml --disable-gfal
> --disable-g4root --disable-globus --disable-krb5 --disable-ldap
> --disable-mathcore --disable-mathmore --disable-minuit2
> --disable-monalisa --disable-mysql --disable-odbc --disable-opengl
> --disable-oracle --disable-pch --disable-peac --disable-pgsql
> --disable-pythia6 --disable-python --disable-qt --disable-qtgsi
> --disable-reflex --disable-rfio --disable-roofit --disable-rpath
> --disable-ruby --disable-sapdb --disable-shadowpw --disable-shared
> --disable-soversion --disable-srp --disable-ssl --disable-table
> --disable-unuran --disable-winrtdebug --disable-xml --disable-xrootd
> --disable-xft \
> --enable-builtin-zlib --enable-builtin-pcre --enable-builtin-freetype
>
>
>
Received on Fri Aug 01 2008 - 20:54:24 CEST

This archive was generated by hypermail 2.2.0 : Fri Aug 01 2008 - 23:50:01 CEST