Opened 9 years ago

Closed 9 years ago

Last modified 9 years ago

#9805 closed Bugs (worksforme)

boost 1.55 in MacOSX 10.9.2 -- darwin.jam argument error

Reported by: seba.bat@… Owned by:
Milestone: To Be Determined Component: Building Boost
Version: Boost 1.55.0 Severity: Showstopper
Keywords: Cc:

Description

hi all

I'm trying to install boost on my mac in order to use cufflinks (genetic analysis software) which can't work without boost! I called the ./boostrap.sh and looks like everything worked fine, however, when I call

./b2 install

or

bjam --prefix=/usr/local --toolset=darwin architecture=x86 address_model=64 link=static runtime-link=static runtime-link=static stage install

the same error comes out:

/Users/macbook/Downloads/boost_1_55_0/tools/build/v2/tools/darwin.jam:513: in load
*** argument error
* rule flags ( rule-or-module variable-name condition * : values * : unchecked ? : hack-hack ? )
* called with: ( darwin.link.dll OPTIONS : -headerpad_max_install_names; flags darwin.link OPTIONS <runtime-link>static : -nodefaultlibs -shared-libgcc -lstdc++-static -lgcc_eh -lgcc -lSystem )
* extra argument -shared-libgcc
/Users/macbook/Downloads/boost_1_55_0/tools/build/v2/build/toolset.jam:119:see definition of rule 'flags' being called
/Users/macbook/Downloads/boost_1_55_0/tools/build/v2/kernel/modules.jam:289: in import
/Users/macbook/Downloads/boost_1_55_0/tools/build/v2/build/toolset.jam:39: in toolset.using
/Users/macbook/Downloads/boost_1_55_0/tools/build/v2/build/project.jam:1007: in using
../../../project-config.jam:12: in modules.load
/Users/macbook/Downloads/boost_1_55_0/tools/build/v2/build-system.jam:249: in load-config
/Users/macbook/Downloads/boost_1_55_0/tools/build/v2/build-system.jam:412: in load-configuration-files
/Users/macbook/Downloads/boost_1_55_0/tools/build/v2/build-system.jam:524: in load
/Users/macbook/Downloads/boost_1_55_0/tools/build/v2/kernel/modules.jam:289: in import
/Users/macbook/Downloads/boost_1_55_0/tools/build/v2/kernel/bootstrap.jam:139: in boost-build
/Users/macbook/Downloads/boost_1_55_0/tools/build/v2/boost-build.jam:8: in module scope

...any suggestions on how to fix this?

I can't find anything online that addresses it!

thanks

Change History (7)

comment:1 by Steven Watanabe, 9 years ago

Your copy of darwin.jam is corrupted. On line 509, there should be a space before the semicolon. Is there any chance that you modified it? Which archive did you download? The 7z archive looks okay.

comment:2 by anonymous, 9 years ago

I downloaded the tar.gz file and unpacked it. thanks for the reply, I added the space before the semicolon and calling ./b2 it looks like it's building it correctly since I'm getting all the various verbose lines and it ends with

...failed updating 21 targets...
...skipped 20 targets...
...updated 953 targets...

however, calling

bjam --prefix=/usr/local --toolset=darwin architecture=x86 address_model=64 link=static runtime-link=static runtime-link=static stage install

i get the following

warning: mismatched versions of Boost.Build engine and core
warning: Boost.Build engine (bjam) is 03.1.18
warning: Boost.Build core (at /Users/macbook/Downloads/boost_1_55_0/tools/build/v2) is 2011.12-svn
link.jam: No such file or directory
/Users/macbook/Downloads/boost_1_55_0/tools/build/v2/build/property.jam:290: in validate1 from module property
error: Invalid property '<address_model>64': unknown feature 'address_model'.
/Users/macbook/Downloads/boost_1_55_0/tools/build/v2/build/property.jam:299: in property.validate from module property
/Users/macbook/Downloads/boost_1_55_0/tools/build/v2/build/build-request.jam:216: in convert-command-line-element from module build-request
/Users/macbook/Downloads/boost_1_55_0/tools/build/v2/build/build-request.jam:153: in build-request.from-command-line from module build-request
/Users/macbook/Downloads/boost_1_55_0/tools/build/v2/build-system.jam:582: in load from module build-system
/Users/macbook/Downloads/boost_1_55_0/tools/build/v2/kernel/modules.jam:289: in import from module modules
/Users/macbook/Downloads/boost_1_55_0/tools/build/v2/kernel/bootstrap.jam:139: in boost-build from module
/Users/macbook/Downloads/boost_1_55_0/boost-build.jam:17: in module scope from module

any idea what that means?

comment:3 by Steven Watanabe, 9 years ago

  1. You're using the system bjam which may or may not work correctly with the version of Boost.Build in 1.55.
  2. The link.jam warning is harmless. It was caused by an overeager merge of some of the work for the git transition. Loading it is simply skipped, which is okay because nothing in it is needed in 1.55.
  3. The feature is called address-model not address_model.

comment:4 by Steven Watanabe, 9 years ago

Resolution: worksforme
Status: newclosed

I have no idea what happened. I just downloaded boost_1_55_0.tar.gz from sourceforge, and darwin.jam does contain the space that was missing in your copy.

comment:5 by anonymous, 9 years ago

thanks for the reply, I fixed the

address_model

to

address-model

, however now I get this error

