Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix build with gcc10 #79

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open

Fix build with gcc10 #79

wants to merge 1 commit into from

Conversation

ghost
Copy link

@ghost ghost commented Oct 12, 2020

/build/chipmachine-git/src/chipmachine/src/di.hpp: In member function ‘boost::di::v1_1_0::core::binder::resolve_template_t<boost::di::v1_1_0::core::injector<TConfig, boost::di::v1_1_0::core::pool<boost::di::v1_1_0::aux::type_list<> >, TDeps ...>, boost::di::v1_1_0::aux::identity<T<> > > boost::di::v1_1_0::core::injector<TConfig, boost::di::v1_1_0::core::pool<boost::di::v1_1_0::aux::type_list<> >, TDeps ...>::create() const’:
/build/chipmachine-git/src/chipmachine/src/di.hpp:3487:51: error: ‘boost::di::v1_1_0::core::binder::resolve_template_t<boost::di::v1_1_0::core::injector<TConfig, boost::di::v1_1_0::core::pool<boost::di::v1_1_0::aux::type_list<> >, TDeps ...>, boost::di::v1_1_0::aux::identity<T<> > > boost::di::v1_1_0::core::injector<TConfig, boost::di::v1_1_0::core::pool<boost::di::v1_1_0::aux::type_list<> >, TDeps ...>::create() const’ is deprecated: creatable constraint not satisfied [-Werror=deprecated-declarations]
 3487 |             create_impl<aux::true_type>(aux::type<type>{});
      |                                                   ^~~~
/build/chipmachine-git/src/chipmachine/src/di.hpp:3481:3: note: declared here
 3481 |   create()
      |   ^~~~~~

Building with with gcc10 fails, so changed -Wdeprecated-declarations from error to warning. Using build flags did not work...

@ghost
Copy link
Author

ghost commented Oct 12, 2020

Update: GCC 10 now defaults to -fno-common which gives also build errors. Added -fcommon to CFLAGS as a workaround.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant