crash when building Chrome on iOS with hermetic clang |
|||
Issue descriptionFAILED: obj/net/log/net_test_support.test_net_log_util.o ../../third_party/llvm-build/Release+Asserts/bin/clang++ -MMD -MF obj/net/log/net_test_support.test_net_log_util.o.d -DV8_DEPRECATION_WARNINGS -DDISABLE_NACL -DCHROMIUM_BUILD -DCR_CLANG_REVISION=270823-1 -DUSE_LIBJPEG_TURBO=1 -DFIELDTRIAL_TESTING_ENABLED -DDISABLE_FTP_SUPPORT=1 -DV8_USE_EXTERNAL_STARTUP_DATA '-DSPDY_PROXY_AUTH_VALUE="xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx"' -DGTEST_HAS_POSIX_RE=0 -DGTEST_LANG_CXX11=0 -DUSE_SYSTEM_LIBXML -DUNIT_TEST -DGTEST_HAS_RTTI=0 -DUSE_LIBPCI=1 -D__STDC_CONSTANT_MACROS -D__STDC_FORMAT_MACROS -DDYNAMIC_ANNOTATIONS_ENABLED=1 -DWTF_USE_DYNAMIC_ANNOTATIONS=1 -Igen -I/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator9.3.sdk/usr/include/libxml2 -I../.. -I../../testing/gtest/include -I../../testing/gmock/include -I../../third_party/boringssl/src/include -isysroot /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator9.3.sdk -O0 -gdwarf-2 -fvisibility=hidden -Werror -mios-simulator-version-min=9.0 -arch x86_64 -Wall -Wextra -Wno-unused-parameter -Wno-missing-field-initializers -Wno-selector-type-mismatch -Wheader-hygiene -Wno-char-subscripts -Wno-unneeded-internal-declaration -Wno-covered-switch-default -Wstring-conversion -Wno-c++11-narrowing -Wno-deprecated-register -Wno-inconsistent-missing-override -Wno-shift-negative-value -Wno-undefined-var-template -std=c++11 -stdlib=libc++ -fno-rtti -fno-exceptions -fvisibility-inlines-hidden -fno-threadsafe-statics -fcolor-diagnostics -Xclang -load -Xclang /Users/sdefresne/Developer/chromium/src/third_party/llvm-build/Release+Asserts/lib/libFindBadConstructs.dylib -Xclang -add-plugin -Xclang find-bad-constructs -Xclang -plugin-arg-find-bad-constructs -Xclang check-templates -Xclang -plugin-arg-find-bad-constructs -Xclang follow-macro-expansion -Xclang -plugin-arg-find-bad-constructs -Xclang check-implicit-copy-ctors -fstack-protector-strong -c ../../net/log/test_net_log_util.cc -o obj/net/log/net_test_support.test_net_log_util.o Unknown type! UNREACHABLE executed at /b/build/slave/mac_upload_clang/build/src/third_party/llvm/lib/IR/ValueTypes.cpp:285! Stack dump: 0. Program arguments: /Users/sdefresne/Developer/chromium/src/third_party/llvm-build/Release+Asserts/bin/clang -cc1 -triple x86_64-apple-ios9.0.0 -Wdeprecated-objc-isa-usage -Werror=deprecated-objc-isa-usage -Werror=implicit-function-declaration -emit-obj -mrelax-all -disable-free -main-file-name test_net_log_util.cc -mrelocation-model pic -pic-level 2 -mthread-model posix -mdisable-fp-elim -masm-verbose -munwind-tables -target-cpu core2 -target-linker-version 253.3 -dwarf-column-info -debug-info-kind=standalone -dwarf-version=2 -debugger-tuning=lldb -coverage-file /Users/sdefresne/Developer/chromium/src/out/Debug-iphonesimulator/obj/net/log/net_test_support.test_net_log_util.o -resource-dir /Users/sdefresne/Developer/chromium/src/third_party/llvm-build/Release+Asserts/bin/../lib/clang/3.9.0 -dependency-file obj/net/log/net_test_support.test_net_log_util.o.d -MT obj/net/log/net_test_support.test_net_log_util.o -isysroot /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator9.3.sdk -D V8_DEPRECATION_WARNINGS -D DISABLE_NACL -D CHROMIUM_BUILD -D CR_CLANG_REVISION=270823-1 -D USE_LIBJPEG_TURBO=1 -D FIELDTRIAL_TESTING_ENABLED -D DISABLE_FTP_SUPPORT=1 -D V8_USE_EXTERNAL_STARTUP_DATA -D SPDY_PROXY_AUTH_VALUE="xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx" -D GTEST_HAS_POSIX_RE=0 -D GTEST_LANG_CXX11=0 -D USE_SYSTEM_LIBXML -D UNIT_TEST -D GTEST_HAS_RTTI=0 -D USE_LIBPCI=1 -D __STDC_CONSTANT_MACROS -D __STDC_FORMAT_MACROS -D DYNAMIC_ANNOTATIONS_ENABLED=1 -D WTF_USE_DYNAMIC_ANNOTATIONS=1 -I gen -I /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator9.3.sdk/usr/include/libxml2 -I ../.. -I ../../testing/gtest/include -I ../../testing/gmock/include -I ../../third_party/boringssl/src/include -stdlib=libc++ -O0 -Werror -Wall -Wextra -Wno-unused-parameter -Wno-missing-field-initializers -Wno-selector-type-mismatch -Wheader-hygiene -Wno-char-subscripts -Wno-unneeded-internal-declaration -Wno-covered-switch-default -Wstring-conversion -Wno-c++11-narrowing -Wno-deprecated-register -Wno-inconsistent-missing-override -Wno-shift-negative-value -Wno-undefined-var-template -std=c++11 -fdeprecated-macro -fdebug-compilation-dir /Users/sdefresne/Developer/chromium/src/out/Debug-iphonesimulator -ferror-limit 19 -fmessage-length 0 -fvisibility hidden -fvisibility-inlines-hidden -stack-protector 2 -fblocks -fno-rtti -fno-threadsafe-statics -fobjc-runtime=ios-9.0.0 -fencode-extended-block-signature -fmax-type-align=16 -fdiagnostics-show-option -fcolor-diagnostics -load /Users/sdefresne/Developer/chromium/src/third_party/llvm-build/Release+Asserts/lib/libFindBadConstructs.dylib -add-plugin find-bad-constructs -plugin-arg-find-bad-constructs check-templates -plugin-arg-find-bad-constructs follow-macro-expansion -plugin-arg-find-bad-constructs check-implicit-copy-ctors -o obj/net/log/net_test_support.test_net_log_util.o -x c++ ../../net/log/test_net_log_util.cc 1. <eof> parser at end of file 2. Code generation 3. Running pass 'Function Pass Manager' on module '../../net/log/test_net_log_util.cc'. 4. Running pass 'X86 DAG->DAG Instruction Selection' on function '@_ZNKSt3__115basic_stringbufIcNS_11char_traitsIcEENS_9allocatorIcEEE3strEv' clang: error: unable to execute command: Abort trap: 6 clang: error: clang frontend command failed due to signal (use -v to see invocation) clang version 3.9.0 (trunk 270823) Target: x86_64-apple-darwin15.5.0 Thread model: posix InstalledDir: /Users/sdefresne/Developer/chromium/src/out/Debug-iphonesimulator/../../third_party/llvm-build/Release+Asserts/bin 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. clang: note: diagnostic msg: ******************** PLEASE ATTACH THE FOLLOWING FILES TO THE BUG REPORT: Preprocessed source(s) and associated run script(s) are located at: clang: note: diagnostic msg: /var/folders/00/12yz0000h01000cxqpysvccm004bvw/T/test_net_log_util-e91c49.cpp clang: note: diagnostic msg: /var/folders/00/12yz0000h01000cxqpysvccm004bvw/T/test_net_log_util-e91c49.sh clang: note: diagnostic msg: ********************
,
Jun 22 2016
I don't think so as I do not remember building clang locally on my laptop. Apparently, I only have the prebuilt clang (a local build would have the sources in third_party/llvm, wouldn't it): $ ls -ld third_party/llvm* drwxr-xr-x 4 sdefresne eng 136 28 May 14:27 third_party/llvm-build
,
Jun 22 2016
How can you be using ToT clang if you haven't built it yourself?
,
Jun 22 2016
Sorry, I should have said "hermetic clang" instead of "ToT clang". I wanted to say that the build was failing for me when not using "xcode clang".
,
Jun 22 2016
,
Jun 22 2016
Hm,https://build.chromium.org/p/chromium.mac/builders/ios-device is happy too. Is this with a local diff? (We haven't updated clang in a month)
,
Jun 22 2016
Yes, I have some local changes, but not in //net or any of its dependencies. I'm building on my laptop without goma (not working for me from home) and it may be a problem of my laptop overheating (there is a heat wave here). It appears the error does not reproduce if I just rebuild the same file... $ ninja -C out/Debug-iphonesimulator obj/net/log/net_test_support.test_net_log_util.o ninja: Entering directory `out/Debug-iphonesimulator' [1/1] CXX obj/net/log/net_test_support.test_net_log_util.o Marking as WontFix as it looks like a local issue :-( |
|||
►
Sign in to add a comment |
|||
Comment 1 by thakis@chromium.org
, Jun 22 2016