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

VERIFY: Build fails with GCC 4.6 #21

Closed
brycelelbach opened this issue Jul 10, 2012 · 5 comments
Closed

VERIFY: Build fails with GCC 4.6 #21

brycelelbach opened this issue Jul 10, 2012 · 5 comments
Milestone

Comments

@brycelelbach
Copy link
Member

[reported by vamatya] [Trac time Thu Aug 4 19:02:39 2011] Building HPX with GCC-4.6.1, boost-1_47_0

In file included from /home/vamatya/packages/src/hpx11/external/atomic/boost/atomic.hpp:17:0,
                 from /home/vamatya/packages/src/hpx11/hpx/lcos/mutex.hpp:22,
                 from /home/vamatya/packages/src/hpx11/hpx/runtime/naming/resolver_client.hpp:25,
                 from /home/vamatya/packages/src/hpx11/hpx/runtime.hpp:14,
                 from /home/vamatya/packages/src/hpx11/hpx/hpx.hpp:13,
                 from /home/vamatya/packages/src/hpx11/src/hpx_init.cpp:8:
/home/vamatya/packages/src/hpx11/external/atomic/boost/atomic/detail/integral-casts.hpp:160:7: error: partial specialization of \u2018boost::detail::atomic::platform_atomic<T, 4u>\u2019 after instantiation of \u2018boost::detail::atomic::platform_atomic<int>\u2019 [-fpermissive]
/home/vamatya/packages/inst_/boost_1_47_0/include/boost/accumulators/statistics/tail.hpp:32:1: warning: \u2018boost::accumulators::{anonymous}::right_tail_cache_size\u2019 defined but not used [-Wunused-variable]
/home/vamatya/packages/inst_/boost_1_47_0/include/boost/accumulators/statistics/tail.hpp:33:1: warning: \u2018boost::accumulators::{anonymous}::left_tail_cache_size\u2019 defined but not used [-Wunused-variable]
/home/vamatya/packages/inst_/boost_1_47_0/include/boost/asio/error.hpp:244:45: warning: \u2018boost::asio::error::system_category\u2019 defined but not used [-Wunused-variable]
/home/vamatya/packages/inst_/boost_1_47_0/include/boost/asio/error.hpp:246:45: warning: \u2018boost::asio::error::netdb_category\u2019 defined but not used [-Wunused-variable]
/home/vamatya/packages/inst_/boost_1_47_0/include/boost/asio/error.hpp:248:45: warning: \u2018boost::asio::error::addrinfo_category\u2019 defined but not used [-Wunused-variable]
/home/vamatya/packages/inst_/boost_1_47_0/include/boost/asio/error.hpp:250:45: warning: \u2018boost::asio::error::misc_category\u2019 defined but not used [-Wunused-variable]
/home/vamatya/packages/inst_/boost_1_47_0/include/boost/system/error_code.hpp:214:36: warning: \u2018boost::system::posix_category\u2019 defined but not used [-Wunused-variable]
/home/vamatya/packages/inst_/boost_1_47_0/include/boost/system/error_code.hpp:215:36: warning: \u2018boost::system::errno_ecat\u2019 defined but not used [-Wunused-variable]
/home/vamatya/packages/inst_/boost_1_47_0/include/boost/system/error_code.hpp:216:36: warning: \u2018boost::system::native_ecat\u2019 defined but not used [-Wunused-variable]
make[2]: *** [src/CMakeFiles/hpx.dir/hpx_init.cpp.o] Error 1
make[1]: *** [src/CMakeFiles/hpx.dir/all] Error 2
make: *** [all] Error 2
@brycelelbach
Copy link
Member Author

[comment by vamatya] [Trac time Thu Aug 4 23:39:06 2011] Even with GCC 4.6.1 compiled explicitly for x86-64, the error is same.

@brycelelbach
Copy link
Member Author

[Trac time Fri Aug 5 15:17:47 2011] Milestone 0.3.0 deleted

@brycelelbach
Copy link
Member Author

[comment by blelbach] [Trac time Fri Aug 26 00:29:52 2011] Bah. Standard says we're wrong - temp.class.spec, paragraph 1, last sentence:

A partial specialization shall be declared before the first use of a class template specialization that would make use of the partial specialization as a result of an implicit or explicit instantiation in every translation unit in which such a use occurs; no diagnostic is required.

This is a problem in a handful of places. MSVC doesn't detect this. GCC 4.5 and older don't diagnose this, either.

@brycelelbach
Copy link
Member Author

[comment by blelbach] [Trac time Mon Sep 12 23:18:19 2011] r5484

@brycelelbach
Copy link
Member Author

[comment by blelbach] [Trac time Tue Sep 13 15:35:45 2011] This needs to be reported upstream to Boost.Atomic/Boost.Lockfree.

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

No branches or pull requests

1 participant