Re: Build error for Ninja Generator
Albert <[email protected]> Wed, 2 May 2018 16:03:01 +0200
| Newsgroups | gmane.text.doxygen.devel |
|---|---|
| Message-ID | <CABOOx7bvDPBeE2_dJkD6ujbJDiN=x6MTLY3MpMyi8mf5=OwR2w@mail.gmail.com> |
--===============4911666482805104030== Content-Type: multipart/alternative; boundary="001a1149a6e2857516056b398b87" --001a1149a6e2857516056b398b87 Content-Type: text/plain; charset="UTF-8" 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 > > --001a1149a6e2857516056b398b87 Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable <div dir=3D"ltr"><div><div><div>Dear Masaru,<br><br></div>A bit strange. Th= e construct as used for TEST_FLAGS is the same construct as used for e.g. L= EX_FLAGS ad BISON_FLAGS<br>Do you have an idea why it is working for LEX_FL= AGS / YACC_FLAGS and not for TEST_FLAGS.<br><br></div>I tried to create a N= inja version under Windows but I fail due to the fact that cmake cannot fin= d bison, looks like here are some quotes missing around the YACC_FLAGS. Wil= l 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 com= piling, also some more tests required.<br><br></div><div>Albert<br></div><b= r><div><div><br></div></div></div><div class=3D"gmail_extra"><br><div class= =3D"gmail_quote">On Wed, May 2, 2018 at 3:09 PM, masaru tsuchiyama <span di= r=3D"ltr"><<a href=3D"mailto:[email protected]" target=3D"_blank">m.tma= [email protected]</a>></span> wrote:<br><blockquote class=3D"gmail_quote" st= yle=3D"margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div = dir=3D"ltr">Hi<div><br></div><div>I found a bug that doxygen can't comp= ile for Ninja generator.</div><div>It works for 'Unix Makefiles' ge= nerator</div><div><br></div><div>This is the error message.</div><div><br><= /div><div><div>ninja: warning: multiple rules generate generated_src/config= values.h. builds involving this target will not be correct; continuing anyw= ay [-w dupbuild=3Dwarn]</div><div>ninja: error: build.ninja:2384: bad $-esc= ape (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>= <=C2=A0 =C2=A0COMMAND =3D cd /home/user/gitwork/doxygen/<wbr>build/testi= ng && /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>>=C2=A0 = =C2=A0COMMAND =3D cd /home/user/gitwork/doxygen/<wbr>build/testing &&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 && 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>------------------------------<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]">Doxygen-develop@li= sts.<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> --001a1149a6e2857516056b398b87-- --===============4911666482805104030== 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 --===============4911666482805104030== 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 --===============4911666482805104030==--