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

Compilation from source without -DBUILD_CONFIG=mysql_release and with -DRPM=centos6 fails to create libmysqld.a

    XMLWordPrintable

Details

    • Bug
    • Status: Closed (View Workflow)
    • Major
    • Resolution: Not a Bug
    • 5.5.53
    • N/A
    • Compiling
    • None
    • Centos6

    Description

      Could not build with: -DBUILD_CONFIG=mysql_release
      This results with JEMALLOC error.

      When trying to compile with -DRPM=centos6, libmysqld.a is not created during %build:

      RPMs created with these cmake flags are missing libmysqld.a' which is required for mysql clients.
      

      From the spec file:

      ...
      %build
      ...
      # Build debug mysqld and libmysqld.a
      mkdir debug
      (
        cd debug
        # Attempt to remove any optimisation flags from the debug build
        CFLAGS=`echo " ${CFLAGS} " | \
                  sed -e 's/ -O[0-9]* / /' \
                      -e 's/-Wp,-D_FORTIFY_SOURCE=2/ /' \
                      -e 's/ -unroll2 / /' \
                      -e 's/ -ip / /' \
                      -e 's/^ //' \
                      -e 's/ $//'`
        CXXFLAGS=`echo " ${CXXFLAGS} " | \
                    sed -e 's/ -O[0-9]* / /' \
                        -e 's/-Wp,-D_FORTIFY_SOURCE=2/ /' \
                        -e 's/ -unroll2 / /' \
                        -e 's/ -ip / /' \
                        -e 's/^ //' \
                        -e 's/ $//'`
        # XXX: MYSQL_UNIX_ADDR should be in cmake/* but mysql_version is included before
        # XXX: install_layout so we can't just set it based on INSTALL_LAYOUT=RPM
        /opt/cmake_2.8.12.2/bin/cmake ../%{src_dir} -DRPM=centos6 \
                 -DINSTALL_LAYOUT=RPM \
                 -DCMAKE_BUILD_TYPE=Debug \
                 -DENABLE_DTRACE=OFF \
                 -DMYSQL_UNIX_ADDR="%{mysqldatadir}/mysql.sock" \
                 -DFEATURE_SET="%{feature_set}" \
                 -DCOMPILATION_COMMENT="%{compilation_comment_debug}" \
                 -DMYSQL_SERVER_SUFFIX="%{server_suffix}"
        echo BEGIN_DEBUG_CONFIG ; egrep '^#define' include/config.h ; echo END_DEBUG_CONFIG
        make ${MAKE_JFLAG} VERBOSE=1
      )
      

      BUG: libmysqld.a is not created

      Attachments

        Activity

          People

            serg Sergei Golubchik
            rozban Gilad Rozban
            Votes:
            0 Vote for this issue
            Watchers:
            2 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.