<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&nbsp;<a href="http://bugs.swift.org" class="">bugs.swift.org</a>&nbsp;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 &lt;<a href="mailto:swift-users@swift.org" class="">swift-users@swift.org</a>&gt; wrote:</div><br class="Apple-interchange-newline"><div class=""><div dir="ltr" class="">OS:&nbsp;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="">&nbsp; &nbsp; &nbsp; &nbsp;<span style="background-color:transparent;font-family:SFMono-Regular,Consolas,&quot;Liberation Mono&quot;,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,&quot;Liberation Mono&quot;,Menlo,Courier,monospace;font-size:13.6px;color:rgb(36,41,46)" class="">&nbsp; &nbsp;</span><span style="background-color:transparent;font-family:SFMono-Regular,Consolas,&quot;Liberation Mono&quot;,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,&quot;Liberation Mono&quot;,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,&quot;Liberation Mono&quot;,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,&quot;Liberation Mono&quot;,Menlo,Courier,monospace;font-size:13.6px;color:rgb(36,41,46)" class="">&nbsp; &nbsp;</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="">&nbsp; &nbsp;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="">&nbsp; &nbsp; 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="">&nbsp; &nbsp; mixin_lightweight_assertions</span></font></div><div class="">&nbsp; &nbsp; ...</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">&nbsp; </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">&nbsp; </span>%256 = bitcast i64 %255 to %objc_object*, !dbg !443</p><p class="m_6764313438307663510gmail-p1">&lt;unknown&gt;: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">&lt;unknown&gt;:0: note: Broken function found, compilation aborted!</p><p class="m_6764313438307663510gmail-p1">0<span class="m_6764313438307663510gmail-Apple-converted-space">&nbsp; </span>swiftc <span class="m_6764313438307663510gmail-Apple-converted-space">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; </span>0x000000010955ebc8 llvm::sys::PrintStackTrace(<wbr class="">llvm::raw_ostream&amp;) + 40</p><p class="m_6764313438307663510gmail-p1">1<span class="m_6764313438307663510gmail-Apple-converted-space">&nbsp; </span>swiftc <span class="m_6764313438307663510gmail-Apple-converted-space">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; </span>0x000000010955def6 llvm::sys::RunSignalHandlers() + 86</p><p class="m_6764313438307663510gmail-p1">2<span class="m_6764313438307663510gmail-Apple-converted-space">&nbsp; </span>swiftc <span class="m_6764313438307663510gmail-Apple-converted-space">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; </span>0x000000010955f12e SignalHandler(int) + 270</p><p class="m_6764313438307663510gmail-p1">3<span class="m_6764313438307663510gmail-Apple-converted-space">&nbsp; </span>libsystem_platform.dylib 0x00007fffbb08cb3a _sigtramp + 26</p><p class="m_6764313438307663510gmail-p1">4<span class="m_6764313438307663510gmail-Apple-converted-space">&nbsp; </span>libsystem_platform.dylib 0x000070000b4115a0 _sigtramp + 1345866368</p><p class="m_6764313438307663510gmail-p1">5<span class="m_6764313438307663510gmail-Apple-converted-space">&nbsp; </span>libsystem_c.dylib<span class="m_6764313438307663510gmail-Apple-converted-space">&nbsp; &nbsp; &nbsp; &nbsp; </span>0x00007fffbaf11420 abort + 129</p><p class="m_6764313438307663510gmail-p1">6<span class="m_6764313438307663510gmail-Apple-converted-space">&nbsp; </span>swiftc <span class="m_6764313438307663510gmail-Apple-converted-space">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; </span>0x00000001067985c7 swift::performFrontend(llvm::<wbr class="">ArrayRef&lt;char const*&gt;, char const*, void*, swift::FrontendObserver*)::$_<wbr class="">0::__invoke(void*, std::__1::basic_string&lt;char, std::__1::char_traits&lt;char&gt;, std::__1::allocator&lt;char&gt; &gt; const&amp;, bool) + 551</p><p class="m_6764313438307663510gmail-p1">7<span class="m_6764313438307663510gmail-Apple-converted-space">&nbsp; </span>swiftc <span class="m_6764313438307663510gmail-Apple-converted-space">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; </span>0x0000000109506cac llvm::report_fatal_error(llvm:<wbr class="">:Twine const&amp;, bool) + 252</p><p class="m_6764313438307663510gmail-p1">8<span class="m_6764313438307663510gmail-Apple-converted-space">&nbsp; </span>swiftc <span class="m_6764313438307663510gmail-Apple-converted-space">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; </span>0x0000000109506baa llvm::report_fatal_error(char const*, bool) + 42</p><p class="m_6764313438307663510gmail-p1">9<span class="m_6764313438307663510gmail-Apple-converted-space">&nbsp; </span>swiftc <span class="m_6764313438307663510gmail-Apple-converted-space">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; </span>0x00000001094c0d06 (anonymous namespace)::<wbr class="">VerifierLegacyPass::<wbr class="">runOnFunction(llvm::Function&amp;) + 54</p><p class="m_6764313438307663510gmail-p1">10 swiftc <span class="m_6764313438307663510gmail-Apple-converted-space">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; </span>0x0000000109466b22 llvm::FPPassManager::<wbr class="">runOnFunction(llvm::Function&amp;) + 498</p><p class="m_6764313438307663510gmail-p1">11 swiftc <span class="m_6764313438307663510gmail-Apple-converted-space">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; </span>0x00000001094663b9 llvm::legacy::<wbr class="">FunctionPassManagerImpl::run(<wbr class="">llvm::Function&amp;) + 169</p><p class="m_6764313438307663510gmail-p1">12 swiftc <span class="m_6764313438307663510gmail-Apple-converted-space">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; </span>0x000000010946627a llvm::legacy::<wbr class="">FunctionPassManager::run(llvm:<wbr class="">:Function&amp;) + 362</p><p class="m_6764313438307663510gmail-p1">13 swiftc <span class="m_6764313438307663510gmail-Apple-converted-space">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; </span>0x0000000106893e02 swift::<wbr class="">performLLVMOptimizations(<wbr class="">swift::IRGenOptions&amp;, llvm::Module*, llvm::TargetMachine*) + 1410</p><p class="m_6764313438307663510gmail-p1">14 swiftc <span class="m_6764313438307663510gmail-Apple-converted-space">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; </span>0x0000000106894736 swift::performLLVM(swift::<wbr class="">IRGenOptions&amp;, swift::DiagnosticEngine*, llvm::sys::SmartMutex&lt;false&gt;*, llvm::GlobalVariable*, llvm::Module*, llvm::TargetMachine*, swift::version::Version const&amp;, llvm::StringRef, swift::UnifiedStatsReporter*) + 1574</p><p class="m_6764313438307663510gmail-p1">15 swiftc <span class="m_6764313438307663510gmail-Apple-converted-space">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; </span>0x00000001068993c9 ThreadEntryPoint(swift::irgen:<wbr class="">:IRGenerator*, llvm::sys::SmartMutex&lt;false&gt;*, int) + 249</p><p class="m_6764313438307663510gmail-p1">16 swiftc <span class="m_6764313438307663510gmail-Apple-converted-space">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; </span>0x0000000106899fff void* std::__1::__thread_proxy&lt;std::<wbr class="">__1::tuple&lt;std::__1::unique_<wbr class="">ptr&lt;std::__1::__thread_struct, std::__1::default_delete&lt;std::<wbr class="">__1::__thread_struct&gt; &gt;, void (*)(swift::irgen::IRGenerator*<wbr class="">, llvm::sys::SmartMutex&lt;false&gt;*, int), swift::irgen::IRGenerator*, llvm::sys::SmartMutex&lt;false&gt;*, int&gt; &gt;(void*) + 47</p><p class="m_6764313438307663510gmail-p1">17 libsystem_pthread.dylib<span class="m_6764313438307663510gmail-Apple-converted-space">&nbsp; </span>0x00007fffbb09693b _pthread_body + 180</p><p class="m_6764313438307663510gmail-p1">18 libsystem_pthread.dylib<span class="m_6764313438307663510gmail-Apple-converted-space">&nbsp; </span>0x00007fffbb096887 _pthread_body + 0</p><p class="m_6764313438307663510gmail-p1">19 libsystem_pthread.dylib<span class="m_6764313438307663510gmail-Apple-converted-space">&nbsp; </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>