Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 490002 - =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)
Summary: =dev-util/kdevelop-4.5.2 fails to build on dev-util/kdevplatform[-reviewboard...
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] KDE (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Gentoo KDE team
URL: https://bugs.kde.org/show_bug.cgi?id=...
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2013-10-31 20:40 UTC by octoploid
Modified: 2013-11-04 23:58 UTC (History)
9 users (show)

See Also:
Package list:
Runtime testing required: ---


Attachments
Build Log for kdevelop-4.5.2 fatal error at line 4061 (kdevelop-4.5.2-build_log.tbz2,33.39 KB, application/x-bzip-compressed-tar)
2013-11-01 17:41 UTC, George L. Emigh
Details
gz of /var/tmp/portage/dev-util/kdevelop-4.5.2/temp/build.log (build.log.gz,61.56 KB, application/octet-stream)
2013-11-01 23:06 UTC, Guy
Details

Note You need to log in before you can comment on or make changes to this bug.
Description octoploid 2013-10-31 20:40:59 UTC
...
/var/tmp/portage/dev-util/kdevelop-4.5.2/work/kdevelop-4.5.2/languages/cpp/tests/test_cppfiles.cpp:24:45: fatal error: tests/json/declarationvalidator.h: No such file or directory
 #include <tests/json/declarationvalidator.h>
                                             ^
compilation terminated.
make[2]: *** [languages/cpp/tests/CMakeFiles/cppfilestest.dir/test_cppfiles.o] Error 1
make[2]: Leaving directory `/var/tmp/portage/dev-util/kdevelop-4.5.2/work/kdevelop-4.5.2_build'
make[1]: *** [languages/cpp/tests/CMakeFiles/cppfilestest.dir/all] Error 2
make[1]: *** Waiting for unfinished jobs....


Reproducible: Always
Comment 1 Frank Krömmelbein 2013-10-31 20:55:31 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.
Comment 2 octoploid 2013-10-31 21:00:52 UTC
(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.
Comment 3 Frank Krömmelbein 2013-10-31 21:17:53 UTC
(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
Comment 4 George L. Emigh 2013-10-31 21:42:29 UTC
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
Comment 5 octoploid 2013-10-31 21:54:47 UTC
(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.
Comment 6 Frank Krömmelbein 2013-10-31 23:21:55 UTC
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.
Comment 7 Jeroen Roovers (RETIRED) gentoo-dev 2013-11-01 14:31:50 UTC
Please attach the entire build log to this bug report.
Comment 8 George L. Emigh 2013-11-01 17:41:45 UTC
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.
Comment 9 Guy 2013-11-01 23:06:35 UTC
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.
Comment 10 Matt Whitlock 2013-11-01 23:27:39 UTC
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.
Comment 11 Kirk Diviney 2013-11-02 06:42:05 UTC
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
Comment 12 Guy 2013-11-02 13:21:32 UTC
(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.
Comment 13 Andrew Udvare 2013-11-02 20:32:42 UTC
Also had the same issue, using Comment 6 solution worked for me.
Comment 14 John Bowler 2013-11-02 22:10:19 UTC
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.
Comment 15 Thomas Posch 2013-11-03 10:40:59 UTC
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.
Comment 16 Matt Whitlock 2013-11-03 17:17:21 UTC
(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]".
Comment 17 Juergen Rose 2013-11-04 08:23:05 UTC
Adding reviewboard USE flag to dev-util/kdevplatform helps here too.
Comment 18 Herbert Wantesh 2013-11-04 13:41:12 UTC
Adding reviewboard USE flag to dev-util/kdevplatform fixes the problem for me too
Comment 19 Johannes Huber (RETIRED) gentoo-dev 2013-11-04 14:33:09 UTC
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.
+
Comment 20 Herbert Wantesh 2013-11-04 21:51:21 UTC
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
Comment 21 Herbert Wantesh 2013-11-04 23:58:19 UTC
this patch for kdevplatform is also needed

http://commits.kde.org/kdevplatform/02522dae26a5a8df25c8c323a765d68c27bde17f

then kdevelop compiles when reviewboard is disabled