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

Fix build on FreeBSD/powerpc64le

    XMLWordPrintable

    Details

    • Type: Improvement
    • Status: Closed
    • Priority: Major - P3
    • Resolution: Fixed
    • Affects Version/s: 5.0 Desired
    • Fix Version/s: 4.9.0
    • Component/s: None
    • Labels:
    • Backwards Compatibility:
      Fully Compatible
    • Sprint:
      Dev Platform 2021-01-25, Dev Platform 2021-02-08, Dev Platform 2021-02-22

      Description

      Changes done:

      1. Add registers for R01_sig and R32_sig on FreeBSD/powerpc64le.
      2. Add mozjs config and source files.
      3. Rename src/checksum/power8/crc32.sx to src/checksum/power8/crc32.S.
        The reason is that Clang refuses to build .sx files and needs .S for assembly.
        This should also help building with Clang on other operating systems.
      4. Clang doesn't have ppc-asm.h header. When building with Clang, use the
        bundled ppc-asm.h file from GCC (this is what upstream at https://github.com/antonblanchard/crc32-vpmsum does).
        This should also help building with Clang on other operating systems.
      Original Description

      MongoDB currently supports only Linux on ppc64le architecture. Supporting FreeBSD is trivial and has been implemented in https://github.com/mongodb/mongo/pull/1390

      It's already committed in FreeBSD ports tree in databases/mongodb40, databases/mongodb42 and databases/mongodb44 ports.

        Attachments

          Issue Links

            Activity

              People

              Assignee:
              acm Andrew Morrow
              Reporter:
              pkubaj@anongoth.pl Piotr Kubaj
              Participants:
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

                Dates

                Created:
                Updated:
                Resolved: