Re: Build error for Ninja Generator
Albert <[email protected]> Wed, 2 May 2018 18:32:11 +0200
| Newsgroups | gmane.text.doxygen.devel |
|---|---|
| Message-ID | <CABOOx7bzT8qz6ugBKOt8f7m=Q_CQxeSeUvSQdBY71dUwbEiw6A@mail.gmail.com> |
--===============8719847059268125408== Content-Type: multipart/alternative; boundary="001a1149a6e2fbf914056b3ba0c6" --001a1149a6e2fbf914056b3ba0c6 Content-Type: text/plain; charset="UTF-8" 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 missing > 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=warn] >> 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 = 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 = 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=Release .. >> 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 >> >> > --001a1149a6e2fbf914056b3ba0c6 Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable <div dir=3D"ltr"><div>I've just pushed a proposed patch to github (pull= request 712, <a href=3D"https://github.com/doxygen/doxygen/pull/712">https= ://github.com/doxygen/doxygen/pull/712</a>). <br><br></div>Albert<br></div>= <div class=3D"gmail_extra"><br><div class=3D"gmail_quote">On Wed, May 2, 20= 18 at 4:03 PM, Albert <span dir=3D"ltr"><<a href=3D"mailto:albert.tests@= gmail.com" target=3D"_blank">[email protected]</a>></span> wrote:<b= r><blockquote class=3D"gmail_quote" style=3D"margin:0 0 0 .8ex;border-left:= 1px #ccc solid;padding-left:1ex"><div dir=3D"ltr"><div><div><div>Dear Masar= u,<br><br></div>A bit strange. The construct as used for TEST_FLAGS is the = same construct as used for e.g. LEX_FLAGS ad BISON_FLAGS<br>Do you have an = idea why it is working for LEX_FLAGS / YACC_FLAGS and not for TEST_FLAGS.<b= r><br></div>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 m= issing around the YACC_FLAGS. Will have to do some further testing here.<br= ></div><div>When replacing the $(TEST_FLAGS) in 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 cla= ss=3D"gmail_extra"><br><div class=3D"gmail_quote"><div><div class=3D"h5">On= Wed, May 2, 2018 at 3:09 PM, masaru tsuchiyama <span dir=3D"ltr"><<a hr= ef=3D"mailto:[email protected]" target=3D"_blank">[email protected]</a>&g= t;</span> wrote:<br></div></div><blockquote class=3D"gmail_quote" style=3D"= margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div><div cl= ass=3D"h5"><div dir=3D"ltr">Hi<div><br></div><div>I found a bug that doxyge= n can't compile for Ninja generator.</div><div>It works for 'Unix M= akefiles' generator</div><div><br></div><div>This is the error message.= </div><div><br></div><div><div>ninja: warning: multiple rules generate gene= rated_src/configvalues.h. builds involving this target will not be correct;= continuing anyway [-w dupbuild=3Dwarn]</div><div>ninja: 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_b6f01ff09b17e5c2288f2418ef0<wbr>a8f074456c357)</span>= </div><div>and bad revision (c78c338fffbdbb9b2379b1896e647<wbr>f7cc697da57)= </div><div><br></div><div><div>$ diff build/build.ninja ok_b6f01ff09b17e5c2= 288f2418ef0<wbr>a8f074456c357</div><div>2384c2384</div><div><=C2=A0 =C2= =A0COMMAND =3D cd /home/user/gitwork/doxygen/bui<wbr>ld/testing && = /usr/bin/python /home/user/gitwork/doxygen/tes<wbr>ting/runtests.py $(TEST_= FLAGS) --doxygen /home/user/gitwork/doxygen/bui<wbr>ld/bin/doxygen --inputd= ir /home/user/gitwork/doxygen/tes<wbr>ting --outputdir /home/user/gitwork/d= oxygen/bui<wbr>ld/testing</div><div>---</div><div>>=C2=A0 =C2=A0COMMAND = =3D cd /home/user/gitwork/doxygen/bui<wbr>ld/testing && /usr/bin/py= thon /home/user/gitwork/doxygen/tes<wbr>ting/runtests.py --all --doxygen /h= ome/user/gitwork/doxygen/bui<wbr>ld/bin/doxygen --inputdir /home/user/gitwo= rk/doxygen/tes<wbr>ting --outputdir /home/user/gitwork/doxygen/bui<wbr>ld/t= esting</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 && cd .. &&= 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'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">= [email protected]<wbr>rge.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> --001a1149a6e2fbf914056b3ba0c6-- --===============8719847059268125408== 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 --===============8719847059268125408== 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 --===============8719847059268125408==--