Re: Build error for Ninja Generator

Albert <[email protected]> Thu, 3 May 2018 09:55:21 +0200
Newsgroups gmane.text.doxygen.devel
Message-ID <CABOOx7YdFJPTTPM=ecuQ-bD75nF3UbXqYynTL-ubNUGQOHUwUg@mail.gmail.com>
--===============5895106083167674838==
Content-Type: multipart/alternative; boundary="000000000000783744056b4886d5"

--000000000000783744056b4886d5
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable

Dear Masaru,

Thanks for the notification.

Albert

On Thu, May 3, 2018 at 9:53 AM, masaru tsuchiyama <[email protected]>
wrote:

> Sorry, it worked.
>
>
> 2018=E5=B9=B45=E6=9C=883=E6=97=A5(=E6=9C=A8) 16:51 Albert <albert.tests@g=
mail.com>:
>
>> Dear Masaru,
>>
>> I saw the comment n github and commented on it. More important for me is
>> does the solution work.
>>
>> Albert
>>
>>
>> <http://www.avg.com/email-signature?utm_medium=3Demail&utm_source=3Dlink=
&utm_campaign=3Dsig-email&utm_content=3Dwebmail> Virus-free.
>> www.avg.com
>> <http://www.avg.com/email-signature?utm_medium=3Demail&utm_source=3Dlink=
&utm_campaign=3Dsig-email&utm_content=3Dwebmail>
>> <#m_-7810229674902884587_m_-1732287477614699547_DAB4FAD8-2DD7-40BB-A1B8-=
4E2AA1F9FDF2>
>>
>> On Thu, May 3, 2018 at 12:50 AM, masaru tsuchiyama <[email protected]>
>> wrote:
>>
>>> Hi
>>>
>>> I commented to the pull request.
>>>
>>>
>>> 2018=E5=B9=B45=E6=9C=883=E6=97=A5(=E6=9C=A8) 1:32 Albert <albert.tests@=
gmail.com>:
>>>
>>>> I've just pushed a proposed patch to github (pull request 712,
>>>> https://github.com/doxygen/doxygen/pull/712).
>>>>
>>>> Albert
>>>>
>>>> On Wed, May 2, 2018 at 4:03 PM, Albert <[email protected]> wrote:
>>>>
>>>>> Dear Masaru,
>>>>>
>>>>> A bit strange. The construct as used for TEST_FLAGS is the same
>>>>> construct as used for e.g. LEX_FLAGS ad BISON_FLAGS
>>>>> Do you have an idea why it is working for LEX_FLAGS / YACC_FLAGS and
>>>>> not for TEST_FLAGS.
>>>>>
>>>>> I tried to create a Ninja version under Windows but I fail due to the
>>>>> fact that cmake cannot find bison, looks like here are some quotes mi=
ssing
>>>>> around the YACC_FLAGS. Will have to do some further testing here.
>>>>> When replacing the $(TEST_FLAGS) in the build.ninja by $$(TEST_FLAGS)
>>>>> it looks like to start compiling, also some more tests required.
>>>>>
>>>>> Albert
>>>>>
>>>>>
>>>>>
>>>>> On Wed, May 2, 2018 at 3:09 PM, masaru tsuchiyama <[email protected]=
>
>>>>> wrote:
>>>>>
>>>>>> Hi
>>>>>>
>>>>>> I found a bug that doxygen can't compile for Ninja generator.
>>>>>> It works for 'Unix Makefiles' generator
>>>>>>
>>>>>> This is the error message.
>>>>>>
>>>>>> ninja: warning: multiple rules generate generated_src/configvalues.h=
.
>>>>>> builds involving this target will not be correct; continuing anyway =
[-w
>>>>>> dupbuild=3Dwarn]
>>>>>> ninja: error: build.ninja:2384: bad $-escape (literal $ must be
>>>>>> written as $$)
>>>>>>
>>>>>> This is the diff of build.ninja between good revision ( ok_
>>>>>> b6f01ff09b17e5c2288f2418ef0a8f074456c357)
>>>>>> and bad revision (c78c338fffbdbb9b2379b1896e647f7cc697da57)
>>>>>>
>>>>>> $ diff build/build.ninja ok_b6f01ff09b17e5c2288f2418ef0a8f074456c357
>>>>>> 2384c2384
>>>>>> <   COMMAND =3D cd /home/user/gitwork/doxygen/build/testing &&
>>>>>> /usr/bin/python /home/user/gitwork/doxygen/testing/runtests.py
>>>>>> $(TEST_FLAGS) --doxygen /home/user/gitwork/doxygen/build/bin/doxygen
>>>>>> --inputdir /home/user/gitwork/doxygen/testing --outputdir
>>>>>> /home/user/gitwork/doxygen/build/testing
>>>>>> ---
>>>>>> >   COMMAND =3D cd /home/user/gitwork/doxygen/build/testing &&
>>>>>> /usr/bin/python /home/user/gitwork/doxygen/testing/runtests.py --all
>>>>>> --doxygen /home/user/gitwork/doxygen/build/bin/doxygen --inputdir
>>>>>> /home/user/gitwork/doxygen/testing --outputdir
>>>>>> /home/user/gitwork/doxygen/build/testing
>>>>>>
>>>>>> By tweaking  $(TEST_FLAGS) to  --all, the build succeeded.
>>>>>>
>>>>>> This is a script to reproduce.
>>>>>> ------------------------------------------------------------
>>>>>> -------------------
>>>>>> #!/bin/sh
>>>>>>
>>>>>> if [ -e build ]; then
>>>>>>   rm -rf build
>>>>>> fi
>>>>>> mkdir build
>>>>>> cd build
>>>>>>
>>>>>> cmake -G Ninja -D CMAKE_BUILD_TYPE=3DRelease ..
>>>>>> cmake --build . -- -j 3 -v || echo error && cd .. && exit 1
>>>>>>
>>>>>> cd ..
>>>>>> ------------------------------------------------------------
>>>>>> -------------------
>>>>>>
>>>>>>
>>>>>>
>>>>>> ------------------------------------------------------------
>>>>>> ------------------
>>>>>> Check out the vibrant tech community on one of the world's most
>>>>>> engaging tech sites, Slashdot.org! http://sdm.link/slashdot
>>>>>> _______________________________________________
>>>>>> Doxygen-develop mailing list
>>>>>> [email protected]
>>>>>> https://lists.sourceforge.net/lists/listinfo/doxygen-develop
>>>>>>
>>>>>>
>>>>>
>>>>
>>

