I'm not sure what causes either of these two points, but on the second,
we have to have the following two lines in our Mac OSX jenkins build to
fix it and the similar vtk problem:
1. (before ./configure -C)
# Remove symbolic link which can cause problems on MacOS if it still exists
rm -f ${STARCONF_DEFAULT_PREFIX}/lib/iwidgets
2. (before make world)
# Remove more symbolic links which are troublesome on MacOS
rm -f ${STARCONF_DEFAULT_PREFIX}/include/vtk
[I've pasted in the our full jenkins Mac OSX build script below, in case
its helpful to anyone else building on Macs. This was written by Graham
Bell -- its in his repo (which I think you have a link to already, so
sorry for the redundancy), in the mac-os branch.]
Cheers,
Sarah
#!/bin/csh -ef
unsetenv STARLINK
unsetenv INSTALL
unsetenv CFLAGS
unsetenv CXXFLAGS
unsetenv FFLAGS
setenv LC_ALL C
setenv FC gfortran
setenv F77 gfortran
setenv CC gcc
setenv CXX g++
# build for multiple versions of mac osx
setenv LDFLAGS "-mmacosx-version-min=10.6"
setenv CFLAGS "-mmacosx-version-min=10.6"
setenv CXXFLAGS "-mmacosx-version-min=10.6"
setenv STARCONF_DEFAULT_STARLINK ${STARLINK_DIR}
setenv STARCONF_DEFAULT_PREFIX ${STARLINK_DIR}
# RGBDEF for image conversion
setenv RGBDEF $STARLINK_DIR/bin/rgb.txt
#setenv PATH
${STARCONF_DEFAULT_STARLINK}/bin/startcl:$STARCONF_DEFAULT_PREFIX/bin:$STARCONF_DEFAULT_PREFIX/buildsupport/bin:$PATH
setenv PATH
${STARCONF_DEFAULT_PREFIX}/buildsupport/bin:${STARCONF_DEFAULT_PREFIX}/bin:/usr/local/bin:/usr/texbin:${PATH}
setenv DYLD_LIBRARY_PATH $STARCONF_DEFAULT_STARLINK/lib
setenv PERL_CPANM_HOME $JENKINS_HOME/../cpanm
set echo
# Remove whole directory as we would get a failure with manifests/* if
it were empty.
rm -rf ${STARCONF_DEFAULT_STARLINK}/manifests
# Jenkins git clean does not appear to descend into submodules.
# Also need to remove altered Makefile in VTK.
git submodule foreach git clean -fdx
git submodule foreach git reset --hard HEAD
./bootstrap
# Remove symbolic link which can cause problems on MacOS if it still exists
rm -f ${STARCONF_DEFAULT_PREFIX}/lib/iwidgets
make configure-deps
./configure -C
# Remove more symbolic links which are troublesome on MacOS
rm -f ${STARCONF_DEFAULT_PREFIX}/include/vtk
make world
cd thirdparty/perlsys/perlmods
./build-modules.sh
Sherwood, Matt wrote:
> Hi All,
>
> I’m trying to resolve the following build issues, invoked through
> Jenkins on Mac OS X 10.10.2 Yosemite.
>
> 1. During bootstrap, a warning is issued that the Fortran complier
> cannot create executables. I have gfortran installed (through
> homebrew in /usr/local/bin/gfortran) and on my path and my Jenkins
> Execute Shell command sets both FC and F77 to gfortran.
> 2. During configure-deps of thirdparty/tclsys/itcl I’m running into the
> previously reported issue of: "cp: cannot overwrite directory
> /Users/Matt/star/./lib/iwidgets with non-directory ./lib/iwidgets”.
> When I remove the iwidgets symlink and manually make install itcl,
> it works for that iteration, but the next time I try to run it it
> produces the same error. I also tried starting with a completely
> fresh $STARLINK_DIR, but got the same result.
>
>
>
> ./bootstrap
>
>
> ...
>
> cd thirdparty/fsf/autotools/automake \
> && if test -f bootstrap; then \
> ./bootstrap> bootstrap.log; \
> fi \
> && if test -n"$BUILDSUPPORT_PREFIX"; then \
> ./configure --prefix=$BUILDSUPPORT_PREFIX \
> >configure-output.log; \
> elif test ! -f Makefile; then \
> { t="Directory unconfigured but BUILDSUPPORT_PREFIX undefined";\
> echo $t>configure-output.log; echo $t>&2; \
> exit 1; }; \
> else \
> echo"No configuration necessary" >configure-output.log; \
> fi \
> && (make&& make install)>make.log 2>make.log.err || { cat make.log.err; false; }
> configure: WARNING: Fortran compiler cannot create executables
> configure: WARNING: Fortran 77 compiler cannot create executables
>
>
> ...
>
>
>
> make configure-deps
>
>
> ...
>
>
> cd thirdparty/tclsys/itcl \
> && test -f config.status || ./configure>configure-output.log 2>configure-output.log.err || { cat configure-output.log.err; false; } \
> && (make&& make install)>make.log 2>make.log.err || { cat make.log.err; false; }
> Makefile:712: warning: overriding commands for target `distclean'
> Makefile:627: warning: ignoring old commands for target `distclean'
> ./generic/itcl_objects.c:196:59: warning: incompatible pointer types passing 'char *(ClientData, Tcl_Interp *, const char *, const char *, int)' to parameter of type 'Tcl_VarTraceProc *' (aka 'char *(*)(ClientData, Tcl_Interp *, char *, char *, int)') [-Wincompatible-pointer-types]
> TCL_TRACE_READS|TCL_TRACE_WRITES, ItclTraceThisVar,
> ^~~~~~~~~~~~~~~~
> 1 warning generated.
> ./generic/itcl_parse.c:149:9: warning: incompatible pointer types passing 'int (Tcl_Interp *, const char *, Tcl_Namespace *, int, Tcl_Var *)' to parameter of type 'Tcl_ResolveVarProc *' (aka 'int (*)(Tcl_Interp *, char *, Tcl_Namespace *, int, Tcl_Var *)') [-Wincompatible-pointer-types]
> Itcl_ParseVarResolver, (Tcl_ResolveCompiledVarProc*)NULL);
> ^~~~~~~~~~~~~~~~~~~~~
> 1 warning generated.
> ./generic/itcl_util.c:504:16: warning: unused variable 'listPtr' [-Wunused-variable]
> Itcl_List *listPtr = elemPtr->owner;
> ^
> 1 warning generated.
> ./generic/itk_cmds.c:406:44: warning: incompatible pointer types passing 'void (*)(const char *)' to parameter of type 'Tcl_FreeProc *' (aka 'void (*)(char *)') [-Wincompatible-pointer-types]
> Itcl_EventuallyFree((ClientData)mcode, Itcl_DeleteMemberCode);
> ^~~~~~~~~~~~~~~~~~~~~
> /Users/Matt/.jenkins/workspace/Starlink/thirdparty/tclsys/itcl/itcl/generic/itclIntDecls.h:1162:2: note: expanded from macro 'Itcl_DeleteMemberCode'
> (itclIntStubsPtr->itcl_DeleteMemberCode) /* 58 */
> ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
> 1 warning generated.
> Makefile:712: warning: overriding commands for target `distclean'
> Makefile:627: warning: ignoring old commands for target `distclean'
> Makefile:712: warning: overriding commands for target `distclean'
> Makefile:627: warning: ignoring old commands for target `distclean'
> mkdir /var/folders/gn/6g24w0ws72sc8n4_ksd4f36h0000gn/T/starconf-74379/Users/Matt/star/lib/iwidgets4.0.1
> mkdir /var/folders/gn/6g24w0ws72sc8n4_ksd4f36h0000gn/T/starconf-74379/Users/Matt/star/lib/iwidgets4.0.1/scripts
> mkdir /var/folders/gn/6g24w0ws72sc8n4_ksd4f36h0000gn/T/starconf-74379/Users/Matt/star/lib/iwidgets4.0.1/demos
> mkdir /var/folders/gn/6g24w0ws72sc8n4_ksd4f36h0000gn/T/starconf-74379/Users/Matt/star/lib/iwidgets4.0.1/demos/images
> mkdir /var/folders/gn/6g24w0ws72sc8n4_ksd4f36h0000gn/T/starconf-74379/Users/Matt/star/lib/iwidgets4.0.1/demos/html
> cp: cannot overwrite directory /Users/Matt/star/./lib/iwidgets with non-directory ./lib/iwidgets
> Installation of component /Users/Matt/star/manifests/itcl failed
> make[2]: *** [install-manifest] Error 1
> make[1]: *** [install] Error 2
> make: *** [/Users/Matt/star/manifests/itcl] Error 1
> Build step 'Execute shell' marked build as failure
> Sending e-mails to:[log in to unmask] <mailto:[log in to unmask]>
> Finished: FAILURE
>
>
>
> Cheers,
> Matt
> --------------------------------------------------------------------------------------------
> Matt Sherwood Research Associate
> Institute for Space Imaging Science (ISIS)
> Physics & Astronomy Department University of Lethbridge
> Lethbridge, Alberta, Canada T1K 3M4
> Ph: 1 (403) 332-4072 Cell: 1 (587) 220-0880
> Web: JCMT SCUBA-2 FTS
> <https://www.uleth.ca/phy/naylor/index.php?page=fts> Email:
> [log in to unmask] <mailto:[log in to unmask]>
> --------------------------------------------------------------------------------------------
>
>
>
>
|