Uploaded image for project: 'WiredTiger'
  1. WiredTiger
  2. WT-7399

MacOS 11.2.3 default clang-12 build fails without -Wno-poison-system-directories

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Open
    • Priority: Major - P3
    • Resolution: Unresolved
    • Affects Version/s: None
    • Fix Version/s: Backlog
    • Component/s: None
    • Labels:

      Description

      I am using clang-12:

      Sulabhs-MacBook-Pro:build_posix sulabh$ clang --version
      Apple clang version 12.0.0 (clang-1200.0.32.29)
      Target: x86_64-apple-darwin20.3.0
      Thread model: posix
      InstalledDir: /Library/Developer/CommandLineTools/usr/bin
      

      config.status: creating test/syscall/Makefile
      config.status: creating test/thread/Makefile
      config.status: creating bench/workgen/Makefile
      config.status: creating bench/wtperf/Makefile
      config.status: creating tools/xray_to_optrack/Makefile
      config.status: creating Makefile
      config.status: creating wiredtiger.h
      config.status: creating wiredtiger_ext.h
      config.status: creating wiredtiger.pc
      config.status: creating wiredtiger_config.h
      config.status: wiredtiger_config.h is unchanged
      config.status: executing depfiles commands
      config.status: executing libtool commands
      /Library/Developer/CommandLineTools/usr/bin/make  all-recursive
      Making all in ext/collators/reverse
        CC       reverse_collator.lo
      error: include location '/usr/local/include' is unsafe for cross-compilation [-Werror,-Wpoison-system-directories]
      1 error generated.
      make[2]: *** [reverse_collator.lo] Error 1
      make[1]: *** [all-recursive] Error 1
      make: *** [all] Error 2
      

      It probably is a new addition to help secure cross-compilation. The work here should be finding out the best way to get the compilation passing without having to silence the warning.

        Attachments

          Activity

            People

            Assignee:
            backlog-server-storage-engines Backlog - Storage Engines Team
            Reporter:
            sulabh.mahajan Sulabh Mahajan
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Dates

              Created:
              Updated: