Uploaded image for project: 'C Driver'
  1. C Driver
  2. CDRIVER-5889

Build failure using libbson 1.30 and newer GCC 15

    • Type: Icon: Task Task
    • Resolution: Fixed
    • Priority: Icon: Unknown Unknown
    • 1.30.1
    • Affects Version/s: None
    • Component/s: None
    • None
    • Needed
    • Fully Compatible
    • C Drivers
    • Not Needed

      Reported by Fedora CI:

      https://koschei.fedoraproject.org/package/php-pecl-mongodb?collection=f43

      The pecl extension build fails using newer GCC 15 (no issue with 14)

      In above linkyou can see build is faling since libbson 1.30 and GCC update (sadly both were done the same day)

      From build.log

      {{/usr/include/libbson-1.0/bson/bson-macros.h:213:34: error: expected ';' before 'void' 213 | static BSON_INLINE BSON_NORETURN void | ^~~~ /usr/include/libbson-1.0/bson/bson-macros.h:220:34: error: expected ';' before 'void' 220 | static BSON_INLINE BSON_NORETURN void | ^~~~ }}

            Assignee:
            micah.scott@mongodb.com Micah Scott
            Reporter:
            remi Remi Collet
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated:
              Resolved: