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

FreeBSD fails to build under clang natively

Details

    Description

      There is a large need of backporting to make FreeBSD downstream packing easier.

      Currently ports is this:

      https://github.com/freebsd/freebsd-ports/blob/15d22e1c70da81aaa5751ad0d82f92e9451c4d81/databases/mariadb106-server/Makefile

      Now that we have a https://buildbot.mariadb.org/#/builders/amd64-freebsd-14, lets try to make it build/test correctly.

      FYI spil

      Attachments

        Issue Links

          Activity

            danblack Daniel Black added a comment -

            [ 49%] Linking CXX executable mariadb-check
            [ 49%] Building CXX object storage/innobase/CMakeFiles/innobase.dir/lock/lock0iter.cc.o
            ld: error: unable to find library -lpcre2-posix
            ld: error: unable to find library -lpcre2-8
            clang++: error: linker command failed with exit code 1 (use -v to see invocation)
            [ 49%] Building C object client/CMakeFiles/mariadb-import.dir/mysqlimport.c.o
            [ 49%] Linking CXX executable mariadb
            *** [all] Error code 6
            

            This is /usr/local/lib not being in the path.

            10.5 looks like its succeeded, but its just reverting to the bundled version.

            danblack Daniel Black added a comment - [ 49%] Linking CXX executable mariadb-check [ 49%] Building CXX object storage/innobase/CMakeFiles/innobase.dir/lock/lock0iter.cc.o ld: error: unable to find library -lpcre2-posix ld: error: unable to find library -lpcre2-8 clang++: error: linker command failed with exit code 1 (use -v to see invocation) [ 49%] Building C object client/CMakeFiles/mariadb-import.dir/mysqlimport.c.o [ 49%] Linking CXX executable mariadb *** [all] Error code 6 This is /usr/local/lib not being in the path. 10.5 looks like its succeeded, but its just reverting to the bundled version.
            danblack Daniel Black added a comment -

            Backported MDEV-33091 changes from 10.6 to 10.5 to facilitate detection of pcre2 system libraries on FreeBSD.

            danblack Daniel Black added a comment - Backported MDEV-33091 changes from 10.6 to 10.5 to facilitate detection of pcre2 system libraries on FreeBSD.

            People

              danblack Daniel Black
              danblack Daniel Black
              Votes:
              0 Vote for this issue
              Watchers:
              1 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.