Opened 12 years ago

Closed 12 years ago

Last modified 11 years ago

#37123 closed defect (fixed)

mongodb: clang crashed during build

Reported by: renekoch@… Owned by: ryandesign (Ryan Carsten Schmidt)
Priority: Normal Milestone:
Component: ports Version: 2.1.2
Keywords: Cc: gabipetrovay (Gabriel Petrovay), cooljeanius (Eric Gallager)
Port: mongodb

Description

Forgive me if this ticket isnt complete (my first ticket). I think summary says it all... I've added dump of console, please let me know if u need more info

bash-3.2$ sudo port -v install mongodb
--->  Computing dependencies for mongodb.
--->  Building mongodb
scons: Reading SConscript files ...
scons version: 2.2.0
python version: 2 7 3 'final' 0
Checking whether the C++ compiler works(cached) yes
Checking for C header file unistd.h... (cached) yes
Checking whether clock_gettime is declared... (cached) no
Checking for C++ header file execinfo.h... (cached) yes
Checking whether backtrace is declared... (cached) yes
Checking whether backtrace_symbols is declared... (cached) yes
Checking for C library pcap... (cached) yes
scons: done reading SConscript files.
scons: Building targets ...
/usr/bin/clang++ -o build/darwin/cc__usr_bin_clang/cxx__usr_bin_clang++/extralib_pcre_pcrecpp_js_snappy/use-system-pcre/use-system-sm/use-system-snappy/mongo/db/jsobj.o -c -Wnon-virtual-dtor -Woverloaded-virtual -arch x86_64 -fPIC -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O3 -DBOOST_ALL_NO_LIB -D_SCONS -DMONGO_EXPOSE_MACROS -DSUPPORT_UTF8 -D_FILE_OFFSET_BITS=64 -DJS_C_STRINGS_ARE_UTF8 -DMONGO_HAVE_HEADER_UNISTD_H -DMONGO_HAVE_EXECINFO_BACKTRACE -DXP_UNIX -Ibuild/darwin/cc__usr_bin_clang/cxx__usr_bin_clang++/extralib_pcre_pcrecpp_js_snappy/use-system-pcre/use-system-sm/use-system-snappy/third_party/boost -Isrc/third_party/boost -Ibuild/darwin/cc__usr_bin_clang/cxx__usr_bin_clang++/extralib_pcre_pcrecpp_js_snappy/use-system-pcre/use-system-sm/use-system-snappy -Isrc -Ibuild/darwin/cc__usr_bin_clang/cxx__usr_bin_clang++/extralib_pcre_pcrecpp_js_snappy/use-system-pcre/use-system-sm/use-system-snappy/mongo -Isrc/mongo -I/opt/local/include -I/opt/local/include/js src/mongo/db/jsobj.cpp
/usr/bin/clang++ -o build/darwin/cc__usr_bin_clang/cxx__usr_bin_clang++/extralib_pcre_pcrecpp_js_snappy/use-system-pcre/use-system-sm/use-system-snappy/mongo/db/json.o -c -Wnon-virtual-dtor -Woverloaded-virtual -arch x86_64 -fPIC -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O3 -DBOOST_ALL_NO_LIB -D_SCONS -DMONGO_EXPOSE_MACROS -DSUPPORT_UTF8 -D_FILE_OFFSET_BITS=64 -DJS_C_STRINGS_ARE_UTF8 -DMONGO_HAVE_HEADER_UNISTD_H -DMONGO_HAVE_EXECINFO_BACKTRACE -DXP_UNIX -Ibuild/darwin/cc__usr_bin_clang/cxx__usr_bin_clang++/extralib_pcre_pcrecpp_js_snappy/use-system-pcre/use-system-sm/use-system-snappy/third_party/boost -Isrc/third_party/boost -Ibuild/darwin/cc__usr_bin_clang/cxx__usr_bin_clang++/extralib_pcre_pcrecpp_js_snappy/use-system-pcre/use-system-sm/use-system-snappy -Isrc -Ibuild/darwin/cc__usr_bin_clang/cxx__usr_bin_clang++/extralib_pcre_pcrecpp_js_snappy/use-system-pcre/use-system-sm/use-system-snappy/mongo -Isrc/mongo -I/opt/local/include -I/opt/local/include/js src/mongo/db/json.cpp
ar rc build/darwin/cc__usr_bin_clang/cxx__usr_bin_clang++/extralib_pcre_pcrecpp_js_snappy/use-system-pcre/use-system-sm/use-system-snappy/mongo/libbson_template_evaluator.a build/darwin/cc__usr_bin_clang/cxx__usr_bin_clang++/extralib_pcre_pcrecpp_js_snappy/use-system-pcre/use-system-sm/use-system-snappy/mongo/scripting/bson_template_evaluator.o
ranlib build/darwin/cc__usr_bin_clang/cxx__usr_bin_clang++/extralib_pcre_pcrecpp_js_snappy/use-system-pcre/use-system-sm/use-system-snappy/mongo/libbson_template_evaluator.a
ar rc build/darwin/cc__usr_bin_clang/cxx__usr_bin_clang++/extralib_pcre_pcrecpp_js_snappy/use-system-pcre/use-system-sm/use-system-snappy/mongo/libclientandshell.a build/darwin/cc__usr_bin_clang/cxx__usr_bin_clang++/extralib_pcre_pcrecpp_js_snappy/use-system-pcre/use-system-sm/use-system-snappy/mongo/client/clientAndShell.o
ranlib build/darwin/cc__usr_bin_clang/cxx__usr_bin_clang++/extralib_pcre_pcrecpp_js_snappy/use-system-pcre/use-system-sm/use-system-snappy/mongo/libclientandshell.a
/usr/bin/clang++ -o build/darwin/cc__usr_bin_clang/cxx__usr_bin_clang++/extralib_pcre_pcrecpp_js_snappy/use-system-pcre/use-system-sm/use-system-snappy/mongo/util/version.o -c -Wnon-virtual-dtor -Woverloaded-virtual -arch x86_64 -fPIC -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O3 -DBOOST_ALL_NO_LIB -D_SCONS -DMONGO_EXPOSE_MACROS -DSUPPORT_UTF8 -D_FILE_OFFSET_BITS=64 -DJS_C_STRINGS_ARE_UTF8 -DMONGO_HAVE_HEADER_UNISTD_H -DMONGO_HAVE_EXECINFO_BACKTRACE -DXP_UNIX -Ibuild/darwin/cc__usr_bin_clang/cxx__usr_bin_clang++/extralib_pcre_pcrecpp_js_snappy/use-system-pcre/use-system-sm/use-system-snappy/third_party/boost -Isrc/third_party/boost -Ibuild/darwin/cc__usr_bin_clang/cxx__usr_bin_clang++/extralib_pcre_pcrecpp_js_snappy/use-system-pcre/use-system-sm/use-system-snappy -Isrc -Ibuild/darwin/cc__usr_bin_clang/cxx__usr_bin_clang++/extralib_pcre_pcrecpp_js_snappy/use-system-pcre/use-system-sm/use-system-snappy/mongo -Isrc/mongo -I/opt/local/include -I/opt/local/include/js src/mongo/util/version.cpp
/usr/bin/clang++ -o build/darwin/cc__usr_bin_clang/cxx__usr_bin_clang++/extralib_pcre_pcrecpp_js_snappy/use-system-pcre/use-system-sm/use-system-snappy/mongo/db/common.o -c -Wnon-virtual-dtor -Woverloaded-virtual -arch x86_64 -fPIC -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O3 -DBOOST_ALL_NO_LIB -D_SCONS -DMONGO_EXPOSE_MACROS -DSUPPORT_UTF8 -D_FILE_OFFSET_BITS=64 -DJS_C_STRINGS_ARE_UTF8 -DMONGO_HAVE_HEADER_UNISTD_H -DMONGO_HAVE_EXECINFO_BACKTRACE -DXP_UNIX -Ibuild/darwin/cc__usr_bin_clang/cxx__usr_bin_clang++/extralib_pcre_pcrecpp_js_snappy/use-system-pcre/use-system-sm/use-system-snappy/third_party/boost -Isrc/third_party/boost -Ibuild/darwin/cc__usr_bin_clang/cxx__usr_bin_clang++/extralib_pcre_pcrecpp_js_snappy/use-system-pcre/use-system-sm/use-system-snappy -Isrc -Ibuild/darwin/cc__usr_bin_clang/cxx__usr_bin_clang++/extralib_pcre_pcrecpp_js_snappy/use-system-pcre/use-system-sm/use-system-snappy/mongo -Isrc/mongo -I/opt/local/include -I/opt/local/include/js src/mongo/db/common.cpp
/usr/bin/clang++ -o build/darwin/cc__usr_bin_clang/cxx__usr_bin_clang++/extralib_pcre_pcrecpp_js_snappy/use-system-pcre/use-system-sm/use-system-snappy/mongo/util/net/miniwebserver.o -c -Wnon-virtual-dtor -Woverloaded-virtual -arch x86_64 -fPIC -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O3 -DBOOST_ALL_NO_LIB -D_SCONS -DMONGO_EXPOSE_MACROS -DSUPPORT_UTF8 -D_FILE_OFFSET_BITS=64 -DJS_C_STRINGS_ARE_UTF8 -DMONGO_HAVE_HEADER_UNISTD_H -DMONGO_HAVE_EXECINFO_BACKTRACE -DXP_UNIX -Ibuild/darwin/cc__usr_bin_clang/cxx__usr_bin_clang++/extralib_pcre_pcrecpp_js_snappy/use-system-pcre/use-system-sm/use-system-snappy/third_party/boost -Isrc/third_party/boost -Ibuild/darwin/cc__usr_bin_clang/cxx__usr_bin_clang++/extralib_pcre_pcrecpp_js_snappy/use-system-pcre/use-system-sm/use-system-snappy -Isrc -Ibuild/darwin/cc__usr_bin_clang/cxx__usr_bin_clang++/extralib_pcre_pcrecpp_js_snappy/use-system-pcre/use-system-sm/use-system-snappy/mongo -Isrc/mongo -I/opt/local/include -I/opt/local/include/js src/mongo/util/net/miniwebserver.cpp
/usr/bin/clang++ -o build/darwin/cc__usr_bin_clang/cxx__usr_bin_clang++/extralib_pcre_pcrecpp_js_snappy/use-system-pcre/use-system-sm/use-system-snappy/mongo/db/dbmessage.o -c -Wnon-virtual-dtor -Woverloaded-virtual -arch x86_64 -fPIC -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O3 -DBOOST_ALL_NO_LIB -D_SCONS -DMONGO_EXPOSE_MACROS -DSUPPORT_UTF8 -D_FILE_OFFSET_BITS=64 -DJS_C_STRINGS_ARE_UTF8 -DMONGO_HAVE_HEADER_UNISTD_H -DMONGO_HAVE_EXECINFO_BACKTRACE -DXP_UNIX -Ibuild/darwin/cc__usr_bin_clang/cxx__usr_bin_clang++/extralib_pcre_pcrecpp_js_snappy/use-system-pcre/use-system-sm/use-system-snappy/third_party/boost -Isrc/third_party/boost -Ibuild/darwin/cc__usr_bin_clang/cxx__usr_bin_clang++/extralib_pcre_pcrecpp_js_snappy/use-system-pcre/use-system-sm/use-system-snappy -Isrc -Ibuild/darwin/cc__usr_bin_clang/cxx__usr_bin_clang++/extralib_pcre_pcrecpp_js_snappy/use-system-pcre/use-system-sm/use-system-snappy/mongo -Isrc/mongo -I/opt/local/include -I/opt/local/include/js src/mongo/db/dbmessage.cpp
/usr/bin/clang++ -o build/darwin/cc__usr_bin_clang/cxx__usr_bin_clang++/extralib_pcre_pcrecpp_js_snappy/use-system-pcre/use-system-sm/use-system-snappy/mongo/db/indexkey.o -c -Wnon-virtual-dtor -Woverloaded-virtual -arch x86_64 -fPIC -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O3 -DBOOST_ALL_NO_LIB -D_SCONS -DMONGO_EXPOSE_MACROS -DSUPPORT_UTF8 -D_FILE_OFFSET_BITS=64 -DJS_C_STRINGS_ARE_UTF8 -DMONGO_HAVE_HEADER_UNISTD_H -DMONGO_HAVE_EXECINFO_BACKTRACE -DXP_UNIX -Ibuild/darwin/cc__usr_bin_clang/cxx__usr_bin_clang++/extralib_pcre_pcrecpp_js_snappy/use-system-pcre/use-system-sm/use-system-snappy/third_party/boost -Isrc/third_party/boost -Ibuild/darwin/cc__usr_bin_clang/cxx__usr_bin_clang++/extralib_pcre_pcrecpp_js_snappy/use-system-pcre/use-system-sm/use-system-snappy -Isrc -Ibuild/darwin/cc__usr_bin_clang/cxx__usr_bin_clang++/extralib_pcre_pcrecpp_js_snappy/use-system-pcre/use-system-sm/use-system-snappy/mongo -Isrc/mongo -I/opt/local/include -I/opt/local/include/js src/mongo/db/indexkey.cpp
/usr/bin/clang++ -o build/darwin/cc__usr_bin_clang/cxx__usr_bin_clang++/extralib_pcre_pcrecpp_js_snappy/use-system-pcre/use-system-sm/use-system-snappy/mongo/db/stats/counters.o -c -Wnon-virtual-dtor -Woverloaded-virtual -arch x86_64 -fPIC -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O3 -DBOOST_ALL_NO_LIB -D_SCONS -DMONGO_EXPOSE_MACROS -DSUPPORT_UTF8 -D_FILE_OFFSET_BITS=64 -DJS_C_STRINGS_ARE_UTF8 -DMONGO_HAVE_HEADER_UNISTD_H -DMONGO_HAVE_EXECINFO_BACKTRACE -DXP_UNIX -Ibuild/darwin/cc__usr_bin_clang/cxx__usr_bin_clang++/extralib_pcre_pcrecpp_js_snappy/use-system-pcre/use-system-sm/use-system-snappy/third_party/boost -Isrc/third_party/boost -Ibuild/darwin/cc__usr_bin_clang/cxx__usr_bin_clang++/extralib_pcre_pcrecpp_js_snappy/use-system-pcre/use-system-sm/use-system-snappy -Isrc -Ibuild/darwin/cc__usr_bin_clang/cxx__usr_bin_clang++/extralib_pcre_pcrecpp_js_snappy/use-system-pcre/use-system-sm/use-system-snappy/mongo -Isrc/mongo -I/opt/local/include -I/opt/local/include/js src/mongo/db/stats/counters.cpp
0  clang             0x00000001022f3312 _ZL15PrintStackTracePv + 34
1  clang             0x00000001022f37e9 _ZL13SignalHandleri + 633
2  libsystem_c.dylib 0x00007fff8b18ccfa _sigtramp + 26
3  libsystem_c.dylib 0x000000006110e120 _sigtramp + 18446603339811001408
4  clang             0x00000001017c4d5a llvm::GetElementPtrInst::GetElementPtrInst<llvm::Value**>(llvm::Value*, llvm::Value**, llvm::Value**, unsigned int, llvm::Twine const&, llvm::Instruction*) + 202
5  clang             0x0000000101ba4cd9 llvm::IRBuilder<false, llvm::ConstantFolder, llvm::IRBuilderDefaultInserter<false> >::CreateConstInBoundsGEP2_32(llvm::Value*, unsigned int, unsigned int, llvm::Twine const&) + 185
6  clang             0x00000001017c49bc clang::CodeGen::CodeGenFunction::EmitLValueForField(llvm::Value*, clang::FieldDecl const*, unsigned int) + 492
7  clang             0x0000000101a1a245 clang::CodeGen::CodeGenFunction::EmitLValueForFieldInitialization(llvm::Value*, clang::FieldDecl const*, unsigned int) + 85
8  clang             0x0000000101a157fa clang::CodeGen::CodeGenFunction::EmitCtorPrologue(clang::CXXConstructorDecl const*, clang::CXXCtorType, clang::CodeGen::FunctionArgList&) + 1322
9  clang             0x0000000101a14f14 clang::CodeGen::CodeGenFunction::EmitConstructorBody(clang::CodeGen::FunctionArgList&) + 340
10 clang             0x0000000101b97083 clang::CodeGen::CodeGenFunction::GenerateCode(clang::GlobalDecl, llvm::Function*, clang::CodeGen::CGFunctionInfo const&) + 675
11 clang             0x0000000101a14d83 clang::CodeGen::CodeGenModule::EmitCXXConstructor(clang::CXXConstructorDecl const*, clang::CXXCtorType) + 243
12 clang             0x0000000101b98aed clang::CodeGen::CodeGenModule::EmitGlobalDefinition(clang::GlobalDecl) + 285
13 clang             0x000000010162c64d clang::CodeGen::CodeGenModule::EmitDeferred() + 189
14 clang             0x000000010162c494 clang::CodeGen::CodeGenModule::Release() + 20
15 clang             0x000000010162c35d clang::BackendConsumer::HandleTranslationUnit(clang::ASTContext&) + 93
16 clang             0x0000000101554276 clang::ParseAST(clang::Sema&, bool) + 422
17 clang             0x0000000101552caf clang::CodeGenAction::ExecuteAction() + 671
18 clang             0x000000010153ea9b clang::CompilerInstance::ExecuteAction(clang::FrontendAction&) + 875
19 clang             0x000000010153cb18 clang::ExecuteCompilerInvocation(clang::CompilerInstance*) + 2696
20 clang             0x0000000101531315 cc1_main(char const**, char const**, char const*, void*) + 5333
21 clang             0x000000010151447b main + 667
22 clang             0x00000001015141d4 start + 52
23 clang             0x0000000000000052 start + 18446744069392481970
Stack dump:
0.	Program arguments: /usr/bin/clang -cc1 -triple x86_64-apple-macosx10.7.4 -emit-obj -disable-free -disable-llvm-verifier -main-file-name jsobj.cpp -pic-level 2 -mdisable-fp-elim -relaxed-aliasing -masm-verbose -munwind-tables -target-cpu core2 -target-linker-version 127.2 -g -coverage-file build/darwin/cc__usr_bin_clang/cxx__usr_bin_clang++/extralib_pcre_pcrecpp_js_snappy/use-system-pcre/use-system-sm/use-system-snappy/mongo/db/jsobj.o -resource-dir /usr/bin/../lib/clang/3.0 -D BOOST_ALL_NO_LIB -D _SCONS -D MONGO_EXPOSE_MACROS -D SUPPORT_UTF8 -D _FILE_OFFSET_BITS=64 -D JS_C_STRINGS_ARE_UTF8 -D MONGO_HAVE_HEADER_UNISTD_H -D MONGO_HAVE_EXECINFO_BACKTRACE -D XP_UNIX -I build/darwin/cc__usr_bin_clang/cxx__usr_bin_clang++/extralib_pcre_pcrecpp_js_snappy/use-system-pcre/use-system-sm/use-system-snappy/third_party/boost -I src/third_party/boost -I build/darwin/cc__usr_bin_clang/cxx__usr_bin_clang++/extralib_pcre_pcrecpp_js_snappy/use-system-pcre/use-system-sm/use-system-snappy -I src -I build/darwin/cc__usr_bin_clang/cxx__usr_bin_clang++/extralib_pcre_pcrecpp_js_snappy/use-system-pcre/use-system-sm/use-system-snappy/mongo -I src/mongo -I /opt/local/include -I /opt/local/include/js -O3 -Wnon-virtual-dtor -Woverloaded-virtual -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -fdeprecated-macro -ferror-limit 19 -fmessage-length 0 -pthread -stack-protector 1 -fblocks -fcxx-exceptions -fexceptions -fdiagnostics-show-option -o build/darwin/cc__usr_bin_clang/cxx__usr_bin_clang++/extralib_pcre_pcrecpp_js_snappy/use-system-pcre/use-system-sm/use-system-snappy/mongo/db/jsobj.o -x c++ src/mongo/db/jsobj.cpp 
1.	<eof> parser at end of file
2.	Per-file LLVM IR generation
3.	src/mongo/db/../bson/oid.h:44:9: Generating code for declaration 'mongo::OID::OID'
clang: error: unable to execute command: Segmentation fault: 11
clang: error: clang frontend command failed due to signal 2 (use -v to see invocation)
scons: *** [build/darwin/cc__usr_bin_clang/cxx__usr_bin_clang++/extralib_pcre_pcrecpp_js_snappy/use-system-pcre/use-system-sm/use-system-snappy/mongo/db/jsobj.o] Error 254
0  clang             0x0000000107050312 _ZL15PrintStackTracePv + 34
1  clang             0x00000001070507e9 _ZL13SignalHandleri + 633
2  libsystem_c.dylib 0x00007fff8b18ccfa _sigtramp + 26
3  libsystem_c.dylib 0x00000000076aca04 _sigtramp + 18446603338306944292
4  clang             0x0000000106521d5a llvm::GetElementPtrInst::GetElementPtrInst<llvm::Value**>(llvm::Value*, llvm::Value**, llvm::Value**, unsigned int, llvm::Twine const&, llvm::Instruction*) + 202
5  clang             0x0000000106901cd9 llvm::IRBuilder<false, llvm::ConstantFolder, llvm::IRBuilderDefaultInserter<false> >::CreateConstInBoundsGEP2_32(llvm::Value*, unsigned int, unsigned int, llvm::Twine const&) + 185
6  clang             0x00000001065219bc clang::CodeGen::CodeGenFunction::EmitLValueForField(llvm::Value*, clang::FieldDecl const*, unsigned int) + 492
7  clang             0x0000000106777245 clang::CodeGen::CodeGenFunction::EmitLValueForFieldInitialization(llvm::Value*, clang::FieldDecl const*, unsigned int) + 85
8  clang             0x00000001067727fa clang::CodeGen::CodeGenFunction::EmitCtorPrologue(clang::CXXConstructorDecl const*, clang::CXXCtorType, clang::CodeGen::FunctionArgList&) + 1322
9  clang             0x0000000106771f14 clang::CodeGen::CodeGenFunction::EmitConstructorBody(clang::CodeGen::FunctionArgList&) + 340
10 clang             0x00000001068f4083 clang::CodeGen::CodeGenFunction::GenerateCode(clang::GlobalDecl, llvm::Function*, clang::CodeGen::CGFunctionInfo const&) + 675
11 clang             0x0000000106771d83 clang::CodeGen::CodeGenModule::EmitCXXConstructor(clang::CXXConstructorDecl const*, clang::CXXCtorType) + 243
12 clang             0x00000001068f5aed clang::CodeGen::CodeGenModule::EmitGlobalDefinition(clang::GlobalDecl) + 285
13 clang             0x000000010638964d clang::CodeGen::CodeGenModule::EmitDeferred() + 189
14 clang             0x0000000106389494 clang::CodeGen::CodeGenModule::Release() + 20
15 clang             0x000000010638935d clang::BackendConsumer::HandleTranslationUnit(clang::ASTContext&) + 93
16 clang             0x00000001062b1276 clang::ParseAST(clang::Sema&, bool) + 422
17 clang             0x00000001062afcaf clang::CodeGenAction::ExecuteAction() + 671
18 clang             0x000000010629ba9b clang::CompilerInstance::ExecuteAction(clang::FrontendAction&) + 875
19 clang             0x0000000106299b18 clang::ExecuteCompilerInvocation(clang::CompilerInstance*) + 2696
20 clang             0x000000010628e315 cc1_main(char const**, char const**, char const*, void*) + 5333
21 clang             0x000000010627147b main + 667
22 clang             0x00000001062711d4 start + 52
Stack dump:
0.	Program arguments: /usr/bin/clang -cc1 -triple x86_64-apple-macosx10.7.4 -emit-obj -disable-free -disable-llvm-verifier -main-file-name json.cpp -pic-level 2 -mdisable-fp-elim -relaxed-aliasing -masm-verbose -munwind-tables -target-cpu core2 -target-linker-version 127.2 -g -coverage-file build/darwin/cc__usr_bin_clang/cxx__usr_bin_clang++/extralib_pcre_pcrecpp_js_snappy/use-system-pcre/use-system-sm/use-system-snappy/mongo/db/json.o -resource-dir /usr/bin/../lib/clang/3.0 -D BOOST_ALL_NO_LIB -D _SCONS -D MONGO_EXPOSE_MACROS -D SUPPORT_UTF8 -D _FILE_OFFSET_BITS=64 -D JS_C_STRINGS_ARE_UTF8 -D MONGO_HAVE_HEADER_UNISTD_H -D MONGO_HAVE_EXECINFO_BACKTRACE -D XP_UNIX -I build/darwin/cc__usr_bin_clang/cxx__usr_bin_clang++/extralib_pcre_pcrecpp_js_snappy/use-system-pcre/use-system-sm/use-system-snappy/third_party/boost -I src/third_party/boost -I build/darwin/cc__usr_bin_clang/cxx__usr_bin_clang++/extralib_pcre_pcrecpp_js_snappy/use-system-pcre/use-system-sm/use-system-snappy -I src -I build/darwin/cc__usr_bin_clang/cxx__usr_bin_clang++/extralib_pcre_pcrecpp_js_snappy/use-system-pcre/use-system-sm/use-system-snappy/mongo -I src/mongo -I /opt/local/include -I /opt/local/include/js -O3 -Wnon-virtual-dtor -Woverloaded-virtual -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -fdeprecated-macro -ferror-limit 19 -fmessage-length 0 -pthread -stack-protector 1 -fblocks -fcxx-exceptions -fexceptions -fdiagnostics-show-option -o build/darwin/cc__usr_bin_clang/cxx__usr_bin_clang++/extralib_pcre_pcrecpp_js_snappy/use-system-pcre/use-system-sm/use-system-snappy/mongo/db/json.o -x c++ src/mongo/db/json.cpp 
1.	<eof> parser at end of file
2.	Per-file LLVM IR generation
3.	src/mongo/bson/oid.h:44:9: Generating code for declaration 'mongo::OID::OID'
clang: error: unable to execute command: Segmentation fault: 11
clang: error: clang frontend command failed due to signal 2 (use -v to see invocation)
scons: *** [build/darwin/cc__usr_bin_clang/cxx__usr_bin_clang++/extralib_pcre_pcrecpp_js_snappy/use-system-pcre/use-system-sm/use-system-snappy/mongo/db/json.o] Error 254
scons: building terminated because of errors.
Command failed:  cd "/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_databases_mongodb/mongodb/work/mongodb-src-r2.2.1" && /opt/local/bin/scons -j8 all mongobridge mongosniff --cc=/usr/bin/clang --cxx=/usr/bin/clang++ --full --use-system-pcre --use-system-sm --use-system-snappy --extralib=pcre,pcrecpp,js,snappy 
Exit code: 2
Error: org.macports.build for port mongodb returned: command execution failed
Warning: targets not executed for mongodb: org.macports.activate org.macports.build org.macports.destroot org.macports.install
Please see the log file for port mongodb for details:
    /opt/local/var/macports/logs/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_databases_mongodb/mongodb/main.log
