Uploaded image for project: 'Core Server'
  1. Core Server
  2. SERVER-68043

Unable to build on ppc64le

    • Type: Icon: Bug Bug
    • Resolution: Done
    • Priority: Icon: Major - P3 Major - P3
    • None
    • Affects Version/s: 5.3.0, 6.0.0-rc0
    • Component/s: Build
    • Labels:
    • Environment:
      # uname -a
      Linux p1313-pvm1 4.18.0-348.7.1.el8_5.ppc64le #1 SMP Wed Dec 8 21:26:34 EST 2021 ppc64le ppc64le ppc64le GNU/Linux

      # cat /etc/redhat-release
      Red Hat Enterprise Linux release 8.6 (Ootpa)
    • ALL
    • Hide

      dnf update -ydnf install -y git gcc gcc-c++ openssl openssl-devel bzip2 bzip2-devel libffi libffi-devel zlib zlib-devel xz xz-devel make autoconf automake curl curl-develcd /usr/srcwget https://www.python.org/ftp/python/3.7.13/Python-3.7.13.tgztar xzf Python-3.7.13.tgzcd Python-3.7.13./configure --enable-optimizationsmake altinstallupdate-alternatives --install /usr/bin/python3 python3 /usr/local/bin/python3.7 1update-alternatives --set python3 /usr/local/bin/python3.7python3 -m pip install --upgrade pipcd ..git clone https://github.com/mongodb/mongo.gitcd mongo/git fetch origingit switch -c v5.3 origin/v5.3python3 -m pip install -r etc/pip/compile-requirements.txtpython3 buildscripts/scons.py DESTDIR=/opt/mongo install-mongod --disable-warnings-as-errors

      Show
      dnf update -y dnf install -y git gcc gcc-c++ openssl openssl-devel bzip2 bzip2-devel libffi libffi-devel zlib zlib-devel xz xz-devel make autoconf automake curl curl-devel cd /usr/src wget https://www.python.org/ftp/python/3.7.13/Python-3.7.13.tgztar xzf Python-3.7.13.tgz cd Python-3.7.13 ./configure --enable-optimizations make altinstall update-alternatives --install /usr/bin/python3 python3 /usr/local/bin/python3.7 1 update-alternatives --set python3 /usr/local/bin/python3.7 python3 -m pip install --upgrade pip cd .. git clone https://github.com/mongodb/mongo.gitcd mongo/git fetch origin git switch -c v5.3 origin/v5.3 python3 -m pip install -r etc/pip/compile-requirements.txt python3 buildscripts/scons.py DESTDIR=/opt/mongo install-mongod --disable-warnings-as-errors

      As per mentioned on https://github.com/mongodb/mongo/blob/v5.3/docs/building.md

      MongoDB supports the following architectures: arm64, ppc64le, s390x, and x86-64. More detailed platform instructions can be found below.

      I tried to build it but keep getting errors like:

       

      {{{}g++: fatal error: Killed signal terminated program cc1plus
      {}}}compilation terminated.

      and

      build/opt/mongo/db/query/sbe_stage_builder_index_scan.o failed: Error 1

       

      Error as per attached

        1. build-2-error.txt
          24 kB
        2. build-3-error.txt
          20 kB
        3. build-error.txt
          31 kB

            Assignee:
            Unassigned Unassigned
            Reporter:
            aiman.shaharuddin@gmail.com Aiman Shaharuddin
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

              Created:
              Updated:
              Resolved: