When building media-gfx/openscad-2021.01-r4, the build fails with the following error: src/lexer.l:36:10: fatal error: parser.hxx: No such file or directory 36 | #include "parser.hxx" | ^~~~~~~~~~~~ compilation terminated. make: *** [Makefile:6119: objects/objects/lexer.o] Error 1 make: *** Waiting for unfinished jobs.... * ERROR: media-gfx/openscad-2021.01-r4::gentoo failed (compile phase): * emake failed Reproducible: Always
Created attachment 790073 [details] output of emerge --info
Created attachment 790076 [details] openscad build log gz compressed
I can't reproduce this. But I'm wondering why in your build the bison targets are missing. Your log file has Compiling source in /var/tmp/portage/media-gfx/openscad-2021.01-r4/work/openscad-2021.01 ... make -j14 -l 14 flex -o objects/lexer.cxx --header-file=objects/lexer.hxx src/lexer.l /usr/lib64/qt5/bin/uic src/PrintInitDialog.ui -o objects/ui_PrintInitDialog.h -tr q_ My log file has Compiling source in /var/tmp/portage/media-gfx/openscad-2021.01-r4/work/openscad-2021.01 ... make -j16 flex -o objects/lexer.cxx --header-file=objects/lexer.hxx src/lexer.l flex -o objects/comment_lexer.cxx --header-file=objects/comment_lexer.hxx src/comment_lexer.l bison -d -p parser -o objects/parser.cxx --defines=objects/parser.hxx src/parser.y bison -d -p comment_parser -o objects/comment_parser.cxx --defines=objects/comment_parser.hxx src/comment_parser.y /usr/lib64/qt5/bin/uic src/parameter/ParameterEntryWidget.ui -o objects/ui_ParameterEntryWidget.h -tr q_/usr/lib64/qt5/bin/uic src/parameter/ParameterWidget.ui -o objects/ui_ParameterWidget.h -tr q_ /usr/lib64/qt5/bin/uic src/Console.ui -o objects/ui_Console.h -tr q_ /usr/lib64/qt5/bin/uic src/ErrorLog.ui -o objects/ui_ErrorLog.h -tr q_ /usr/lib64/qt5/bin/uic src/input/AxisConfigWidget.ui -o objects/ui_AxisConfigWidget.h -tr q_ /usr/lib64/qt5/bin/uic src/input/ButtonConfigWidget.ui -o objects/ui_ButtonConfigWidget.h -tr q_ /usr/lib64/qt5/bin/uic src/OpenCSGWarningDialog.ui -o objects/ui_OpenCSGWarningDialog.h -tr q_ /usr/lib64/qt5/bin/uic src/AboutDialog.ui -o objects/ui_AboutDialog.h -tr q_ /usr/lib64/qt5/bin/uic src/FontListDialog.ui -o objects/ui_FontListDialog.h -tr q_ /usr/lib64/qt5/bin/uic src/PrintInitDialog.ui -o objects/ui_PrintInitDialog.h -tr q_ Not only the bison files, but also another flex file and a lot of dialog files are not compiled on your build. Could this be a shell issue? I noticed you're using zsh and don't have an idea currently what could cause this issue.
The shell seems not to be the case for this issue. I used zsh and exported the SHELL variable to SHELL=/bin/zsh and can install the package successfully.
Guess is parallel build issue. Ben, does it happen with MAKEOPTS="-j1" ...?
Don't think so, I've run it with my default -j16, and with -j4 in my test environment.
It doesn't happen with MAKEOPTS=-j1 on my machine
(In reply to Bernd from comment #6) > Don't think so, I've run it with my default -j16, and with -j4 in my test > environment. That doesn't prove anything! :)
(In reply to Sam James from comment #8) > (In reply to Bernd from comment #6) > > Don't think so, I've run it with my default -j16, and with -j4 in my test > > environment. > > That doesn't prove anything! :) Of course it doesn't :) I didn't say this couldn't be the cause.
Ben, would you like to test building the -9999 ebuild and see whether the bug is there as well? The live ebuild uses cmake instead of qmake for building, but the cmake based build is still in development upstream which is why it's not used by the 2021.01 package.
The bug has been closed via the following commit(s): https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=bd249514fecc18fbfbe6836b7da5d3ff1a4229d9 commit bd249514fecc18fbfbe6836b7da5d3ff1a4229d9 Author: Bernd Waibel <waebbl-gentoo@posteo.net> AuthorDate: 2022-08-31 18:19:39 +0000 Commit: Sam James <sam@gentoo.org> CommitDate: 2022-08-31 18:46:53 +0000 media-gfx/openscad: workaround for parallel build failures Bug: https://github.com/openscad/openscad/issues/4344 Closes: https://bugs.gentoo.org/856430 Signed-off-by: Bernd Waibel <waebbl-gentoo@posteo.net> Closes: https://github.com/gentoo/gentoo/pull/27093 Signed-off-by: Sam James <sam@gentoo.org> media-gfx/openscad/openscad-2021.01-r4.ebuild | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-)
Upstream just told me, they no longer support qmake builds. Though this release didn't have stable and working cmake build system on the date it was released. Best bet currently would be to use the live ebuild until upstream releases a new version with cmake build system. For details, please see the linked upstream issue.
(In reply to Bernd from comment #12) > Upstream just told me, they no longer support qmake builds. Though this > release didn't have stable and working cmake build system on the date it was > released. > Best bet currently would be to use the live ebuild until upstream releases a > new version with cmake build system. > > For details, please see the linked upstream issue. Oh dear. Thanks for updating!