--000000000000783744056b4886d5
Content-Type: text/html; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable

<div dir=3D"ltr"><div><div>Dear Masaru,<br><br></div>Thanks for the notific=
ation.<br><br></div>Albert<br></div><div class=3D"gmail_extra"><br><div cla=
ss=3D"gmail_quote">On Thu, May 3, 2018 at 9:53 AM, masaru tsuchiyama <span =
dir=3D"ltr">&lt;<a href=3D"mailto:[email protected]" target=3D"_blank">m.t=
[email protected]</a>&gt;</span> wrote:<br><blockquote class=3D"gmail_quote" =
style=3D"margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><di=
v><div dir=3D"auto">Sorry, it worked.</div><div dir=3D"auto"><br></div><br>=
<div class=3D"gmail_quote"><div>2018=E5=B9=B45=E6=9C=883=E6=97=A5(=E6=9C=A8=
) 16:51 Albert &lt;<a href=3D"mailto:[email protected]" target=3D"_bla=
nk">[email protected]</a>&gt;:<br></div><div><div class=3D"h5"><blockq=
uote class=3D"gmail_quote" style=3D"margin:0 0 0 .8ex;border-left:1px #ccc =
solid;padding-left:1ex"><div><div><div>Dear Masaru,<br><br></div>I saw the =
comment n github and commented on it. More important for me is does the sol=
ution work.<br><br></div>Albert<br></div><div id=3D"m_-7810229674902884587m=
_-1732287477614699547DAB4FAD8-2DD7-40BB-A1B8-4E2AA1F9FDF2"><br>
<table style=3D"border-top:1px solid #d3d4de">
	<tbody><tr>
        <td style=3D"width:55px;padding-top:13px"><a href=3D"http://www.avg=
.com/email-signature?utm_medium=3Demail&amp;utm_source=3Dlink&amp;utm_campa=
ign=3Dsig-email&amp;utm_content=3Dwebmail" target=3D"_blank"><img src=3D"ht=
tps://ipmcdn.avast.com/images/icons/icon-envelope-tick-green-avg-v1.png" al=
t=3D"" style=3D"width:46px;height:29px" width=3D"46" height=3D"29"></a></td=
>
		<td style=3D"width:470px;padding-top:12px;color:#41424e;font-size:13px;fo=
nt-family:Arial,Helvetica,sans-serif;line-height:18px">Virus-free. <a href=
=3D"http://www.avg.com/email-signature?utm_medium=3Demail&amp;utm_source=3D=
link&amp;utm_campaign=3Dsig-email&amp;utm_content=3Dwebmail" style=3D"color=
:#4453ea" target=3D"_blank">www.avg.com</a>
		</td>
	</tr>
</tbody></table><a href=3D"#m_-7810229674902884587_m_-1732287477614699547_D=
AB4FAD8-2DD7-40BB-A1B8-4E2AA1F9FDF2" width=3D"1" height=3D"1"></a></div><di=
v class=3D"gmail_extra"><br><div class=3D"gmail_quote">On Thu, May 3, 2018 =
at 12:50 AM, masaru tsuchiyama <span>&lt;<a href=3D"mailto:[email protected]=
om" target=3D"_blank">[email protected]</a>&gt;</span> wrote:<br><blockquo=
te class=3D"gmail_quote" style=3D"margin:0 0 0 .8ex;border-left:1px #ccc so=
lid;padding-left:1ex"><div><div>Hi</div><div><br></div><div>I commented to =
the pull request.</div><div><br></div></div><br><div class=3D"gmail_quote">=
<div>2018=E5=B9=B45=E6=9C=883=E6=97=A5(=E6=9C=A8) 1:32 Albert &lt;<a href=
=3D"mailto:[email protected]" target=3D"_blank">[email protected]=
</a>&gt;:<br></div><div><div class=3D"m_-7810229674902884587m_-173228747761=
4699547h5"><blockquote class=3D"gmail_quote" style=3D"margin:0 0 0 .8ex;bor=
der-left:1px #ccc solid;padding-left:1ex"><div><div>I&#39;ve just pushed a =
proposed patch to github (pull request 712, <a href=3D"https://github.com/d=
oxygen/doxygen/pull/712" target=3D"_blank">https://github.com/doxygen/<wbr>=
doxygen/pull/712</a>). <br><br></div>Albert<br></div><div class=3D"gmail_ex=
tra"><br><div class=3D"gmail_quote">On Wed, May 2, 2018 at 4:03 PM, Albert =
<span>&lt;<a href=3D"mailto:[email protected]" target=3D"_blank">alber=
[email protected]</a>&gt;</span> wrote:<br><blockquote class=3D"gmail_quote=
" style=3D"margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><=
div><div><div><div>Dear Masaru,<br><br></div>A bit strange. The construct a=
s used for TEST_FLAGS is the same construct as used for e.g. LEX_FLAGS ad B=
ISON_FLAGS<br>Do you have an idea why it is working for LEX_FLAGS / YACC_FL=
AGS and not for TEST_FLAGS.<br><br></div>I tried to create a Ninja version =
under Windows but I fail due to the fact that cmake cannot find bison, look=
s like here are some quotes missing around the YACC_FLAGS. Will have to do =
some further testing here.<br></div><div>When replacing the $(TEST_FLAGS) i=
n the build.ninja by $$(TEST_FLAGS) it looks like to start compiling, also =
some more tests required.<br><br></div><div>Albert<br></div><br><div><div><=
br></div></div></div><div class=3D"gmail_extra"><br><div class=3D"gmail_quo=
te"><div><div class=3D"m_-7810229674902884587m_-1732287477614699547m_-56286=
8718301179677m_26960274483017668h5">On Wed, May 2, 2018 at 3:09 PM, masaru =
tsuchiyama <span>&lt;<a href=3D"mailto:[email protected]" target=3D"_blank=
">[email protected]</a>&gt;</span> wrote:<br></div></div><blockquote class=
=3D"gmail_quote" style=3D"margin:0 0 0 .8ex;border-left:1px #ccc solid;padd=
ing-left:1ex"><div><div class=3D"m_-7810229674902884587m_-17322874776146995=
47m_-562868718301179677m_26960274483017668h5"><div>Hi<div><br></div><div>I =
found a bug that doxygen can&#39;t compile for Ninja generator.</div><div>I=
t works for &#39;Unix Makefiles&#39; generator</div><div><br></div><div>Thi=
s is the error message.</div><div><br></div><div><div>ninja: warning: multi=
ple rules generate generated_src/configvalues.h. builds involving this targ=
et will not be correct; continuing anyway [-w dupbuild=3Dwarn]</div><div>ni=
nja: error: build.ninja:2384: bad $-escape (literal $ must be written as $$=
)</div><div><br></div><div>This is the diff of=20

<span style=3D"color:rgb(34,34,34);font-family:sans-serif;font-size:14px;fo=
nt-style:normal;font-variant-ligatures:normal;font-variant-caps:normal;font=
-weight:400;letter-spacing:normal;text-align:start;text-indent:0px;text-tra=
nsform:none;white-space:normal;word-spacing:0px;background-color:rgb(255,25=
5,255);text-decoration-style:initial;text-decoration-color:initial;float:no=
ne;display:inline">build.ninja</span>=C2=A0between good revision (

<span style=3D"color:rgb(34,34,34);font-family:sans-serif;font-size:14px;fo=
nt-style:normal;font-variant-ligatures:normal;font-variant-caps:normal;font=
-weight:400;letter-spacing:normal;text-align:start;text-indent:0px;text-tra=
nsform:none;white-space:normal;word-spacing:0px;background-color:rgb(255,25=
5,255);text-decoration-style:initial;text-decoration-color:initial;float:no=
ne;display:inline">ok_<wbr>b6f01ff09b17e5c2288f2418ef0a8f<wbr>074456c357)</=
span></div><div>and bad revision (<wbr>c78c338fffbdbb9b2379b1896e647f<wbr>7=
cc697da57)</div><div><br></div><div><div>$ diff build/build.ninja ok_<wbr>b=
6f01ff09b17e5c2288f2418ef0a8f<wbr>074456c357</div><div>2384c2384</div><div>=
&lt;=C2=A0 =C2=A0COMMAND =3D cd /home/user/gitwork/doxygen/<wbr>build/testi=
ng &amp;&amp; /usr/bin/python /home/user/gitwork/doxygen/<wbr>testing/runte=
sts.py $(TEST_FLAGS) --doxygen /home/user/gitwork/doxygen/<wbr>build/bin/do=
xygen --inputdir /home/user/gitwork/doxygen/<wbr>testing --outputdir /home/=
user/gitwork/doxygen/<wbr>build/testing</div><div>---</div><div>&gt;=C2=A0 =
=C2=A0COMMAND =3D cd /home/user/gitwork/doxygen/<wbr>build/testing &amp;&am=
p; /usr/bin/python /home/user/gitwork/doxygen/<wbr>testing/runtests.py --al=
l --doxygen /home/user/gitwork/doxygen/<wbr>build/bin/doxygen --inputdir /h=
ome/user/gitwork/doxygen/<wbr>testing --outputdir /home/user/gitwork/doxyge=
n/<wbr>build/testing</div></div><div><br></div><div>By tweaking=C2=A0

<span style=3D"color:rgb(34,34,34);font-family:sans-serif;font-size:14px;fo=
nt-style:normal;font-variant-ligatures:normal;font-variant-caps:normal;font=
-weight:400;letter-spacing:normal;text-align:start;text-indent:0px;text-tra=
nsform:none;white-space:normal;word-spacing:0px;background-color:rgb(255,25=
5,255);text-decoration-style:initial;text-decoration-color:initial;float:no=
ne;display:inline">$(TEST_FLAGS) to=C2=A0

<span style=3D"color:rgb(34,34,34);font-family:sans-serif;font-size:14px;fo=
nt-style:normal;font-variant-ligatures:normal;font-variant-caps:normal;font=
-weight:400;letter-spacing:normal;text-align:start;text-indent:0px;text-tra=
nsform:none;white-space:normal;word-spacing:0px;background-color:rgb(255,25=
5,255);text-decoration-style:initial;text-decoration-color:initial;float:no=
ne;display:inline">--all, the build succeeded.</span></span></div><div><br>=
</div><div>This is a script to reproduce.</div><div>-----------------------=
-------<wbr>------------------------------<wbr>-------------------</div><di=
v><div>#!/bin/sh</div><div><br></div><div>if [ -e build ]; then</div><div>=
=C2=A0 rm -rf build</div><div>fi</div><div>mkdir build</div><div>cd build</=
div><div><br></div><div>cmake -G Ninja -D CMAKE_BUILD_TYPE=3DRelease ..</di=
v><div>cmake --build . -- -j 3 -v || echo error &amp;&amp; cd .. &amp;&amp;=
 exit 1</div><div><br></div><div>cd ..</div></div><div>

<span style=3D"color:rgb(34,34,34);font-family:sans-serif;font-size:14px;fo=
nt-style:normal;font-variant-ligatures:normal;font-variant-caps:normal;font=
-weight:400;letter-spacing:normal;text-align:start;text-indent:0px;text-tra=
nsform:none;white-space:normal;word-spacing:0px;background-color:rgb(255,25=
5,255);text-decoration-style:initial;text-decoration-color:initial;float:no=
ne;display:inline">------------------------------<wbr>---------------------=
---------<wbr>-------------------</span>

<br></div><div><br></div><div><br></div></div></div>
<br></div></div>------------------------------<wbr>------------------------=
------<wbr>------------------<br>
Check out the vibrant tech community on one of the world&#39;s most<br>
engaging tech sites, Slashdot.org! <a href=3D"http://sdm.link/slashdot" rel=
=3D"noreferrer" target=3D"_blank">http://sdm.link/slashdot</a><br>_________=
_____________________<wbr>_________________<br>
Doxygen-develop mailing list<br>
<a href=3D"mailto:[email protected]" target=3D"_blank">=
Doxygen-develop@lists.<wbr>sourceforge.net</a><br>
<a href=3D"https://lists.sourceforge.net/lists/listinfo/doxygen-develop" re=
l=3D"noreferrer" target=3D"_blank">https://lists.sourceforge.net/<wbr>lists=
/listinfo/doxygen-develop</a><br>
<br></blockquote></div><br></div>
</blockquote></div><br></div>
</blockquote></div></div></div>
</blockquote></div><br></div>
</blockquote></div></div></div></div>
</blockquote></div><br></div>

--000000000000783744056b4886d5--


--===============5895106083167674838==
Content-Type: text/plain; charset="us-ascii"
MIME-Version: 1.0
Content-Transfer-Encoding: 7bit
Content-Disposition: inline

------------------------------------------------------------------------------
Check out the vibrant tech community on one of the world's most
engaging tech sites, Slashdot.org! http://sdm.link/slashdot
--===============5895106083167674838==
Content-Type: text/plain; charset="us-ascii"
MIME-Version: 1.0
Content-Transfer-Encoding: 7bit
Content-Disposition: inline

_______________________________________________
Doxygen-develop mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/doxygen-develop

--===============5895106083167674838==--