[Scons-users] setting tool collection and compiler version from OS to OS

Roger Martin roger at quantumbioinc.com
Fri Jan 2 14:59:13 EST 2015


William,

Hmm so I need to discuss with them about their scons scripts.  Not that 
I want you to bother with their build(it's in a state of repair and I 
have to find and pull all the parts) 
http://cctbx.sourceforge.net/current/installation.html.  Their build 
line actually starts with their own python and internally invokes scons.

/your/choice/bin/python ../sources/cctbx_project/libtbx/configure.py mmtbx

When building via jenkins I was hoping not to learn what all they're 
doing in there.

Thank you, I'll note to them about their script going with /usr/bin/c++ 
on Mac OSX.

Roger


On 01/02/2015 02:40 PM, William Blevins wrote:
> Roger,
>
> I imagine that the SConstruct in question makes its own environment, 
> so your "init" doesn't have any effect.  Without any additional 
> information, I'm not sure what any of us can tell you.
>
> V/R,
> William
>
> On Fri, Jan 2, 2015 at 2:28 PM, Roger Martin <roger at quantumbioinc.com 
> <mailto:roger at quantumbioinc.com>> wrote:
>
>     Ah should have been
>     ---------
>     mkdir -p site_scons
>     cat <<EOF >./site_scons/site_init.py
>     env = DefaultEnvironment(tools = ['gcc', 'gnulink'],
>                              CC = '/opt/gcc/current/bin/gcc',
>                              CXX = '/opt/gcc/currentbin/g++')
>     EOF
>     ---------
>
>     Same lack of influence.  Still goes with /usr/bin/c++
>
>
>
>     On 01/02/2015 02:09 PM, Roger Martin wrote:
>
>         Hi,
>
>         Scenario:
>
>         Building someone else's project that is based on SCONS
>         via jenkins (http://jenkins-ci.org/)
>         Building on a CentOS using gcc 4.9.2
>         Building on a Mac OSX(11.4.2 Darwin Kernel Version 11.4.2)
>
>         The CentOS build builds successfully but I didn't check yet;
>         probably not the compiler version I intended but it didn't say
>         to screen
>         On the Mac OSX scons goes with /usr/bin/c++ and build fails;
>         this is an older c++ version and can't be upgraded on that
>         system by me.
>
>         1) From Jenkins I don't want to be sed'ing someone else's
>         scons scripts to bork them into working.  Want clean builds.
>         2) I tried adding a site_init.py
>         (http://www.scons.org/doc/production/HTML/scons-user.html#idm12919064)
>         in the build directory but this didn't seem to get picked up
>         or influence anything
>         ---------
>         mkdir -p site_scon
>         cat <<EOF >./site_scon/site_init.py
>         env = DefaultEnvironment(tools = ['gcc', 'gnulink'],
>                                  CC = '/opt/gcc/current/bin/gcc',
>                                  CXX = '/opt/gcc/currentbin/g++')
>         EOF
>         ----------
>
>         What is a way to achieve builds at the version of compiler
>         known to be compatible with the source code?  [other than
>         system upgrades and when versions are available at custom
>         installs to directories such as /opt/gcc/current]
>
>         There are two cases for this as well; someone else's project
>         where they are 1) responsive and willing to add/adapt their
>         build scripts 2)unresponsive or unwilling to add/adapt
>
>         For 2 I need a way to do it that overrides their scripts
>         decision to use /usr/bin/c++
>
>
>
>
>         _______________________________________________
>         Scons-users mailing list
>         Scons-users at scons.org <mailto:Scons-users at scons.org>
>         https://pairlist4.pair.net/mailman/listinfo/scons-users
>
>
>     _______________________________________________
>     Scons-users mailing list
>     Scons-users at scons.org <mailto:Scons-users at scons.org>
>     https://pairlist4.pair.net/mailman/listinfo/scons-users
>
>
>
>
> _______________________________________________
> Scons-users mailing list
> Scons-users at scons.org
> https://pairlist4.pair.net/mailman/listinfo/scons-users

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://pairlist4.pair.net/pipermail/scons-users/attachments/20150102/cb2c9aea/attachment-0001.html>


More information about the Scons-users mailing list