Jira (FACT-1915) Facter doesn't compile

0 views
Skip to first unread message

Dylan Ratcliffe (JIRA)

unread,
Apr 5, 2019, 10:32:03 AM4/5/19
to puppe...@googlegroups.com
Dylan Ratcliffe created an issue
 
Facter / New Feature FACT-1915
Facter doesn't compile
Issue Type: New Feature New Feature
Affects Versions: FACT 3.12.2
Assignee: Unassigned
Created: 2019/04/05 7:31 AM
Environment:

source 'https://rubygems.org'
 
gem'facter', '3.12.2.cfacter.20181217'
gem 'pry' 

Priority: Normal Normal
Reporter: Dylan Ratcliffe

When installing using bundler it fails to compile with a number of errors:

Fetching gem metadata from https://rubygems.org/..........
Resolving dependencies...
Using bundler 1.17.2
Fetching facter 3.12.2.cfacter.20181217
Installing facter 3.12.2.cfacter.20181217 with native extensions
vim Gem
Gem::Ext::BuildError: ERROR: Failed to build gem native extension.current directory:
/Users/dylan/.rbenv/versions/2.6.1/lib/ruby/gems/2.6.0/gems/facter-3.12.2.cfacter.20181217/ext/facter
/Users/dylan/.rbenv/versions/2.6.1/bin/ruby -I /Users/dylan/.rbenv/versions/2.6.1/lib/ruby/2.6.0 -r
./siteconf20190405-28325-o4foxl.rb extconf.rb
checking for cmake... yescurrent directory:
/Users/dylan/.rbenv/versions/2.6.1/lib/ruby/gems/2.6.0/gems/facter-3.12.2.cfacter.20181217/ext/facter
make "DESTDIR=" clean
make: *** No rule to make target `clean'.  Stop.current directory:
/Users/dylan/.rbenv/versions/2.6.1/lib/ruby/gems/2.6.0/gems/facter-3.12.2.cfacter.20181217/ext/facter
make "DESTDIR="
mkdir -p "build/leatherman"
cd build/leatherman && \
/usr/local/bin/cmake -DLEATHERMAN_SHARED=OFF -DCMAKE_INSTALL_PREFIX=../../prefix -DLEATHERMAN_GETTEXT=OFF
/Users/dylan/.rbenv/versions/2.6.1/lib/ruby/gems/2.6.0/gems/facter-3.12.2.cfacter.20181217/ext/facter/leatherman && \
        make install
-- The C compiler identification is AppleClang 10.0.1.10010046
-- The CXX compiler identification is AppleClang 10.0.1.10010046
-- Check for working C compiler:
/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/cc
-- Check for working C compiler:
/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/cc -- works
-- Detecting C compiler ABI info
-- Detecting C compiler ABI info - done
-- Detecting C compile features
-- Detecting C compile features - done
-- Check for working CXX compiler:
/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/c++
-- Check for working CXX compiler:
/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/c++ -- works
-- Detecting CXX compiler ABI info
-- Detecting CXX compiler ABI info - done
-- Detecting CXX compile features
-- Detecting CXX compile features - done
-- Defaulting to a release build.
-- CLANG_VERSION_STRING:         10.0
-- Could not find gettext executables, skipping gettext_templates.
-- Could not find gettext executables, skipping gettext_compile.
-- Unpacking
/Users/dylan/.rbenv/versions/2.6.1/lib/ruby/gems/2.6.0/gems/facter-3.12.2.cfacter.20181217/ext/facter/leatherman/vendor/Catch-1.10.0.zip
into
/Users/dylan/.rbenv/versions/2.6.1/lib/ruby/gems/2.6.0/gems/facter-3.12.2.cfacter.20181217/ext/facter/build/leatherman/src/Catch-1.10.0
-- Boost version: 1.69.0
-- Boost version: 1.69.0
-- Found the following Boost libraries:
--   date_time
--   chrono
--   system
-- Boost version: 1.69.0
-- Found the following Boost libraries:
--   locale
--   system
-- Could not find gettext executables, skipping gettext_templates.
-- Could not find gettext executables, skipping gettext_compile.
-- Looking for pthread.h
-- Looking for pthread.h - found
-- Looking for pthread_create
-- Looking for pthread_create - found
-- Found Threads: TRUE
-- Boost version: 1.69.0
-- Found the following Boost libraries:
--   log
--   log_setup
--   thread
--   date_time
--   filesystem
--   system
--   chrono
--   regex
--   atomic
-- Could not find gettext executables, skipping gettext_templates.
-- Could not find gettext executables, skipping gettext_compile.
-- Unpacking
/Users/dylan/.rbenv/versions/2.6.1/lib/ruby/gems/2.6.0/gems/facter-3.12.2.cfacter.20181217/ext/facter/leatherman/vendor/rapidjson-1.0.2.zip
into
/Users/dylan/.rbenv/versions/2.6.1/lib/ruby/gems/2.6.0/gems/facter-3.12.2.cfacter.20181217/ext/facter/build/leatherman/src/rapidjson
-- Boost version: 1.69.0
-- Found the following Boost libraries:
--   regex
-- Boost version: 1.69.0
-- Found the following Boost libraries:
--   regex
--   filesystem
--   system
-- Boost version: 1.69.0
-- Found the following Boost libraries:
--   regex
--   system
--   filesystem
-- Found CURL: /usr/lib/libcurl.dylib (found version "7.54.0")
-- Performing Test COMPILER_HAS_HIDDEN_VISIBILITY
-- Performing Test COMPILER_HAS_HIDDEN_VISIBILITY - Success
-- Performing Test COMPILER_HAS_HIDDEN_INLINE_VISIBILITY
-- Performing Test COMPILER_HAS_HIDDEN_INLINE_VISIBILITY - Success
-- Performing Test COMPILER_HAS_DEPRECATED_ATTR
-- Performing Test COMPILER_HAS_DEPRECATED_ATTR - Failed
-- Performing Test COMPILER_HAS_DEPRECATED
-- Performing Test COMPILER_HAS_DEPRECATED - Failed
-- Boost version: 1.69.0
-- Found the following Boost libraries:
--   regex
--   system
-- Boost version: 1.69.0
-- Found the following Boost libraries:
--   regex
--   filesystem
--   system
-- Boost version: 1.69.0
-- Found the following Boost libraries:
--   regex
--   filesystem
--   system
-- Found PythonInterp: /Users/dylan/.pyenv/shims/python (found version "2.7")
-- Configuring done
-- Generating done
-- Build files have been written to:
/Users/dylan/.rbenv/versions/2.6.1/lib/ruby/gems/2.6.0/gems/facter-3.12.2.cfacter.20181217/ext/facter/build/leatherman
Scanning dependencies of target leatherman_util
[  1%] Building CXX object util/CMakeFiles/leatherman_util.dir/src/strings.cc.o
In file included from
/Users/dylan/.rbenv/versions/2.6.1/lib/ruby/gems/2.6.0/gems/facter-3.12.2.cfacter.20181217/ext/facter/leatherman/util/src/strings.cc:4:
In file included from /usr/local/include/boost/uuid/uuid_generators.hpp:17:
In file included from /usr/local/include/boost/uuid/random_generator.hpp:17:
In file included from /usr/local/include/boost/random/mersenne_twister.hpp:30:
In file included from /usr/local/include/boost/random/detail/seed_impl.hpp:26:
In file included from /usr/local/include/boost/random/detail/const_mod.hpp:23:
In file included from /usr/local/include/boost/random/detail/large_arithmetic.hpp:19:
In file included from /usr/local/include/boost/random/detail/integer_log2.hpp:19:
/usr/local/include/boost/pending/integer_log2.hpp:7:1: warning: This header is deprecated. Use
<boost/integer/integer_log2.hpp> instead. [-W#pragma-messages]
BOOST_HEADER_DEPRECATED("<boost/integer/integer_log2.hpp>");
^
/usr/local/include/boost/config/header_deprecated.hpp:23:37: note: expanded from macro 'BOOST_HEADER_DEPRECATED'
# define BOOST_HEADER_DEPRECATED(a) BOOST_PRAGMA_MESSAGE("This header is deprecated. Use " a " instead.")
                                    ^
/usr/local/include/boost/config/pragma_message.hpp:24:34: note: expanded from macro 'BOOST_PRAGMA_MESSAGE'
# define BOOST_PRAGMA_MESSAGE(x) _Pragma(BOOST_STRINGIZE(message(x)))
                                 ^
<scratch space>:243:2: note: expanded from here
 message("This header is deprecated. Use " "<boost/integer/integer_log2.hpp>" " instead.")
 ^
1 warning generated.
[  2%] Building CXX object util/CMakeFiles/leatherman_util.dir/src/time.cc.o
[  4%] Building CXX object util/CMakeFiles/leatherman_util.dir/src/environment.cc.o
[  5%] Building CXX object util/CMakeFiles/leatherman_util.dir/src/scope_exit.cc.o
[  7%] Building CXX object util/CMakeFiles/leatherman_util.dir/src/scoped_env.cc.o
[  8%] Building CXX object util/CMakeFiles/leatherman_util.dir/src/uri.cc.o
[ 10%] Building CXX object util/CMakeFiles/leatherman_util.dir/src/posix/time.cc.o
[ 11%] Building CXX object util/CMakeFiles/leatherman_util.dir/src/posix/environment.cc.o
[ 13%] Building CXX object util/CMakeFiles/leatherman_util.dir/src/posix/scoped_descriptor.cc.o
[ 14%] Linking CXX static library leatherman_util.a
[ 14%] Built target leatherman_util
Scanning dependencies of target leatherman_locale
[ 15%] Building CXX object locale/CMakeFiles/leatherman_locale.dir/src/locale.cc.o
[ 17%] Linking CXX static library leatherman_locale.a
[ 17%] Built target leatherman_locale
Scanning dependencies of target leatherman_logging
[ 18%] Building CXX object logging/CMakeFiles/leatherman_logging.dir/src/logging.cc.o
[ 20%] Building CXX object logging/CMakeFiles/leatherman_logging.dir/src/posix/logging.cc.o
[ 21%] Linking CXX static library leatherman_logging.a
[ 21%] Built target leatherman_logging
Scanning dependencies of target leatherman_json_container
[ 23%] Building CXX object json_container/CMakeFiles/leatherman_json_container.dir/src/json_container.cc.o
In file included from
/Users/dylan/.rbenv/versions/2.6.1/lib/ruby/gems/2.6.0/gems/facter-3.12.2.cfacter.20181217/ext/facter/leatherman/json_container/src/json_container.cc:4:
In file included from
/Users/dylan/.rbenv/versions/2.6.1/lib/ruby/gems/2.6.0/gems/facter-3.12.2.cfacter.20181217/ext/facter/build/leatherman/src/rapidjson/include/rapidjson/document.h:20:
In file included from
/Users/dylan/.rbenv/versions/2.6.1/lib/ruby/gems/2.6.0/gems/facter-3.12.2.cfacter.20181217/ext/facter/build/leatherman/src/rapidjson/include/rapidjson/reader.h:23:
/Users/dylan/.rbenv/versions/2.6.1/lib/ruby/gems/2.6.0/gems/facter-3.12.2.cfacter.20181217/ext/facter/build/leatherman/src/rapidjson/include/rapidjson/internal/stack.h:38:5:
error: macro expansion producing 'defined' has undefined behavior [-Werror,-Wexpansion-to-defined]
#if RAPIDJSON_HAS_CXX11_RVALUE_REFS
    ^
/Users/dylan/.rbenv/versions/2.6.1/lib/ruby/gems/2.6.0/gems/facter-3.12.2.cfacter.20181217/ext/facter/build/leatherman/src/rapidjson/include/rapidjson/internal/../rapidjson.h:442:6:
note: expanded from macro 'RAPIDJSON_HAS_CXX11_RVALUE_REFS'
    (defined(_LIBCPP_VERSION) || defined(__GLIBCXX__) && __GLIBCXX__ >= 20080306)
     ^
In file included from
/Users/dylan/.rbenv/versions/2.6.1/lib/ruby/gems/2.6.0/gems/facter-3.12.2.cfacter.20181217/ext/facter/leatherman/json_container/src/json_container.cc:4:
In file included from
/Users/dylan/.rbenv/versions/2.6.1/lib/ruby/gems/2.6.0/gems/facter-3.12.2.cfacter.20181217/ext/facter/build/leatherman/src/rapidjson/include/rapidjson/document.h:20:
In file included from
/Users/dylan/.rbenv/versions/2.6.1/lib/ruby/gems/2.6.0/gems/facter-3.12.2.cfacter.20181217/ext/facter/build/leatherman/src/rapidjson/include/rapidjson/reader.h:23:
/Users/dylan/.rbenv/versions/2.6.1/lib/ruby/gems/2.6.0/gems/facter-3.12.2.cfacter.20181217/ext/facter/build/leatherman/src/rapidjson/include/rapidjson/internal/stack.h:38:5:
error: macro expansion producing 'defined' has undefined behavior [-Werror,-Wexpansion-to-defined]
/Users/dylan/.rbenv/versions/2.6.1/lib/ruby/gems/2.6.0/gems/facter-3.12.2.cfacter.20181217/ext/facter/build/leatherman/src/rapidjson/include/rapidjson/internal/../rapidjson.h:442:34:
note: expanded from macro 'RAPIDJSON_HAS_CXX11_RVALUE_REFS'
    (defined(_LIBCPP_VERSION) || defined(__GLIBCXX__) && __GLIBCXX__ >= 20080306)
                                 ^
In file included from
/Users/dylan/.rbenv/versions/2.6.1/lib/ruby/gems/2.6.0/gems/facter-3.12.2.cfacter.20181217/ext/facter/leatherman/json_container/src/json_container.cc:4:
In file included from
/Users/dylan/.rbenv/versions/2.6.1/lib/ruby/gems/2.6.0/gems/facter-3.12.2.cfacter.20181217/ext/facter/build/leatherman/src/rapidjson/include/rapidjson/document.h:20:
In file included from
/Users/dylan/.rbenv/versions/2.6.1/lib/ruby/gems/2.6.0/gems/facter-3.12.2.cfacter.20181217/ext/facter/build/leatherman/src/rapidjson/include/rapidjson/reader.h:23:
/Users/dylan/.rbenv/versions/2.6.1/lib/ruby/gems/2.6.0/gems/facter-3.12.2.cfacter.20181217/ext/facter/build/leatherman/src/rapidjson/include/rapidjson/internal/stack.h:60:5:
error: macro expansion producing 'defined' has undefined behavior [-Werror,-Wexpansion-to-defined]
#if RAPIDJSON_HAS_CXX11_RVALUE_REFS
    ^
/Users/dylan/.rbenv/versions/2.6.1/lib/ruby/gems/2.6.0/gems/facter-3.12.2.cfacter.20181217/ext/facter/build/leatherman/src/rapidjson/include/rapidjson/internal/../rapidjson.h:442:6:
note: expanded from macro 'RAPIDJSON_HAS_CXX11_RVALUE_REFS'
    (defined(_LIBCPP_VERSION) || defined(__GLIBCXX__) && __GLIBCXX__ >= 20080306)
     ^
In file included from
/Users/dylan/.rbenv/versions/2.6.1/lib/ruby/gems/2.6.0/gems/facter-3.12.2.cfacter.20181217/ext/facter/leatherman/json_container/src/json_container.cc:4:
In file included from
/Users/dylan/.rbenv/versions/2.6.1/lib/ruby/gems/2.6.0/gems/facter-3.12.2.cfacter.20181217/ext/facter/build/leatherman/src/rapidjson/include/rapidjson/document.h:20:
In file included from
/Users/dylan/.rbenv/versions/2.6.1/lib/ruby/gems/2.6.0/gems/facter-3.12.2.cfacter.20181217/ext/facter/build/leatherman/src/rapidjson/include/rapidjson/reader.h:23:
/Users/dylan/.rbenv/versions/2.6.1/lib/ruby/gems/2.6.0/gems/facter-3.12.2.cfacter.20181217/ext/facter/build/leatherman/src/rapidjson/include/rapidjson/internal/stack.h:60:5:
error: macro expansion producing 'defined' has undefined behavior [-Werror,-Wexpansion-to-defined]
/Users/dylan/.rbenv/versions/2.6.1/lib/ruby/gems/2.6.0/gems/facter-3.12.2.cfacter.20181217/ext/facter/build/leatherman/src/rapidjson/include/rapidjson/internal/../rapidjson.h:442:34:
note: expanded from macro 'RAPIDJSON_HAS_CXX11_RVALUE_REFS'
    (defined(_LIBCPP_VERSION) || defined(__GLIBCXX__) && __GLIBCXX__ >= 20080306)
                                 ^
In file included from
/Users/dylan/.rbenv/versions/2.6.1/lib/ruby/gems/2.6.0/gems/facter-3.12.2.cfacter.20181217/ext/facter/leatherman/json_container/src/json_container.cc:4:
/Users/dylan/.rbenv/versions/2.6.1/lib/ruby/gems/2.6.0/gems/facter-3.12.2.cfacter.20181217/ext/facter/build/leatherman/src/rapidjson/include/rapidjson/document.h:62:5:
error: macro expansion producing 'defined' has undefined behavior [-Werror,-Wexpansion-to-defined]
#if RAPIDJSON_HAS_CXX11_RVALUE_REFS
    ^
/Users/dylan/.rbenv/versions/2.6.1/lib/ruby/gems/2.6.0/gems/facter-3.12.2.cfacter.20181217/ext/facter/build/leatherman/src/rapidjson/include/rapidjson/error/../rapidjson.h:442:6:
note: expanded from macro 'RAPIDJSON_HAS_CXX11_RVALUE_REFS'
    (defined(_LIBCPP_VERSION) || defined(__GLIBCXX__) && __GLIBCXX__ >= 20080306)
     ^
In file included from
/Users/dylan/.rbenv/versions/2.6.1/lib/ruby/gems/2.6.0/gems/facter-3.12.2.cfacter.20181217/ext/facter/leatherman/json_container/src/json_container.cc:4:
/Users/dylan/.rbenv/versions/2.6.1/lib/ruby/gems/2.6.0/gems/facter-3.12.2.cfacter.20181217/ext/facter/build/leatherman/src/rapidjson/include/rapidjson/document.h:62:5:
error: macro expansion producing 'defined' has undefined behavior [-Werror,-Wexpansion-to-defined]
/Users/dylan/.rbenv/versions/2.6.1/lib/ruby/gems/2.6.0/gems/facter-3.12.2.cfacter.20181217/ext/facter/build/leatherman/src/rapidjson/include/rapidjson/error/../rapidjson.h:442:34:
note: expanded from macro 'RAPIDJSON_HAS_CXX11_RVALUE_REFS'
    (defined(_LIBCPP_VERSION) || defined(__GLIBCXX__) && __GLIBCXX__ >= 20080306)
                                 ^
In file included from
/Users/dylan/.rbenv/versions/2.6.1/lib/ruby/gems/2.6.0/gems/facter-3.12.2.cfacter.20181217/ext/facter/leatherman/json_container/src/json_container.cc:4:
/Users/dylan/.rbenv/versions/2.6.1/lib/ruby/gems/2.6.0/gems/facter-3.12.2.cfacter.20181217/ext/facter/build/leatherman/src/rapidjson/include/rapidjson/document.h:438:5:
error: macro expansion producing 'defined' has undefined behavior [-Werror,-Wexpansion-to-defined]
#if RAPIDJSON_HAS_CXX11_RVALUE_REFS
    ^
/Users/dylan/.rbenv/versions/2.6.1/lib/ruby/gems/2.6.0/gems/facter-3.12.2.cfacter.20181217/ext/facter/build/leatherman/src/rapidjson/include/rapidjson/error/../rapidjson.h:442:6:
note: expanded from macro 'RAPIDJSON_HAS_CXX11_RVALUE_REFS'
    (defined(_LIBCPP_VERSION) || defined(__GLIBCXX__) && __GLIBCXX__ >= 20080306)
     ^
In file included from
/Users/dylan/.rbenv/versions/2.6.1/lib/ruby/gems/2.6.0/gems/facter-3.12.2.cfacter.20181217/ext/facter/leatherman/json_container/src/json_container.cc:4:
/Users/dylan/.rbenv/versions/2.6.1/lib/ruby/gems/2.6.0/gems/facter-3.12.2.cfacter.20181217/ext/facter/build/leatherman/src/rapidjson/include/rapidjson/document.h:438:5:
error: macro expansion producing 'defined' has undefined behavior [-Werror,-Wexpansion-to-defined]
/Users/dylan/.rbenv/versions/2.6.1/lib/ruby/gems/2.6.0/gems/facter-3.12.2.cfacter.20181217/ext/facter/build/leatherman/src/rapidjson/include/rapidjson/error/../rapidjson.h:442:34:
note: expanded from macro 'RAPIDJSON_HAS_CXX11_RVALUE_REFS'
    (defined(_LIBCPP_VERSION) || defined(__GLIBCXX__) && __GLIBCXX__ >= 20080306)
                                 ^
In file included from
/Users/dylan/.rbenv/versions/2.6.1/lib/ruby/gems/2.6.0/gems/facter-3.12.2.cfacter.20181217/ext/facter/leatherman/json_container/src/json_container.cc:4:
/Users/dylan/.rbenv/versions/2.6.1/lib/ruby/gems/2.6.0/gems/facter-3.12.2.cfacter.20181217/ext/facter/build/leatherman/src/rapidjson/include/rapidjson/document.h:600:5:
error: macro expansion producing 'defined' has undefined behavior [-Werror,-Wexpansion-to-defined]
#if RAPIDJSON_HAS_CXX11_RVALUE_REFS
    ^
/Users/dylan/.rbenv/versions/2.6.1/lib/ruby/gems/2.6.0/gems/facter-3.12.2.cfacter.20181217/ext/facter/build/leatherman/src/rapidjson/include/rapidjson/error/../rapidjson.h:442:6:
note: expanded from macro 'RAPIDJSON_HAS_CXX11_RVALUE_REFS'
    (defined(_LIBCPP_VERSION) || defined(__GLIBCXX__) && __GLIBCXX__ >= 20080306)
     ^
In file included from
/Users/dylan/.rbenv/versions/2.6.1/lib/ruby/gems/2.6.0/gems/facter-3.12.2.cfacter.20181217/ext/facter/leatherman/json_container/src/json_container.cc:4:
/Users/dylan/.rbenv/versions/2.6.1/lib/ruby/gems/2.6.0/gems/facter-3.12.2.cfacter.20181217/ext/facter/build/leatherman/src/rapidjson/include/rapidjson/document.h:600:5:
error: macro expansion producing 'defined' has undefined behavior [-Werror,-Wexpansion-to-defined]
/Users/dylan/.rbenv/versions/2.6.1/lib/ruby/gems/2.6.0/gems/facter-3.12.2.cfacter.20181217/ext/facter/build/leatherman/src/rapidjson/include/rapidjson/error/../rapidjson.h:442:34:
note: expanded from macro 'RAPIDJSON_HAS_CXX11_RVALUE_REFS'
    (defined(_LIBCPP_VERSION) || defined(__GLIBCXX__) && __GLIBCXX__ >= 20080306)
                                 ^
In file included from
/Users/dylan/.rbenv/versions/2.6.1/lib/ruby/gems/2.6.0/gems/facter-3.12.2.cfacter.20181217/ext/facter/leatherman/json_container/src/json_container.cc:4:
/Users/dylan/.rbenv/versions/2.6.1/lib/ruby/gems/2.6.0/gems/facter-3.12.2.cfacter.20181217/ext/facter/build/leatherman/src/rapidjson/include/rapidjson/document.h:1042:5:
error: macro expansion producing 'defined' has undefined behavior [-Werror,-Wexpansion-to-defined]
#if RAPIDJSON_HAS_CXX11_RVALUE_REFS
    ^
/Users/dylan/.rbenv/versions/2.6.1/lib/ruby/gems/2.6.0/gems/facter-3.12.2.cfacter.20181217/ext/facter/build/leatherman/src/rapidjson/include/rapidjson/error/../rapidjson.h:442:6:
note: expanded from macro 'RAPIDJSON_HAS_CXX11_RVALUE_REFS'
    (defined(_LIBCPP_VERSION) || defined(__GLIBCXX__) && __GLIBCXX__ >= 20080306)
     ^
In file included from
/Users/dylan/.rbenv/versions/2.6.1/lib/ruby/gems/2.6.0/gems/facter-3.12.2.cfacter.20181217/ext/facter/leatherman/json_container/src/json_container.cc:4:
/Users/dylan/.rbenv/versions/2.6.1/lib/ruby/gems/2.6.0/gems/facter-3.12.2.cfacter.20181217/ext/facter/build/leatherman/src/rapidjson/include/rapidjson/document.h:1042:5:
error: macro expansion producing 'defined' has undefined behavior [-Werror,-Wexpansion-to-defined]
/Users/dylan/.rbenv/versions/2.6.1/lib/ruby/gems/2.6.0/gems/facter-3.12.2.cfacter.20181217/ext/facter/build/leatherman/src/rapidjson/include/rapidjson/error/../rapidjson.h:442:34:
note: expanded from macro 'RAPIDJSON_HAS_CXX11_RVALUE_REFS'
    (defined(_LIBCPP_VERSION) || defined(__GLIBCXX__) && __GLIBCXX__ >= 20080306)
                                 ^
In file included from
/Users/dylan/.rbenv/versions/2.6.1/lib/ruby/gems/2.6.0/gems/facter-3.12.2.cfacter.20181217/ext/facter/leatherman/json_container/src/json_container.cc:4:
/Users/dylan/.rbenv/versions/2.6.1/lib/ruby/gems/2.6.0/gems/facter-3.12.2.cfacter.20181217/ext/facter/build/leatherman/src/rapidjson/include/rapidjson/document.h:1303:5:
error: macro expansion producing 'defined' has undefined behavior [-Werror,-Wexpansion-to-defined]
#if RAPIDJSON_HAS_CXX11_RVALUE_REFS
    ^
/Users/dylan/.rbenv/versions/2.6.1/lib/ruby/gems/2.6.0/gems/facter-3.12.2.cfacter.20181217/ext/facter/build/leatherman/src/rapidjson/include/rapidjson/error/../rapidjson.h:442:6:
note: expanded from macro 'RAPIDJSON_HAS_CXX11_RVALUE_REFS'
    (defined(_LIBCPP_VERSION) || defined(__GLIBCXX__) && __GLIBCXX__ >= 20080306)
     ^
In file included from
/Users/dylan/.rbenv/versions/2.6.1/lib/ruby/gems/2.6.0/gems/facter-3.12.2.cfacter.20181217/ext/facter/leatherman/json_container/src/json_container.cc:4:
/Users/dylan/.rbenv/versions/2.6.1/lib/ruby/gems/2.6.0/gems/facter-3.12.2.cfacter.20181217/ext/facter/build/leatherman/src/rapidjson/include/rapidjson/document.h:1303:5:
error: macro expansion producing 'defined' has undefined behavior [-Werror,-Wexpansion-to-defined]
/Users/dylan/.rbenv/versions/2.6.1/lib/ruby/gems/2.6.0/gems/facter-3.12.2.cfacter.20181217/ext/facter/build/leatherman/src/rapidjson/include/rapidjson/error/../rapidjson.h:442:34:
note: expanded from macro 'RAPIDJSON_HAS_CXX11_RVALUE_REFS'
    (defined(_LIBCPP_VERSION) || defined(__GLIBCXX__) && __GLIBCXX__ >= 20080306)
                                 ^
In file included from
/Users/dylan/.rbenv/versions/2.6.1/lib/ruby/gems/2.6.0/gems/facter-3.12.2.cfacter.20181217/ext/facter/leatherman/json_container/src/json_container.cc:4:
/Users/dylan/.rbenv/versions/2.6.1/lib/ruby/gems/2.6.0/gems/facter-3.12.2.cfacter.20181217/ext/facter/build/leatherman/src/rapidjson/include/rapidjson/document.h:1738:5:
error: macro expansion producing 'defined' has undefined behavior [-Werror,-Wexpansion-to-defined]
#if RAPIDJSON_HAS_CXX11_RVALUE_REFS
    ^
/Users/dylan/.rbenv/versions/2.6.1/lib/ruby/gems/2.6.0/gems/facter-3.12.2.cfacter.20181217/ext/facter/build/leatherman/src/rapidjson/include/rapidjson/error/../rapidjson.h:442:6:
note: expanded from macro 'RAPIDJSON_HAS_CXX11_RVALUE_REFS'
    (defined(_LIBCPP_VERSION) || defined(__GLIBCXX__) && __GLIBCXX__ >= 20080306)
     ^
In file included from
/Users/dylan/.rbenv/versions/2.6.1/lib/ruby/gems/2.6.0/gems/facter-3.12.2.cfacter.20181217/ext/facter/leatherman/json_container/src/json_container.cc:4:
/Users/dylan/.rbenv/versions/2.6.1/lib/ruby/gems/2.6.0/gems/facter-3.12.2.cfacter.20181217/ext/facter/build/leatherman/src/rapidjson/include/rapidjson/document.h:1738:5:
error: macro expansion producing 'defined' has undefined behavior [-Werror,-Wexpansion-to-defined]
/Users/dylan/.rbenv/versions/2.6.1/lib/ruby/gems/2.6.0/gems/facter-3.12.2.cfacter.20181217/ext/facter/build/leatherman/src/rapidjson/include/rapidjson/error/../rapidjson.h:442:34:
note: expanded from macro 'RAPIDJSON_HAS_CXX11_RVALUE_REFS'
    (defined(_LIBCPP_VERSION) || defined(__GLIBCXX__) && __GLIBCXX__ >= 20080306)
                                 ^
In file included from
/Users/dylan/.rbenv/versions/2.6.1/lib/ruby/gems/2.6.0/gems/facter-3.12.2.cfacter.20181217/ext/facter/leatherman/json_container/src/json_container.cc:4:
/Users/dylan/.rbenv/versions/2.6.1/lib/ruby/gems/2.6.0/gems/facter-3.12.2.cfacter.20181217/ext/facter/build/leatherman/src/rapidjson/include/rapidjson/document.h:1757:5:
error: macro expansion producing 'defined' has undefined behavior [-Werror,-Wexpansion-to-defined]
#if RAPIDJSON_HAS_CXX11_RVALUE_REFS
    ^
/Users/dylan/.rbenv/versions/2.6.1/lib/ruby/gems/2.6.0/gems/facter-3.12.2.cfacter.20181217/ext/facter/build/leatherman/src/rapidjson/include/rapidjson/error/../rapidjson.h:442:6:
note: expanded from macro 'RAPIDJSON_HAS_CXX11_RVALUE_REFS'
    (defined(_LIBCPP_VERSION) || defined(__GLIBCXX__) && __GLIBCXX__ >= 20080306)
     ^
In file included from
/Users/dylan/.rbenv/versions/2.6.1/lib/ruby/gems/2.6.0/gems/facter-3.12.2.cfacter.20181217/ext/facter/leatherman/json_container/src/json_container.cc:4:
/Users/dylan/.rbenv/versions/2.6.1/lib/ruby/gems/2.6.0/gems/facter-3.12.2.cfacter.20181217/ext/facter/build/leatherman/src/rapidjson/include/rapidjson/document.h:1757:5:
error: macro expansion producing 'defined' has undefined behavior [-Werror,-Wexpansion-to-defined]
/Users/dylan/.rbenv/versions/2.6.1/lib/ruby/gems/2.6.0/gems/facter-3.12.2.cfacter.20181217/ext/facter/build/leatherman/src/rapidjson/include/rapidjson/error/../rapidjson.h:442:34:
note: expanded from macro 'RAPIDJSON_HAS_CXX11_RVALUE_REFS'
    (defined(_LIBCPP_VERSION) || defined(__GLIBCXX__) && __GLIBCXX__ >= 20080306)
                                 ^
In file included from
/Users/dylan/.rbenv/versions/2.6.1/lib/ruby/gems/2.6.0/gems/facter-3.12.2.cfacter.20181217/ext/facter/leatherman/json_container/src/json_container.cc:5:
/Users/dylan/.rbenv/versions/2.6.1/lib/ruby/gems/2.6.0/gems/facter-3.12.2.cfacter.20181217/ext/facter/build/leatherman/src/rapidjson/include/rapidjson/stringbuffer.h:20:5:
error: macro expansion producing 'defined' has undefined behavior [-Werror,-Wexpansion-to-defined]
#if RAPIDJSON_HAS_CXX11_RVALUE_REFS
    ^
/Users/dylan/.rbenv/versions/2.6.1/lib/ruby/gems/2.6.0/gems/facter-3.12.2.cfacter.20181217/ext/facter/build/leatherman/src/rapidjson/include/rapidjson/error/../rapidjson.h:442:6:
note: expanded from macro 'RAPIDJSON_HAS_CXX11_RVALUE_REFS'
    (defined(_LIBCPP_VERSION) || defined(__GLIBCXX__) && __GLIBCXX__ >= 20080306)
     ^
fatal error: too many errors emitted, stopping now [-ferror-limit=]
20 errors generated.
make[3]: *** [json_container/CMakeFiles/leatherman_json_container.dir/src/json_container.cc.o] Error 1
make[2]: *** [json_container/CMakeFiles/leatherman_json_container.dir/all] Error 2
make[1]: *** [all] Error 2
make: *** [leatherman.built] Error 2make failed, exit code 2Gem files will remain installed in
/Users/dylan/.rbenv/versions/2.6.1/lib/ruby/gems/2.6.0/gems/facter-3.12.2.cfacter.20181217 for inspection.
Results logged to
/Users/dylan/.rbenv/versions/2.6.1/lib/ruby/gems/2.6.0/extensions/x86_64-darwin-18/2.6.0-static/facter-3.12.2.cfacter.20181217/gem_make.outAn error occurred while installing facter (3.12.2.cfacter.20181217), and Bundler cannot continue.
Make sure that `gem install facter -v '3.12.2.cfacter.20181217' --source 'https://rubygems.org/'` succeeds before
bundling. 

People developing custom facts should be able to test against a modern version of facter and these errors seem very simple to fix.

 

Add Comment Add Comment
 
This message was sent by Atlassian JIRA (v7.7.1#77002-sha1:e75ca93)
Atlassian logo

Claudia Petty (Jira)

unread,
Jun 21, 2023, 8:43:04 AM6/21/23
to puppe...@googlegroups.com
Claudia Petty updated an issue
Change By: Claudia Petty
Labels: new-feature
This message was sent by Atlassian Jira (v8.20.21#820021-sha1:38274c8)
Atlassian logo
Reply all
Reply to author
Forward
0 new messages