Opened 3 years ago

Closed 3 years ago

Last modified 3 years ago

#61751 closed defect (fixed)

Building protobuf3-cpp :info:build ./google/protobuf/map_field.h:332:37: error: constexpr constructor never produces a constant expression [-Winvalid-constexpr]

Reported by: dbl001 (dbl) Owned by: ryandesign (Ryan Carsten Schmidt)
Priority: Normal Milestone:
Component: ports Version: 2.6.4
Keywords: Cc: mascguy (Christopher Nielsen)
Port: protobuf3-cpp

Description

OS X 10.11.6

:info:build In file included from google/protobuf/dynamic_message.cc:80:
:info:build ./google/protobuf/map_field.h:332:37: error: constexpr constructor never produces a constant expression [-Winvalid-constexpr]
:info:build   explicit PROTOBUF_MAYBE_CONSTEXPR MapFieldBase(ConstantInitialized)
:info:build                                     ^
:info:build ./google/protobuf/map_field.h:335:9: note: non-literal type 'internal::WrappedMutex' cannot be used in a constant expression
:info:build         mutex_(GOOGLE_PROTOBUF_LINKER_INITIALIZED),
:info:build         ^
:info:build 1 error generated.
:info:build make[2]: *** [google/protobuf/dynamic_message.lo] Error 1

Attachments (1)

main.log (54.6 KB) - added by dbl001 (dbl) 3 years ago.

Download all attachments as: .zip

Change History (6)

Changed 3 years ago by dbl001 (dbl)

Attachment: main.log added

comment:1 Changed 3 years ago by mf2k (Frank Schima)

Keywords: protobuf3 removed
Port: protobuf3-cpp added; protobuf3 removed

comment:2 Changed 3 years ago by ryandesign (Ryan Carsten Schmidt)

Owner: set to ryandesign
Resolution: fixed
Status: newclosed

In 05a56f2d5fcf8863e261c36ecb78902f61c2854c/macports-ports (master):

protobuf3-cpp: Fix build on 10.11

Blacklist clang < 900.

Closes: #61751

comment:3 Changed 3 years ago by Schamschula (Marius Schamschula)

In f714e0715c4368da1fab8dcf09e77c1a51e529fb/macports-ports (master):

py-protobuf3: Fix build on 10.11 (and below)

Closes: #62158
See: #61751

comment:4 Changed 3 years ago by mascguy (Christopher Nielsen)

Cc: mascguy added

comment:5 Changed 3 years ago by chrstphrchvz (Christopher Chavez)

In 88655518a01243af83b96b165157f37c9c8f0d80/macports-ports (master):

protobuf-c: fix build on macOS 10.11 and earlier

See: #61751

Note: See TracTickets for help on using tickets.