Opened 11 years ago

Closed 11 years ago

Last modified 11 years ago

#40002 closed defect (fixed)

mariadb: error: implicit instantiation of undefined template 'boost::STATIC_ASSERTION_FAILURE<false>'

Reported by: ryandesign (Ryan Carsten Schmidt) Owned by: pixilla (Bradley Giesbrecht)
Priority: Normal Milestone:
Component: ports Version: 2.2.0
Keywords: Cc: todmorrison (Tod Morrison)
Port: mariadb

Description

mariadb does not build:

/opt/local/bin/cmake -E cmake_progress_report /opt/local/var/macports/build/_Users_rschmidt_macports_dports_databases_mariadb/mariadb/work/mariadb-5.5.32/build_macports/CMakeFiles 20
[ 94%] In file included from /opt/local/var/macports/build/_Users_rschmidt_macports_dports_databases_mariadb/mariadb/work/mariadb-5.5.32/storage/oqgraph/graphcore.cc:40:
In file included from /opt/local/include/boost/graph/adjacency_list.hpp:45:
/opt/local/include/boost/graph/named_graph.hpp:318:3: error: implicit instantiation of undefined template 'boost::STATIC_ASSERTION_FAILURE<false>'
  BOOST_STATIC_ASSERT_MSG ((boost::is_base_of<boost::graph_detail::stable_tag, VertexIterStability>::value), "Named graphs cannot use vecS as vertex container and remove vertices; the lack of vertex descriptor stability (which iterator stability is a proxy for) means that the name -> vertex mapping would need to be completely rebuilt after each deletion.  See https://svn.boost.org/trac/boost/ticket/7863 for more information and a test case.");
  ^
/opt/local/include/boost/static_assert.hpp:35:48: note: expanded from macro 'BOOST_STATIC_ASSERT_MSG'
#     define BOOST_STATIC_ASSERT_MSG( B, Msg ) BOOST_STATIC_ASSERT( B )
                                               ^
/opt/local/include/boost/static_assert.hpp:168:13: note: expanded from macro 'BOOST_STATIC_ASSERT'
            sizeof(::boost::STATIC_ASSERTION_FAILURE< BOOST_STATIC_ASSERT_BOOL_CAST( __VA_ARGS__ ) >)>\
            ^

Attachments (1)

main.log.bz2 (55.1 KB) - added by ryandesign (Ryan Carsten Schmidt) 11 years ago.

Download all attachments as: .zip

Change History (6)

Changed 11 years ago by ryandesign (Ryan Carsten Schmidt)

Attachment: main.log.bz2 added

comment:1 Changed 11 years ago by todmorrison (Tod Morrison)

Cc: todmorrison@… added

Cc Me!

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

Homebrew has noticed this as well. They blacklist clang <= 425 to fix it.

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

boost isn't even in mariadb's dependencies. Looks like it's being used opportunistically!

comment:4 Changed 11 years ago by ryandesign (Ryan Carsten Schmidt)

Resolution: fixed
Status: newclosed

Deactivating boost allows mariadb to build.

It was difficult to find out how to disable mariadb's detection of boost. Boost is only used by OQGRAPH, and I eventually found this post recommending the use of "-DWITHOUT_OQGRAPH_STORAGE_ENGINE=1", which seems to work. It doesn't stop cmake from finding boost, but it does prevent mariadb from building the OQGRAPH storage engine that uses boost, so there's no more build error.

Committed in r109419.

comment:5 Changed 11 years ago by ryandesign (Ryan Carsten Schmidt)

I think this is the upstream bug report: https://mariadb.atlassian.net/browse/MDEV-4795

Note: See TracTickets for help on using tickets.