<div dir="ltr"><br><div class="gmail_extra"><br><div class="gmail_quote">On Sat, Oct 14, 2017 at 11:25 AM, Don Hinton <span dir="ltr"><<a href="mailto:hintonda@gmail.com" target="_blank">hintonda@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-style:solid;border-left-color:rgb(204,204,204);padding-left:1ex"><div dir="ltr">Hi Jack:<div><br></div><div>Yes, I was just looking at that.  Seems like TableGen wasn't done along with the rest of llvm.  I'll work up a complete patch shortly.</div><div><br></div><div>Btw, I'm curious how this happened.  Do you have a stale CMakeCache.txt by any chance?  You might check the value for LLVM_ENABLE_DUMP and see if it's consistent.</div><div><br></div><div>Again, I'll gen up a complete patch shortly -- sorry for delay, had to walk my dog first...</div><div><br></div><div>thanks...</div><span class="gmail-HOEnZb"><font color="#888888"><div>don</div></font></span></div></blockquote><div><br></div><div>There are no instances of <span style="color:rgb(0,0,0);white-space:pre-wrap">LLVM_ENABLE_DUMP being emitted during the stage1 build (which is where the failure </span><font color="#000000"><span style="white-space:pre-wrap">occurs). Greping for </span></font><span style="color:rgb(0,0,0);white-space:pre-wrap">LLVM_ENABLE_DUMP in </span> the stage1 build directory only shows...</div><div><br></div><div><p style="margin:0px;font-stretch:normal;font-size:11px;line-height:normal;font-family:Menlo;color:rgb(0,0,0)"><span style="font-variant-ligatures:no-common-ligatures">% grep -R LLVM_ENABLE_DUMP *</span></p>
<p style="margin:0px;font-stretch:normal;font-size:11px;line-height:normal;font-family:Menlo;color:rgb(0,0,0)"><span style="font-variant-ligatures:no-common-ligatures">include/llvm/Config/llvm-config.h:/* #undef LLVM_ENABLE_DUMP */</span></p>
<p style="margin:0px;font-stretch:normal;font-size:11px;line-height:normal;font-family:Menlo;color:rgb(0,0,0)"><span style="font-variant-ligatures:no-common-ligatures">Binary file utils/TableGen/CMakeFiles/obj.llvm-tblgen.dir/SubtargetEmitter.cpp.o matches</span></p></div><div><span style="font-variant-ligatures:no-common-ligatures"><br></span></div><div><span style="font-variant-ligatures:no-common-ligatures">   Jack</span></div><div><span style="font-variant-ligatures:no-common-ligatures">ps A more general grep for DUMP in CMakeCacne.txt shows...</span></div><div><span style="font-variant-ligatures:no-common-ligatures"><br></span></div><div><span style="font-variant-ligatures:no-common-ligatures"><div>% grep DUMP CMakeCache.txt</div><div>CMAKE_OBJDUMP:FILEPATH=/usr/bin/objdump</div><div>LLVM_FORCE_ENABLE_DUMP:BOOL=OFF</div><div>LLVM_TOOL_LLVM_CXXDUMP_BUILD:BOOL=ON</div><div>LLVM_TOOL_LLVM_DWARFDUMP_BUILD:BOOL=ON</div><div>LLVM_TOOL_LLVM_OBJDUMP_BUILD:BOOL=ON</div><div>//ADVANCED property for variable: CMAKE_OBJDUMP</div><div>CMAKE_OBJDUMP-ADVANCED:INTERNAL=1</div><div>//ADVANCED property for variable: LLVM_TOOL_LLVM_CXXDUMP_BUILD</div><div>LLVM_TOOL_LLVM_CXXDUMP_BUILD-ADVANCED:INTERNAL=1</div><div>//ADVANCED property for variable: LLVM_TOOL_LLVM_DWARFDUMP_BUILD</div><div>LLVM_TOOL_LLVM_DWARFDUMP_BUILD-ADVANCED:INTERNAL=1</div><div>//ADVANCED property for variable: LLVM_TOOL_LLVM_OBJDUMP_BUILD</div><div>LLVM_TOOL_LLVM_OBJDUMP_BUILD-ADVANCED:INTERNAL=1</div><div><br></div></span></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-style:solid;border-left-color:rgb(204,204,204);padding-left:1ex"><div class="gmail-HOEnZb"><div class="gmail-h5"><div class="gmail_extra"><br><div class="gmail_quote">On Sat, Oct 14, 2017 at 8:06 AM, Jack Howarth <span dir="ltr"><<a href="mailto:howarth.mailing.lists@gmail.com" target="_blank">howarth.mailing.lists@gmail.<wbr>com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-style:solid;border-left-color:rgb(204,204,204);padding-left:1ex"><div dir="ltr"><br><div class="gmail_extra"><br><div class="gmail_quote"><div><div class="gmail-m_8719105757705235872h5">On Sat, Oct 14, 2017 at 10:25 AM, Don Hinton <span dir="ltr"><<a href="mailto:hintonda@gmail.com" target="_blank">hintonda@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-style:solid;border-left-color:rgb(204,204,204);padding-left:1ex"><div dir="ltr">Hi Jack:<div><br></div><div>Looks like I missed this one in my recent change.<br></div><div><br></div><div>Please let me know if this solves your problem:</div><div><br></div><div><div>$ git diff</div><div>diff --git a/utils/TableGen/InfoByHwMode.<wbr>cpp b/utils/TableGen/InfoByHwMode.<wbr>cpp</div><div>index 7e1e1864356..8d3636432aa 100644</div><div>--- a/utils/TableGen/InfoByHwMode.<wbr>cpp</div><div>+++ b/utils/TableGen/InfoByHwMode.<wbr>cpp</div><div>@@ -98,14 +98,16 @@ void ValueTypeByHwMode::writeToStre<wbr>am(raw_ostream &OS) const {</div><div>   OS << '}';</div><div> }</div><div><br></div><div>+#ifdef LLVM_ENABLE_DUMP</div><div> LLVM_DUMP_METHOD</div><div> void ValueTypeByHwMode::dump() const {</div><div>   dbgs() << *this << '\n';</div><div> }</div><div>+#endif</div><div><br></div><div> ValueTypeByHwMode llvm::getValueTypeByHwMode(Rec<wbr>ord *Rec,</div><div>                                              const CodeGenHwModes &CGH) {</div><div>-#ifndef NDEBUG</div><div>+#ifdef LLVM_ENABLE_DUMP</div><div>   if (!Rec->isSubClassOf("ValueType<wbr>"))</div><div>     Rec->dump();</div><div> #endif</div></div><div><br></div><div><br></div><div>thanks...</div><div>don</div><div><br></div></div></blockquote><div><br></div></div></div><div>The patch seems to be incomplete as it moves the failure to...</div><span><div><br></div><div>[  6%] Linking CXX executable ../../bin/llvm-tblgen</div><div>cd /sw/src/fink.build/llvm60-6.0.<wbr>0-1/build/stage1/utils/TableGe<wbr>n && /sw/bin/cmake -E cmake_link_script CMakeFiles/llvm-tblgen.dir/lin<wbr>k.txt --verbose=1</div><div>/sw/src/fink.build/llvm60-6.0.<wbr>0-1/opt-bin/ccclang++  -fno-common -fPIC -fvisibility-inlines-hidden -Werror=date-time -Werror=unguarded-availability<wbr>-new -std=c++11 -Wall -W -Wno-unused-parameter -Wwrite-strings -Wcast-qual -Wmissing-field-initializers -pedantic -Wno-long-long -Wcovered-switch-default -Wnon-virtual-dtor -Wdelete-non-virtual-dtor -Wstring-conversion -O3 -Wl,-search_paths_first -Wl,-headerpad_max_install_nam<wbr>es  -L/sw/lib  -Wl,-dead_strip CMakeFiles/obj.llvm-tblgen.dir<wbr>/AsmMatcherEmitter.cpp.o CMakeFiles/obj.llvm-tblgen.dir<wbr>/AsmWriterEmitter.cpp.o CMakeFiles/obj.llvm-tblgen.dir<wbr>/AsmWriterInst.cpp.o CMakeFiles/obj.llvm-tblgen.dir<wbr>/Attributes.cpp.o CMakeFiles/obj.llvm-tblgen.dir<wbr>/CallingConvEmitter.cpp.o CMakeFiles/obj.llvm-tblgen.dir<wbr>/CodeEmitterGen.cpp.o CMakeFiles/obj.llvm-tblgen.dir<wbr>/CodeGenDAGPatterns.cpp.o CMakeFiles/obj.llvm-tblgen.dir<wbr>/CodeGenHwModes.cpp.o CMakeFiles/obj.llvm-tblgen.dir<wbr>/CodeGenInstruction.cpp.o CMakeFiles/obj.llvm-tblgen.dir<wbr>/CodeGenMapTable.cpp.o CMakeFiles/obj.llvm-tblgen.dir<wbr>/CodeGenRegisters.cpp.o CMakeFiles/obj.llvm-tblgen.dir<wbr>/CodeGenSchedule.cpp.o CMakeFiles/obj.llvm-tblgen.dir<wbr>/CodeGenTarget.cpp.o CMakeFiles/obj.llvm-tblgen.dir<wbr>/DAGISelEmitter.cpp.o CMakeFiles/obj.llvm-tblgen.dir<wbr>/DAGISelMatcherEmitter.cpp.o CMakeFiles/obj.llvm-tblgen.dir<wbr>/DAGISelMatcherGen.cpp.o CMakeFiles/obj.llvm-tblgen.dir<wbr>/DAGISelMatcherOpt.cpp.o CMakeFiles/obj.llvm-tblgen.dir<wbr>/DAGISelMatcher.cpp.o CMakeFiles/obj.llvm-tblgen.dir<wbr>/DFAPacketizerEmitter.cpp.o CMakeFiles/obj.llvm-tblgen.dir<wbr>/DisassemblerEmitter.cpp.o CMakeFiles/obj.llvm-tblgen.dir<wbr>/FastISelEmitter.cpp.o CMakeFiles/obj.llvm-tblgen.dir<wbr>/FixedLenDecoderEmitter.cpp.o CMakeFiles/obj.llvm-tblgen.dir<wbr>/GlobalISelEmitter.cpp.o CMakeFiles/obj.llvm-tblgen.dir<wbr>/InfoByHwMode.cpp.o CMakeFiles/obj.llvm-tblgen.dir<wbr>/InstrInfoEmitter.cpp.o CMakeFiles/obj.llvm-tblgen.dir<wbr>/IntrinsicEmitter.cpp.o CMakeFiles/obj.llvm-tblgen.dir<wbr>/OptParserEmitter.cpp.o CMakeFiles/obj.llvm-tblgen.dir<wbr>/PseudoLoweringEmitter.cpp.o CMakeFiles/obj.llvm-tblgen.dir<wbr>/RegisterBankEmitter.cpp.o CMakeFiles/obj.llvm-tblgen.dir<wbr>/RegisterInfoEmitter.cpp.o CMakeFiles/obj.llvm-tblgen.dir<wbr>/SearchableTableEmitter.cpp.o CMakeFiles/obj.llvm-tblgen.dir<wbr>/SubtargetEmitter.cpp.o CMakeFiles/obj.llvm-tblgen.dir<wbr>/SubtargetFeatureInfo.cpp.o CMakeFiles/obj.llvm-tblgen.dir<wbr>/TableGen.cpp.o CMakeFiles/obj.llvm-tblgen.dir<wbr>/Types.cpp.o CMakeFiles/obj.llvm-tblgen.dir<wbr>/X86DisassemblerTables.cpp.o CMakeFiles/obj.llvm-tblgen.dir<wbr>/X86EVEX2VEXTablesEmitter.cpp.<wbr>o CMakeFiles/obj.llvm-tblgen.dir<wbr>/X86FoldTablesEmitter.cpp.o CMakeFiles/obj.llvm-tblgen.dir<wbr>/X86ModRMFilters.cpp.o CMakeFiles/obj.llvm-tblgen.dir<wbr>/X86RecognizableInstr.cpp.o CMakeFiles/obj.llvm-tblgen.dir<wbr>/CTagsEmitter.cpp.o  -o ../../bin/llvm-tblgen -Wl,-rpath,@loader_path/../lib ../../lib/libLLVMSupport.a ../../lib/libLLVMTableGen.a ../../lib/libLLVMSupport.a -lcurses -lz -lm ../../lib/libLLVMDemangle.a </div><div>Undefined symbols for architecture x86_64:</div></span><span><div>  "llvm::SubtargetFeatureInfo::d<wbr>ump() const", referenced from:</div><div>      (anonymous namespace)::AsmMatcherInfo::bu<wbr>ildInfo() in AsmMatcherEmitter.cpp.o</div><div>  "(anonymous namespace)::MatchableInfo::dum<wbr>p() const", referenced from:</div><div>      (anonymous namespace)::AsmMatcherEmitter:<wbr>:run(llvm::raw_ostream&) in AsmMatcherEmitter.cpp.o</div><div>ld: symbol(s) not found for architecture x86_64</div><div>clang: error: linker command failed with exit code 1 (use -v to see invocation)</div><div>make[2]: *** [bin/llvm-tblgen] Error 1</div><div>make[1]: *** [utils/TableGen/CMakeFiles/llv<wbr>m-tblgen.dir/all] Error 2</div><div>make: *** [all] Error 2</div><div><br></div></span><span class="gmail-m_8719105757705235872HOEnZb"><font color="#888888"><div>        Jack</div></font></span><span><div> </div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-style:solid;border-left-color:rgb(204,204,204);padding-left:1ex"><div dir="ltr"><div></div></div><div class="gmail_extra"><br><div class="gmail_quote"><div><div class="gmail-m_8719105757705235872m_-1900973537025040623gmail-h5">On Sat, Oct 14, 2017 at 6:06 AM, Jack Howarth via llvm-dev <span dir="ltr"><<a href="mailto:llvm-dev@lists.llvm.org" target="_blank">llvm-dev@lists.llvm.org</a>></span> wrote:<br></div></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-style:solid;border-left-color:rgb(204,204,204);padding-left:1ex"><div><div class="gmail-m_8719105757705235872m_-1900973537025040623gmail-h5"><div dir="ltr">Is anyone else seeing this bootstrap failure on current svn trunk?<div><br></div><div><div>[  6%] Linking CXX executable ../../bin/llvm-tblgen</div><div>cd /sw/src/fink.build/llvm60-6.0.<wbr>0-1/build/stage1/utils/TableGe<wbr>n && /sw/bin/cmake -E cmake_link_script CMakeFiles/llvm-tblgen.dir/lin<wbr>k.txt --verbose=1</div><div>/sw/src/fink.build/llvm60-6.0.<wbr>0-1/opt-bin/ccclang++  -fno-common -fPIC -fvisibility-inlines-hidden -Werror=date-time -Werror=unguarded-availability<wbr>-new -std=c++11 -Wall -W -Wno-unused-parameter -Wwrite-strings -Wcast-qual -Wmissing-field-initializers -pedantic -Wno-long-long -Wcovered-switch-default -Wnon-virtual-dtor -Wdelete-non-virtual-dtor -Wstring-conversion -O3 -Wl,-search_paths_first -Wl,-headerpad_max_install_nam<wbr>es  -L/sw/lib  -Wl,-dead_strip CMakeFiles/obj.llvm-tblgen.dir<wbr>/AsmMatcherEmitter.cpp.o CMakeFiles/obj.llvm-tblgen.dir<wbr>/AsmWriterEmitter.cpp.o CMakeFiles/obj.llvm-tblgen.dir<wbr>/AsmWriterInst.cpp.o CMakeFiles/obj.llvm-tblgen.dir<wbr>/Attributes.cpp.o CMakeFiles/obj.llvm-tblgen.dir<wbr>/CallingConvEmitter.cpp.o CMakeFiles/obj.llvm-tblgen.dir<wbr>/CodeEmitterGen.cpp.o CMakeFiles/obj.llvm-tblgen.dir<wbr>/CodeGenDAGPatterns.cpp.o CMakeFiles/obj.llvm-tblgen.dir<wbr>/CodeGenHwModes.cpp.o CMakeFiles/obj.llvm-tblgen.dir<wbr>/CodeGenInstruction.cpp.o CMakeFiles/obj.llvm-tblgen.dir<wbr>/CodeGenMapTable.cpp.o CMakeFiles/obj.llvm-tblgen.dir<wbr>/CodeGenRegisters.cpp.o CMakeFiles/obj.llvm-tblgen.dir<wbr>/CodeGenSchedule.cpp.o CMakeFiles/obj.llvm-tblgen.dir<wbr>/CodeGenTarget.cpp.o CMakeFiles/obj.llvm-tblgen.dir<wbr>/DAGISelEmitter.cpp.o CMakeFiles/obj.llvm-tblgen.dir<wbr>/DAGISelMatcherEmitter.cpp.o CMakeFiles/obj.llvm-tblgen.dir<wbr>/DAGISelMatcherGen.cpp.o CMakeFiles/obj.llvm-tblgen.dir<wbr>/DAGISelMatcherOpt.cpp.o CMakeFiles/obj.llvm-tblgen.dir<wbr>/DAGISelMatcher.cpp.o CMakeFiles/obj.llvm-tblgen.dir<wbr>/DFAPacketizerEmitter.cpp.o CMakeFiles/obj.llvm-tblgen.dir<wbr>/DisassemblerEmitter.cpp.o CMakeFiles/obj.llvm-tblgen.dir<wbr>/FastISelEmitter.cpp.o CMakeFiles/obj.llvm-tblgen.dir<wbr>/FixedLenDecoderEmitter.cpp.o CMakeFiles/obj.llvm-tblgen.dir<wbr>/GlobalISelEmitter.cpp.o CMakeFiles/obj.llvm-tblgen.dir<wbr>/InfoByHwMode.cpp.o CMakeFiles/obj.llvm-tblgen.dir<wbr>/InstrInfoEmitter.cpp.o CMakeFiles/obj.llvm-tblgen.dir<wbr>/IntrinsicEmitter.cpp.o CMakeFiles/obj.llvm-tblgen.dir<wbr>/OptParserEmitter.cpp.o CMakeFiles/obj.llvm-tblgen.dir<wbr>/PseudoLoweringEmitter.cpp.o CMakeFiles/obj.llvm-tblgen.dir<wbr>/RegisterBankEmitter.cpp.o CMakeFiles/obj.llvm-tblgen.dir<wbr>/RegisterInfoEmitter.cpp.o CMakeFiles/obj.llvm-tblgen.dir<wbr>/SearchableTableEmitter.cpp.o CMakeFiles/obj.llvm-tblgen.dir<wbr>/SubtargetEmitter.cpp.o CMakeFiles/obj.llvm-tblgen.dir<wbr>/SubtargetFeatureInfo.cpp.o CMakeFiles/obj.llvm-tblgen.dir<wbr>/TableGen.cpp.o CMakeFiles/obj.llvm-tblgen.dir<wbr>/Types.cpp.o CMakeFiles/obj.llvm-tblgen.dir<wbr>/X86DisassemblerTables.cpp.o CMakeFiles/obj.llvm-tblgen.dir<wbr>/X86EVEX2VEXTablesEmitter.cpp.<wbr>o CMakeFiles/obj.llvm-tblgen.dir<wbr>/X86FoldTablesEmitter.cpp.o CMakeFiles/obj.llvm-tblgen.dir<wbr>/X86ModRMFilters.cpp.o CMakeFiles/obj.llvm-tblgen.dir<wbr>/X86RecognizableInstr.cpp.o CMakeFiles/obj.llvm-tblgen.dir<wbr>/CTagsEmitter.cpp.o  -o ../../bin/llvm-tblgen -Wl,-rpath,@loader_path/../lib ../../lib/libLLVMSupport.a ../../lib/libLLVMTableGen.a ../../lib/libLLVMSupport.a -lcurses -lz -lm ../../lib/libLLVMDemangle.a </div><div>Undefined symbols for architecture x86_64:</div><div>  "llvm::Record::dump() const", referenced from:</div><div>      llvm::getValueTypeByHwMode(llv<wbr>m::Record*, llvm::CodeGenHwModes const&) in InfoByHwMode.cpp.o</div><div>  "llvm::SubtargetFeatureInfo::d<wbr>ump() const", referenced from:</div><div>      (anonymous namespace)::AsmMatcherInfo::bu<wbr>ildInfo() in AsmMatcherEmitter.cpp.o</div><div>  "(anonymous namespace)::MatchableInfo::dum<wbr>p() const", referenced from:</div><div>      (anonymous namespace)::AsmMatcherEmitter:<wbr>:run(llvm::raw_ostream&) in AsmMatcherEmitter.cpp.o</div><div>ld: symbol(s) not found for architecture x86_64</div><div>clang: error: linker command failed with exit code 1 (use -v to see invocation)</div><div>make[2]: *** [bin/llvm-tblgen] Error 1</div><div>make[1]: *** [utils/TableGen/CMakeFiles/llv<wbr>m-tblgen.dir/all] Error 2</div><div>make: *** [all] Error 2</div></div><div><br></div><div>This is on x86_64-apple-darwin16 with Xcode 9.0.</div><span class="gmail-m_8719105757705235872m_-1900973537025040623gmail-m_-5941297470198756964HOEnZb"><font color="#888888"><div>         Jack</div></font></span></div>
<br></div></div>______________________________<wbr>_________________<br>
LLVM Developers mailing list<br>
<a href="mailto:llvm-dev@lists.llvm.org" target="_blank">llvm-dev@lists.llvm.org</a><br>
<a href="http://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-dev" rel="noreferrer" target="_blank">http://lists.llvm.org/cgi-bin/<wbr>mailman/listinfo/llvm-dev</a><br>
<br></blockquote></div><br></div>
</blockquote></span></div><br></div></div>
</blockquote></div><br></div>
</div></div></blockquote></div><br></div></div>