Opened 5 years ago

Closed 5 years ago

#44690 closed defect (fixed)

mongodb @2.6.4 fails to build with boost 1.56.0

Reported by: moneyc.net@… Owned by: ryandesign (Ryan Schmidt)
Priority: Normal Milestone:
Component: ports Version: 2.3.1
Keywords: snowleopard lion mountainlion Cc: petrrr, takashi.obara@…
Port: mongodb

Description

Trying to install mongodb results in this error:

scons: *** [build/darwin/64/cc__usr_bin_clang/cxx__usr_bin_clang++/osx-version-min_10.8/use-system-boost/use-system-pcre/use-system-snappy/usev8/mongo/shell/linenoise.o] Error 1
scons: building terminated because of errors.
Command failed:  cd "/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_databases_mongodb/mongodb/work/mongodb-src-r2.6.4" && /opt/local/bin/scons -j4 all mongobridge mongosniff --cc=/usr/bin/clang --cxx=/usr/bin/clang++ --cpppath=/opt/local/include --libpath=/opt/local/lib --osx-version-min=10.8 --full --use-system-boost --use-system-pcre --use-system-snappy --usev8 --extralib=pcre,pcrecpp,snappy --64
Exit code: 2

Attachments (2)

mongodb.main.log (308.2 KB) - added by petrrr 5 years ago.
main.log (289.7 KB) - added by moneyc.net@… 5 years ago.

Download all attachments as: .zip

Change History (8)

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

Keywords: mountainlion added; mongodb MountainLion removed
Owner: changed from macports-tickets@… to ryandesign@…

Please attach the main.log, but I believe this may be an issue I already reported to the developers.

comment:2 Changed 5 years ago by petrrr

I guess this is what I am observing as well. I'll attach a main.log.

Changed 5 years ago by petrrr

Attachment: mongodb.main.log added

Changed 5 years ago by moneyc.net@…

Attachment: main.log added

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

Cc: petr@… added
Keywords: mountainlion removed
Summary: mongodb @2.6.4 fails to build on Mountain Lionmongodb @2.6.4 fails to build with boost 1.56.0

Thanks. The error in both logs is:

:info:build src/mongo/shell/linenoise_utf8.h:145:14: error: no member named 'swap' in namespace 'std'; did you mean 'boost::swap'?
:info:build         std::swap( _len, other._len );
:info:build         ~~~~~^~~~
:info:build         boost::swap
:info:build /opt/local/include/boost/smart_ptr/scoped_array.hpp:125:31: note: 'boost::swap' declared here
:info:build template<class T> inline void swap(scoped_array<T> & a, scoped_array<T> & b) BOOST_NOEXCEPT
:info:build                               ^

This is reported upstream: https://jira.mongodb.org/browse/SERVER-14930

This may be an incompatibility with boost 1.56.0. We could go back to using the copy of boost shipped with mongodb, but that would reintroduce #38334. In the mean time, until we work out a more permanent solution, you could downgrade to boost 1.55.0.

comment:4 Changed 5 years ago by takashi.obara@…

Cc: takashi.obara@… added

Cc Me!

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

Keywords: snowleopard lion mountainlion added

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

Resolution: fixed
Status: newclosed

At the expense of perhaps reintroducing #38334, I've switched the mongodb port to use the built-in copy of boost again in r124301.

Note: See TracTickets for help on using tickets.