-
Notifications
You must be signed in to change notification settings - Fork 222
Open
Labels
Developer Issuecomponent - ConanDependency / Package manager problemsDependency / Package manager problems
Description
Issue overview
Current Behavior
Every new compiler version out there removes deprecated stuff from C++ STD lib, and this is especially true on Xcode / clang.
We're having to define some macros when building via conan -c tools.build:cxxflags="['-D_LIBCPP_ENABLE_CXX17_REMOVED_UNARY_BINARY_FUNCTION']" and some more inside our cmake.
Lines 377 to 385 in ba1b94b
| if(APPLE) | |
| # Without this, cmake will give "Module" libraries the ".so" extension on Apple | |
| # This appears to be a legacy choice by the cmake developers, and seems out of place, | |
| # so the OpenStudio project will use the library suffix ".dylib" | |
| find_library(COREFOUNDATION_LIBRARY CoreFoundation) | |
| # TODO: remove when bumping Boost to 1.81+, cf https://github.com/NREL/OpenStudio/issues/4978 | |
| add_definitions(-DBOOST_NO_CXX98_FUNCTION_BASE) | |
| add_definitions(-D_HAS_AUTO_PTR_ETC=0) | |
| endif() |
Expected Behavior
Steps to Reproduce
Update to xcode 15.3 or 15.4
In file included from ./boost/unordered/detail/implementation.hpp:48:
./boost/unordered/detail/fwd.hpp:53:16: error: no member named 'piecewise_construct' in namespace 'std'; did you mean 'piecewise_construct_t'?
using std::piecewise_construct;
~~~~~^~~~~~~~~~~~~~~~~~~
piecewise_construct_t
/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX14.5.sdk/usr/include/c++/v1/__utility/piecewise_construct.h:20:29: note: 'piecewise_construct_t' declared here
struct _LIBCPP_TEMPLATE_VIS piecewise_construct_t { explicit piecewise_construct_t() = default; };
Possible Solution
Upgrade to a more recent boost, 1.85.0 right now
Details
Environment
Some additional details about your environment for this issue (if relevant):
- Platform (Operating system, version): all, but especially mac
- Version of OpenStudio (if using an intermediate build, include SHA): ba1b94b
Context
Found after upgrading compiler on an arm mac.
macumber
Metadata
Metadata
Assignees
Labels
Developer Issuecomponent - ConanDependency / Package manager problemsDependency / Package manager problems