To report a bug, follow the instructions in the guide:
    http://guide.macports.org/#project.tickets
Error: Processing of port mongodb failed

Attachments (2)

main.log (47.2 KB) - added by renekoch@… 12 years ago.
main.2.log (63.1 KB) - added by renekoch@… 12 years ago.
main v2

Download all attachments as: .zip

Change History (12)

Changed 12 years ago by renekoch@…

Attachment: main.log added

comment:1 Changed 12 years ago by ryandesign (Ryan Carsten Schmidt)

Owner: changed from macports-tickets@… to ryandesign@…
Port: mongodb added
Summary: mongodb fails to install on 10.7.5mongodb: clang crashed during build

This was not a clean build attempt, so please "sudo port clean mongodb", then try again, then attach the new main.log if it fails again. Also please let me know what version of Xcode you have, and show me the output of:

clang -v

I suspect we'll need to blacklist some older versions of clang, and that upgrading to the current version of Xcode and its command line tools would fix the problem for you (but before you do that, please help us figure out what versions we need to blacklist by letting us know what versions you have).

comment:2 Changed 12 years ago by renekoch@…

Oki tried clean and resintall still no luck.

bash-3.2$ sudo port clean mongodb
Password:
--->  Cleaning mongodb
bash-3.2$ sudo port install mongodb
--->  Computing dependencies for mongodb
--->  Fetching archive for mongodb
--->  Attempting to fetch mongodb-2.2.1_0.darwin_11.x86_64.tbz2 from http://lil.fr.packages.macports.org/mongodb
--->  Attempting to fetch mongodb-2.2.1_0.darwin_11.x86_64.tbz2 from http://mse.uk.packages.macports.org/sites/packages.macports.org/mongodb
--->  Attempting to fetch mongodb-2.2.1_0.darwin_11.x86_64.tbz2 from http://packages.macports.org/mongodb
--->  Fetching distfiles for mongodb
--->  Verifying checksum(s) for mongodb
--->  Extracting mongodb
--->  Applying patches to mongodb
--->  Configuring mongodb
--->  Building mongodb
Error: org.macports.build for port mongodb returned: command execution failed
Please see the log file for port mongodb for details:
    /opt/local/var/macports/logs/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_databases_mongodb/mongodb/main.log
