pkgsrc-Users archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
devel/protobuff: diff for -current (needed for Darwin?)
Dear pkgsrc-users,
please see the diff attached:
- - - - - - - - - - %< - - - - - - - - - -
mk ~/pkgsrc $ diff -ruN --exclude CVS pkgsrc/devel/protobuf/Makefile ../Makefile
--- pkgsrc/devel/protobuf/Makefile 2023-11-19 11:26:39
+++ ../Makefile 2023-11-19 11:25:29
@@ -21,6 +21,9 @@
USE_CXX_FEATURES= c++14
USE_LANGUAGES= c c++
+# USE_CXX_FEATURES does not affect configure phase, but is needed there
+CXXFLAGS+= -std=c++14
+
CMAKE_ARGS+= -Dprotobuf_ABSL_PROVIDER=package
CMAKE_ARGS+= -Dprotobuf_BUILD_SHARED_LIBS=ON
# requires googletest to be checked out in third_party/googletest
- - - - - - - - - - %< - - - - - - - - - -
Otherwise it fails with the following errors:
- - - - - - - - - - %< - - - - - - - - - -
===> Building for protobuf-25.1
[ 0%] Building CXX object third_party/utf8_range/CMakeFiles/utf8_validity.dir/utf8_validity.cc.o
[ 0%] Building C object third_party/utf8_range/CMakeFiles/utf8_range.dir/naive.c.o
[ 0%] Building C object third_party/utf8_range/CMakeFiles/utf8_range.dir/range2-sse.c.o
[ 1%] Building C object third_party/utf8_range/CMakeFiles/utf8_range.dir/range2-neon.c.o
[ 2%] Linking C static library libutf8_range.a
[ 2%] Built target utf8_range
In file included from /Users/mk/pkgsrc/pkgsrc/devel/protobuf/work/protobuf-25.1/third_party/utf8_range/utf8_validity.cc:18:
In file included from /Users/mk/pkgsrc/pkgsrc/devel/protobuf/work/protobuf-25.1/third_party/utf8_range/utf8_validity.h:10:
In file included from /Users/mk/pkgsrc/pkgsrc/devel/protobuf/work/.buildlink/include/absl/strings/string_view.h:39:
In file included from /Users/mk/pkgsrc/pkgsrc/devel/protobuf/work/.buildlink/include/absl/base/attributes.h:37:
In file included from /Users/mk/pkgsrc/pkgsrc/devel/protobuf/work/.buildlink/include/absl/base/config.h:86:
/Users/mk/pkgsrc/pkgsrc/devel/protobuf/work/.buildlink/include/absl/base/policy_checks.h:79:2: error: "C++ versions less than C++14 are not supported."
#error "C++ versions less than C++14 are not supported."
^
In file included from /Users/mk/pkgsrc/pkgsrc/devel/protobuf/work/protobuf-25.1/third_party/utf8_range/utf8_validity.cc:18:
In file included from /Users/mk/pkgsrc/pkgsrc/devel/protobuf/work/protobuf-25.1/third_party/utf8_range/utf8_validity.h:10:
In file included from /Users/mk/pkgsrc/pkgsrc/devel/protobuf/work/.buildlink/include/absl/strings/string_view.h:39:
In file included from /Users/mk/pkgsrc/pkgsrc/devel/protobuf/work/.buildlink/include/absl/base/attributes.h:37:
/Users/mk/pkgsrc/pkgsrc/devel/protobuf/work/.buildlink/include/absl/base/config.h:156:15: error: static assertion expression is not an integral constant expression
static_assert(ABSL_INTERNAL_INLINE_NAMESPACE_STR[0] != '\0',
~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/Users/mk/pkgsrc/pkgsrc/devel/protobuf/work/.buildlink/include/absl/base/config.h:154:3: note: expanded from macro 'ABSL_INTERNAL_INLINE_NAMESPACE_STR'
ABSL_INTERNAL_TOKEN_STR(ABSL_OPTION_INLINE_NAMESPACE_NAME)
^
/Users/mk/pkgsrc/pkgsrc/devel/protobuf/work/.buildlink/include/absl/base/config.h:119:36: note: expanded from macro 'ABSL_INTERNAL_TOKEN_STR'
#define ABSL_INTERNAL_TOKEN_STR(x) ABSL_INTERNAL_DO_TOKEN_STR(x)
^
/Users/mk/pkgsrc/pkgsrc/devel/protobuf/work/.buildlink/include/absl/base/config.h:118:39: note: expanded from macro 'ABSL_INTERNAL_DO_TOKEN_STR'
#define ABSL_INTERNAL_DO_TOKEN_STR(x) #x
^
<scratch space>:226:1: note: expanded from here
"lts_20230802"
^
/Library/Developer/CommandLineTools/SDKs/MacOSX14.0.sdk/usr/include/c++/v1/__config:477:47: note: expanded from macro 'static_assert'
# define static_assert(...) _Static_assert(__VA_ARGS__)
^~~~~~~~~~~
In file included from /Users/mk/pkgsrc/pkgsrc/devel/protobuf/work/protobuf-25.1/third_party/utf8_range/utf8_validity.cc:18:
In file included from /Users/mk/pkgsrc/pkgsrc/devel/protobuf/work/protobuf-25.1/third_party/utf8_range/utf8_validity.h:10:
In file included from /Users/mk/pkgsrc/pkgsrc/devel/protobuf/work/.buildlink/include/absl/strings/string_view.h:39:
In file included from /Users/mk/pkgsrc/pkgsrc/devel/protobuf/work/.buildlink/include/absl/base/attributes.h:37:
/Users/mk/pkgsrc/pkgsrc/devel/protobuf/work/.buildlink/include/absl/base/config.h:159:15: error: static assertion expression is not an integral constant expression
static_assert(ABSL_INTERNAL_INLINE_NAMESPACE_STR[0] != 'h' ||
~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/Users/mk/pkgsrc/pkgsrc/devel/protobuf/work/.buildlink/include/absl/base/config.h:154:3: note: expanded from macro 'ABSL_INTERNAL_INLINE_NAMESPACE_STR'
ABSL_INTERNAL_TOKEN_STR(ABSL_OPTION_INLINE_NAMESPACE_NAME)
^
/Users/mk/pkgsrc/pkgsrc/devel/protobuf/work/.buildlink/include/absl/base/config.h:119:36: note: expanded from macro 'ABSL_INTERNAL_TOKEN_STR'
#define ABSL_INTERNAL_TOKEN_STR(x) ABSL_INTERNAL_DO_TOKEN_STR(x)
^
/Users/mk/pkgsrc/pkgsrc/devel/protobuf/work/.buildlink/include/absl/base/config.h:118:39: note: expanded from macro 'ABSL_INTERNAL_DO_TOKEN_STR'
#define ABSL_INTERNAL_DO_TOKEN_STR(x) #x
^
<scratch space>:227:1: note: expanded from here
"lts_20230802"
^
/Library/Developer/CommandLineTools/SDKs/MacOSX14.0.sdk/usr/include/c++/v1/__config:477:47: note: expanded from macro 'static_assert'
# define static_assert(...) _Static_assert(__VA_ARGS__)
^~~~~~~~~~~
In file included from /Users/mk/pkgsrc/pkgsrc/devel/protobuf/work/protobuf-25.1/third_party/utf8_range/utf8_validity.cc:18:
In file included from /Users/mk/pkgsrc/pkgsrc/devel/protobuf/work/protobuf-25.1/third_party/utf8_range/utf8_validity.h:10:
In file included from /Users/mk/pkgsrc/pkgsrc/devel/protobuf/work/.buildlink/include/absl/strings/string_view.h:41:
/Users/mk/pkgsrc/pkgsrc/devel/protobuf/work/.buildlink/include/absl/base/internal/throw_delegate.h:25:1: warning: inline namespaces are a C++11 feature [-Wc++11-inline-namespace]
ABSL_NAMESPACE_BEGIN
^
/Users/mk/pkgsrc/pkgsrc/devel/protobuf/work/.buildlink/include/absl/base/config.h:175:3: note: expanded from macro 'ABSL_NAMESPACE_BEGIN'
inline namespace ABSL_OPTION_INLINE_NAMESPACE_NAME {
^
In file included from /Users/mk/pkgsrc/pkgsrc/devel/protobuf/work/protobuf-25.1/third_party/utf8_range/utf8_validity.cc:18:
In file included from /Users/mk/pkgsrc/pkgsrc/devel/protobuf/work/protobuf-25.1/third_party/utf8_range/utf8_validity.h:10:
In file included from /Users/mk/pkgsrc/pkgsrc/devel/protobuf/work/.buildlink/include/absl/strings/string_view.h:41:
/Users/mk/pkgsrc/pkgsrc/devel/protobuf/work/.buildlink/include/absl/base/internal/throw_delegate.h:42:2: error: expected expression
[[noreturn]] void ThrowStdLogicError(const std::string& what_arg);
^
/Users/mk/pkgsrc/pkgsrc/devel/protobuf/work/.buildlink/include/absl/base/internal/throw_delegate.h:42:14: error: expected unqualified-id
[[noreturn]] void ThrowStdLogicError(const std::string& what_arg);
^
/Users/mk/pkgsrc/pkgsrc/devel/protobuf/work/.buildlink/include/absl/base/internal/throw_delegate.h:43:2: error: expected expression
[[noreturn]] void ThrowStdLogicError(const char* what_arg);
^
/Users/mk/pkgsrc/pkgsrc/devel/protobuf/work/.buildlink/include/absl/base/internal/throw_delegate.h:43:14: error: expected unqualified-id
[[noreturn]] void ThrowStdLogicError(const char* what_arg);
^
/Users/mk/pkgsrc/pkgsrc/devel/protobuf/work/.buildlink/include/absl/base/internal/throw_delegate.h:44:2: error: expected expression
[[noreturn]] void ThrowStdInvalidArgument(const std::string& what_arg);
^
/Users/mk/pkgsrc/pkgsrc/devel/protobuf/work/.buildlink/include/absl/base/internal/throw_delegate.h:44:14: error: expected unqualified-id
[[noreturn]] void ThrowStdInvalidArgument(const std::string& what_arg);
^
/Users/mk/pkgsrc/pkgsrc/devel/protobuf/work/.buildlink/include/absl/base/internal/throw_delegate.h:45:2: error: expected expression
[[noreturn]] void ThrowStdInvalidArgument(const char* what_arg);
^
/Users/mk/pkgsrc/pkgsrc/devel/protobuf/work/.buildlink/include/absl/base/internal/throw_delegate.h:45:14: error: expected unqualified-id
[[noreturn]] void ThrowStdInvalidArgument(const char* what_arg);
^
/Users/mk/pkgsrc/pkgsrc/devel/protobuf/work/.buildlink/include/absl/base/internal/throw_delegate.h:46:2: error: expected expression
[[noreturn]] void ThrowStdDomainError(const std::string& what_arg);
^
/Users/mk/pkgsrc/pkgsrc/devel/protobuf/work/.buildlink/include/absl/base/internal/throw_delegate.h:46:14: error: expected unqualified-id
[[noreturn]] void ThrowStdDomainError(const std::string& what_arg);
^
/Users/mk/pkgsrc/pkgsrc/devel/protobuf/work/.buildlink/include/absl/base/internal/throw_delegate.h:47:2: error: expected expression
[[noreturn]] void ThrowStdDomainError(const char* what_arg);
^
/Users/mk/pkgsrc/pkgsrc/devel/protobuf/work/.buildlink/include/absl/base/internal/throw_delegate.h:47:14: error: expected unqualified-id
[[noreturn]] void ThrowStdDomainError(const char* what_arg);
^
/Users/mk/pkgsrc/pkgsrc/devel/protobuf/work/.buildlink/include/absl/base/internal/throw_delegate.h:48:2: error: expected expression
[[noreturn]] void ThrowStdLengthError(const std::string& what_arg);
^
/Users/mk/pkgsrc/pkgsrc/devel/protobuf/work/.buildlink/include/absl/base/internal/throw_delegate.h:48:14: error: expected unqualified-id
[[noreturn]] void ThrowStdLengthError(const std::string& what_arg);
^
/Users/mk/pkgsrc/pkgsrc/devel/protobuf/work/.buildlink/include/absl/base/internal/throw_delegate.h:49:2: error: expected expression
[[noreturn]] void ThrowStdLengthError(const char* what_arg);
^
/Users/mk/pkgsrc/pkgsrc/devel/protobuf/work/.buildlink/include/absl/base/internal/throw_delegate.h:49:14: error: expected unqualified-id
[[noreturn]] void ThrowStdLengthError(const char* what_arg);
^
fatal error: too many errors emitted, stopping now [-ferror-limit=]
1 warning and 20 errors generated.
--- third_party/utf8_range/CMakeFiles/utf8_validity.dir/utf8_validity.cc.o ---
*** [third_party/utf8_range/CMakeFiles/utf8_validity.dir/utf8_validity.cc.o] Error code 1
bmake[2]: stopped in /Users/mk/pkgsrc/pkgsrc/devel/protobuf/work/protobuf-25.1/cmake-pkgsrc-build
1 error
bmake[2]: stopped in /Users/mk/pkgsrc/pkgsrc/devel/protobuf/work/protobuf-25.1/cmake-pkgsrc-build
--- third_party/utf8_range/CMakeFiles/utf8_validity.dir/all ---
*** [third_party/utf8_range/CMakeFiles/utf8_validity.dir/all] Error code 2
bmake[1]: stopped in /Users/mk/pkgsrc/pkgsrc/devel/protobuf/work/protobuf-25.1/cmake-pkgsrc-build
1 error
bmake[1]: stopped in /Users/mk/pkgsrc/pkgsrc/devel/protobuf/work/protobuf-25.1/cmake-pkgsrc-build
*** [all] Error code 2
bmake: stopped in /Users/mk/pkgsrc/pkgsrc/devel/protobuf/work/protobuf-25.1/cmake-pkgsrc-build
1 error
bmake: stopped in /Users/mk/pkgsrc/pkgsrc/devel/protobuf/work/protobuf-25.1/cmake-pkgsrc-build
*** Error code 2
Stop.
bmake[1]: stopped in /Users/mk/pkgsrc/pkgsrc/devel/protobuf
*** Error code 1
Stop.
bmake: stopped in /Users/mk/pkgsrc/pkgsrc/devel/protobuf
- - - - - - - - - - %< - - - - - - - - - -
Best regards.
Home |
Main Index |
Thread Index |
Old Index