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

Fix build on FreeBSD/powerpc64le

    • Type: Icon: Improvement Improvement
    • Resolution: Fixed
    • Priority: Icon: Major - P3 Major - P3
    • 4.9.0
    • Affects Version/s: 5.0 Desired
    • Component/s: None
    • Fully Compatible
    • Dev Platform 2021-01-25, Dev Platform 2021-02-08, Dev Platform 2021-02-22

      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.

            Assignee:
            andrew.morrow@mongodb.com Andrew Morrow (Inactive)
            Reporter:
            pkubaj@anongoth.pl Piotr Kubaj
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated:
              Resolved: