<html><head><meta http-equiv="Content-Type" content="text/html charset=us-ascii"></head><body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space;" class="">Can you file a bug at <a href="http://bugs.swift.org" class="">bugs.swift.org</a> with a project/source file that reproduces the failure?<div class=""><br class=""><div><blockquote type="cite" class=""><div class="">On Aug 29, 2017, at 4:20 PM, Raj Barik via swift-users <<a href="mailto:swift-users@swift.org" class="">swift-users@swift.org</a>> wrote:</div><br class="Apple-interchange-newline"><div class=""><div dir="ltr" class="">OS: 10.12.6 (16G29)<div class=""><br class=""></div><div class="">Steps:</div><div class="">1) Checkout swift and build master branch</div><div class=""> <span style="background-color:transparent;font-family:SFMono-Regular,Consolas,"Liberation Mono",Menlo,Courier,monospace;font-size:13.6px;color:rgb(36,41,46)" class="">git clone <a href="https://github.com/apple/swift.git" target="_blank" class="">https://github.com/apple/<wbr class="">swift.git</a></span></div><div class=""><span style="background-color:transparent;font-family:SFMono-Regular,Consolas,"Liberation Mono",Menlo,Courier,monospace;font-size:13.6px;color:rgb(36,41,46)" class=""> </span><span style="background-color:transparent;font-family:SFMono-Regular,Consolas,"Liberation Mono",Menlo,Courier,monospace;font-size:13.6px;color:rgb(36,41,46)" class="">./swift/utils/update-checkout --clone</span></div><div class=""><span style="background-color:transparent;font-family:SFMono-Regular,Consolas,"Liberation Mono",Menlo,Courier,monospace;font-size:13.6px;color:rgb(36,41,46)" class=""><br class=""></span></div><div class=""><span style="background-color:transparent;font-family:SFMono-Regular,Consolas,"Liberation Mono",Menlo,Courier,monospace;font-size:13.6px;color:rgb(36,41,46)" class="">2) Edit swift/utils/build-presets.ini to remove tests</span></div><div class=""><span style="background-color:transparent;font-family:SFMono-Regular,Consolas,"Liberation Mono",Menlo,Courier,monospace;font-size:13.6px;color:rgb(36,41,46)" class=""> </span><font color="#24292e" face="SFMono-Regular, Consolas, Liberation Mono, Menlo, Courier, monospace" class=""><span style="font-size:13.6px" class="">[preset: buildbot_osx_package]</span></font></div><div class=""><font color="#24292e" face="SFMono-Regular, Consolas, Liberation Mono, Menlo, Courier, monospace" class=""><span style="font-size:13.6px" class=""> mixin-preset=</span></font></div><div class=""><font color="#24292e" face="SFMono-Regular, Consolas, Liberation Mono, Menlo, Courier, monospace" class=""><span style="font-size:13.6px" class=""> mixin_osx_package_base</span></font></div><div class=""><font color="#24292e" face="SFMono-Regular, Consolas, Liberation Mono, Menlo, Courier, monospace" class=""><span style="font-size:13.6px" class=""> mixin_lightweight_assertions</span></font></div><div class=""> ...</div><div class="">3) Execute ./swift/utils/build-toolchain local.swift</div><div class=""><br class=""></div><div class="">4) Execute n sample swift package in Xcode:<br class=""><div class=""><br class=""></div><div class="">Error:</div><div class=""><p class="m_6764313438307663510gmail-p1">Invalid bitcast</p><p class="m_6764313438307663510gmail-p1"><span class="m_6764313438307663510gmail-Apple-converted-space"> </span>%195 = bitcast i64 %194 to %objc_object*, !dbg !431</p><p class="m_6764313438307663510gmail-p1">Invalid bitcast</p><p class="m_6764313438307663510gmail-p1"><span class="m_6764313438307663510gmail-Apple-converted-space"> </span>%256 = bitcast i64 %255 to %objc_object*, !dbg !443</p><p class="m_6764313438307663510gmail-p1"><unknown>:0: error: fatal error encountered during compilation; please file a bug report with your project and the crash log</p><p class="m_6764313438307663510gmail-p1"><unknown>:0: note: Broken function found, compilation aborted!</p><p class="m_6764313438307663510gmail-p1">0<span class="m_6764313438307663510gmail-Apple-converted-space"> </span>swiftc <span class="m_6764313438307663510gmail-Apple-converted-space"> </span>0x000000010955ebc8 llvm::sys::PrintStackTrace(<wbr class="">llvm::raw_ostream&) + 40</p><p class="m_6764313438307663510gmail-p1">1<span class="m_6764313438307663510gmail-Apple-converted-space"> </span>swiftc <span class="m_6764313438307663510gmail-Apple-converted-space"> </span>0x000000010955def6 llvm::sys::RunSignalHandlers() + 86</p><p class="m_6764313438307663510gmail-p1">2<span class="m_6764313438307663510gmail-Apple-converted-space"> </span>swiftc <span class="m_6764313438307663510gmail-Apple-converted-space"> </span>0x000000010955f12e SignalHandler(int) + 270</p><p class="m_6764313438307663510gmail-p1">3<span class="m_6764313438307663510gmail-Apple-converted-space"> </span>libsystem_platform.dylib 0x00007fffbb08cb3a _sigtramp + 26</p><p class="m_6764313438307663510gmail-p1">4<span class="m_6764313438307663510gmail-Apple-converted-space"> </span>libsystem_platform.dylib 0x000070000b4115a0 _sigtramp + 1345866368</p><p class="m_6764313438307663510gmail-p1">5<span class="m_6764313438307663510gmail-Apple-converted-space"> </span>libsystem_c.dylib<span class="m_6764313438307663510gmail-Apple-converted-space"> </span>0x00007fffbaf11420 abort + 129</p><p class="m_6764313438307663510gmail-p1">6<span class="m_6764313438307663510gmail-Apple-converted-space"> </span>swiftc <span class="m_6764313438307663510gmail-Apple-converted-space"> </span>0x00000001067985c7 swift::performFrontend(llvm::<wbr class="">ArrayRef<char const*>, char const*, void*, swift::FrontendObserver*)::$_<wbr class="">0::__invoke(void*, std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> > const&, bool) + 551</p><p class="m_6764313438307663510gmail-p1">7<span class="m_6764313438307663510gmail-Apple-converted-space"> </span>swiftc <span class="m_6764313438307663510gmail-Apple-converted-space"> </span>0x0000000109506cac llvm::report_fatal_error(llvm:<wbr class="">:Twine const&, bool) + 252</p><p class="m_6764313438307663510gmail-p1">8<span class="m_6764313438307663510gmail-Apple-converted-space"> </span>swiftc <span class="m_6764313438307663510gmail-Apple-converted-space"> </span>0x0000000109506baa llvm::report_fatal_error(char const*, bool) + 42</p><p class="m_6764313438307663510gmail-p1">9<span class="m_6764313438307663510gmail-Apple-converted-space"> </span>swiftc <span class="m_6764313438307663510gmail-Apple-converted-space"> </span>0x00000001094c0d06 (anonymous namespace)::<wbr class="">VerifierLegacyPass::<wbr class="">runOnFunction(llvm::Function&) + 54</p><p class="m_6764313438307663510gmail-p1">10 swiftc <span class="m_6764313438307663510gmail-Apple-converted-space"> </span>0x0000000109466b22 llvm::FPPassManager::<wbr class="">runOnFunction(llvm::Function&) + 498</p><p class="m_6764313438307663510gmail-p1">11 swiftc <span class="m_6764313438307663510gmail-Apple-converted-space"> </span>0x00000001094663b9 llvm::legacy::<wbr class="">FunctionPassManagerImpl::run(<wbr class="">llvm::Function&) + 169</p><p class="m_6764313438307663510gmail-p1">12 swiftc <span class="m_6764313438307663510gmail-Apple-converted-space"> </span>0x000000010946627a llvm::legacy::<wbr class="">FunctionPassManager::run(llvm:<wbr class="">:Function&) + 362</p><p class="m_6764313438307663510gmail-p1">13 swiftc <span class="m_6764313438307663510gmail-Apple-converted-space"> </span>0x0000000106893e02 swift::<wbr class="">performLLVMOptimizations(<wbr class="">swift::IRGenOptions&, llvm::Module*, llvm::TargetMachine*) + 1410</p><p class="m_6764313438307663510gmail-p1">14 swiftc <span class="m_6764313438307663510gmail-Apple-converted-space"> </span>0x0000000106894736 swift::performLLVM(swift::<wbr class="">IRGenOptions&, swift::DiagnosticEngine*, llvm::sys::SmartMutex<false>*, llvm::GlobalVariable*, llvm::Module*, llvm::TargetMachine*, swift::version::Version const&, llvm::StringRef, swift::UnifiedStatsReporter*) + 1574</p><p class="m_6764313438307663510gmail-p1">15 swiftc <span class="m_6764313438307663510gmail-Apple-converted-space"> </span>0x00000001068993c9 ThreadEntryPoint(swift::irgen:<wbr class="">:IRGenerator*, llvm::sys::SmartMutex<false>*, int) + 249</p><p class="m_6764313438307663510gmail-p1">16 swiftc <span class="m_6764313438307663510gmail-Apple-converted-space"> </span>0x0000000106899fff void* std::__1::__thread_proxy<std::<wbr class="">__1::tuple<std::__1::unique_<wbr class="">ptr<std::__1::__thread_struct, std::__1::default_delete<std::<wbr class="">__1::__thread_struct> >, void (*)(swift::irgen::IRGenerator*<wbr class="">, llvm::sys::SmartMutex<false>*, int), swift::irgen::IRGenerator*, llvm::sys::SmartMutex<false>*, int> >(void*) + 47</p><p class="m_6764313438307663510gmail-p1">17 libsystem_pthread.dylib<span class="m_6764313438307663510gmail-Apple-converted-space"> </span>0x00007fffbb09693b _pthread_body + 180</p><p class="m_6764313438307663510gmail-p1">18 libsystem_pthread.dylib<span class="m_6764313438307663510gmail-Apple-converted-space"> </span>0x00007fffbb096887 _pthread_body + 0</p><p class="m_6764313438307663510gmail-p1">19 libsystem_pthread.dylib<span class="m_6764313438307663510gmail-Apple-converted-space"> </span>0x00007fffbb09608d thread_start + 13</p><p class="m_6764313438307663510gmail-p1">Stack dump:</p><p class="m_6764313438307663510gmail-p1">0.<span class="m_6764313438307663510gmail-Apple-tab-span">        </span>Running pass 'Module Verifier' on function '@_FUNCTION_NAME_'</p><p class="m_6764313438307663510gmail-p1"><br class=""></p><p class="m_6764313438307663510gmail-p1">Does anyone know how to turn off module verifier or fix the above error (I do not see the "-disable-llvm-verify" option with swift/swiftc command line)?</p></div></div></div>
_______________________________________________<br class="">swift-users mailing list<br class=""><a href="mailto:swift-users@swift.org" class="">swift-users@swift.org</a><br class="">https://lists.swift.org/mailman/listinfo/swift-users<br class=""></div></blockquote></div><br class=""></div></body></html>