Opened 7 years ago
Closed 7 years ago
#11856 closed Bugs (fixed)
pool_resource.cpp error: declaration changes meaning
Reported by: | Owned by: | Ion Gaztañaga | |
---|---|---|---|
Milestone: | To Be Determined | Component: | container |
Version: | Boost 1.60.0 | Severity: | Showstopper |
Keywords: | Cc: |
Description
Hello,
Boost Container does not compile with GCC 4.4.7. I tried both: RedHat Enterprise Linux 6 and Debian Squeeze. The error is the following:
gcc.compile.c++ _build/boost/bin.v2/libs/container/build/gcc-4.4.7/release/link-static/threading-multi/pool_resource.o libs/container/src/pool_resource.cpp:35: error: declaration of ‘typedef class boost::container::pmr::block_slist_base<boost::container::pmr::block_slist_header> boost::container::pmr::pool_data_t::block_slist_base’ ./boost/container/detail/block_slist.hpp:67: error: changes meaning of ‘block_slist_base’ from ‘class boost::container::pmr::block_slist_base<boost::container::pmr::block_slist_header>’ "g++" -ftemplate-depth-128 -O3 -finline-functions -Wno-inline -Wall -pthread -m64 -DBOOST_ALL_NO_LIB=1 -DBOOST_CONTAINER_STATIC_LINK=1 -DNDEBUG -I"." -c -o "_build/boost/bin.v2/libs/container/build/gcc-4.4.7/release/link-static/threading-multi/pool_resource.o" "libs/container/src/pool_resource.cpp" ...failed gcc.compile.c++ _build/boost/bin.v2/libs/container/build/gcc-4.4.7/release/link-static/threading-multi/pool_resource.o...
Could you please take a look?
Thanks, Gregor
Attachments (1)
Change History (4)
comment:1 by , 7 years ago
by , 7 years ago
Attachment: | boost_11856.patch added |
---|
This fixes #11856 for me using Red Hat Enterprise Linux Server release 6.7 (Santiago)
comment:3 by , 7 years ago
Resolution: | → fixed |
---|---|
Status: | new → closed |
Thanks for the patch. Merged in:
https://github.com/boostorg/container/commit/12e12435430dcaff2654fdbb2e90972828ecd68c
Note:
See TracTickets
for help on using tickets.
I got same error in SL6.4 (x64, boost 1.60.0, gcc 4.4.7).
libs/container/src/pool_resource.cpp:35: error: declaration of ?.ypedef class boost::container::pmr::block_slist_base<boost::container::pmr::block_slist_header> boost::container::pmr::pool_data_t::block_slist_base? ./boost/container/detail/block_slist.hpp:67: error: changes meaning of ?.lock_slist_base?.from ?.lass boost::container::pmr::block_slist_base<boost::container::pmr::block_slist_header>?
...failed gcc.compile.c++ bin.v2/libs/container/build/gcc-4.4.7/release/link-static/threading-multi/pool_resource.o... ...skipped <pbin.v2/libs/container/build/gcc-4.4.7/release/link-static/threading-multi>libboost_container.a(clean) for lack of <pbin.v2/libs/container/build/gcc-4.4.7/release/link-static/threading-multi>pool_resource.o... ...skipped <pbin.v2/libs/container/build/gcc-4.4.7/release/link-static/threading-multi>libboost_container.a for lack of <pbin.v2/libs/container/build/gcc-4.4.7/release/link-static/threading-multi>pool_resource.o... ...skipped <p/home/athena/develop/vendor/boost/1_60_0/lib>libboost_container.a for lack of <pbin.v2/libs/container/build/gcc-4.4.7/release/link-static/threading-multi>libboost_container.a...
please check it out. thanks.