[tor-bugs] #18331 [Tor Browser]: Update OS X toolchain to work with ESR 45

Tor Bug Tracker & Wiki blackhole at torproject.org
Wed Feb 17 15:37:58 UTC 2016


#18331: Update OS X toolchain to work with ESR 45
-----------------------------+----------------------------------
     Reporter:  gk           |      Owner:  tbb-team
         Type:  task         |     Status:  new
     Priority:  High         |  Milestone:
    Component:  Tor Browser  |    Version:
     Severity:  Major        |   Keywords:  tbb-gitian, ff45-esr
Actual Points:               |  Parent ID:  #18226
       Points:               |    Sponsor:
-----------------------------+----------------------------------
 It seems our cross-compile crashes while trying to compile ESR 45:
 {{{
    x86_64-apple-darwin10-clang++         ...  /home/ubuntu/build/tor-
 browser/intl/icu/source/common/umutex.cpp
 x86_64-apple-darwin10-clang: SemaChecking.cpp:4431: void
 {anonymous}::DiagnoseOutOfRangeComparison(clang::Sema&,
 clang::BinaryOperator*, clang::Expr*, clang::Expr*, llvm::APSInt, bool):
 Assertion `(OtherT->isIntegerType() && ConstantT->isIntegerType()) &&
 "comparison with non-integer type"' failed.
 0  x86_64-apple-darwin10-clang 0x00000000022b6392
 llvm::sys::PrintStackTrace(_IO_FILE*) + 34
 1  x86_64-apple-darwin10-clang 0x00000000022b67c9
 2  libpthread.so.0             0x00002b2aba39bcb0
 3  libc.so.6                   0x00002b2abb0700d5 gsignal + 53
 4  libc.so.6                   0x00002b2abb07383b abort + 379
 5  libc.so.6                   0x00002b2abb068d9e
 6  libc.so.6                   0x00002b2abb068e42
 7  x86_64-apple-darwin10-clang 0x0000000000b2a7d9
 8  x86_64-apple-darwin10-clang 0x0000000000b3899e
 9  x86_64-apple-darwin10-clang 0x0000000000b38d61
 clang::Sema::CheckCompletedExpr(clang::Expr*, clang::SourceLocation, bool)
 + 33
 10 x86_64-apple-darwin10-clang 0x0000000000c8f06a
 clang::Sema::ActOnFinishFullExpr(clang::Expr*, clang::SourceLocation,
 bool, bool) + 250
 11 x86_64-apple-darwin10-clang 0x0000000000ad5cc5
 clang::Parser::ParseWhileStatement(clang::SourceLocation*) + 469
 12 x86_64-apple-darwin10-clang 0x0000000000ad108c
 clang::Parser::ParseStatementOrDeclarationAfterAttributes(llvm::SmallVector<clang::Stmt*,
 32u>&, bool, clang::SourceLocation*,
 clang::Parser::ParsedAttributesWithRange&) + 1036
 13 x86_64-apple-darwin10-clang 0x0000000000ad159e
 clang::Parser::ParseStatementOrDeclaration(llvm::SmallVector<clang::Stmt*,
 32u>&, bool, clang::SourceLocation*) + 142
 14 x86_64-apple-darwin10-clang 0x0000000000ad2217
 clang::Parser::ParseCompoundStatementBody(bool) + 1607
 15 x86_64-apple-darwin10-clang 0x0000000000ad27dd
 clang::Parser::ParseCompoundStatement(bool, unsigned int) + 45
 16 x86_64-apple-darwin10-clang 0x0000000000ad2832
 clang::Parser::ParseCompoundStatement(bool) + 18
 17 x86_64-apple-darwin10-clang 0x0000000000ad11fa
 clang::Parser::ParseStatementOrDeclarationAfterAttributes(llvm::SmallVector<clang::Stmt*,
 32u>&, bool, clang::SourceLocation*,
 clang::Parser::ParsedAttributesWithRange&) + 1402
 18 x86_64-apple-darwin10-clang 0x0000000000ad159e
 clang::Parser::ParseStatementOrDeclaration(llvm::SmallVector<clang::Stmt*,
 32u>&, bool, clang::SourceLocation*) + 142
 19 x86_64-apple-darwin10-clang 0x0000000000ad7216
 clang::Parser::ParseIfStatement(clang::SourceLocation*) + 1030
 20 x86_64-apple-darwin10-clang 0x0000000000ad138b
 clang::Parser::ParseStatementOrDeclarationAfterAttributes(llvm::SmallVector<clang::Stmt*,
 32u>&, bool, clang::SourceLocation*,
 clang::Parser::ParsedAttributesWithRange&) + 1803
 21 x86_64-apple-darwin10-clang 0x0000000000ad159e
 clang::Parser::ParseStatementOrDeclaration(llvm::SmallVector<clang::Stmt*,
 32u>&, bool, clang::SourceLocation*) + 142
 22 x86_64-apple-darwin10-clang 0x0000000000ad2217
 clang::Parser::ParseCompoundStatementBody(bool) + 1607
 23 x86_64-apple-darwin10-clang 0x0000000000ad26c3
 clang::Parser::ParseFunctionStatementBody(clang::Decl*,
 clang::Parser::ParseScope&) + 211
 24 x86_64-apple-darwin10-clang 0x0000000000a754cb
 clang::Parser::ParseFunctionDefinition(clang::ParsingDeclarator&,
 clang::Parser::ParsedTemplateInfo const&,
 clang::Parser::LateParsedAttrList*) + 2635
 25 x86_64-apple-darwin10-clang 0x0000000000a8153e
 clang::Parser::ParseDeclGroup(clang::ParsingDeclSpec&, unsigned int, bool,
 clang::SourceLocation*, clang::Parser::ForRangeInit*) + 1902
 26 x86_64-apple-darwin10-clang 0x0000000000a70625
 clang::Parser::ParseDeclOrFunctionDefInternal(clang::Parser::ParsedAttributesWithRange&,
 clang::ParsingDeclSpec&, clang::AccessSpecifier) + 245
 27 x86_64-apple-darwin10-clang 0x0000000000a70d68
 clang::Parser::ParseDeclarationOrFunctionDefinition(clang::Parser::ParsedAttributesWithRange&,
 clang::ParsingDeclSpec*, clang::AccessSpecifier) + 1016
 28 x86_64-apple-darwin10-clang 0x0000000000a72280
 clang::Parser::ParseExternalDeclaration(clang::Parser::ParsedAttributesWithRange&,
 clang::ParsingDeclSpec*) + 96
 29 x86_64-apple-darwin10-clang 0x0000000000a932dd
 clang::Parser::ParseInnerNamespace(std::vector<clang::SourceLocation,
 std::allocator<clang::SourceLocation> >&,
 std::vector<clang::IdentifierInfo*, std::allocator<clang::IdentifierInfo*>
 >&, std::vector<clang::SourceLocation,
 std::allocator<clang::SourceLocation> >&, unsigned int,
 clang::SourceLocation&, clang::ParsedAttributes&,
 clang::BalancedDelimiterTracker&) + 381
 30 x86_64-apple-darwin10-clang 0x0000000000a93e1e
 clang::Parser::ParseNamespace(unsigned int, clang::SourceLocation&,
 clang::SourceLocation) + 2670
 31 x86_64-apple-darwin10-clang 0x0000000000a87d0e
 clang::Parser::ParseDeclaration(llvm::SmallVector<clang::Stmt*, 32u>&,
 unsigned int, clang::SourceLocation&,
 clang::Parser::ParsedAttributesWithRange&) + 558
 32 x86_64-apple-darwin10-clang 0x0000000000a7241b
 clang::Parser::ParseExternalDeclaration(clang::Parser::ParsedAttributesWithRange&,
 clang::ParsingDeclSpec*) + 507
 33 x86_64-apple-darwin10-clang 0x0000000000a98f2b
 clang::Parser::ParseLinkage(clang::ParsingDeclSpec&, unsigned int) + 1067
 34 x86_64-apple-darwin10-clang 0x0000000000a70684
 clang::Parser::ParseDeclOrFunctionDefInternal(clang::Parser::ParsedAttributesWithRange&,
 clang::ParsingDeclSpec&, clang::AccessSpecifier) + 340
 35 x86_64-apple-darwin10-clang 0x0000000000a70d68
 clang::Parser::ParseDeclarationOrFunctionDefinition(clang::Parser::ParsedAttributesWithRange&,
 clang::ParsingDeclSpec*, clang::AccessSpecifier) + 1016
 36 x86_64-apple-darwin10-clang 0x0000000000a72280
 clang::Parser::ParseExternalDeclaration(clang::Parser::ParsedAttributesWithRange&,
 clang::ParsingDeclSpec*) + 96
 37 x86_64-apple-darwin10-clang 0x0000000000a729b8
 clang::Parser::ParseTopLevelDecl(clang::OpaquePtr<clang::DeclGroupRef>&) +
 184
 38 x86_64-apple-darwin10-clang 0x0000000000a6c00d
 clang::ParseAST(clang::Sema&, bool, bool) + 493
 39 x86_64-apple-darwin10-clang 0x00000000007650ea
 clang::FrontendAction::Execute() + 282
 40 x86_64-apple-darwin10-clang 0x0000000000748ddd
 clang::CompilerInstance::ExecuteAction(clang::FrontendAction&) + 349
 41 x86_64-apple-darwin10-clang 0x000000000072fb52
 clang::ExecuteCompilerInvocation(clang::CompilerInstance*) + 1666
 42 x86_64-apple-darwin10-clang 0x0000000000728c18 cc1_main(char const**,
 char const**, char const*, void*) + 1224
 43 x86_64-apple-darwin10-clang 0x000000000070d9e1 main + 705
 44 libc.so.6                   0x00002b2abb05b76d __libc_start_main + 237
 45 x86_64-apple-darwin10-clang 0x00000000007285dd
 Stack dump:
 0.      Program arguments: /home/ubuntu/build/x-tools/x86_64-apple-
 darwin10/bin/x86_64-apple-darwin10-clang -cc1 -triple x86_64-apple-
 macosx10.6.0 -isysroot /home/ubuntu/build/MacOSX10.7.sdk -emit-obj
 -disable-free -main-file-name umutex.cpp -mrelocation-model pic -pic-level
 2 -mdisable-fp-elim -relaxed-aliasing -masm-verbose -munwind-tables
 -target-cpu core2 -target-linker-version 2.22 -coverage-file
 /home/ubuntu/build/tor-browser/obj-macos/intl/icu/target/common/umutex.o
 -resource-dir /home/ubuntu/build/x-tools/x86_64-apple-
 darwin10/bin/../lib/clang/3.3 -dependency-file umutex.d -MT umutex.d
 umutex.o umutex.o -isysroot /home/ubuntu/build/MacOSX10.7.sdk -D
 U_ATTRIBUTE_DEPRECATED= -D U_COMMON_IMPLEMENTATION -D
 U_USING_ICU_NAMESPACE=0 -D U_NO_DEFAULT_INCLUDE_UTF_HEADERS=1 -D
 UCONFIG_NO_LEGACY_CONVERSION -D UCONFIG_NO_TRANSLITERATION -D
 UCONFIG_NO_REGULAR_EXPRESSIONS -D UCONFIG_NO_BREAK_ITERATION -D
 U_CHARSET_IS_UTF8 -D U_HAVE_ATOMIC=0 -D
 DEFAULT_ICU_PLUGINS="/usr/local/lib/icu"  -D NO_X11 -U DEBUG -D NDEBUG -D
 U_STATIC_IMPLEMENTATION -I /home/ubuntu/build/tor-
 browser/intl/icu/source/common -I /home/ubuntu/build/tor-
 browser/intl/icu/source/i18n -I /home/ubuntu/build/tor-
 browser/intl/icu/source/common -I/home/ubuntu/build/x-tools/x86_64-apple-
 darwin10/lib/gcc/x86_64-apple-darwin10/5666.3/../../../../x86_64-apple-
 darwin10/include/c++/5666.3 -I/home/ubuntu/build/x-tools/x86_64-apple-
 darwin10/lib/gcc/x86_64-apple-darwin10/5666.3/../../../../x86_64-apple-
 darwin10/include/c++/5666.3/x86_64-apple-darwin10
 -I/home/ubuntu/build/x-tools/x86_64-apple-darwin10/lib/gcc/x86_64-apple-
 darwin10/5666.3/../../../../x86_64-apple-
 darwin10/include/c++/5666.3/backward -I/home/ubuntu/build/x-tools/x86_64
 -apple-darwin10/lib/gcc/x86_64-apple-darwin10/5666.3/include
 -I/home/ubuntu/build/x-tools/x86_64-apple-darwin10/lib/gcc/x86_64-apple-
 darwin10/5666.3/include-fixed -I/home/ubuntu/build/x-tools/x86_64-apple-
 darwin10/lib/gcc/x86_64-apple-darwin10/5666.3/../../../../x86_64-apple-
 darwin10/include -O3 -Wall -Wempty-body -Woverloaded-virtual -Wsign-
 compare -Wwrite-strings -Wno-invalid-offsetof -Wno-c++0x-extensions -Wno-
 extended-offsetof -Wno-unknown-warning-option -Wno-return-type-c-linkage
 -std=gnu++0x -fconst-strings -fdeprecated-macro -fdebug-compilation-dir
 /home/ubuntu/build/tor-browser/obj-macos/intl/icu/target/common -ferror-
 limit 19 -fmessage-length 0 -fvisibility hidden -pthread -stack-protector
 1 -mstackrealign -fblocks -fobjc-runtime=macosx-10.6.0 -fobjc-dispatch-
 method=mixed -fobjc-default-synthesize-properties -fencode-extended-block-
 signature -fno-common -fdiagnostics-show-option -backend-option
 -vectorize-loops -o umutex.o -x c++ /home/ubuntu/build/tor-
 browser/intl/icu/source/common/umutex.cpp
 1.      /home/ubuntu/build/tor-
 browser/intl/icu/source/common/umutex.cpp:273:33: current parser token '{'
 2.      /home/ubuntu/build/tor-
 browser/intl/icu/source/common/umutex.cpp:250:1
 <Spelling=/home/ubuntu/build/tor-
 browser/intl/icu/source/common/unicode/uversion.h:117:45>: parsing
 namespace 'icu_56'
 3.      /home/ubuntu/build/tor-
 browser/intl/icu/source/common/umutex.cpp:265:38: parsing function body
 'umtx_initImplPreInit'
 4.      /home/ubuntu/build/tor-
 browser/intl/icu/source/common/umutex.cpp:265:38: in compound statement
 ('{}')
 5.      /home/ubuntu/build/tor-
 browser/intl/icu/source/common/umutex.cpp:272:12: in compound statement
 ('{}')
 x86_64-apple-darwin10-clang: error: unable to execute command: Aborted
 x86_64-apple-darwin10-clang: error: clang frontend command failed due to
 signal (use -v to see invocation)
 clang version 3.3 (tags/RELEASE_33/final)
 Target: x86_64-apple-darwin10
 Thread model: posix
 x86_64-apple-darwin10-clang: note: diagnostic msg: PLEASE submit a bug
 report to http://llvm.org/bugs/ and include the crash backtrace,
 preprocessed source, and associated run script.
 x86_64-apple-darwin10-clang: note: diagnostic msg:
 ********************

 PLEASE ATTACH THE FOLLOWING FILES TO THE BUG REPORT:
 Preprocessed source(s) and associated run script(s) are located at:
 x86_64-apple-darwin10-clang: note: diagnostic msg: /tmp/umutex-VR5zgw.cpp
 x86_64-apple-darwin10-clang: note: diagnostic msg: /tmp/umutex-VR5zgw.sh
 x86_64-apple-darwin10-clang: note: diagnostic msg:

 ********************
 *** Failed compilation command follows:
 ----------------------------------------------------------
 /home/ubuntu/build/x-tools/x86_64-apple-darwin10/bin/x86_64-apple-
 darwin10-clang++ -arch x86_64 -isysroot /home/ubuntu/build/MacOSX10.7.sdk
 -DU_ATTRIBUTE_DEPRECATED= -DU_COMMON_IMPLEMENTATION
 -DU_USING_ICU_NAMESPACE=0 -DU_NO_DEFAULT_INCLUDE_UTF_HEADERS=1
 -DUCONFIG_NO_LEGACY_CONVERSION -DUCONFIG_NO_TRANSLITERATION
 -DUCONFIG_NO_REGULAR_EXPRESSIONS -DUCONFIG_NO_BREAK_ITERATION
 -DU_CHARSET_IS_UTF8 -I/home/ubuntu/build/tor-
 browser/intl/icu/source/common -I/home/ubuntu/build/tor-
 browser/intl/icu/source/i18n -Qunused-arguments -DU_HAVE_ATOMIC=0
 -I/home/ubuntu/build/tor-browser/intl/icu/source/common
 -DDEFAULT_ICU_PLUGINS="/usr/local/lib/icu"  -fPIC -Qunused-arguments -Wall
 -Wempty-body -Woverloaded-virtual -Wsign-compare -Wwrite-strings -Wno-
 invalid-offsetof -Wno-c++0x-extensions -Wno-extended-offsetof -Wno-
 unknown-warning-option -Wno-return-type-c-linkage -fno-exceptions -fno-
 strict-aliasing -frtti -fno-exceptions -fno-math-errno -std=gnu++0x
 -pthread -DNO_X11 -pipe -UDEBUG -DNDEBUG -O3 -DU_STATIC_IMPLEMENTATION
 -fvisibility=hidden -fvisibility=hidden -fno-common -c -dynamic -MMD -MT
 umutex.d umutex.o umutex.o -o umutex.o /home/ubuntu/build/tor-
 browser/intl/icu/source/common/umutex.cpp
 --- ( rebuild with "make VERBOSE=1 all" to show all parameters ) --------
 make[7]: *** [umutex.o] Error 1
 }}}
 Trying to not compile ICU (using `--without-intl-api`) does not help for
 some reason `umutex.ccp` still gets compiled.

--
Ticket URL: <https://trac.torproject.org/projects/tor/ticket/18331>
Tor Bug Tracker & Wiki <https://trac.torproject.org/>
The Tor Project: anonymity online


More information about the tor-bugs mailing list