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

compile error on smartos/solaris (s2 library)

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Major - P3
    • Resolution: Duplicate
    • Affects Version/s: 2.4.5
    • Fix Version/s: None
    • Component/s: Geo
    • Labels:
      None
    • Environment:
    • Operating System:
      Solaris
    • Steps To Reproduce:
      Hide

      scons --cc=/opt/local/bin/gcc --cxx=/opt/local/bin/g++ --64 --ssl --cpppath=/opt/local/include --extrapath=/opt/local all

      Show
      scons --cc=/opt/local/bin/gcc --cxx=/opt/local/bin/g++ --64 --ssl --cpppath=/opt/local/include --extrapath=/opt/local all

      Description

      compile error:
      call of overloaded 'sqrt(int)' is ambiguous

      /opt/local/bin/g++ -o build/sunos5/64/cc__opt_local_bin_gcc/cpppath__opt_local_include/cxx__opt_local_bin_g++/extrapath__opt_local/ssl/third_party/s2/s2.o -c -Wnon-virtual-dtor -Woverloaded-virtual -fPIC -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O3 -m64 -Isrc/third_party/s2 -DDEBUG_MODE=false -DBOOST_ALL_NO_LIB -D_SCONS -DMONGO_EXPOSE_MACROS -DSUPPORT_UTF8 -D__sunos__ -D_FILE_OFFSET_BITS=64 -DMONGO_SSL -DMONGO_HAVE_HEADER_UNISTD_H -DMONGO_HAVE_EXECINFO_BACKTRACE -Ibuild/sunos5/64/cc__opt_local_bin_gcc/cpppath__opt_local_include/cxx__opt_local_bin_g++/extrapath__opt_local/ssl/third_party/libstemmer_c/include -Isrc/third_party/libstemmer_c/include -Ibuild/sunos5/64/cc__opt_local_bin_gcc/cpppath__opt_local_include/cxx__opt_local_bin_g++/extrapath__opt_local/ssl/third_party/s2 -Isrc/third_party/s2 -Ibuild/sunos5/64/cc__opt_local_bin_gcc/cpppath__opt_local_include/cxx__opt_local_bin_g++/extrapath__opt_local/ssl/third_party/boost -Isrc/third_party/boost -Ibuild/sunos5/64/cc__opt_local_bin_gcc/cpppath__opt_local_include/cxx__opt_local_bin_g++/extrapath__opt_local/ssl/third_party/pcre-8.30 -Isrc/third_party/pcre-8.30 -Ibuild/sunos5/64/cc__opt_local_bin_gcc/cpppath__opt_local_include/cxx__opt_local_bin_g++/extrapath__opt_local/ssl -Isrc -Ibuild/sunos5/64/cc__opt_local_bin_gcc/cpppath__opt_local_include/cxx__opt_local_bin_g++/extrapath__opt_local/ssl/mongo -Isrc/mongo -I/opt/local/include -I/opt/local/include src/third_party/s2/s2.cc
      src/third_party/s2/s2.cc:702:60: error: call of overloaded 'sqrt(int)' is ambiguous
      src/third_party/s2/s2.cc:702:60: note: candidates are:
      In file included from /opt/local/gcc47/lib/gcc/x86_64-sun-solaris2.11/4.7.2/include-fixed/math.h:46:0,
                       from src/third_party/s2/util/math/vector3-inl.h:37,
                       from src/third_party/s2/s2.h:26,
                       from src/third_party/s2/s2.cc:3:
      /opt/local/gcc47/lib/gcc/x86_64-sun-solaris2.11/4.7.2/include-fixed/iso/math_iso.h:232:21: note: long double std::sqrt(long double)
      /opt/local/gcc47/lib/gcc/x86_64-sun-solaris2.11/4.7.2/include-fixed/iso/math_iso.h:198:15: note: float std::sqrt(float)
      /opt/local/gcc47/lib/gcc/x86_64-sun-solaris2.11/4.7.2/include-fixed/iso/math_iso.h:93:15: note: double std::sqrt(double)
      src/third_party/s2/s2.cc:703:58: error: call of overloaded 'sqrt(int)' is ambiguous
      src/third_party/s2/s2.cc:703:58: note: candidates are:
      In file included from /opt/local/gcc47/lib/gcc/x86_64-sun-solaris2.11/4.7.2/include-fixed/math.h:46:0,
                       from src/third_party/s2/util/math/vector3-inl.h:37,
                       from src/third_party/s2/s2.h:26,
                       from src/third_party/s2/s2.cc:3:
      /opt/local/gcc47/lib/gcc/x86_64-sun-solaris2.11/4.7.2/include-fixed/iso/math_iso.h:232:21: note: long double std::sqrt(long double)
      /opt/local/gcc47/lib/gcc/x86_64-sun-solaris2.11/4.7.2/include-fixed/iso/math_iso.h:198:15: note: float std::sqrt(float)
      /opt/local/gcc47/lib/gcc/x86_64-sun-solaris2.11/4.7.2/include-fixed/iso/math_iso.h:93:15: note: double std::sqrt(double)
      src/third_party/s2/s2.cc:716:55: error: call of overloaded 'sqrt(int)' is ambiguous
      src/third_party/s2/s2.cc:716:55: note: candidates are:
      In file included from /opt/local/gcc47/lib/gcc/x86_64-sun-solaris2.11/4.7.2/include-fixed/math.h:46:0,
                       from src/third_party/s2/util/math/vector3-inl.h:37,
                       from src/third_party/s2/s2.h:26,
                       from src/third_party/s2/s2.cc:3:
      /opt/local/gcc47/lib/gcc/x86_64-sun-solaris2.11/4.7.2/include-fixed/iso/math_iso.h:232:21: note: long double std::sqrt(long double)
      /opt/local/gcc47/lib/gcc/x86_64-sun-solaris2.11/4.7.2/include-fixed/iso/math_iso.h:198:15: note: float std::sqrt(float)
      /opt/local/gcc47/lib/gcc/x86_64-sun-solaris2.11/4.7.2/include-fixed/iso/math_iso.h:93:15: note: double std::sqrt(double)
      src/third_party/s2/s2.cc:717:60: error: call of overloaded 'sqrt(int)' is ambiguous
      src/third_party/s2/s2.cc:717:60: note: candidates are:
      In file included from /opt/local/gcc47/lib/gcc/x86_64-sun-solaris2.11/4.7.2/include-fixed/math.h:46:0,
                       from src/third_party/s2/util/math/vector3-inl.h:37,
                       from src/third_party/s2/s2.h:26,
                       from src/third_party/s2/s2.cc:3:
      /opt/local/gcc47/lib/gcc/x86_64-sun-solaris2.11/4.7.2/include-fixed/iso/math_iso.h:232:21: note: long double std::sqrt(long double)
      /opt/local/gcc47/lib/gcc/x86_64-sun-solaris2.11/4.7.2/include-fixed/iso/math_iso.h:198:15: note: float std::sqrt(float)
      /opt/local/gcc47/lib/gcc/x86_64-sun-solaris2.11/4.7.2/include-fixed/iso/math_iso.h:93:15: note: double std::sqrt(double)
      src/third_party/s2/s2.cc:718:58: error: call of overloaded 'sqrt(int)' is ambiguous
      src/third_party/s2/s2.cc:718:58: note: candidates are:
      In file included from /opt/local/gcc47/lib/gcc/x86_64-sun-solaris2.11/4.7.2/include-fixed/math.h:46:0,
                       from src/third_party/s2/util/math/vector3-inl.h:37,
                       from src/third_party/s2/s2.h:26,
                       from src/third_party/s2/s2.cc:3:
      /opt/local/gcc47/lib/gcc/x86_64-sun-solaris2.11/4.7.2/include-fixed/iso/math_iso.h:232:21: note: long double std::sqrt(long double)
      /opt/local/gcc47/lib/gcc/x86_64-sun-solaris2.11/4.7.2/include-fixed/iso/math_iso.h:198:15: note: float std::sqrt(float)
      /opt/local/gcc47/lib/gcc/x86_64-sun-solaris2.11/4.7.2/include-fixed/iso/math_iso.h:93:15: note: double std::sqrt(double)
      src/third_party/s2/s2.cc:731:55: error: call of overloaded 'sqrt(int)' is ambiguous
      src/third_party/s2/s2.cc:731:55: note: candidates are:
      In file included from /opt/local/gcc47/lib/gcc/x86_64-sun-solaris2.11/4.7.2/include-fixed/math.h:46:0,
                       from src/third_party/s2/util/math/vector3-inl.h:37,
                       from src/third_party/s2/s2.h:26,
                       from src/third_party/s2/s2.cc:3:
      /opt/local/gcc47/lib/gcc/x86_64-sun-solaris2.11/4.7.2/include-fixed/iso/math_iso.h:232:21: note: long double std::sqrt(long double)
      /opt/local/gcc47/lib/gcc/x86_64-sun-solaris2.11/4.7.2/include-fixed/iso/math_iso.h:198:15: note: float std::sqrt(float)
      /opt/local/gcc47/lib/gcc/x86_64-sun-solaris2.11/4.7.2/include-fixed/iso/math_iso.h:93:15: note: double std::sqrt(double)
      src/third_party/s2/s2.cc:732:55: error: call of overloaded 'sqrt(int)' is ambiguous
      src/third_party/s2/s2.cc:732:55: note: candidates are:
      In file included from /opt/local/gcc47/lib/gcc/x86_64-sun-solaris2.11/4.7.2/include-fixed/math.h:46:0,
                       from src/third_party/s2/util/math/vector3-inl.h:37,
                       from src/third_party/s2/s2.h:26,
                       from src/third_party/s2/s2.cc:3:
      /opt/local/gcc47/lib/gcc/x86_64-sun-solaris2.11/4.7.2/include-fixed/iso/math_iso.h:232:21: note: long double std::sqrt(long double)
      /opt/local/gcc47/lib/gcc/x86_64-sun-solaris2.11/4.7.2/include-fixed/iso/math_iso.h:198:15: note: float std::sqrt(float)
      /opt/local/gcc47/lib/gcc/x86_64-sun-solaris2.11/4.7.2/include-fixed/iso/math_iso.h:93:15: note: double std::sqrt(double)
      src/third_party/s2/s2.cc:733:58: error: call of overloaded 'sqrt(int)' is ambiguous
      src/third_party/s2/s2.cc:733:58: note: candidates are:
      In file included from /opt/local/gcc47/lib/gcc/x86_64-sun-solaris2.11/4.7.2/include-fixed/math.h:46:0,
                       from src/third_party/s2/util/math/vector3-inl.h:37,
                       from src/third_party/s2/s2.h:26,
                       from src/third_party/s2/s2.cc:3:
      /opt/local/gcc47/lib/gcc/x86_64-sun-solaris2.11/4.7.2/include-fixed/iso/math_iso.h:232:21: note: long double std::sqrt(long double)
      /opt/local/gcc47/lib/gcc/x86_64-sun-solaris2.11/4.7.2/include-fixed/iso/math_iso.h:198:15: note: float std::sqrt(float)
      /opt/local/gcc47/lib/gcc/x86_64-sun-solaris2.11/4.7.2/include-fixed/iso/math_iso.h:93:15: note: double std::sqrt(double)
      src/third_party/s2/s2.cc:737:55: error: call of overloaded 'sqrt(int)' is ambiguous
      src/third_party/s2/s2.cc:737:55: note: candidates are:
      In file included from /opt/local/gcc47/lib/gcc/x86_64-sun-solaris2.11/4.7.2/include-fixed/math.h:46:0,
                       from src/third_party/s2/util/math/vector3-inl.h:37,
                       from src/third_party/s2/s2.h:26,
                       from src/third_party/s2/s2.cc:3:
      /opt/local/gcc47/lib/gcc/x86_64-sun-solaris2.11/4.7.2/include-fixed/iso/math_iso.h:232:21: note: long double std::sqrt(long double)
      /opt/local/gcc47/lib/gcc/x86_64-sun-solaris2.11/4.7.2/include-fixed/iso/math_iso.h:198:15: note: float std::sqrt(float)
      /opt/local/gcc47/lib/gcc/x86_64-sun-solaris2.11/4.7.2/include-fixed/iso/math_iso.h:93:15: note: double std::sqrt(double)
      src/third_party/s2/s2.cc:749:60: error: call of overloaded 'sqrt(int)' is ambiguous
      src/third_party/s2/s2.cc:749:60: note: candidates are:
      In file included from /opt/local/gcc47/lib/gcc/x86_64-sun-solaris2.11/4.7.2/include-fixed/math.h:46:0,
                       from src/third_party/s2/util/math/vector3-inl.h:37,
                       from src/third_party/s2/s2.h:26,
                       from src/third_party/s2/s2.cc:3:
      /opt/local/gcc47/lib/gcc/x86_64-sun-solaris2.11/4.7.2/include-fixed/iso/math_iso.h:232:21: note: long double std::sqrt(long double)
      /opt/local/gcc47/lib/gcc/x86_64-sun-solaris2.11/4.7.2/include-fixed/iso/math_iso.h:198:15: note: float std::sqrt(float)
      /opt/local/gcc47/lib/gcc/x86_64-sun-solaris2.11/4.7.2/include-fixed/iso/math_iso.h:93:15: note: double std::sqrt(double)
      src/third_party/s2/s2.cc:750:65: error: call of overloaded 'sqrt(int)' is ambiguous
      src/third_party/s2/s2.cc:750:65: note: candidates are:
      In file included from /opt/local/gcc47/lib/gcc/x86_64-sun-solaris2.11/4.7.2/include-fixed/math.h:46:0,
                       from src/third_party/s2/util/math/vector3-inl.h:37,
                       from src/third_party/s2/s2.h:26,
                       from src/third_party/s2/s2.cc:3:
      /opt/local/gcc47/lib/gcc/x86_64-sun-solaris2.11/4.7.2/include-fixed/iso/math_iso.h:232:21: note: long double std::sqrt(long double)
      /opt/local/gcc47/lib/gcc/x86_64-sun-solaris2.11/4.7.2/include-fixed/iso/math_iso.h:198:15: note: float std::sqrt(float)
      /opt/local/gcc47/lib/gcc/x86_64-sun-solaris2.11/4.7.2/include-fixed/iso/math_iso.h:93:15: note: double std::sqrt(double)
      src/third_party/s2/s2.cc:751:58: error: call of overloaded 'sqrt(int)' is ambiguous
      src/third_party/s2/s2.cc:751:58: note: candidates are:
      In file included from /opt/local/gcc47/lib/gcc/x86_64-sun-solaris2.11/4.7.2/include-fixed/math.h:46:0,
                       from src/third_party/s2/util/math/vector3-inl.h:37,
                       from src/third_party/s2/s2.h:26,
                       from src/third_party/s2/s2.cc:3:
      /opt/local/gcc47/lib/gcc/x86_64-sun-solaris2.11/4.7.2/include-fixed/iso/math_iso.h:232:21: note: long double std::sqrt(long double)
      /opt/local/gcc47/lib/gcc/x86_64-sun-solaris2.11/4.7.2/include-fixed/iso/math_iso.h:198:15: note: float std::sqrt(float)
      /opt/local/gcc47/lib/gcc/x86_64-sun-solaris2.11/4.7.2/include-fixed/iso/math_iso.h:93:15: note: double std::sqrt(double)
      src/third_party/s2/s2.cc:764:51: error: call of overloaded 'sqrt(int)' is ambiguous
      src/third_party/s2/s2.cc:764:51: note: candidates are:
      In file included from /opt/local/gcc47/lib/gcc/x86_64-sun-solaris2.11/4.7.2/include-fixed/math.h:46:0,
                       from src/third_party/s2/util/math/vector3-inl.h:37,
                       from src/third_party/s2/s2.h:26,
                       from src/third_party/s2/s2.cc:3:
      /opt/local/gcc47/lib/gcc/x86_64-sun-solaris2.11/4.7.2/include-fixed/iso/math_iso.h:232:21: note: long double std::sqrt(long double)
      /opt/local/gcc47/lib/gcc/x86_64-sun-solaris2.11/4.7.2/include-fixed/iso/math_iso.h:198:15: note: float std::sqrt(float)
      /opt/local/gcc47/lib/gcc/x86_64-sun-solaris2.11/4.7.2/include-fixed/iso/math_iso.h:93:15: note: double std::sqrt(double)
      src/third_party/s2/s2.cc:765:49: error: call of overloaded 'sqrt(int)' is ambiguous
      src/third_party/s2/s2.cc:765:49: note: candidates are:
      In file included from /opt/local/gcc47/lib/gcc/x86_64-sun-solaris2.11/4.7.2/include-fixed/math.h:46:0,
                       from src/third_party/s2/util/math/vector3-inl.h:37,
                       from src/third_party/s2/s2.h:26,
                       from src/third_party/s2/s2.cc:3:
      /opt/local/gcc47/lib/gcc/x86_64-sun-solaris2.11/4.7.2/include-fixed/iso/math_iso.h:232:21: note: long double std::sqrt(long double)
      /opt/local/gcc47/lib/gcc/x86_64-sun-solaris2.11/4.7.2/include-fixed/iso/math_iso.h:198:15: note: float std::sqrt(float)
      /opt/local/gcc47/lib/gcc/x86_64-sun-solaris2.11/4.7.2/include-fixed/iso/math_iso.h:93:15: note: double std::sqrt(double)
      src/third_party/s2/s2.cc:769:41: error: call of overloaded 'sqrt(int)' is ambiguous
      src/third_party/s2/s2.cc:769:41: note: candidates are:
      In file included from /opt/local/gcc47/lib/gcc/x86_64-sun-solaris2.11/4.7.2/include-fixed/math.h:46:0,
                       from src/third_party/s2/util/math/vector3-inl.h:37,
                       from src/third_party/s2/s2.h:26,
                       from src/third_party/s2/s2.cc:3:
      /opt/local/gcc47/lib/gcc/x86_64-sun-solaris2.11/4.7.2/include-fixed/iso/math_iso.h:232:21: note: long double std::sqrt(long double)
      /opt/local/gcc47/lib/gcc/x86_64-sun-solaris2.11/4.7.2/include-fixed/iso/math_iso.h:198:15: note: float std::sqrt(float)
      /opt/local/gcc47/lib/gcc/x86_64-sun-solaris2.11/4.7.2/include-fixed/iso/math_iso.h:93:15: note: double std::sqrt(double)
      scons: *** [build/sunos5/64/cc__opt_local_bin_gcc/cpppath__opt_local_include/cxx__opt_local_bin_g++/extrapath__opt_local/ssl/third_party/s2/s2.o] Error 1
      scons: building terminated because of errors.

        Attachments

          Issue Links

            Activity

              People

              • Votes:
                0 Vote for this issue
                Watchers:
                6 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: