Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 546164 - Prefix: dev-libs/jsoncpp-0.10.1 error: ISO C++ does not support ‘long long’
Summary: Prefix: dev-libs/jsoncpp-0.10.1 error: ISO C++ does not support ‘long long’
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Unspecified (show other bugs)
Hardware: PPC OS X
: Normal normal (vote)
Assignee: Gentoo Linux bug wranglers
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2015-04-10 11:05 UTC by DIZ
Modified: 2015-04-11 13:53 UTC (History)
0 users

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


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description DIZ 2015-04-10 11:05:42 UTC
Prefix; darwin; ppc.

dev-libs/jsoncpp-0.10.1 pulled in by dev-util/cmake-3.2.1

Produces this error:

cd /Volumes/GENTOO/var/tmp/portage/dev-libs/jsoncpp-0.10.1/work/jsoncpp-0.10.1_build/src/lib_json && /Volumes/GENTOO/usr/bin/powerpc-apple-darwin9-g++  -DJSON_DLL_BUILD  -DNDEBUG -O2 -pipe-mcpu=G4 -mtune=G4  -Wall -Wextra -pedantic -Werror=strict-aliasing -I/Volumes/GENTOO/var/tmp/portage/dev-libs/jsoncpp-0.10.1/work/jsoncpp-0.10.1/include -I/Volumes/GENTOO/var/tmp/portage/dev-libs/jsoncpp-0.10.1/work/jsoncpp-0.10.1/src/lib_json/../../include    -o CMakeFiles/jsoncpp_lib_static.dir/json_reader.cpp.o -c /Volumes/GENTOO/var/tmp/portage/dev-libs/jsoncpp-0.10.1/work/jsoncpp-0.10.1/src/lib_json/json_reader.cpp
In file included from /Volumes/GENTOO/var/tmp/portage/dev-libs/jsoncpp-0.10.1/work/jsoncpp-0.10.1/include/json/assertions.h:13,
                 from /Volumes/GENTOO/var/tmp/portage/dev-libs/jsoncpp-0.10.1/work/jsoncpp-0.10.1/src/lib_json/json_reader.cpp:7:
/Volumes/GENTOO/var/tmp/portage/dev-libs/jsoncpp-0.10.1/work/jsoncpp-0.10.1/include/json/config.h:100: error: ISO C++ does not support ‘long long’
/Volumes/GENTOO/var/tmp/portage/dev-libs/jsoncpp-0.10.1/work/jsoncpp-0.10.1/include/json/config.h:101: error: ISO C++ does not support ‘long long’
In file included from /Volumes/GENTOO/var/tmp/portage/dev-libs/jsoncpp-0.10.1/work/jsoncpp-0.10.1/include/json/assertions.h:13,
                 from /Volumes/GENTOO/var/tmp/portage/dev-libs/jsoncpp-0.10.1/work/jsoncpp-0.10.1/src/lib_json/json_reader.cpp:7:
/Volumes/GENTOO/var/tmp/portage/dev-libs/jsoncpp-0.10.1/work/jsoncpp-0.10.1/include/json/config.h:100: error: ISO C++ does not support ‘long long’
/Volumes/GENTOO/var/tmp/portage/dev-libs/jsoncpp-0.10.1/work/jsoncpp-0.10.1/include/json/config.h:101: error: ISO C++ does not support ‘long long’
/Volumes/GENTOO/var/tmp/portage/dev-libs/jsoncpp-0.10.1/work/jsoncpp-0.10.1/src/lib_json/json_reader.cpp:1296: warning: unused parameter ‘tokenStart’
/Volumes/GENTOO/var/tmp/portage/dev-libs/jsoncpp-0.10.1/work/jsoncpp-0.10.1/src/lib_json/json_reader.cpp:1357: warning: unused parameter ‘tokenStart’
/Volumes/GENTOO/var/tmp/portage/dev-libs/jsoncpp-0.10.1/work/jsoncpp-0.10.1/src/lib_json/json_reader.cpp:1296: warning: unused parameter ‘tokenStart’
/Volumes/GENTOO/var/tmp/portage/dev-libs/jsoncpp-0.10.1/work/jsoncpp-0.10.1/src/lib_json/json_reader.cpp:1357: warning: unused parameter ‘tokenStart’
src/lib_json/CMakeFiles/jsoncpp_lib_static.dir/build.make:54: recipe for target 'src/lib_json/CMakeFiles/jsoncpp_lib_static.dir/json_reader.cpp.o' failed
make[2]: *** [src/lib_json/CMakeFiles/jsoncpp_lib_static.dir/json_reader.cpp.o] Error 1


Research shows this to be a function of the "-pedantic" flag. I created an overlay, thought that including the flag "-Wno-long-long" might be the solution? But not sure how to proceed, or where to include if so....

Thanks in advance for any suggestions.
Comment 1 DIZ 2015-04-11 13:53:16 UTC
FIXED/SOLVED

added the CXXFLAG and it compiled with no problem. Apologies.