Summary: | =dev-util/kdevelop-4.5.2 fails to build on dev-util/kdevplatform[-reviewboard] (languages/cpp/tests/test_cppfiles.cpp:24:45: fatal error: tests/json/declarationvalidator.h: No such file or directory) | ||
---|---|---|---|
Product: | Gentoo Linux | Reporter: | octoploid <octoploid> |
Component: | [OLD] KDE | Assignee: | Gentoo KDE team <kde> |
Status: | RESOLVED FIXED | ||
Severity: | normal | CC: | ab4bd, alunduil, cruzki123, earny, kripton, kroemmelbein, octoploid, rauchwolke, rose |
Priority: | Normal | ||
Version: | unspecified | ||
Hardware: | All | ||
OS: | Linux | ||
URL: | https://bugs.kde.org/show_bug.cgi?id=327095 | ||
Whiteboard: | |||
Package list: | Runtime testing required: | --- | |
Attachments: |
Build Log for kdevelop-4.5.2 fatal error at line 4061
gz of /var/tmp/portage/dev-util/kdevelop-4.5.2/temp/build.log |
Description
octoploid
2013-10-31 20:40:59 UTC
I just run into the same error. It seems that the missing header file from kdevplatform archiv file was not copied to the right location. (In reply to Frank Krömmelbein from comment #1) > I just run into the same error. > > It seems that the missing header file from kdevplatform archiv file was not > copied to the right location. Yes. The whole /usr/include/kdevplatform/tests/json directory is missing. (In reply to octoploid from comment #2) > (In reply to Frank Krömmelbein from comment #1) > > I just run into the same error. > > > > It seems that the missing header file from kdevplatform archiv file was not > > copied to the right location. > > Yes. The whole /usr/include/kdevplatform/tests/json directory is missing. I've copied just the folder with the header files, but this seems to be not enough. I then run into this: /usr/lib/gcc/x86_64-pc-linux-gnu/4.7.3/../../../../x86_64-pc-linux-gnu/bin/ld: cannot find -lKDevPlatformImport__kdevplatformjsontests This seems similar to the issue mentioned in the mailing list today for kdevelop. Here is one of the message urls to the archives. https://mail.kde.org/pipermail/kdevelop/2013-October/018077.html (In reply to Frank Krömmelbein from comment #3) > (In reply to octoploid from comment #2) > > (In reply to Frank Krömmelbein from comment #1) > > > I just run into the same error. > > > > > > It seems that the missing header file from kdevplatform archiv file was not > > > copied to the right location. > > > > Yes. The whole /usr/include/kdevplatform/tests/json directory is missing. > > I've copied just the folder with the header files, but this seems to be not > enough. I then run into this: > > /usr/lib/gcc/x86_64-pc-linux-gnu/4.7.3/../../../../x86_64-pc-linux-gnu/bin/ > ld: cannot find -lKDevPlatformImport__kdevplatformjsontests Yes, you'll also have to build the corresponding library with cmake. I now tried a different, and i think "cleaner" way. I changed only this one line in the kdevplatform-1.5.2.ebuild $(cmake-utils_use_find_package reviewboard QJSON) back to $(cmake-utils_use_build reviewboard) This was the code in the old 1.5.1 ebuild. Next ebuild kdevplatform-1.5.2.ebuild manifest && emerge -1 kdevplatform && emerge kdevelop And now i have a new working kdevelop version. Please attach the entire build log to this bug report. Created attachment 362398 [details]
Build Log for kdevelop-4.5.2 fatal error at line 4061
It's 1.9M, I hope this is what your looking for.
Created attachment 362414 [details]
gz of /var/tmp/portage/dev-util/kdevelop-4.5.2/temp/build.log
I hope I compressed this properly:
# ls -l /var/tmp/portage/dev-util/kdevelop-4.5.2/temp/build.log
-rw-rw-rw- 1 portage portage 1958997 Nov 1 17:44 /var/tmp/portage/dev-util/kdevelop-4.5.2/temp/build.log
# ls -l /var/tmp/portage/dev-util/kdevelop-4.5.2/temp/
total 240
-rw-rw-rw- 1 portage portage 63042 Nov 1 17:44 build.log.gz
This is my failed build log for kdevelop. I'm not certain if I ran into the same problem as the OP or a different problem.
I had the same problem in building dev-util/kdevelop-4.5.2. After I followed the steps in Comment 6, kdevelop-4.5.2 built and installed successfully. I've got the same trouble, except the ebuild for 4.5.2 is almost identical to 4.5.1 and there is no $(cmake-utils_use_find_package reviewboard QJSON) line to change in the 4.5.1 ebuild (In reply to Kirk Diviney from comment #11) > I've got the same trouble, except the ebuild for 4.5.2 is almost identical > to 4.5.1 and there is no > > $(cmake-utils_use_find_package reviewboard QJSON) > > line to change in the 4.5.1 ebuild The line you're looking for is in: /usr/portage/dev-util/kdevplatform/kdevplatform-1.5.2.ebuild and not in /usr/portage/dev-util/kdevelop/kdevelop-4.5.2.ebuild. The section of code under discussion is: src_configure() { mycmakeargs=( $(cmake-utils_use_build cvs) $(cmake-utils_use_find_package reviewboard QJSON) $(cmake-utils_use_build subversion) ) kde4-base_src_configure } I'm assuming kdevplatform is a dependency only for kdevelop. I made the same mistake when I went looking for the line myself. Also had the same issue, using Comment 6 solution worked for me. Same problem, same fix. Without the QJSON in kdevplatform-1.5.2.ebuild (I put it in an overlay with the fix) kdevplatform installs the file /usr/include/kdevplatform/tests/json/declarationvalidator.h, plus others, (confirmed using 'equery belongs') and kdevelop-1.5.2 then builds. Same problem, different fix. I too noticed the missing json subdirectory. I thought json might have to do with some web interaction. So I enabled the reviewboard use-flag and it installed correctly. (In reply to bugs.gentoo.org from comment #15) > Same problem, different fix. > I too noticed the missing json subdirectory. I thought json might have to do > with some web interaction. So I enabled the reviewboard use-flag and it > installed correctly. So maybe kdevelep needs a DEPEND on "dev-util/kdevplatform[reviewboard]". Adding reviewboard USE flag to dev-util/kdevplatform helps here too. Adding reviewboard USE flag to dev-util/kdevplatform fixes the problem for me too Thanks for reporting. This is fixed in cvs now. Please sync in some hours to get the changes + + 04 Nov 2013; Johannes Huber <johu@gentoo.org> + +files/kdevelop-4.5.2-kdevplatform-without-qjson.patch, kdevelop-4.5.2.ebuild, + metadata.xml: + Fix build on dev-util/kdevplatform[-reviewboard] by adding upstream patch and + introducing a use flag reviewboard wrt bug #490002. + the patch doesnt fix the compile error, as i reported the problem here https://bugs.kde.org/show_bug.cgi?id=327095 and compilation still doesn't work when kdevplatform is compiled with the [reviewboard] usefalg disabled this patch for kdevplatform is also needed http://commits.kde.org/kdevplatform/02522dae26a5a8df25c8c323a765d68c27bde17f then kdevelop compiles when reviewboard is disabled |