|
Boost-Build : |
Subject: Re: [Boost-build] path-constant in Jamroot does not work in subdirs
From: Andrej van der Zee (andrejvanderzee_at_[hidden])
Date: 2012-07-07 14:56:40
Cau Jurko,
Sorry for the late reply.
>> Note though that your project is not self-contained and it depends on
>> targets defined in your site-config.jam file. Could you try to reduce it so
>> it does not?
I made a self-contained project that shows the strange problem that
started about half a year ago. My apologies for sending you the
non-self-contained project before, I should have stripped it to the
bone. I did now, if you find the time, please look at the attachment.
This is the projects's directory structure:
andrej_at_amd64:~/bjam-problem$ tree
.
âââ cgi
â  âââ base
â  â  âââ Jamfile
â  â  âââ test.cpp
â  âââ Jamfile
âââ Jamroot
Only when I run bjam from the "bjam-problem/cgi" directory I get the
following error (in dirs "bjam-problem" and "bjam-problem/cgi/base" is
works fine):
andrej_at_amd64:~/bjam-problem/cgi$ bjam
../cgi/base/Jamfile:6: in modules.load
*** argument error
* rule install ( name : sources * : requirements * : default-build * )
* called with: ( : test )
* missing argument name
/usr/share/boost-build/tools/stage.jam:499:see definition of rule
'install' being called
/usr/share/boost-build/build/project.jam:314: in load-jamfile
/usr/share/boost-build/build/project.jam:62: in project.load
/usr/share/boost-build/build/project.jam:766: in project.use
/usr/share/boost-build/build/project.jam:89: in load-used-projects
/usr/share/boost-build/build/project.jam:73: in load
/usr/share/boost-build/build/project.jam:115: in load-parent
/usr/share/boost-build/build/project.jam:464: in initialize
/usr/share/boost-build/build/project.jam:309: in load-jamfile
/usr/share/boost-build/build/project.jam:62: in load
/usr/share/boost-build/build/project.jam:168: in project.find
/usr/share/boost-build/build-system.jam:570: in load
/usr/share/boost-build/kernel/modules.jam:283: in import
/usr/share/boost-build/kernel/bootstrap.jam:142: in boost-build
/usr/share/boost-build/boost-build.jam:8: in module scope
What am I doing wrong?
Cheers,
Andrej
Boost-Build list run by bdawes at acm.org, david.abrahams at rcn.com, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk