Summary: | media-plugins/kipi-plugins-4.14.0 with sys-devel/flex-2.6.0- .../work/kipi-plugins-4.14.0_build/panorama/panoScanner.c:1920:21: error: expected expression before ‘/’ token | ||
---|---|---|---|
Product: | Gentoo Linux | Reporter: | Randy Andy <randy-andy-> |
Component: | [OLD] Library | Assignee: | Andreas K. Hüttel <dilfridge> |
Status: | RESOLVED TEST-REQUEST | ||
Severity: | normal | CC: | fcoiffie, johannes.hirte, kde, m.seifert, mlashley, phobosk, zeekec |
Priority: | Normal | ||
Version: | unspecified | ||
Hardware: | AMD64 | ||
OS: | Linux | ||
Whiteboard: | |||
Package list: | Runtime testing required: | --- | |
Attachments: |
kipi-plugins-4.14.0_build.log.bz2
flex-2.6.0-C-style-comment.patch kipi-plugins-9999.build.log |
Description
Randy Andy
2015-12-13 17:21:19 UTC
Which version of sys-devel/bison and sys-devel/flex do you have installed? I'm using sys-devel/bison-3.0.4-r1 and sys-devel/flex-2.6.0 Thanks for looking into this report so quick, Andy. Thanks kensington, for pointing me into the right direction. After downgrading to sys-devel/flex-2.5.39-r1 the kipi-plugins-4.14.0 builds fine. Regards, Andy. I was also hit by this. Can confirm, downgrading sys-devel/flex worked. It just happened to me as well. masking >=sys-devel/flex-2.6 and installing sys-devel/flex-2.5.39-r1 made it compile different error message with gcc-5.3.0: [ 90%] Building C object panorama/CMakeFiles/libpanorama.dir/panoScanner.c.o /var/tmp/portage/media-plugins/kipi-plugins-4.14.0/work/kipi-plugins-4.14.0_build/panorama/panoScanner.c:1920:21: error: C++ style comments are not allowed in ISO C90 num_to_alloc = 1; // After all that talk, this was set to 1 anyways... ^ /var/tmp/portage/media-plugins/kipi-plugins-4.14.0/work/kipi-plugins-4.14.0_build/panorama/panoScanner.c:1920:21: error: (this will be reported only once per input file) distcc[3255] ERROR: compile /var/tmp/portage/media-plugins/kipi-plugins-4.14.0/work/kipi-plugins-4.14.0_build/panorama/panoScanner.c on llano/6 failed distcc[3255] (dcc_build_somewhere) Warning: remote compilation of '/var/tmp/portage/media-plugins/kipi-plugins-4.14.0/work/kipi-plugins-4.14.0_build/panorama/panoScanner.c' failed, retrying locally distcc[3255] Warning: failed to distribute /var/tmp/portage/media-plugins/kipi-plugins-4.14.0/work/kipi-plugins-4.14.0_build/panorama/panoScanner.c to llano/6, running locally instead /var/tmp/portage/media-plugins/kipi-plugins-4.14.0/work/kipi-plugins-4.14.0_build/panorama/panoScanner.c: In function ‘yyensure_buffer_stack’: /var/tmp/portage/media-plugins/kipi-plugins-4.14.0/work/kipi-plugins-4.14.0_build/panorama/panoScanner.c:1920:21: error: C++ style comments are not allowed in ISO C90 num_to_alloc = 1; // After all that talk, this was set to 1 anyways... ^ /var/tmp/portage/media-plugins/kipi-plugins-4.14.0/work/kipi-plugins-4.14.0_build/panorama/panoScanner.c:1920:21: error: (this will be reported only once per input file) ptoparser/panoScanner.l: At top level: /var/tmp/portage/media-plugins/kipi-plugins-4.14.0/work/kipi-plugins-4.14.0_build/panorama/panoScanner.c:2071:16: warning: ‘yy_top_state’ defined but not used [-Wunused-function] static int yy_top_state (void) Created attachment 424432 [details, diff]
flex-2.6.0-C-style-comment.patch
OK, so the attached patch for sys-devel/flex fixes the build error described here...
Created attachment 424434 [details]
kipi-plugins-9999.build.log
...only to be followed up by a new build error. Regardless of GCC 4.8.5 or 5.3.0, same for kipi-plugins-4.14.0.
This issue is also present in media-plugins/kipi-plugins-5.0.0_beta4. The build fails when sys-devel/flex-2.6.0 is installed, exiting with the same error: "expected expression before '/' token" in panoScanner.c. When downgrading to sys-devel/flex-2.5.39-r1, the kipi-plugins build runs successfully. If Andreas' patch works, I suggest we add it to the affected ebuild(s) until the issue is solved by upstream. I couldn't find anything about this on the KDE bug tracker, so I will open a bug there and point them to this discussion. Corresponding upstream bug: https://bugs.kde.org/show_bug.cgi?id=361316 Whoops, I messed up here. The patch looked like it solves a malformed comment in kipi-plugins rather than a patch for flex. Nevermind the KDE bug I linked to. Sorry! I filed bug #578844 to bump flex which contains the patch mentioned in comment #7. flex-2.6.1 is bumped which should resolve this issue. Confirmed fixed for me! |