Closed
Description
The linking of rustc_driver
will fail when using a custom llvm through the llvm-config
setting in the config.toml
.
Meta
Bootstrap compiler: beta 2020-12-30
Compiling master branch
LLVM 10.0.0
Windows 10 2004
Backtrace
librustc_llvm-cb11b760f2056bc3.rlib(MachineBasicBlock.obj) : error LNK2019: unresolved external symbol __imp_rint referenced in function "public: void __cdecl llvm::MachineBasicBlock::print(class llvm::raw_ostream &,class llvm::ModuleSlotTracker &,class llvm::SlotIndexes const *,bool)const " (?print@MachineBasicBlock@llvm@@QEBAXAEAVraw_ostream@2@AEAVModuleSlotTracker@2@PEBVSlotIndexes@2@_N@Z)
librustc_llvm-cb11b760f2056bc3.rlib(BranchProbability.obj) : error LNK2001: unresolved external symbol __imp_rint
librustc_llvm-cb11b760f2056bc3.rlib(SimplifyLibCalls.obj) : error LNK2019: unresolved external symbol __imp_log2 referenced in function "private: class llvm::Value * __cdecl llvm::LibCallSimplifier::replacePowWithExp(class llvm::CallInst *,class llvm::IRBuilder<class llvm::ConstantFolder,class llvm::IRBuilderDefaultInserter> &)" (?replacePowWithExp@LibCallSimplifier@llvm@@AEAAPEAVValue@2@PEAVCallInst@2@AEAV?$IRBuilder@VConstantFolder@llvm@@VIRBuilderDefaultInserter@2@@2@@Z)
librustc_llvm-cb11b760f2056bc3.rlib(ConstantFolding.obj) : error LNK2001: unresolved external symbol __imp_log2
librustc_llvm-cb11b760f2056bc3.rlib(SimplifyLibCalls.obj) : error LNK2019: unresolved external symbol __imp_log2f referenced in function "private: class llvm::Value * __cdecl llvm::LibCallSimplifier::replacePowWithExp(class llvm::CallInst *,class llvm::IRBuilder<class llvm::ConstantFolder,class llvm::IRBuilderDefaultInserter> &)" (?replacePowWithExp@LibCallSimplifier@llvm@@AEAAPEAVValue@2@PEAVCallInst@2@AEAV?$IRBuilder@VConstantFolder@llvm@@VIRBuilderDefaultInserter@2@@2@@Z)
librustc_llvm-cb11b760f2056bc3.rlib(ConstantFolding.obj) : error LNK2019: unresolved external symbol __imp_feclearexcept referenced in function "class llvm::Constant * __cdecl `anonymous namespace'::ConstantFoldBinaryFP(double (__cdecl*)(double,double),double,double,class llvm::Type *)" (?ConstantFoldBinaryFP@?A0x4678a5ee@@YAPEAVConstant@llvm@@P6ANNN@ZNNPEAVType@3@@Z)
librustc_llvm-cb11b760f2056bc3.rlib(InstrProf.obj) : error LNK2019: unresolved external symbol __imp_strncpy referenced in function "public: void __cdecl llvm::OverlapStats::dump(class llvm::raw_fd_ostream &)const " (?dump@OverlapStats@llvm@@QEBAXAEAVraw_fd_ostream@2@@Z)
librustc_llvm-cb11b760f2056bc3.rlib(WindowsResource.obj) : error LNK2001: unresolved external symbol __imp_strncpy
librustc_llvm-cb11b760f2056bc3.rlib(XCOFFObjectWriter.obj) : error LNK2001: unresolved external symbol __imp_strncpy
librustc_llvm-cb11b760f2056bc3.rlib(WinCOFFObjectWriter.obj) : error LNK2019: unresolved external symbol __imp__time64 referenced in function "public: virtual unsigned __int64 __cdecl `anonymous namespace'::WinCOFFObjectWriter::writeObject(class llvm::MCAssembler &,class llvm::MCAsmLayout const &)" (?writeObject@WinCOFFObjectWriter@?A0x86030a0a@@UEAA_KAEAVMCAssembler@llvm@@AEBVMCAsmLayout@4@@Z)
librustc_llvm-cb11b760f2056bc3.rlib(Program.obj) : error LNK2019: unresolved external symbol __imp__setmode referenced in function "class std::error_code __cdecl llvm::sys::ChangeStdinToBinary(void)" (?ChangeStdinToBinary@sys@llvm@@YA?AVerror_code@std@@XZ)
librustc_llvm-cb11b760f2056bc3.rlib(Process.obj) : error LNK2019: unresolved external symbol __imp__heapwalk referenced in function "public: static unsigned __int64 __cdecl llvm::sys::Process::GetMallocUsage(void)" (?GetMallocUsage@Process@sys@llvm@@SA_KXZ)
librustc_llvm-cb11b760f2056bc3.rlib(Process.obj) : error LNK2019: unresolved external symbol __imp_close referenced in function "public: static class std::error_code __cdecl llvm::sys::Process::SafelyCloseFileDescriptor(int)" (?SafelyCloseFileDescriptor@Process@sys@llvm@@SA?AVerror_code@std@@H@Z)
librustc_llvm-cb11b760f2056bc3.rlib(Path.obj) : error LNK2001: unresolved external symbol __imp_close
OLDNAMES.lib(close.obi) : error LNK2001: unresolved external symbol __imp_close
librustc_llvm-cb11b760f2056bc3.rlib(Path.obj) : error LNK2019: unresolved external symbol __imp__chsize_s referenced in function "class std::error_code __cdecl llvm::sys::fs::resize_file(int,unsigned __int64)" (?resize_file@fs@sys@llvm@@YA?AVerror_code@std@@H_K@Z)
librustc_llvm-cb11b760f2056bc3.rlib(Path.obj) : error LNK2019: unresolved external symbol __imp_read referenced in function "class std::error_code __cdecl llvm::sys::fs::copy_file_internal(int,int)" (?copy_file_internal@fs@sys@llvm@@YA?AVerror_code@std@@HH@Z)
OLDNAMES.lib(read.obi) : error LNK2001: unresolved external symbol __imp_read
librustc_llvm-cb11b760f2056bc3.rlib(Path.obj) : error LNK2019: unresolved external symbol __imp_write referenced in function "class std::error_code __cdecl llvm::sys::fs::copy_file_internal(int,int)" (?copy_file_internal@fs@sys@llvm@@YA?AVerror_code@std@@HH@Z)
librustc_llvm-cb11b760f2056bc3.rlib(raw_ostream.obj) : error LNK2001: unresolved external symbol __imp_write
librustc_llvm-cb11b760f2056bc3.rlib(ErrorHandling.obj) : error LNK2001: unresolved external symbol __imp_write
OLDNAMES.lib(write.obi) : error LNK2001: unresolved external symbol __imp_write
librustc_llvm-cb11b760f2056bc3.rlib(Errno.obj) : error LNK2019: unresolved external symbol __imp_strerror_s referenced in function "class std::basic_string<char,struct std::char_traits<char>,class std::allocator<char> > __cdecl llvm::sys::StrError(int)" (?StrError@sys@llvm@@YA?AV?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@H@Z)
librustc_llvm-cb11b760f2056bc3.rlib(raw_ostream.obj) : error LNK2019: unresolved external symbol __imp_lseek referenced in function "public: __cdecl llvm::raw_fd_ostream::raw_fd_ostream(int,bool,bool)" (??0raw_fd_ostream@llvm@@QEAA@H_N0@Z)
OLDNAMES.lib(lseek.obi) : error LNK2001: unresolved external symbol __imp_lseek
librustc_llvm-cb11b760f2056bc3.rlib(NativeFormatting.obj) : error LNK2019: unresolved external symbol __imp__fpclass referenced in function "void __cdecl llvm::write_double(class llvm::raw_ostream &,double,enum llvm::FloatStyle,class llvm::Optional<unsigned __int64>)" (?write_double@llvm@@YAXAEAVraw_ostream@1@NW4FloatStyle@1@V?$Optional@_K@1@@Z)
librustc_llvm-cb11b760f2056bc3.rlib(JSON.obj) : error LNK2019: unresolved external symbol __imp_modf referenced in function "public: class llvm::Optional<__int64> __cdecl llvm::json::Value::getAsInteger(void)const " (?getAsInteger@Value@json@llvm@@QEBA?AV?$Optional@_J@3@XZ)
librustc_llvm-cb11b760f2056bc3.rlib(Chrono.obj) : error LNK2019: unresolved external symbol __imp__localtime64_s referenced in function "class llvm::raw_ostream & __cdecl llvm::operator<<(class llvm::raw_ostream &,class std::chrono::time_point<struct std::chrono::system_clock,class std::chrono::duration<__int64,struct std::ratio<1,1000000000> > >)" (??6llvm@@YAAEAVraw_ostream@0@AEAV10@V?$time_point@Usystem_clock@chrono@std@@V?$duration@_JU?$ratio@$00$0DLJKMKAA@@std@@@23@@chrono@std@@@Z)
rustc_driver-53307c04a46b25d9.dll : fatal error LNK1120: 17 unresolved externals