Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 552572 - dev-libs/jsoncpp-0.10.2-r1 fails to build on armv5: jsoncpp-0.10.2/src/test_lib_json/main.cpp:285:25: error: ‘null’ is not a member of ‘Json::Value’
Summary: dev-libs/jsoncpp-0.10.2-r1 fails to build on armv5: jsoncpp-0.10.2/src/test_l...
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Paweł Hajdan, Jr. (RETIRED)
URL: https://github.com/cdunn2001/jsoncpp/...
Whiteboard:
Keywords: PATCH
Depends on:
Blocks: 551320
  Show dependency tree
 
Reported: 2015-06-19 18:28 UTC by Markus Meier
Modified: 2015-08-10 19:57 UTC (History)
1 user (show)

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


Attachments
dev-libs:jsoncpp-0.10.2-r1:20150610-171103.log (dev-libs:jsoncpp-0.10.2-r1:20150610-171103.log,29.44 KB, text/plain)
2015-06-19 18:28 UTC, Markus Meier
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Markus Meier gentoo-dev 2015-06-19 18:28:27 UTC
Created attachment 405378 [details]
dev-libs:jsoncpp-0.10.2-r1:20150610-171103.log

* Package:    dev-libs/jsoncpp-0.10.2-r1
 * Repository: gentoo
 * Maintainer: phajdan.jr@gentoo.org mgorny@gentoo.org
 * USE:        arm elibc_glibc kernel_linux test userland_GNU
 * FEATURES:   preserve-libs sandbox test userpriv usersandbox

cd /var/tmp/portage/dev-libs/jsoncpp-0.10.2-r1/work/jsoncpp-0.10.2_build/src/jsontestrunner && /usr/bin/cmake -E cmake_link_script CMakeFiles/jsontestrunner_exe.dir/link.txt --verbose=1
/usr/bin/armv5tel-softfloat-linux-gnueabi-g++   -O2 -march=armv5te -pipe  -Wall -Wextra -pedantic   -Wl,-O1 -Wl,--as-needed CMakeFiles/jsontestrunner_exe.dir/main.cpp.o  -o jsontestrunner_exe -rdynamic ../lib_json/libjsoncpp.a 
make[2]: Leaving directory '/var/tmp/portage/dev-libs/jsoncpp-0.10.2-r1/work/jsoncpp-0.10.2_build'
/usr/bin/cmake -E cmake_progress_report /var/tmp/portage/dev-libs/jsoncpp-0.10.2-r1/work/jsoncpp-0.10.2_build/CMakeFiles  9
[ 88%] Built target jsontestrunner_exe
/usr/bin/cmake -E cmake_progress_report /var/tmp/portage/dev-libs/jsoncpp-0.10.2-r1/work/jsoncpp-0.10.2_build/CMakeFiles 8
[100%] Building CXX object src/test_lib_json/CMakeFiles/jsoncpp_test.dir/main.cpp.o
cd /var/tmp/portage/dev-libs/jsoncpp-0.10.2-r1/work/jsoncpp-0.10.2_build/src/test_lib_json && /usr/bin/armv5tel-softfloat-linux-gnueabi-g++    -DNDEBUG -O2 -march=armv5te -pipe  -Wall -Wextra -pedantic -I/var/tmp/portage/dev-libs/jsoncpp-0.10.2-r1/work/jsoncpp-0.10.2/include -I/var/tmp/portage/dev-libs/jsoncpp-0.10.2-r1/work/jsoncpp-0.10.2/src/lib_json/../../include    -o CMakeFiles/jsoncpp_test.dir/main.cpp.o -c /var/tmp/portage/dev-libs/jsoncpp-0.10.2-r1/work/jsoncpp-0.10.2/src/test_lib_json/main.cpp
/var/tmp/portage/dev-libs/jsoncpp-0.10.2-r1/work/jsoncpp-0.10.2/src/test_lib_json/main.cpp:1243:3: warning: integer constant is too large for ‘long’ type [-Wlong-long]
   JSONTEST_ASSERT_EQUAL(float(2199023255552000), val.asFloat());
   ^
In file included from /var/tmp/portage/dev-libs/jsoncpp-0.10.2-r1/work/jsoncpp-0.10.2/src/test_lib_json/jsontest.h:9:0,
                 from /var/tmp/portage/dev-libs/jsoncpp-0.10.2-r1/work/jsoncpp-0.10.2/src/test_lib_json/main.cpp:6:
/var/tmp/portage/dev-libs/jsoncpp-0.10.2-r1/work/jsoncpp-0.10.2/include/json/config.h:100:14: warning: ISO C++ 1998 does not support ‘long long’ [-Wlong-long]
 typedef long long int Int64;
              ^
/var/tmp/portage/dev-libs/jsoncpp-0.10.2-r1/work/jsoncpp-0.10.2/include/json/config.h:101:23: warning: ISO C++ 1998 does not support ‘long long’ [-Wlong-long]
 typedef unsigned long long int UInt64;
                       ^
In file included from /var/tmp/portage/dev-libs/jsoncpp-0.10.2-r1/work/jsoncpp-0.10.2/src/test_lib_json/main.cpp:6:0:
/var/tmp/portage/dev-libs/jsoncpp-0.10.2-r1/work/jsoncpp-0.10.2/src/test_lib_json/main.cpp: In member function ‘virtual void TestValueTestnull::runTestCase()’:
/var/tmp/portage/dev-libs/jsoncpp-0.10.2-r1/work/jsoncpp-0.10.2/src/test_lib_json/main.cpp:285:25: error: ‘null’ is not a member of ‘Json::Value’
   JSONTEST_ASSERT_EQUAL(Json::Value::null, null_);
                         ^
/var/tmp/portage/dev-libs/jsoncpp-0.10.2-r1/work/jsoncpp-0.10.2/src/test_lib_json/jsontest.h:229:24: note: in definition of macro ‘JSONTEST_ASSERT_EQUAL’
                        expected,                                               \
                        ^
src/test_lib_json/CMakeFiles/jsoncpp_test.dir/build.make:80: recipe for target 'src/test_lib_json/CMakeFiles/jsoncpp_test.dir/main.cpp.o' failed
make[2]: *** [src/test_lib_json/CMakeFiles/jsoncpp_test.dir/main.cpp.o] Error 1
make[2]: Leaving directory '/var/tmp/portage/dev-libs/jsoncpp-0.10.2-r1/work/jsoncpp-0.10.2_build'
CMakeFiles/Makefile2:301: recipe for target 'src/test_lib_json/CMakeFiles/jsoncpp_test.dir/all' failed
make[1]: *** [src/test_lib_json/CMakeFiles/jsoncpp_test.dir/all] Error 2
make[1]: Leaving directory '/var/tmp/portage/dev-libs/jsoncpp-0.10.2-r1/work/jsoncpp-0.10.2_build'
Makefile:126: recipe for target 'all' failed
make: *** [all] Error 2
 * ERROR: dev-libs/jsoncpp-0.10.2-r1::gentoo failed (compile phase):
 *   emake failed

Portage 2.2.18 (python 2.7.9-final-0, default/linux/arm/13.0/armv5te/desktop, gcc-4.8.4, glibc-2.20-r2, 3.10.25-gentoo armv5tel)
=================================================================
System uname: Linux-3.10.25-gentoo-armv5tel-with-gentoo-2.2
KiB Mem:      513244 total,     34168 free
KiB Swap:    1535996 total,   1500764 free
Timestamp of repository gentoo: Tue, 16 Jun 2015 15:30:01 +0000
sh bash 4.3_p33-r2
ld GNU ld (Gentoo 2.24 p1.4) 2.24
ccache version 3.1.9 [disabled]
app-shells/bash:          4.3_p33-r2::gentoo
dev-lang/perl:            5.20.2::gentoo
dev-lang/python:          2.7.9-r1::gentoo, 3.2.5-r6::gentoo, 3.3.5-r1::gentoo, 3.4.1::gentoo
dev-util/ccache:          3.1.9-r4::gentoo
dev-util/cmake:           3.2.2::gentoo
dev-util/pkgconfig:       0.28-r2::gentoo
sys-apps/baselayout:      2.2::gentoo
sys-apps/openrc:          0.13.11::gentoo
sys-apps/sandbox:         2.6-r1::gentoo
sys-devel/autoconf:       2.13::gentoo, 2.69::gentoo
sys-devel/automake:       1.4_p6-r2::gentoo, 1.5-r2::gentoo, 1.6.3-r2::gentoo, 1.7.9-r3::gentoo, 1.8.5-r5::gentoo, 1.9.6-r4::gentoo, 1.10.3-r1::gentoo, 1.11.6-r1::gentoo, 1.12.6::gentoo, 1.13.4::gentoo, 1.14.1::gentoo
sys-devel/binutils:       2.24-r3::gentoo
sys-devel/gcc:            4.8.4::gentoo
sys-devel/gcc-config:     1.7.3::gentoo
sys-devel/libtool:        2.4.6::gentoo
sys-devel/make:           4.1-r1::gentoo
sys-kernel/linux-headers: 3.18::gentoo (virtual/os-headers)
sys-libs/glibc:           2.20-r2::gentoo
Repositories:

gentoo
    location: /usr/portage
    sync-type: rsync
    sync-uri: rsync://192.168.1.100/gentoo-portage
    priority: -1000

ACCEPT_KEYWORDS="arm"
ACCEPT_LICENSE="* -@EULA"
CBUILD="armv5tel-softfloat-linux-gnueabi"
CFLAGS="-O2 -march=armv5te -pipe"
CHOST="armv5tel-softfloat-linux-gnueabi"
CONFIG_PROTECT="/etc /usr/share/easy-rsa /usr/share/gnupg/qualified.txt /var/bind /var/vpopmail/etc"
CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /etc/dconf /etc/env.d /etc/fonts/fonts.conf /etc/gconf /etc/gentoo-release /etc/php/apache2-php5.4/ext-active/ /etc/php/apache2-php5.5/ext-active/ /etc/php/cgi-php5.4/ext-active/ /etc/php/cgi-php5.5/ext-active/ /etc/php/cli-php5.4/ext-active/ /etc/php/cli-php5.5/ext-active/ /etc/revdep-rebuild /etc/sandbox.d /etc/terminfo /etc/texmf/language.dat.d /etc/texmf/language.def.d /etc/texmf/updmap.d /etc/texmf/web2c"
CXXFLAGS="-O2 -march=armv5te -pipe"
DISTDIR="/mnt/distfiles"
EMERGE_DEFAULT_OPTS="--quiet-build=n --jobs=2 --keep-going --with-bdeps=y --backtrack=3"
FCFLAGS="-O2 -pipe -march=armv5te"
FEATURES="assume-digests binpkg-logs collision-protect config-protect-if-modified distlocks ebuild-locks fixlafiles merge-sync news parallel-fetch preserve-libs protect-owned sandbox sfperms strict test test-fail-continue unknown-features-warn unmerge-logs unmerge-orphans userfetch userpriv usersandbox usersync"
FFLAGS="-O2 -pipe -march=armv5te"
GENTOO_MIRRORS="http://distfiles.gentoo.org"
LANG="en_GB.utf8"
LDFLAGS="-Wl,-O1 -Wl,--as-needed"
MAKEOPTS="-j2"
PKGDIR="/usr/portage/packages"
PORTAGE_CONFIGROOT="/"
PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times --omit-dir-times --compress --force --whole-file --delete --stats --human-readable --timeout=180 --exclude=/distfiles --exclude=/local --exclude=/packages"
PORTAGE_TMPDIR="/var/tmp"
USE="X a52 aac acl acpi alsa apache2 arm berkdb bluetooth branding bzip2 cairo cdda cdr cli consolekit cracklib crypt cups cxx dbus dri dts dvd dvdr emboss encode exif fam firefox flac fortran gdbm gif glamor gpm gtk iconv jpeg kpathsea lcms ldap libnotify mad mng modules mp3 mp4 mpeg ncurses nls nptl ogg opengl openmp pam pango pcre pdf png policykit ppds qt3support qt4 readline sdl session spell ssl startup-notification svg tcpd test tiff truetype udev udisks unicode upower usb vorbis wxwidgets xcb xml xv xvid zlib" APACHE2_MODULES="authn_core authz_core socache_shmcb unixd actions alias auth_basic authn_alias authn_anon authn_dbm authn_default authn_file authz_dbm authz_default authz_groupfile authz_host authz_owner authz_user autoindex cache cgi cgid dav dav_fs dav_lock deflate dir disk_cache env expires ext_filter file_cache filter headers include info log_config logio mem_cache mime mime_magic negotiation rewrite setenvif speling status unique_id userdir usertrack vhost_alias" CALLIGRA_FEATURES="kexi words flow plan sheets stage tables krita karbon braindump author" CAMERAS="ptp2" COLLECTD_PLUGINS="df interface irq load memory rrdtool swap syslog" ELIBC="glibc" GPSD_PROTOCOLS="ashtech aivdm earthmate evermore fv18 garmin garmintxt gpsclock itrax mtk3301 nmea ntrip navcom oceanserver oldstyle oncore rtcm104v2 rtcm104v3 sirf superstar2 timing tsip tripmate tnt ublox ubx" INPUT_DEVICES="keyboard mouse evdev" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LIBREOFFICE_EXTENSIONS="presenter-console presenter-minimizer" OFFICE_IMPLEMENTATION="libreoffice" PHP_TARGETS="php5-2 php5-4 php5-5" PYTHON_SINGLE_TARGET="python2_7" PYTHON_TARGETS="python2_7 python3_3 python3_4" RUBY_TARGETS="ruby19 ruby20 ruby21" USERLAND="GNU" VIDEO_CARDS="exynos freedreno omap" XTABLES_ADDONS="quota2 psd pknock lscan length2 ipv4options ipset ipp2p iface geoip fuzzy condition tee tarpit sysrq steal rawnat logmark ipmark dhcpmac delude chaos account"
Unset:  CPPFLAGS, CTARGET, INSTALL_MASK, LC_ALL, PORTAGE_BUNZIP2_COMMAND, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS, USE_PYTHON
Comment 1 Markus Meier gentoo-dev 2015-08-08 08:56:13 UTC
The patch fixes this issue, thanks! And sorry for the long delay...
Comment 2 Johannes Huber (RETIRED) gentoo-dev 2015-08-10 19:57:51 UTC
(In reply to Markus Meier from comment #1)
> The patch fixes this issue, thanks! And sorry for the long delay...

Thanks for reporting + testing. This is fixed in git now.

https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=6a293f55fcc2a1d9fb75d0bbd33f2d26105c58d8