[llvm] [ADT] Always use 32-bit size type for SmallVector with 16-bit elements (PR #95536)
via llvm-commits
llvm-commits at lists.llvm.org
Wed Jun 26 14:09:56 PDT 2024
dyung wrote:
> LLVM Buildbot has detected a new failure on builder `llvm-clang-x86_64-darwin` running on `doug-worker-3` while building `llvm` at step 5 "build-unified-tree".
>
> Full details are available at: https://lab.llvm.org/buildbot/#/builders/23/builds/398
>
> Here is the relevant piece of the build log for the reference:
>
> ```
> Step 5 (build-unified-tree) failure: build (failure)
> ...
> 54.104 [5597/12/186] Building CXX object lib/TableGen/CMakeFiles/LLVMTableGen.dir/Record.cpp.o
> 54.498 [5596/12/187] Building CXX object utils/TableGen/CMakeFiles/llvm-min-tblgen.dir/IntrinsicEmitter.cpp.o
> 55.096 [5595/12/188] Building CXX object lib/Option/CMakeFiles/LLVMOption.dir/Option.cpp.o
> 55.120 [5594/12/189] Building CXX object lib/Bitstream/Reader/CMakeFiles/LLVMBitstreamReader.dir/BitstreamReader.cpp.o
> 55.152 [5593/12/190] Linking CXX static library lib/libLLVMBitstreamReader.a
> 55.538 [5592/12/191] Building CXX object utils/TableGen/CMakeFiles/llvm-min-tblgen.dir/DirectiveEmitter.cpp.o
> 55.809 [5591/12/192] Building CXX object lib/Option/CMakeFiles/LLVMOption.dir/ArgList.cpp.o
> 55.886 [5590/12/193] Building CXX object lib/TableGen/CMakeFiles/LLVMTableGen.dir/TGParser.cpp.o
> 55.924 [5589/12/194] Linking CXX static library lib/libLLVMTableGen.a
> 56.087 [5588/12/195] Linking CXX executable bin/llvm-min-tblgen
> FAILED: bin/llvm-min-tblgen
> : && /usr/bin/clang++ -fPIC -fvisibility-inlines-hidden -Werror=date-time -Werror=unguarded-availability-new -Wall -Wextra -Wno-unused-parameter -Wwrite-strings -Wcast-qual -Wmissing-field-initializers -pedantic -Wno-long-long -Wc++98-compat-extra-semi -Wimplicit-fallthrough -Wcovered-switch-default -Wno-noexcept-type -Wnon-virtual-dtor -Wdelete-non-virtual-dtor -Wsuggest-override -Wstring-conversion -Wmisleading-indentation -Wctad-maybe-unsupported -fdiagnostics-color -O3 -DNDEBUG -isysroot /Library/Developer/CommandLineTools/SDKs/MacOSX14.4.sdk -Wl,-search_paths_first -Wl,-headerpad_max_install_names -Wl,-dead_strip -Wl,-no_warn_duplicate_libraries utils/TableGen/Basic/CMakeFiles/obj.LLVMTableGenBasic.dir/CodeGenIntrinsics.cpp.o utils/TableGen/Basic/CMakeFiles/obj.LLVMTableGenBasic.dir/SDNodeProperties.cpp.o utils/TableGen/CMakeFiles/llvm-min-tblgen.dir/TableGen.cpp.o utils/TableGen/CMakeFiles/llvm-min-tblgen.dir/ARMTargetDefEmitter.cpp.o utils/TableGen/CMakeFiles/llvm-min-tblgen.dir/Attributes.cpp.o utils/TableGen/CMakeFiles/llvm-min-tblgen.dir/DirectiveEmitter.cpp.o utils/TableGen/CMakeFiles/llvm-min-tblgen.dir/IntrinsicEmitter.cpp.o utils/TableGen/CMakeFiles/llvm-min-tblgen.dir/RISCVTargetDefEmitter.cpp.o utils/TableGen/CMakeFiles/llvm-min-tblgen.dir/VTEmitter.cpp.o -o bin/llvm-min-tblgen -Wl,-rpath, at loader_path/../lib lib/libLLVMSupport.a lib/libLLVMTableGen.a lib/libLLVMSupport.a -lm /Library/Developer/CommandLineTools/SDKs/MacOSX14.4.sdk/usr/lib/libz.tbd /usr/local/lib/libzstd.dylib lib/libLLVMDemangle.a && :
> Undefined symbols for architecture x86_64:
> "llvm::SmallVectorBase<unsigned long>::grow_pod(void*, unsigned long, unsigned long)", referenced from:
> llvm::detail::IEEEFloat::toString(llvm::SmallVectorImpl<char>&, unsigned int, unsigned int, bool) const in libLLVMSupport.a[13](APFloat.cpp.o)
> llvm::detail::IEEEFloat::toString(llvm::SmallVectorImpl<char>&, unsigned int, unsigned int, bool) const in libLLVMSupport.a[13](APFloat.cpp.o)
> llvm::detail::IEEEFloat::toString(llvm::SmallVectorImpl<char>&, unsigned int, unsigned int, bool) const in libLLVMSupport.a[13](APFloat.cpp.o)
> llvm::detail::IEEEFloat::toString(llvm::SmallVectorImpl<char>&, unsigned int, unsigned int, bool) const in libLLVMSupport.a[13](APFloat.cpp.o)
> llvm::detail::IEEEFloat::toString(llvm::SmallVectorImpl<char>&, unsigned int, unsigned int, bool) const in libLLVMSupport.a[13](APFloat.cpp.o)
> llvm::detail::IEEEFloat::toString(llvm::SmallVectorImpl<char>&, unsigned int, unsigned int, bool) const in libLLVMSupport.a[13](APFloat.cpp.o)
> llvm::detail::IEEEFloat::toString(llvm::SmallVectorImpl<char>&, unsigned int, unsigned int, bool) const in libLLVMSupport.a[13](APFloat.cpp.o)
> llvm::detail::IEEEFloat::toString(llvm::SmallVectorImpl<char>&, unsigned int, unsigned int, bool) const in libLLVMSupport.a[13](APFloat.cpp.o)
> llvm::detail::IEEEFloat::toString(llvm::SmallVectorImpl<char>&, unsigned int, unsigned int, bool) const in libLLVMSupport.a[13](APFloat.cpp.o)
> llvm::detail::IEEEFloat::toString(llvm::SmallVectorImpl<char>&, unsigned int, unsigned int, bool) const in libLLVMSupport.a[13](APFloat.cpp.o)
> llvm::detail::IEEEFloat::toString(llvm::SmallVectorImpl<char>&, unsigned int, unsigned int, bool) const in libLLVMSupport.a[13](APFloat.cpp.o)
> llvm::detail::IEEEFloat::toString(llvm::SmallVectorImpl<char>&, unsigned int, unsigned int, bool) const in libLLVMSupport.a[13](APFloat.cpp.o)
> llvm::detail::IEEEFloat::toString(llvm::SmallVectorImpl<char>&, unsigned int, unsigned int, bool) const in libLLVMSupport.a[13](APFloat.cpp.o)
> llvm::detail::IEEEFloat::toString(llvm::SmallVectorImpl<char>&, unsigned int, unsigned int, bool) const in libLLVMSupport.a[13](APFloat.cpp.o)
> llvm::detail::IEEEFloat::toString(llvm::SmallVectorImpl<char>&, unsigned int, unsigned int, bool) const in libLLVMSupport.a[13](APFloat.cpp.o)
> llvm::detail::IEEEFloat::toString(llvm::SmallVectorImpl<char>&, unsigned int, unsigned int, bool) const in libLLVMSupport.a[13](APFloat.cpp.o)
> llvm::detail::IEEEFloat::toString(llvm::SmallVectorImpl<char>&, unsigned int, unsigned int, bool) const in libLLVMSupport.a[13](APFloat.cpp.o)
> llvm::detail::IEEEFloat::toString(llvm::SmallVectorImpl<char>&, unsigned int, unsigned int, bool) const in libLLVMSupport.a[13](APFloat.cpp.o)
> llvm::detail::IEEEFloat::toString(llvm::SmallVectorImpl<char>&, unsigned int, unsigned int, bool) const in libLLVMSupport.a[13](APFloat.cpp.o)
> llvm::detail::IEEEFloat::toString(llvm::SmallVectorImpl<char>&, unsigned int, unsigned int, bool) const in libLLVMSupport.a[13](APFloat.cpp.o)
> llvm::detail::IEEEFloat::toString(llvm::SmallVectorImpl<char>&, unsigned int, unsigned int, bool) const in libLLVMSupport.a[13](APFloat.cpp.o)
> llvm::detail::IEEEFloat::toString(llvm::SmallVectorImpl<char>&, unsigned int, unsigned int, bool) const in libLLVMSupport.a[13](APFloat.cpp.o)
> ...
> ld: symbol(s) not found for architecture x86_64
> clang: error: linker command failed with exit code 1 (use -v to see invocation)
> 57.136 [5588/11/196] Building CXX object lib/DebugInfo/MSF/CMakeFiles/LLVMDebugInfoMSF.dir/MSFError.cpp.o
> 57.372 [5588/10/197] Building CXX object lib/DebugInfo/MSF/CMakeFiles/LLVMDebugInfoMSF.dir/MSFCommon.cpp.o
> 57.847 [5588/9/198] Building CXX object lib/DebugInfo/CodeView/CMakeFiles/LLVMDebugInfoCodeView.dir/CodeViewError.cpp.o
> 57.896 [5588/8/199] Building CXX object lib/DebugInfo/MSF/CMakeFiles/LLVMDebugInfoMSF.dir/MappedBlockStream.cpp.o
> 58.109 [5588/7/200] Building CXX object lib/DebugInfo/CodeView/CMakeFiles/LLVMDebugInfoCodeView.dir/AppendingTypeTableBuilder.cpp.o
> 58.381 [5588/6/201] Building CXX object lib/Option/CMakeFiles/LLVMOption.dir/OptTable.cpp.o
> 58.553 [5588/5/202] Building CXX object lib/DebugInfo/MSF/CMakeFiles/LLVMDebugInfoMSF.dir/MSFBuilder.cpp.o
> 58.627 [5588/4/203] Building CXX object lib/DebugInfo/CodeView/CMakeFiles/LLVMDebugInfoCodeView.dir/CodeViewRecordIO.cpp.o
> 59.182 [5588/3/204] Building CXX object lib/DebugInfo/CodeView/CMakeFiles/LLVMDebugInfoCodeView.dir/ContinuationRecordBuilder.cpp.o
> 59.308 [5588/2/205] Building CXX object lib/DebugInfo/CodeView/CMakeFiles/LLVMDebugInfoCodeView.dir/CVSymbolVisitor.cpp.o
> ```
This failure also happened on my other mac buildbot https://lab.llvm.org/buildbot/#/builders/190/builds/750
It didn't get automatically flagged because the host machine ran out of disk space which I am fixing up now.
https://github.com/llvm/llvm-project/pull/95536
More information about the llvm-commits
mailing list