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

Compilation failure with GCC 5.1

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Major - P3
    • Resolution: Won't Fix
    • Affects Version/s: None
    • Fix Version/s: None
    • Component/s: Internal Code
    • Labels:
      None
    • Backwards Compatibility:
      Fully Compatible
    • Operating System:
      ALL
    • Backport Completed:
    • Steps To Reproduce:
      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
    • Sprint:
      Platform 6 07/17/15

      Description

      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
      
      

        Attachments

          Activity

            People

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

              Dates

              • Created:
                Updated:
                Resolved: