Summary: | dev-db/mongodb - Fails to build when dev-libs/boost was built with enabled support for C++11. | ||
---|---|---|---|
Product: | Gentoo Linux | Reporter: | Arfrever Frehtes Taifersar Arahesis <arfrever.fta> |
Component: | [OLD] Development | Assignee: | Ultrabug <ultrabug> |
Status: | RESOLVED WONTFIX | ||
Severity: | normal | CC: | bugs, tomwij |
Priority: | Normal | Keywords: | PATCH |
Version: | unspecified | ||
Hardware: | All | ||
OS: | All | ||
Whiteboard: | |||
Package list: | Runtime testing required: | --- | |
Attachments: |
mongodb.patch
${FILESDIR}/mongodb-2.2.1-c++11.patch |
Description
Arfrever Frehtes Taifersar Arahesis
2012-11-05 02:16:20 UTC
When C++11 is enabled in dev-db/mongodb: x86_64-pc-linux-gnu-g++ -o build/linux2/cc_x86_64-pc-linux-gnu-gcc/cxx_x86_64-pc-linux-gnu-g++/use-system-boost/use-system-pcre/use-system-snappy/use-system-tcmalloc/usev8/mongo/util/processinfo_linux2.o -c -march=core2 -O2 -fno-ident -frecord-gcc-switches -pipe -Wall -I/usr/include/boost-1_51 -std=c++11 -O3 -fPIC -fno-strict-aliasing -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -fno-builtin-memcmp -D_SCONS -DMONGO_EXPOSE_MACROS -DSUPPORT_UTF8 -D_FILE_OFFSET_BITS=64 -DMONGO_HAVE_HEADER_UNISTD_H -DMONGO_HAVE_EXECINFO_BACKTRACE -DXP_UNIX -Ibuild/linux2/cc_x86_64-pc-linux-gnu-gcc/cxx_x86_64-pc-linux-gnu-g++/use-system-boost/use-system-pcre/use-system-snappy/use-system-tcmalloc/usev8 -Isrc -Ibuild/linux2/cc_x86_64-pc-linux-gnu-gcc/cxx_x86_64-pc-linux-gnu-g++/use-system-boost/use-system-pcre/use-system-snappy/use-system-tcmalloc/usev8/mongo -Isrc/mongo -I/var/tmp/portage/dev-db/mongodb-2.2.1/work/v8/include -Ibuild/linux2/cc_x86_64-pc-linux-gnu-gcc/cxx_x86_64-pc-linux-gnu-g++/use-system-boost/use-system-pcre/use-system-snappy/use-system-tcmalloc/usev8/third_party/js-1.7 -Isrc/third_party/js-1.7 src/mongo/util/processinfo_linux2.cpp src/mongo/util/processinfo_linux2.cpp: In constructor 'mongo::LinuxProc::LinuxProc(pid_t)': src/mongo/util/processinfo_linux2.cpp:62:74: error: unable to find string literal operator 'operator"" KLF' In file included from /usr/include/boost-1_51/boost/system/system_error.hpp:14:0, from /usr/include/boost-1_51/boost/thread/exceptions.hpp:22, from /usr/include/boost-1_51/boost/thread/pthread/thread_data.hpp:10, from /usr/include/boost-1_51/boost/thread/pthread/condition_variable.hpp:11, from /usr/include/boost-1_51/boost/thread/condition_variable.hpp:16, from src/mongo/util/goodies.h:22, from src/mongo/pch.h:78, from src/mongo/db/jsobj.h:31, from src/mongo/util/processinfo.h:30, from src/mongo/util/processinfo_linux2.cpp:26: /usr/include/boost-1_51/boost/system/error_code.hpp: At global scope: /usr/include/boost-1_51/boost/system/error_code.hpp:214:36: warning: 'boost::system::posix_category' defined but not used [-Wunused-variable] /usr/include/boost-1_51/boost/system/error_code.hpp:215:36: warning: 'boost::system::errno_ecat' defined but not used [-Wunused-variable] /usr/include/boost-1_51/boost/system/error_code.hpp:216:36: warning: 'boost::system::native_ecat' defined but not used [-Wunused-variable] scons: *** [build/linux2/cc_x86_64-pc-linux-gnu-gcc/cxx_x86_64-pc-linux-gnu-g++/use-system-boost/use-system-pcre/use-system-snappy/use-system-tcmalloc/usev8/mongo/util/processinfo_linux2.o] Error 1 scons: building terminated because of errors. Created attachment 328404 [details, diff]
mongodb.patch
Created attachment 328406 [details, diff]
${FILESDIR}/mongodb-2.2.1-c++11.patch
emerge --info output? (compiler version et al) Although you might still need the `emerge --info` for another reason you need to be aware that there are similar Boost related bugs posted by this reporter: https://bugs.gentoo.org/show_bug.cgi?id=441804 https://bugs.gentoo.org/show_bug.cgi?id=441810 https://bugs.gentoo.org/show_bug.cgi?id=441812 These (amongst 6 others) are all tracked in this bug by the same reporter: https://bugs.gentoo.org/show_bug.cgi?id=439892 The titles mention GCC 4.7 is used, above tracker blocks the GCC 4.7 porting bug: https://bugs.gentoo.org/show_bug.cgi?id=390247 C++11 support is one whole topic of its own, let's keep it that way for now, shall we? These patches still need to be committed. |