Boost logo

Boost-Build :

From: andrewjmcd (andrewjmcd_at_[hidden])
Date: 2005-10-20 00:56:47


--- In jamboost_at_[hidden], "badyaev_alexey" <leemouse_at_m...> wrote:
>
> --- In jamboost_at_[hidden], Reece Dunn msclrhd_at_h... wrote:
> > exe citrus : main.c parser.lemon ;
> >
> > should be enough - bjam will pick up and compile both parser.c and
> > parser_opcodes.c.
>
> Thanks for your help! But I have error when building project now...
> Here is my lemon.jar:
>
> ##########################################################################
> # LEMON parser generator
> ##########################################################################
> import type ;
> import generators ;
>
> type.register LEMON : lemon ;
> generators.register-standard lemon.lemon
> : LEMON
> : C H C(opcodes) H(opcodes) ;
>
> rule init ( )
> {
> }
>
> actions lemon
> {
> lemon -q $(>) $(<[1])
> cat $(<[2]) vdbe.c | awk -f mkopcodeh.awk > $(<[4])
> sort -n -b +2 $(<[4]) | awk -f mkopcodec.awk > $(<[3])
> }
> ##########################################################################
> # EOF: lemon.jam
>
> And here is BBv2 output:
> --
> D:/DevTools/libs/boost-1.33.0/tools/build/v2/build\generators.jam:1086:
> in construct-really from module generators
> error: Ambiguity found when searching for best transformation

This is the same results I get with my versioning generator.
A simple project is in the Files directory.

bjam_version.zip

Volodya wrote in message # 11614
> I've modified the generator search logic so that if there are two generators
> that could be run to consume the same source, and they both run sucessfully,
> it's an error. Previously, this case was just ignored.
 
The versioning project does work for boost 1.31

I can't suggest anything because I don't understand the intricacies of the jam files.

Andrew

 

 --7-0214997781-4471518672=:9 Content-Type: text/html; charset="iso-8859-1"
Content-Transfer-Encoding: quoted-printable

<br>--- In jamboost_at_[hidden], "badyaev_alexey" &lt;leemouse_at_m...&gt;wrote:<br>&gt;<br>&gt; --- In jamboost_at_[hidden], Reece Dunn msclrhd_at_h... wrote:<br>&gt; &gt; exe citrus : main.c parser.lemon ;<br>&gt; &gt; <br>&gt; &gt; should be enough - bjam will pick up and compile both parser.cand<br>&gt; &gt; parser_opcodes.c.<br>&gt; <br>&gt; Thanks for your help! But I have error when building project now...<br>&gt; Here is my lemon.jar:<br>&gt; <br>&gt; ##########################################################################<br>&gt; # LEMON parser generator<br>&gt; ##########################################################################<br>&gt; import type ;<br>&gt; import generators ;<br>&gt; <br>&gt; type.register LEMON : lemon ;<br>&gt; generators.register-standard lemon.lemon<br>&gt; : LEMON<br>&gt; : C H C(opcodes) H(opcodes) ;<br>&gt; <br>&gt; rule init ( )<br>&gt; {<br>&gt; }<br>&gt; <br>&gt; actions lemon<br>&gt; {<br>&gt; lemon -q$(&gt<img src="http://us.i1.yimg.com/us.yimg.com/i/mesg/tsmileys2/03.gif"> $(&lt;[1])<br>&gt; cat $(&lt;[2]) vdbe.c | awk -f mkopcodeh.awk &gt;$(&lt;[4])<br>&gt; sort -n -b +2 $(&lt;[4]) | awk -f mkopcodec.awk &gt; $(&lt;[3])<br>&gt; }<br>&gt; ##########################################################################<br>&gt; # EOF: lemon.jam<br>&gt; <br>&gt; And here is BBv2 output:<br>&gt; --<br>&gt; D:/DevTools/libs/boost-1.33.0/tools/build/v2/build\generators.jam:1086:<br>&gt; in construct-really from module generators<br>&gt; error: Ambiguity found when searching for best transformation<br><br><br><span style="font-family: 'courier';">This is the same results I get with my versioning generator.<br>A simple project is in the Files directory.<br><br></span> <span class="title"> bjam_version.zip<br><br></span>Volodya wrote in message # 11614<br><span style="color: rgb(0, 128, 255);font-weight: bold;">&gt; I've modified the generatorsearch logic so that if there are two generators</span><br style="color:rgb(0, 128, 255);font-weight: bold;"> <span style="color: rgb(0, 128, 255);font-weight: bold;">&gt; that could be run to consume the same source, and they both run sucessfully,</span><br style="color: rgb(0, 128, 255);font-weight: bold;"> <span style="color: rgb(0, 128, 255);font-weight: bold;">&gt; it's an error. Previously, this case was just ignored.</span><br style="color: rgb(0, 128, 255);font-weight: bold;"> <br>The versioning project does work for boost 1.31<br><br>I can't suggest anything because I don't understand the intricacies of the jam files.<br><br>Andrew<br><br><span class="title">&nbsp;</span><br>
 --7-0214997781-4471518672=:9--


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