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

Compilation failed on Gentoo GCC-4.4

    • Type: Icon: Bug Bug
    • Resolution: Done
    • Priority: Icon: Major - P3 Major - P3
    • 1.6.1, 1.7.0
    • Affects Version/s: 1.6.0
    • Component/s: Build
    • None
    • Environment:
      Gentoo Linux, gcc (Gentoo 4.4.3-r2 p1.2) 4.4.3, glibc 2.11.2
    • Linux

      /mongodb-src-r1.6.0: scons .

      scons: Reading SConscript files ...
      scons version: 1.3.0.d20100501
      python version: 2 6 5 'final' 0
      Checking whether the C++ compiler works(cached) yes
      Checking for C library stdc++... (cached) yes
      Checking for C++ header file pcrecpp.h... (cached) yes
      Checking for C++ header file boost/filesystem/operations.hpp... (cached) yes
      Checking for C library boost_system-mt... (cached) yes
      Checking for C library boost_thread-mt... (cached) yes
      Checking for C library boost_filesystem-mt... (cached) yes
      Checking for C library boost_program_options-mt... (cached) yes
      Checking for C++ header file execinfo.h... (cached) yes
      Checking for C library pcrecpp... (cached) yes
      Checking for C library pcre... (cached) yes
      Checking for C library pcap... (cached) yes
      Checking for C library mozjs... (cached) no
      Checking for C library js... (cached) yes
      Checking for C header file js/jsapi.h... (cached) yes
      Checking whether the C++ compiler works(cached) yes
      Checking for C++ header file boost/filesystem/operations.hpp... (cached) yes
      Checking for C library boost_system-mt... (cached) yes
      Checking for C library boost_thread-mt... (cached) yes
      Checking for C library boost_filesystem-mt... (cached) yes
      Checking for C library boost_program_options-mt... (cached) yes
      Checking for C++ header file execinfo.h... (cached) yes
      Checking for C library pcap... (cached) yes
      Checking for C library mozjs... (cached) no
      Checking for C library js... (cached) yes
      Checking for C header file js/jsapi.h... (cached) yes
      Checking for C library readline... (cached) yes
      Checking for C library ncurses... (cached) yes
      Checking for C library tinfo... (cached) no
      Checking for C library rt... (cached) yes
      scons: done reading SConscript files.
      scons: Building targets ...
      g++ -o client/examples/authTest.o -c -Wnon-virtual-dtor -fPIC -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -Werror -O3 -D_SCONS -DMONGO_EXPOSE_MACROS -DXP_UNIX -I. -I/home/maxp/in client/examples/authTest.cpp
      cc1plus: warnings being treated as errors
      In file included from ./client/../pch.h:150,
      from ./client/dbclient.h:20,
      from client/examples/authTest.cpp:20:
      ./client/../util/log.h: In static member function 'static void mongo::Logstream::logLockless(const mongo::StringData&)':
      ./client/../util/log.h:163: error: ignoring return value of 'size_t fwrite(const void*, size_t, size_t, FILE*)', declared with attribute warn_unused_result
      ./client/../util/log.h: In member function 'virtual void mongo::Logstream::flush(mongo::Tee*)':
      ./client/../util/log.h:219: error: ignoring return value of 'size_t fwrite(const void*, size_t, size_t, FILE*)', declared with attribute warn_unused_result
      scons: *** [client/examples/authTest.o] Error 1
      scons: building terminated because of errors.

            Assignee:
            mathias@mongodb.com Mathias Stearn
            Reporter:
            maxp Maxim Penzin
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved: