Uploaded image for project: 'MariaDB Server'
  1. MariaDB Server
  2. MDEV-22620

Build failure on FreeBSD 12.1 / clang 8.0.1 / cmake 3.17.2

Details

    • Bug
    • Status: Closed (View Workflow)
    • Blocker
    • Resolution: Duplicate
    • 10.5.3, 10.5
    • N/A
    • Compiling
    • None
    • FreeBSD 12.1-p4 amd64
      clang 8.0.1
      cmake 3.17.2

    Description

      When compiling MariaDB 10.5.3 from source, it fails on missing stddef.h

      --- storage/perfschema/CMakeFiles/perfschema.dir/all ---
      In file included from /usr/ports/databases/mariadb105-server/work/mariadb-10.5.3/include/my_global.h:1125:
      In file included from /usr/include/c++/v1/new:85:
      In file included from /usr/include/c++/v1/exception:81:
      /usr/include/c++/v1/cstddef:45:15: fatal error: 'stddef.h' file not found
      #include_next <stddef.h>
                    ^~~~~~~~~~                              
      

      The configure log shows that cmake detects stddef.h.
      Digging into this, I can't find any stddef.h (neither in `/usr/include` nor in the build dir).

      Attachments

        Issue Links

          Activity

            spil Bernard Spil created issue -
            anel Anel Husakovic made changes -
            Field Original Value New Value
            Description When compiling MariaDB 10.5.3 from source, it fails on missing stddef.h

            {{{
            --- storage/perfschema/CMakeFiles/perfschema.dir/all ---
            In file included from /usr/ports/databases/mariadb105-server/work/mariadb-10.5.3/include/my_global.h:1125:
            In file included from /usr/include/c++/v1/new:85:
            In file included from /usr/include/c++/v1/exception:81:
            /usr/include/c++/v1/cstddef:45:15: fatal error: 'stddef.h' file not found
            #include_next <stddef.h>
                          ^~~~~~~~~~
            }}}

            The configure log shows that cmake detects `stddef.h`.
            Digging into this, I can't find _any_ `stddef.h` (neither in `/usr/include` nor in the build dir).
            When compiling MariaDB 10.5.3 from source, it fails on missing {{stddef.h}}

            {code:noformat}
            --- storage/perfschema/CMakeFiles/perfschema.dir/all ---
            In file included from /usr/ports/databases/mariadb105-server/work/mariadb-10.5.3/include/my_global.h:1125:
            In file included from /usr/include/c++/v1/new:85:
            In file included from /usr/include/c++/v1/exception:81:
            /usr/include/c++/v1/cstddef:45:15: fatal error: 'stddef.h' file not found
            #include_next <stddef.h>
                          ^~~~~~~~~~
            {code}

            The configure log shows that cmake detects `stddef.h`.
            Digging into this, I can't find _any_ `stddef.h` (neither in `/usr/include` nor in the build dir).
            anel Anel Husakovic made changes -
            Description When compiling MariaDB 10.5.3 from source, it fails on missing {{stddef.h}}

            {code:noformat}
            --- storage/perfschema/CMakeFiles/perfschema.dir/all ---
            In file included from /usr/ports/databases/mariadb105-server/work/mariadb-10.5.3/include/my_global.h:1125:
            In file included from /usr/include/c++/v1/new:85:
            In file included from /usr/include/c++/v1/exception:81:
            /usr/include/c++/v1/cstddef:45:15: fatal error: 'stddef.h' file not found
            #include_next <stddef.h>
                          ^~~~~~~~~~
            {code}

            The configure log shows that cmake detects `stddef.h`.
            Digging into this, I can't find _any_ `stddef.h` (neither in `/usr/include` nor in the build dir).
            When compiling MariaDB 10.5.3 from source, it fails on missing {{stddef.h}}

            {code:noformat}
            --- storage/perfschema/CMakeFiles/perfschema.dir/all ---
            In file included from /usr/ports/databases/mariadb105-server/work/mariadb-10.5.3/include/my_global.h:1125:
            In file included from /usr/include/c++/v1/new:85:
            In file included from /usr/include/c++/v1/exception:81:
            /usr/include/c++/v1/cstddef:45:15: fatal error: 'stddef.h' file not found
            #include_next <stddef.h>
                          ^~~~~~~~~~
            {code}

            The configure log shows that cmake detects {{stddef.h}}.
            Digging into this, I can't find _any_ {{stddef.h}} (neither in `/usr/include` nor in the build dir).
            elenst Elena Stepanova made changes -
            Fix Version/s 10.5 [ 23123 ]
            Assignee Sergei Golubchik [ serg ]
            serg Sergei Golubchik made changes -
            Priority Major [ 3 ] Blocker [ 1 ]
            spil Bernard Spil added a comment -

            This is a duplicate of MDEV-22621.

            `stddef.h` is located in `/usr/include`, so again we have an issue where this is missing from `CFLAGS`.

            spil Bernard Spil added a comment - This is a duplicate of MDEV-22621 . `stddef.h` is located in `/usr/include`, so again we have an issue where this is missing from `CFLAGS`.
            serg Sergei Golubchik made changes -
            serg Sergei Golubchik made changes -
            Fix Version/s N/A [ 14700 ]
            Fix Version/s 10.5 [ 23123 ]
            Resolution Duplicate [ 3 ]
            Status Open [ 1 ] Closed [ 6 ]
            serg Sergei Golubchik made changes -
            Workflow MariaDB v3 [ 108871 ] MariaDB v4 [ 157802 ]

            People

              serg Sergei Golubchik
              spil Bernard Spil
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:

                Git Integration

                  Error rendering 'com.xiplink.jira.git.jira_git_plugin:git-issue-webpanel'. Please contact your Jira administrators.