/Users/macbook/Downloads/boost_1_55_0/tools/build/v2/build/configure.jam:173: in builds-raw
*** argument error
* rule UPDATE_NOW ( targets * : log ? : ignore-minus-n ? )
* called with: ( <pbin.v2/libs/regex/build/darwin-4.2.1/debug/address-model-64/architecture-x86>has_icu : 3 : ignore-minus-n : ignore-minus-q )
* extra argument ignore-minus-q
(builtin):see definition of rule 'UPDATE_NOW' being called
/Users/macbook/Downloads/boost_1_55_0/tools/build/v2/build/configure.jam:223: in configure.builds
/Users/macbook/Downloads/boost_1_55_0/tools/build/v2/build/configure.jam:258: in object(check-target-builds-worker)@946.check
/Users/macbook/Downloads/boost_1_55_0/tools/build/v2/kernel/modules.jam:106: in modules.call-in
/Users/macbook/Downloads/boost_1_55_0/tools/build/v2/util/indirect.jam:98: in indirect.call
/Users/macbook/Downloads/boost_1_55_0/tools/build/v2/build/targets.jam:1033: in targets.evaluate-requirements
/Users/macbook/Downloads/boost_1_55_0/tools/build/v2/build/targets.jam:1428: in basic-target.compute-usage-requirements
/Users/macbook/Downloads/boost_1_55_0/tools/build/v2/build/alias.jam:48: in compute-usage-requirements
/Users/macbook/Downloads/boost_1_55_0/tools/build/v2/build/targets.jam:1353: in object(alias-target-class)@949.generate
/Users/macbook/Downloads/boost_1_55_0/tools/build/v2/build/targets.jam:757: in generate-really
/Users/macbook/Downloads/boost_1_55_0/tools/build/v2/build/targets.jam:729: in object(main-target)@1513.generate
/Users/macbook/Downloads/boost_1_55_0/tools/build/v2/build/targets.jam:874: in targets.generate-from-reference
/Users/macbook/Downloads/boost_1_55_0/tools/build/v2/build/targets.jam:1245: in generate-dependencies
/Users/macbook/Downloads/boost_1_55_0/tools/build/v2/build/targets.jam:1301: in object(typed-target)@952.generate
/Users/macbook/Downloads/boost_1_55_0/tools/build/v2/build/targets.jam:757: in generate-really
/Users/macbook/Downloads/boost_1_55_0/tools/build/v2/build/targets.jam:729: in object(main-target)@1514.generate
/Users/macbook/Downloads/boost_1_55_0/tools/build/v2/build/targets.jam:874: in targets.generate-from-reference
/Users/macbook/Downloads/boost_1_55_0/tools/build/v2/build/targets.jam:1245: in generate-dependencies
/Users/macbook/Downloads/boost_1_55_0/tools/build/v2/build/targets.jam:1299: in object(typed-target)@589.generate
/Users/macbook/Downloads/boost_1_55_0/tools/build/v2/build/targets.jam:757: in generate-really
/Users/macbook/Downloads/boost_1_55_0/tools/build/v2/build/targets.jam:729: in object(main-target)@1495.generate
/Users/macbook/Downloads/boost_1_55_0/tools/build/v2/build/targets.jam:272: in object(project-target)@576.generate
/Users/macbook/Downloads/boost_1_55_0/tools/build/v2/build/targets.jam:874: in targets.generate-from-reference
/Users/macbook/Downloads/boost_1_55_0/tools/build/v2/build/targets.jam:1245: in generate-dependencies
/Users/macbook/Downloads/boost_1_55_0/tools/build/v2/build/targets.jam:1301: in object(install-target-class)@238.generate
/Users/macbook/Downloads/boost_1_55_0/tools/build/v2/build/targets.jam:757: in generate-really
/Users/macbook/Downloads/boost_1_55_0/tools/build/v2/build/targets.jam:729: in object(main-target)@1174.generate
/Users/macbook/Downloads/boost_1_55_0/tools/build/v2/build/targets.jam:874: in targets.generate-from-reference
/Users/macbook/Downloads/boost_1_55_0/tools/build/v2/build/targets.jam:1245: in generate-dependencies
/Users/macbook/Downloads/boost_1_55_0/tools/build/v2/build/targets.jam:1301: in alias-target-class.generate
/Users/macbook/Downloads/boost_1_55_0/boostcpp.jam:391: in build-multiple
/Users/macbook/Downloads/boost_1_55_0/boostcpp.jam:353: in object(top-level-target)@245.generate
/Users/macbook/Downloads/boost_1_55_0/tools/build/v2/build/targets.jam:757: in generate-really
/Users/macbook/Downloads/boost_1_55_0/tools/build/v2/build/targets.jam:729: in object(main-target)@1178.generate
/Users/macbook/Downloads/boost_1_55_0/tools/build/v2/build-system.jam:707: in load
/Users/macbook/Downloads/boost_1_55_0/tools/build/v2/kernel/modules.jam:289: in import
/Users/macbook/Downloads/boost_1_55_0/tools/build/v2/kernel/bootstrap.jam:139: in boost-build
/Users/macbook/Downloads/boost_1_55_0/boost-build.jam:17: in module scope

otherwise, which version of bjam is compatible with boost 1.55?

comment:6 by Steven Watanabe, 9 years ago

The version bundled with 1.55 is guaranteed to be compatible. Several versions back will probably work, but I don't know exact details off the top of my head. (Note: b2 is the new name for bjam.).

comment:7 by anonymous, 9 years ago

the bjam --> ./b2 change made the trick!

thanks for the help!!

Note: See TracTickets for help on using tickets.