[SERVER-11058] --boost-version and --boost-compiler are broken Created: 07/Oct/13  Updated: 10/Dec/14  Resolved: 25/Feb/14

Status: Closed
Project: Core Server
Component/s: Build
Affects Version/s: 2.4.6, 2.5.2
Fix Version/s: None

Type: Bug Priority: Major - P3
Reporter: Eric Milkie Assignee: Unassigned
Resolution: Done Votes: 1
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Operating System: ALL
Participants:

 Description   

If you try to run scons with --boost-version or --boost-compiler, you get this:

AttributeError: Values instance has no attribute 'boost-version':
  File "/media/DATA2/data/m/24/mongo/SConstruct", line 240:
    variantDir = get_variant_dir()
  File "/media/DATA2/data/m/24/mongo/SConstruct", line 119:
    x = get_option( name )
  File "/media/DATA2/data/m/24/mongo/SConstruct", line 76:
    return GetOption( name )
  File "/usr/lib/scons/SCons/Script/Main.py", line 470:
    return getattr(OptionsParser.values, name)
  File "/usr/lib/scons/SCons/Script/SConsOptions.py", line 115:
    return getattr(self.__dict__['__defaults__'], attr)

These parameters are necessary when using-system-boost to match the boost library filenames.



 Comments   
Comment by Eric Milkie [ 25/Feb/14 ]

The flags were removed for 2.6.0 and we use Boost autolib feature to link the C++ driver using system-supplied Boost.

Comment by Balint Szente [ 23/Oct/13 ]

Quick fix (change True to False) in SConstruct:

add_option( "boost-compiler", "compiler used for boost (gcc41)" , 1 , False , "boostCompiler" )
add_option( "boost-version", "boost version for linking(1_38)" , 1 , False , "boostVersion" )

Generated at Thu Feb 08 03:24:46 UTC 2024 using Jira 9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66.