Bug 272295 - databases/mongodb44 databases/mongodb50 databases/mongodb60 do not compile with llvm16
Summary: databases/mongodb44 databases/mongodb50 databases/mongodb60 do not compile wi...
Status: Closed FIXED
Alias: None
Product: Ports & Packages
Classification: Unclassified
Component: Individual Port(s) (show other bugs)
Version: Latest
Hardware: Any Any
: --- Affects Some People
Assignee: Ronald Klop
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2023-06-30 15:02 UTC by Ronald Klop
Modified: 2023-07-02 19:09 UTC (History)
0 users

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Ronald Klop freebsd_committer freebsd_triage 2023-06-30 15:02:54 UTC
https://portsfallout.com/fallout?port=databases%2Fmongodb44%24
https://lists.freebsd.org/archives/freebsd-pkg-fallout/2023-June/425055.html

https://portsfallout.com/fallout?port=databases%2Fmongodb50%24
https://lists.freebsd.org/archives/freebsd-pkg-fallout/2023-June/426226.html

https://portsfallout.com/fallout?port=databases%2Fmongodb60%24
https://lists.freebsd.org/archives/freebsd-pkg-fallout/2023-June/425290.html

They all have a similar error:

In file included from src/third_party/boost-1.70.0/boost/functional/hash.hpp:6:
src/third_party/boost-1.70.0/boost/container_hash/hash.hpp:130:33: error: no template named 'unary_function' in namespace 'std'; did you mean '__unary_function'?
        struct hash_base : std::unary_function<T, std::size_t> {};
                           ~~~~~^~~~~~~~~~~~~~
                                __unary_function
/usr/include/c++/v1/__functional/unary_function.h:46:1: note: '__unary_function' declared here
using __unary_function = __unary_function_keep_layout_base<_Arg, _Result>;
^
Comment 1 commit-hook freebsd_committer freebsd_triage 2023-06-30 20:27:39 UTC
A commit in branch main references this bug:

URL: https://cgit.FreeBSD.org/ports/commit/?id=cc81b511cad32a95051cb8272b3a98f98fce9313

commit cc81b511cad32a95051cb8272b3a98f98fce9313
Author:     Ronald Klop <ronald@FreeBSD.org>
AuthorDate: 2023-06-30 20:22:14 +0000
Commit:     Ronald Klop <ronald@FreeBSD.org>
CommitDate: 2023-06-30 20:27:15 +0000

    databases/mongodb44: fix build with llvm16

    _HAS_AUTO_PTR_ETC=0 fixes:

    In file included from src/third_party/boost-1.70.0/boost/functional/hash.hpp:6:
    src/third_party/boost-1.70.0/boost/container_hash/hash.hpp:130:33: error: no template named 'unary_function' in namespace 'std'; did you mean '__unary_function'?
            struct hash_base : std::unary_function<T, std::size_t> {};
                               ~~~~~^~~~~~~~~~~~~~
                                    __unary_function
    /usr/include/c++/v1/__functional/unary_function.h:46:1: note: '__unary_function' declared here
    using __unary_function = __unary_function_keep_layout_base<_Arg, _Result>;

    And "#if 1" fixes:

    In file included from src/third_party/boost-1.70.0/boost/mpl/integral_c.hpp:32:
    src/third_party/boost-1.70.0/boost/mpl/aux_/integral_wrapper.hpp:73:31: error: integer value -1 is outside the valid range of values [0, 3] for the enumeration type 'lock_access_mode' [-Wenum-constexpr-conversion]
        typedef AUX_WRAPPER_INST( BOOST_MPL_AUX_STATIC_CAST(AUX_WRAPPER_VALUE_TYPE, (value - 1)) ) prior;

    PR:     272295

 databases/mongodb44/Makefile                                  |  2 ++
 ...y_boost-1.70.0_boost_mpl_aux___integral__wrapper.hpp (new) | 11 +++++++++++
 2 files changed, 13 insertions(+)
Comment 2 commit-hook freebsd_committer freebsd_triage 2023-07-02 19:02:39 UTC
A commit in branch main references this bug:

URL: https://cgit.FreeBSD.org/ports/commit/?id=7711191a2af6cbba85e19739fdadbceffef0597a

commit 7711191a2af6cbba85e19739fdadbceffef0597a
Author:     Ronald Klop <ronald@FreeBSD.org>
AuthorDate: 2023-07-02 18:52:04 +0000
Commit:     Ronald Klop <ronald@FreeBSD.org>
CommitDate: 2023-07-02 18:58:49 +0000

    databases/mongodb50: fix build with llvm16/clang16

    * BOOST_NO_CXX98_FUNCTION_BASE fixes:
    In file included from src/third_party/boost/boost/functional/hash.hpp:6:
    src/third_party/boost/boost/container_hash/hash.hpp:131:33: error: no template named 'unary_function' in namespace 'std'; did you mean '__unary_function'?
            struct hash_base : std::unary_function<T, std::size_t> {};
                               ~~~~~^~~~~~~~~~~~~~
                                    __unary_function
    /usr/include/c++/v1/__functional/unary_function.h:46:1: note: '__unary_function' declared here
    using __unary_function = __unary_function_keep_layout_base<_Arg, _Result>;
    ^

    * And "#if 1" fixes:

    In file included from src/third_party/boost/boost/mpl/integral_c.hpp:32:
    src/third_party/boost/boost/mpl/aux_/integral_wrapper.hpp:73:31: error:
    integer value -1 is outside the valid range of values [0, 3] for the enumeration
    type 'lock_access_mode' [-Wenum-constexpr-conversion]
        typedef AUX_WRAPPER_INST( BOOST_MPL_AUX_STATIC_CAST(AUX_WRAPPER_VALUE_TYPE,
    (value - 1)) ) prior;

    PR:     272295

 databases/mongodb50/Makefile                                  |  2 ++
 ...d__party_boost_boost_mpl_aux___integral__wrapper.hpp (new) | 11 +++++++++++
 databases/mongodb50/pkg-message (new)                         |  8 ++++++++
 3 files changed, 21 insertions(+)
Comment 3 commit-hook freebsd_committer freebsd_triage 2023-07-02 19:02:40 UTC
A commit in branch main references this bug:

URL: https://cgit.FreeBSD.org/ports/commit/?id=d37d341204750f739aed02cae45fe3104272192c

commit d37d341204750f739aed02cae45fe3104272192c
Author:     Ronald Klop <ronald@FreeBSD.org>
AuthorDate: 2023-07-02 18:57:07 +0000
Commit:     Ronald Klop <ronald@FreeBSD.org>
CommitDate: 2023-07-02 18:58:50 +0000

    databases/mongodb60: fix build with llvm16/clang16

    * BOOST_NO_CXX98_FUNCTION_BASE fixes:
    In file included from src/third_party/boost/boost/functional/hash.hpp:6:
    src/third_party/boost/boost/container_hash/hash.hpp:131:33: error: no template named 'unary_function' in namespace 'std'; did you mean '__unary_function'?
            struct hash_base : std::unary_function<T, std::size_t> {};
                               ~~~~~^~~~~~~~~~~~~~
                                    __unary_function
    /usr/include/c++/v1/__functional/unary_function.h:46:1: note: '__unary_function' declared here
    using __unary_function = __unary_function_keep_layout_base<_Arg, _Result>;
    ^

    * And "#if 1" fixes:

    In file included from src/third_party/boost/boost/mpl/integral_c.hpp:32:
    src/third_party/boost/boost/mpl/aux_/integral_wrapper.hpp:73:31: error:
    integer value -1 is outside the valid range of values [0, 3] for the enumeration
    type 'lock_access_mode' [-Wenum-constexpr-conversion]
        typedef AUX_WRAPPER_INST( BOOST_MPL_AUX_STATIC_CAST(AUX_WRAPPER_VALUE_TYPE,
    (value - 1)) ) prior;

    PR:     272295

 databases/mongodb60/Makefile                                  |  2 ++
 ...d__party_boost_boost_mpl_aux___integral__wrapper.hpp (new) | 11 +++++++++++
 databases/mongodb60/pkg-message (new)                         |  8 ++++++++
 3 files changed, 21 insertions(+)
Comment 4 Ronald Klop freebsd_committer freebsd_triage 2023-07-02 19:09:49 UTC
Will only merge to quarterly if it fails in the branch. I don't think packages are built for quarterly branches on CURRENT.