To report a bug, follow the instructions in the guide:
    http://guide.macports.org/#project.tickets
Error: Processing of port mongodb failed
bash-3.2$ clang -v
Apple clang version 3.0 (tags/Apple/clang-211.10.1) (based on LLVM 3.0svn)
Target: x86_64-apple-darwin11.4.2
Thread model: posix

Changed 12 years ago by renekoch@…

Attachment: main.2.log added

main v2

comment:3 Changed 12 years ago by ryandesign (Ryan Carsten Schmidt)

Thanks. What version of Xcode do you have? Try updating to Xcode 4.5.2. Then open Xcode's Preferences window, go to the Downloads section, and update the command line tools. This should get you the current version of Apple clang, with which I know mongodb works:

Apple clang version 4.1 (tags/Apple/clang-421.11.66) (based on LLVM 3.1svn)
Target: x86_64-apple-darwin12.2.1
Thread model: posix

comment:4 Changed 12 years ago by renekoch@…

XCode version is 4.5.2 (4G2008a)

comment:5 Changed 12 years ago by renekoch@…

oki after I downloaded/installed command line tools, clang was updated which fixed the problem

$ clang -v
Apple clang version 4.1 (tags/Apple/clang-421.11.66) (based on LLVM 3.1svn)
Target: x86_64-apple-darwin11.4.2
Thread model: posix

comment:6 Changed 12 years ago by ryandesign (Ryan Carsten Schmidt)

Great, I'm glad that worked. This is not the first time we've seen problems like this, so I've brought the matter to the attention of the developers list, to decide on the best way to fix it.

http://lists.macosforge.org/pipermail/macports-dev/2012-November/021103.html

comment:7 Changed 12 years ago by ryandesign (Ryan Carsten Schmidt)

Has duplicate #37134.

comment:8 Changed 12 years ago by gabipetrovay (Gabriel Petrovay)

Yup, it worked fo me as well after updating the Command Line Tools in XCode 4.5.2.

comment:9 Changed 12 years ago by ryandesign (Ryan Carsten Schmidt)

Cc: gabipetrovay@… added
Resolution: fixed
Status: newclosed

Thanks. I had forgotten, but this is basically #30598 again, which reported a clang crash while building mongodb using Xcode 4.2. In r86970 I blacklisted clang, then when it was reported that this was fixed in Xcode 4.3, in r90960 I changed it to only blacklist clang on Xcode < 4.3. But I should have been checking the clang version, not the Xcode version, since Xcode and the command line tools can be updated separately. Fixed in r100099.

comment:10 Changed 11 years ago by cooljeanius (Eric Gallager)

Cc: egall@… added

Cc Me!

Note: See TracTickets for help on using tickets.