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

build system endianness test fails for ppc64le (i.e. Ubuntu)

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: 10.0.13
    • Fix Version/s: 5.5.40, 10.0.14
    • Component/s: Platform Power
    • Labels:
      None
    • Environment:
      Ubuntu ppc64le (Power8, little endian)

      Description

      When building in the source dir, cmake fails with this error:

      -- Check if the system is big endian
      -- Searching 16 bit integer
      -- Check size of unsigned short
      -- Check size of unsigned short - failed
      -- Check size of unsigned int
      -- Check size of unsigned int - failed
      -- Check size of unsigned long
      -- Check size of unsigned long - failed
      CMake Error at /usr/share/cmake-2.8/Modules/TestBigEndian.cmake:44 (message):
        no suitable type found
      Call Stack (most recent call first):
        configure.cmake:542 (TEST_BIG_ENDIAN)
        CMakeLists.txt:346 (INCLUDE)
      

      When building in a subdir of the source tree, cmake succeeds, but the make step fails for jemalloc-configure:

      checking build system type... /home/skysql/mariadb-source/10.0-power/extra/jemalloc/config.guess: unable to guess system type
      
      This script, last modified 2012-02-10, has failed to recognize
      the operating system you are using. It is advised that you
      download the most up to date version of the config scripts from
      
        http://git.savannah.gnu.org/gitweb/?p=config.git;a=blob_plain;f=config.guess;hb=HEAD
      and
        http://git.savannah.gnu.org/gitweb/?p=config.git;a=blob_plain;f=config.sub;hb=HEAD
      
      

      Following those instructions and updating config.guess and config.sub fixes this problem. Not sure how to fix cmake above.

        Gliffy Diagrams

          Attachments

            Issue Links

              Activity

              Hide
              serg Sergei Golubchik added a comment -

              I suppose one needs to run autoreconf in jmalloc (and may be xz) directories to update all autotool-generated files.
              And commit.

              Show
              serg Sergei Golubchik added a comment - I suppose one needs to run autoreconf in jmalloc (and may be xz) directories to update all autotool-generated files. And commit.
              Hide
              svoj Sergey Vojtovich added a comment -

              Couldn't reproduce the first problem:

              $ cd 10.0
              $ cmake -DCMAKE_CXX_COMPILER="g++-4.8"
              ...
              -- Check if the system is big endian
              -- Searching 16 bit integer
              -- Check size of unsigned short
              -- Check size of unsigned short - done
              -- Using unsigned short
              -- Check if the system is big endian - little endian
              ...
              
              Show
              svoj Sergey Vojtovich added a comment - Couldn't reproduce the first problem: $ cd 10.0 $ cmake -DCMAKE_CXX_COMPILER="g++-4.8" ... -- Check if the system is big endian -- Searching 16 bit integer -- Check size of unsigned short -- Check size of unsigned short - done -- Using unsigned short -- Check if the system is big endian - little endian ...
              Hide
              svoj Sergey Vojtovich added a comment -

              The second problem is fixed in upstream jemalloc: https://github.com/jemalloc/jemalloc/commit/d79d59b86649104e198e4b6a0892e673fcaada09

              There are also many bug fixes since 3.3.1: https://raw.githubusercontent.com/jemalloc/jemalloc/master/ChangeLog

              Sergei, please consider upgrading jemalloc.

              Show
              svoj Sergey Vojtovich added a comment - The second problem is fixed in upstream jemalloc: https://github.com/jemalloc/jemalloc/commit/d79d59b86649104e198e4b6a0892e673fcaada09 There are also many bug fixes since 3.3.1: https://raw.githubusercontent.com/jemalloc/jemalloc/master/ChangeLog Sergei, please consider upgrading jemalloc.
              Hide
              serg Sergei Golubchik added a comment -

              As discussed on IRC, I'm going to remove it completely and use system jemalloc.

              Show
              serg Sergei Golubchik added a comment - As discussed on IRC, I'm going to remove it completely and use system jemalloc.
              Hide
              axel Axel Schwenke added a comment -

              The first problem only happens when building with ATC

              $ cd 10.0
              $ PATH=/opt/at7.1/bin:$PATH cmake .
              
              Show
              axel Axel Schwenke added a comment - The first problem only happens when building with ATC $ cd 10.0 $ PATH=/opt/at7.1/bin:$PATH cmake .

                People

                • Assignee:
                  serg Sergei Golubchik
                  Reporter:
                  axel Axel Schwenke
                • Votes:
                  0 Vote for this issue
                  Watchers:
                  3 Start watching this issue

                  Dates

                  • Created:
                    Updated:
                    Resolved:

                    Time Tracking

                    Estimated:
                    Original Estimate - Not Specified
                    Not Specified
                    Remaining:
                    Remaining Estimate - 0 minutes
                    0m
                    Logged:
                    Time Spent - 40 minutes
                    40m