Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 690340 - dev-libs/leatherman-1.6.1 : /.../json_container.cc:4:10: fatal error: rapidjson/document.h: No such file or directory
Summary: dev-libs/leatherman-1.6.1 : /.../json_container.cc:4:10: fatal error: rapidjs...
Status: CONFIRMED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Matthew Thode ( prometheanfire )
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2019-07-21 09:38 UTC by Toralf Förster
Modified: 2019-07-28 11:27 UTC (History)
0 users

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


Attachments
emerge-info.txt (emerge-info.txt,16.71 KB, text/plain)
2019-07-21 09:38 UTC, Toralf Förster
Details
dev-libs:leatherman-1.6.1:20190721-091734.log (dev-libs:leatherman-1.6.1:20190721-091734.log,46.22 KB, text/plain)
2019-07-21 09:38 UTC, Toralf Förster
Details
emerge-history.txt (emerge-history.txt,225.85 KB, text/plain)
2019-07-21 09:38 UTC, Toralf Förster
Details
environment (environment,110.24 KB, text/plain)
2019-07-21 09:38 UTC, Toralf Förster
Details
etc.portage.tbz2 (etc.portage.tbz2,20.54 KB, application/x-bzip)
2019-07-21 09:39 UTC, Toralf Förster
Details
logs.tbz2 (logs.tbz2,5.96 KB, application/x-bzip)
2019-07-21 09:39 UTC, Toralf Förster
Details
temp.tbz2 (temp.tbz2,29.08 KB, application/x-bzip)
2019-07-21 09:39 UTC, Toralf Förster
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Toralf Förster gentoo-dev 2019-07-21 09:38:47 UTC
cd /var/tmp/portage/dev-libs/leatherman-1.6.1/work/leatherman-1.6.1_build/json_container && /usr/bin/x86_64-pc-linux-gnu-g++ -DBOOST_ALL_DYN_LINK -DBOOST_LOG_WITHOUT_WCHAR_T -DBOOST_SYSTEM_NO_DEPRECATED -DLEATHERMAN_LOCALE_INSTALL=\"/usr/share/locale\" -DLEATHERMAN_USE_LOCALES -DPROJECT_DIR=\"/var/tmp/portage/dev-libs/leatherman-1.6.1/work/leatherman-1.6.1_build\" -DPROJECT_NAME=\"leatherman\" -Dleatherman_json_container_EXPORTS -I/var/tmp/portage/dev-libs/leatherman-1.6.1/work/leatherman-1.6.1/nowide/../vendor/nowide/include -I/var/tmp/portage/dev-libs/leatherman-1.6.1/work/leatherman-1.6.1/nowide/inc -I/var/tmp/portage/dev-libs/leatherman-1.6.1/work/leatherman-1.6.1/util/inc -I/var/tmp/portage/dev-libs/leatherman-1.6.1/work/leatherman-1.6.1/locale/inc -I/var/tmp/portage/dev-libs/leatherman-1.6.1/work/leatherman-1.6.1_build/src/rapidjson/include -I/var/tmp/portage/dev-libs/leatherman-1.6.1/work/leatherman-1.6.1/rapidjson/inc -I/var/tmp/portage/dev-libs/leatherman-1.6.1/work/leatherman-1.6.1/json_container/inc   -DNDEBUG -Wno-maybe-uninitialized -O2 -pipe -march=native -fPIC   -Wextra -std=c++11 -Wall -Wno-unused-parameter -Wno-unused-local-typedefs -Wno-unknown-pragmas -Wno-missing-field-initializers -Wno-maybe-uninitialized -O2 -pipe -march=native -fPIC -nostdlib -nodefaultlibs -o CMakeFiles/leatherman_json_container.dir/src/json_container.cc.o -c /var/tmp/portage/dev-libs/leatherman-1.6.1/work/leatherman-1.6.1/json_container/src/json_container.cc
/var/tmp/portage/dev-libs/leatherman-1.6.1/work/leatherman-1.6.1/json_container/src/json_container.cc:4:10: fatal error: rapidjson/document.h: No such file or directory
    4 | #include <rapidjson/document.h>
      |          ^~~~~~~~~~~~~~~~~~~~~~
compilation terminated.

  -------------------------------------------------------------------

  This is an unstable amd64 chroot image at a tinderbox (==build bot)
  name: 17.1_desktop_gnome_systemd-libressl-20190715-231820

  -------------------------------------------------------------------

gcc-config -l:
 [1] x86_64-pc-linux-gnu-9.1.0 *

Available Python interpreters, in order of preference:
  [1]   python3.6
  [2]   python2.7 (fallback)
  [3]   jython2.7 (fallback)
Available Ruby profiles:
  [1]   ruby24 (with Rubygems)
  [2]   ruby25 (with Rubygems) *

java-config:
The following VMs are available for generation-2:
*)	IcedTea JDK 3.12.0 [icedtea-bin-8]
Available Java Virtual Machines:
  [1]   icedtea-bin-8  system-vm

emerge -qpvO dev-libs/leatherman
[ebuild  N    ] dev-libs/leatherman-1.6.1  USE="-debug -static-libs -test"
Comment 1 Toralf Förster gentoo-dev 2019-07-21 09:38:50 UTC
Created attachment 583870 [details]
emerge-info.txt
Comment 2 Toralf Förster gentoo-dev 2019-07-21 09:38:52 UTC
Created attachment 583872 [details]
dev-libs:leatherman-1.6.1:20190721-091734.log
Comment 3 Toralf Förster gentoo-dev 2019-07-21 09:38:55 UTC
Created attachment 583874 [details]
emerge-history.txt
Comment 4 Toralf Förster gentoo-dev 2019-07-21 09:38:58 UTC
Created attachment 583876 [details]
environment
Comment 5 Toralf Förster gentoo-dev 2019-07-21 09:39:00 UTC
Created attachment 583878 [details]
etc.portage.tbz2
Comment 6 Toralf Förster gentoo-dev 2019-07-21 09:39:03 UTC
Created attachment 583880 [details]
logs.tbz2
Comment 7 Toralf Förster gentoo-dev 2019-07-21 09:39:16 UTC
Created attachment 583882 [details]
temp.tbz2
Comment 8 Matthew Thode ( prometheanfire ) archtester Gentoo Infrastructure gentoo-dev Security 2019-07-21 17:39:11 UTC
does installing dev-libs/rapidjson without any use flags enabled fix the missing dep issue?
Comment 9 Toralf Förster gentoo-dev 2019-07-25 19:06:34 UTC
(In reply to Matthew Thode ( prometheanfire ) from comment #8)
> does installing dev-libs/rapidjson without any use flags enabled fix the
> missing dep issue?

helps a little bit, now it fails in :

-parameter -Wno-unused-local-typedefs -Wno-unknown-pragmas -Wno-missing-field-initializers -Wno-maybe-uninitialized -O2 -pipe -march=native -o CMakeFiles/leatherman_test.dir/main.cc.o -c /var/tmp/portage/dev-libs/leatherman-1.6.0/work/leatherman-1.6.0/tests/main.cc
/var/tmp/portage/dev-libs/leatherman-1.6.0/work/leatherman-1.6.0/tests/main.cc:2:10: fatal error: catch.hpp: No such file or directory
    2 | #include <catch.hpp>
      |          ^~~~~~~~~~~
compilation terminated.
make[2]: *** [tests/CMakeFiles/leatherman_test.dir/build.make:66: tests/CMakeFiles/leatherman_test.dir/main.cc.o] Error 1
Comment 10 Matthew Thode ( prometheanfire ) archtester Gentoo Infrastructure gentoo-dev Security 2019-07-25 21:07:48 UTC
dev-cpp/catch then?
Comment 11 Toralf Förster gentoo-dev 2019-07-26 18:49:26 UTC
(In reply to Matthew Thode ( prometheanfire ) from comment #10)
> dev-cpp/catch then?

nope, FWIW, that installs into  /usr/include/catch2/catch.hpp maybe the include should be

    #include <catch2/catch.hpp>

?
Comment 12 Matthew Thode ( prometheanfire ) archtester Gentoo Infrastructure gentoo-dev Security 2019-07-27 23:26:36 UTC
try 'emerge dev-cpp/catch:1' instead
Comment 13 Matthew Thode ( prometheanfire ) archtester Gentoo Infrastructure gentoo-dev Security 2019-07-28 00:10:56 UTC
I've installed 1.6.1 locally, though I haven't needed to install rapidjson or catch.

https://gist.github.com/91b73522c0bed5094c850149906ddb84
Comment 14 Toralf Förster gentoo-dev 2019-07-28 11:15:11 UTC
(In reply to Matthew Thode ( prometheanfire ) from comment #12)
> try 'emerge dev-cpp/catch:1' instead

issues still present, FWIW:

mr-fox ~ # ls -l /usr/include/catch/catch.hpp
-rw-r--r-- 1 root root 426220 May 14  2018 /usr/include/catch/catch.hpp
Comment 15 Toralf Förster gentoo-dev 2019-07-28 11:15:44 UTC
(In reply to Toralf Förster from comment #14)
> (In reply to Matthew Thode ( prometheanfire ) from comment #12)
> > try 'emerge dev-cpp/catch:1' instead
> 
> issues still present, FWIW:
> 
> mr-fox ~ # ls -l /usr/include/catch/catch.hpp
> -rw-r--r-- 1 root root 426220 May 14  2018 /usr/include/catch/catch.hpp

IMHO the include path isn't set right for catch at all, or?
Comment 16 Toralf Förster gentoo-dev 2019-07-28 11:27:18 UTC
from:https://github.com/puppetlabs/leatherman/blob/master/README.md




Using Catch

Since Catch is a testing-only utility, its include directory is excluded from LEATHERMAN_INCLUDE_DIRS. To use Catch, explicitly add

include_directories(${LEATHERMAN_CATCH_INCLUDE})

to the CMakeLists.txt file of your testing directory.