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

Compilation failure with GCC 5.1

    • Type: Icon: Bug Bug
    • Resolution: Won't Fix
    • Priority: Icon: Major - P3 Major - P3
    • None
    • Affects Version/s: None
    • Component/s: Internal Code
    • None
    • Fully Compatible
    • ALL
    • Hide

      Install GCC 5.1 on Fedora 22.

      $ git clone https://github.com/mongodb/mongo.git
      $ cd mongo
      $ scons mongod

      Show
      Install GCC 5.1 on Fedora 22. $ git clone https://github.com/mongodb/mongo.git $ cd mongo $ scons mongod
    • Platform 6 07/17/15

      When I build with gcc 5.1 (default GCC on Fedora 22), I see warnings from the boost library.

      My particular compiler version:

      $ gcc --version
      gcc (GCC) 5.1.1 20150618 (Red Hat 5.1.1-4)
      Copyright (C) 2015 Free Software Foundation, Inc.
      This is free software; see the source for copying conditions.  There is NO
      warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
      
      $ g++ --version
      g++ (GCC) 5.1.1 20150618 (Red Hat 5.1.1-4)
      Copyright (C) 2015 Free Software Foundation, Inc.
      This is free software; see the source for copying conditions.  There is NO
      warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
      

      The build warnings are:

      In file included from src/third_party/boost-1.56.0/boost/filesystem/path_traits.hpp:23:0,
                       from src/third_party/boost-1.56.0/boost/filesystem/path.hpp:25,
                       from src/third_party/boost-1.56.0/boost/filesystem/operations.hpp:25,
                       from src/mongo/db/db.cpp:35:
      src/third_party/boost-1.56.0/boost/system/error_code.hpp:221:36: error: 'boost::system::posix_category' defined but not used [-Werror=unused-variable]
           static const error_category &  posix_category = generic_categor
                                          ^
      src/third_party/boost-1.56.0/boost/system/error_code.hpp:222:36: error: 'boost::system::errno_ecat' defined but not used [-Werror=unused-variable]
           static const error_category &  errno_ecat     = generic_categor
                                          ^
      src/third_party/boost-1.56.0/boost/system/error_code.hpp:223:36: error: 'boost::system::native_ecat' defined but not used [-Werror=unused-variable]
           static const error_category &  native_ecat    = system_category
                                          ^
      cc1plus: all warnings being treated as errors
      
      

            Assignee:
            alexander.gorrod@mongodb.com Alexander Gorrod
            Reporter:
            alexander.gorrod@mongodb.com Alexander Gorrod
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

              Created:
              Updated:
              Resolved: