Re: [Boost-bugs] [Boost C++ Libraries] #7212: ./b2 fails with 'import error: length of source and target rule name lists don't match!'

Subject: Re: [Boost-bugs] [Boost C++ Libraries] #7212: ./b2 fails with 'import error: length of source and target rule name lists don't match!'
From: Boost C++ Libraries (noreply_at_[hidden])
Date: 2012-08-24 16:24:40


#7212: ./b2 fails with 'import error: length of source and target rule name lists
don't match!'
-------------------------------+--------------------------------------------
  Reporter: anonymous | Owner: vladimir_prus
      Type: Bugs | Status: new
 Milestone: To Be Determined | Component: build
   Version: Boost 1.51.0 | Severity: Problem
Resolution: | Keywords:
-------------------------------+--------------------------------------------
Changes (by jurko):

  * owner: => vladimir_prus
  * component: Building Boost => build

Comment:

 Hi.

 I remember someone once asking me about something like this - here's a
 response I gave them in a personal e-mail message (never got any response
 back nor did I see them post a related question to any of the Boost
 mailing lists):

 --------------------------------------------------------
>> I have used the following commands to install Boost but i am
>> getting the following error :-
>>
>> [priyanka_at_NGS boost_1_50_0]$ ./bootstrap.sh
>> Building Boost.Build engine with toolset gcc...
>> tools/build/v2/engine/bin.linuxx86_64/b2
>> Detecting Python version... 2.7
>> Detecting Python root... /usr
>> ...
>>
>> [priyanka_at_NGS boost_1_50_0]$ ./bjam --prefix= /~/Downloads
>> link=static runtime-link=static stage install
>>
 /home/priyanka/Downloads/boost_1_50_0/tools/build/v2/kernel/modules.jam:326:
>> in boost-build
>> import error: length of source and target rule name lists don't
>> match!
>> source: peek poke record-binding
>> target: modules.peek
>> /home/priyanka/Downloads/boost_1_50_0/boost-build.jam:17: in
>> module scope
>
> And I really do not know how this happened at your site. I checked
> the source code lines listed in your error report and in modules.jam
> there is the following:
>
> local globalize = peek poke record-binding ;
> IMPORT modules : $(globalize) : : modules.$(globalize) ;
>
> which expands to:
>
> IMPORT modules : peek poke record-binding : : modules.peek
> modules.poke modules.record-binding ;
>
> In your case something seems to cause this to expand to:
>
> IMPORT modules : peek poke record-binding : : modules.peek ;
>
> Try adding some ECHO statements there like:
>
> ECHO /$(globalize)/ ;
> ECHO /modules.$(globalize)/ ;
>
> and see what you get.

 --------------------------------------------------------

 Hopefully someone that can reproduce this issue can report back here (or
 even better - on the Boost Build mailing list) with some more information,
 otherwise, I do not see what to do about this.

 Some ideas:
 * What did the ECHO statements suggested above display?
 * Does the same occur with Boost library release 1.51?
 * Does the same occur when using the current Boost Build version from the
 trunk?
 * Are you sure you are using the correct Boost Jam executable?

-- 
Ticket URL: <https://svn.boost.org/trac/boost/ticket/7212#comment:4>
Boost C++ Libraries <http://www.boost.org/>
Boost provides free peer-reviewed portable C++ source libraries.

This archive was generated by hypermail 2.1.7 : 2017-02-16 18:50:10 UTC