Uploaded image for project: 'Data Management'
  1. Data Management
  2. DM-4529

Compilation errors from CLang (Apple LLVM 7.0) in XCode 7 on MacOSX

    XMLWordPrintable

Details

    • Bug
    • Status: Done
    • Resolution: Done
    • None
    • Qserv
    • None

    Description

      Compiling on MacOSX Yosemite with XCode 7, a number of files fail compilation.


      core/modules/util/EventThread.h,cc fails because uint is used as a data type. This is non-standard (though some compilers support it), and should be replaced with unsigned int.


      core/modules/wbase/SendChannel.h,cc fails because #include <functional> is missing.


      core/modules/wsched/ChunkState.cc fails because #include <iostream> is missing.


      build/qmeta/qmetaLib_wrap.cc (generated by SWIG) fails with many errors because the typedef unsigned long int uint64_t included in qmetaLib.i conflicts with MacOSX's typedef of it as unsigned long long.

      Attachments

        Issue Links

          Activity

            Fixes compilation problems under MacOSX clang70; does not address other warnings on that platform.

            kelsey Mike Kelsey [X] (Inactive) added a comment - Fixes compilation problems under MacOSX clang70; does not address other warnings on that platform.

            Looks OK, just what Tim proposed - squash it into fewer number of commits.

            salnikov Andy Salnikov added a comment - Looks OK, just what Tim proposed - squash it into fewer number of commits.

            Done with Jacek's suggestions and Tim's Git history mods: squashed all the reverts, and modified Andy's "trying" commit message.

            kelsey Mike Kelsey [X] (Inactive) added a comment - Done with Jacek's suggestions and Tim's Git history mods: squashed all the reverts, and modified Andy's "trying" commit message.

            Both reviewers signed off; confirmation build on MacOSX (clang70) had no errors.

            kelsey Mike Kelsey [X] (Inactive) added a comment - Both reviewers signed off; confirmation build on MacOSX (clang70) had no errors.

            People

              Unassigned Unassigned
              fritzm Fritz Mueller
              Andy Salnikov, Tim Jenness
              Andy Salnikov, Mike Kelsey [X] (Inactive), Tim Jenness
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:

                Jenkins

                  No builds found.