Details

    • Type: Bug
    • Status: Closed
    • Priority: Minor
    • Resolution: Won't Fix
    • Affects Version/s: 10.0.7
    • Fix Version/s: None
    • Component/s: None
    • Labels:
      None

      Description

      cmake does not accept -DENABLE_GPROF=1

      BUILD/compile-amd64-gprof-no-ndb
      SphinxSE does not link .

      Spider and Handler Socket are ignored from the build .

      Is there any documentation how to compile with gprof ?

        Gliffy Diagrams

          Attachments

            Activity

            Hide
            serg Sergei Golubchik added a comment -

            We don't have a dedicated cmake option for every possible combination of gcc flags that one might think of. Just set CMAKE_C_FLAGS and CMAKE_CXX_FLAGS as you like:

            CMAKE_C_FLAGS=-pg CMAKE_CXX_FLAGS=-pg cmake
            

            Don't use BUILD/ scripts, they're from autotools era, not maintained anymore.

            Show
            serg Sergei Golubchik added a comment - We don't have a dedicated cmake option for every possible combination of gcc flags that one might think of. Just set CMAKE_C_FLAGS and CMAKE_CXX_FLAGS as you like: CMAKE_C_FLAGS=-pg CMAKE_CXX_FLAGS=-pg cmake Don't use BUILD/ scripts, they're from autotools era, not maintained anymore.
            Hide
            stephane@skysql.com VAROQUI Stephane added a comment -

            This did not worked.

            What works for me was adding in CMakeLists.txt , this already in place in Percona and MySQL server release.

            OPTION(ENABLE_GPROF "Enable gprof (optimized, Linux builds only)" OFF)
            IF (ENABLE_GPROF AND NOT WIN32 AND NOT APPLE)
            SET(CMAKE_C_FLAGS_RELWITHDEBINFO
            "$

            {CMAKE_C_FLAGS_RELWITHDEBINFO}

            -pg")
            SET(CMAKE_CXX_FLAGS_RELWITHDEBINFO
            "$

            {CMAKE_CXX_FLAGS_RELWITHDEBINFO}

            -pg")
            SET(CMAKE_EXE_LINKER_FLAGS_RELWITHDEBINFO
            "$

            {CMAKE_EXE_LINKER_FLAGS_RELWITHDEBINFO}

            -pg")
            ENDIF()

            cmake -DENABLE_GPROF=1 -DCMAKE_INSTALL_PREFIX=/usr/local/skysql/mariadb-10.0.7-linux-x86_64_gprof

            Show
            stephane@skysql.com VAROQUI Stephane added a comment - This did not worked. What works for me was adding in CMakeLists.txt , this already in place in Percona and MySQL server release. OPTION(ENABLE_GPROF "Enable gprof (optimized, Linux builds only)" OFF) IF (ENABLE_GPROF AND NOT WIN32 AND NOT APPLE) SET(CMAKE_C_FLAGS_RELWITHDEBINFO "$ {CMAKE_C_FLAGS_RELWITHDEBINFO} -pg") SET(CMAKE_CXX_FLAGS_RELWITHDEBINFO "$ {CMAKE_CXX_FLAGS_RELWITHDEBINFO} -pg") SET(CMAKE_EXE_LINKER_FLAGS_RELWITHDEBINFO "$ {CMAKE_EXE_LINKER_FLAGS_RELWITHDEBINFO} -pg") ENDIF() cmake -DENABLE_GPROF=1 -DCMAKE_INSTALL_PREFIX=/usr/local/skysql/mariadb-10.0.7-linux-x86_64_gprof

              People

              • Assignee:
                Unassigned
                Reporter:
                stephane@skysql.com VAROQUI Stephane
              • Votes:
                0 Vote for this issue
                Watchers:
                2 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: