[llvm-bugs] [Bug 42370] New: lld-link fails to link pgo-instrumented clang with "error: relocation against symbol in discarded section: __profd_..."

via llvm-bugs llvm-bugs at lists.llvm.org
Mon Jun 24 05:04:04 PDT 2019


https://bugs.llvm.org/show_bug.cgi?id=42370

            Bug ID: 42370
           Summary: lld-link fails to link pgo-instrumented clang with
                    "error: relocation against symbol in discarded
                    section: __profd_..."
           Product: new-bugs
           Version: trunk
          Hardware: PC
                OS: Linux
            Status: NEW
          Severity: enhancement
          Priority: P
         Component: new bugs
          Assignee: unassignedbugs at nondot.org
          Reporter: hans at chromium.org
                CC: htmldeveloper at gmail.com, llvm-bugs at lists.llvm.org,
                    rnk at google.com

To repro: (I used the monorepo at bb6d0b8e7b0d815710a71b8012438a586e986450 /
r364169)

build.foo>set CC=\src\llvm.monorepo\build.release\bin\clang-cl.exe
build.foo>set CXX=\src\llvm.monorepo\build.release\bin\clang-cl.exe
build.foo>cmake -GNinja
-DCMAKE_LINKER=/src/llvm.monorepo/build.release/bin/lld-link
-DCMAKE_BUILD_TYPE=Release -DLLVM_BUILD_INSTRUMENTED=IR
-DLLVM_ENABLE_PROJECTS=clang ../llvm

build.foo>ninja bin\Remarks.dll

FAILED: bin/Remarks.dll lib/Remarks.lib
cmd.exe /C "cd . && "C:\Program Files\CMake\bin\cmake.exe" -E vs_link_dll
--intdir=tools\remarks-shlib\CMakeFiles\Remarks.dir --manifests  --
\src\llvm.monorepo\build.release\bin\lld-link /nologo
tools\remarks-shlib\CMakeFiles\Remarks.dir\libremarks.cpp.obj
tools\remarks-shlib\CMakeFiles\Remarks.dir\__\__\resources\windows_version_resource.rc.res
 /out:bin\Remarks.dll /implib:lib\Remarks.lib /pdb:bin\Remarks.pdb /dll
/version:0.0 /machine:x64
-fprofile-generate='C:\src\llvm.monorepo\build.foo\profiles' /INCREMENTAL:NO 
/DEF:"C:/src/llvm.monorepo/build.foo/tools/remarks-shlib/Remarks.def" 
lib\LLVMRemarks.lib lib\LLVMSupport.lib psapi.lib shell32.lib ole32.lib
uuid.lib advapi32.lib delayimp.lib -delayload:shell32.dll -delayload:ole32.dll
lib\LLVMDemangle.lib kernel32.lib user32.lib gdi32.lib winspool.lib shell32.lib
ole32.lib oleaut32.lib uuid.lib comdlg32.lib advapi32.lib  && cd ."
LINK: command "\src\llvm.monorepo\build.release\bin\lld-link /nologo
tools\remarks-shlib\CMakeFiles\Remarks.dir\libremarks.cpp.obj
tools\remarks-shlib\CMakeFiles\Remarks.dir\__\__\resources\windows_version_resource.rc.res
/out:bin\Remarks.dll /implib:lib\Remarks.lib /pdb:bin\Remarks.pdb /dll
/version:0.0 /machine:x64
-fprofile-generate='C:\src\llvm.monorepo\build.foo\profiles' /INCREMENTAL:NO
/DEF:C:/src/llvm.monorepo/build.foo/tools/remarks-shlib/Remarks.def
lib\LLVMRemarks.lib lib\LLVMSupport.lib psapi.lib shell32.lib ole32.lib
uuid.lib advapi32.lib delayimp.lib -delayload:shell32.dll -delayload:ole32.dll
lib\LLVMDemangle.lib kernel32.lib user32.lib gdi32.lib winspool.lib shell32.lib
ole32.lib oleaut32.lib uuid.lib comdlg32.lib advapi32.lib /MANIFEST
/MANIFESTFILE:bin\Remarks.dll.manifest" failed (exit code 1) with the following
output:
lld-link: warning: ignoring unknown argument
'-fprofile-generate='C:\src\llvm.monorepo\build.foo\profiles''
lld-link: error: relocation against symbol in discarded section:
__profd_?append@?$basic_string at DU?$char_traits at D@std@@V?$allocator at D@2@@std@@QEAAAEAV12 at QEBD_K@Z.40465189888
>>> referenced by LLVMSupport.lib(Triple.cpp.obj):(public: static class std::basic_string<char, struct std::char_traits<char>, class std::allocator<char>> __cdecl llvm::Triple::normalize(class llvm::StringRef))

lld-link: error: relocation against symbol in discarded section:
__profd_??$append at PEADX@?$SmallVectorImpl at D@llvm@@QEAAXPEAD0 at Z.37713126052
>>> referenced by LLVMSupport.lib(APInt.cpp.obj):(public: void __cdecl llvm::APInt::toString(class llvm::SmallVectorImpl<char> &, unsigned int, bool, bool) const)

lld-link: error: relocation against symbol in discarded section:
__profd_?assign@?$basic_string at DU?$char_traits at D@std@@V?$allocator at D@2@@std@@QEAAAEAV12 at QEBD@Z.40465189888
>>> referenced by LLVMSupport.lib(Debug.cpp.obj):(void __cdecl llvm::setCurrentDebugTypes(char const **, unsigned int))

lld-link: error: relocation against symbol in discarded section:
__profd_??$append at PEBDX@?$SmallVectorImpl at D@llvm@@QEAAXPEBD0 at Z.37713126052
>>> referenced by LLVMSupport.lib(Path.cpp.obj):(void __cdecl llvm::sys::path::append(class llvm::SmallVectorImpl<char> &, enum llvm::sys::path::Style, class llvm::Twine const &, class llvm::Twine const &, class llvm::Twine const &, class llvm::Twine const &))
>>> referenced by LLVMSupport.lib(Path.cpp.obj):(void __cdecl llvm::sys::path::append(class llvm::SmallVectorImpl<char> &, enum llvm::sys::path::Style, class llvm::Twine const &, class llvm::Twine const &, class llvm::Twine const &, class llvm::Twine const &))
>>> referenced by LLVMSupport.lib(Path.cpp.obj):(void __cdecl llvm::sys::path::replace_extension(class llvm::SmallVectorImpl<char> &, class llvm::Twine const &, enum llvm::sys::path::Style))
>>> referenced by LLVMSupport.lib(Path.cpp.obj):(bool __cdecl llvm::sys::path::remove_dots(class llvm::SmallVectorImpl<char> &, bool, enum llvm::sys::path::Style))
>>> referenced by LLVMSupport.lib(Path.cpp.obj):(void __cdecl llvm::sys::fs::make_absolute(class llvm::Twine const &, class llvm::SmallVectorImpl<char> &))
>>> referenced by LLVMSupport.lib(Path.cpp.obj):(public: void __cdecl llvm::sys::fs::directory_entry::replace_filename(class llvm::Twine const &, enum llvm::sys::fs::file_type, class llvm::sys::fs::basic_file_status))
>>> referenced by LLVMSupport.lib(Path.cpp.obj):(class std::error_code __cdecl llvm::sys::path::widenPath(class llvm::Twine const &, class llvm::SmallVectorImpl<wchar_t> &))
>>> referenced by LLVMSupport.lib(Path.cpp.obj):(class std::error_code __cdecl llvm::sys::path::widenPath(class llvm::Twine const &, class llvm::SmallVectorImpl<wchar_t> &))
>>> referenced by LLVMSupport.lib(Path.cpp.obj):(class std::error_code __cdecl llvm::sys::fs::detail::directory_iterator_construct(struct llvm::sys::fs::detail::DirIterState &, class llvm::StringRef, bool))

lld-link: error: relocation against symbol in discarded section:
__profd_?assign@?$basic_string at DU?$char_traits at D@std@@V?$allocator at D@2@@std@@QEAAAEAV12 at QEBD@Z.40465189888
>>> referenced by LLVMSupport.lib(raw_ostream.cpp.obj):(public: virtual class std::basic_string<char, struct std::char_traits<char>, class std::allocator<char>> __cdecl std::_System_error_category::message(int) const)

lld-link: error: relocation against symbol in discarded section:
__profd_??$append at PEBDX@?$SmallVectorImpl at D@llvm@@QEAAXPEBD0 at Z.37713126052
>>> referenced by LLVMSupport.lib(YAMLParser.cpp.obj):(private: bool __cdecl llvm::yaml::Scanner::scanBlockScalar(bool))
>>> referenced by LLVMSupport.lib(YAMLParser.cpp.obj):(public: char * __cdecl llvm::SmallVectorImpl<char>::insert<char const *, void>(char *, char const *, char const *))

lld-link: error: relocation against symbol in discarded section:
__profd_??$append at PEBDX@?$SmallVectorImpl at D@llvm@@QEAAXPEBD0 at Z.37713126052
>>> referenced by LLVMSupport.lib(Triple.cpp.obj):(public: void __cdecl llvm::Triple::setArchName(class llvm::StringRef))
>>> referenced by LLVMSupport.lib(Triple.cpp.obj):(public: void __cdecl llvm::Triple::setArchName(class llvm::StringRef))
>>> referenced by LLVMSupport.lib(Triple.cpp.obj):(public: void __cdecl llvm::Triple::setArchName(class llvm::StringRef))
>>> referenced by LLVMSupport.lib(Triple.cpp.obj):(public: void __cdecl llvm::Triple::setArchName(class llvm::StringRef))
>>> referenced by LLVMSupport.lib(Triple.cpp.obj):(public: void __cdecl llvm::Triple::setArchName(class llvm::StringRef))

lld-link: error: relocation against symbol in discarded section:
__profd_??6raw_ostream at llvm@@QEAAAEAV01 at PEBD@Z.49377690693
>>> referenced by LLVMSupport.lib(StringExtras.cpp.obj):(void __cdecl llvm::printHTMLEscaped(class llvm::StringRef, class llvm::raw_ostream &))
>>> referenced by LLVMSupport.lib(StringExtras.cpp.obj):(void __cdecl llvm::printHTMLEscaped(class llvm::StringRef, class llvm::raw_ostream &))
>>> referenced by LLVMSupport.lib(StringExtras.cpp.obj):(void __cdecl llvm::printHTMLEscaped(class llvm::StringRef, class llvm::raw_ostream &))
>>> referenced by LLVMSupport.lib(StringExtras.cpp.obj):(void __cdecl llvm::printHTMLEscaped(class llvm::StringRef, class llvm::raw_ostream &))
>>> referenced by LLVMSupport.lib(StringExtras.cpp.obj):(void __cdecl llvm::printHTMLEscaped(class llvm::StringRef, class llvm::raw_ostream &))

lld-link: error: relocation against symbol in discarded section:
__profd_?assign@?$basic_string at DU?$char_traits at D@std@@V?$allocator at D@2@@std@@QEAAAEAV12 at QEBD@Z.40465189888
>>> referenced by LLVMSupport.lib(YAMLParser.cpp.obj):(public: class std::basic_string<char, struct std::char_traits<char>, class std::allocator<char>> __cdecl llvm::yaml::Node::getVerbatimTag(void) const)

lld-link: error: relocation against symbol in discarded section:
__profd_?append@?$SmallVectorImpl at D@llvm@@QEAAX_KAEBD at Z.37713126052
>>> referenced by LLVMSupport.lib(CommandLine.cpp.obj):(unsigned __int64 __cdecl parseBackslash(class llvm::StringRef, unsigned __int64, class llvm::SmallString<128> &))
>>> referenced by LLVMSupport.lib(CommandLine.cpp.obj):(unsigned __int64 __cdecl parseBackslash(class llvm::StringRef, unsigned __int64, class llvm::SmallString<128> &))

lld-link: error: relocation against symbol in discarded section:
__profd_??6raw_ostream at llvm@@QEAAAEAV01 at PEBD@Z.49377690693
>>> referenced by LLVMSupport.lib(StringExtras.cpp.obj):(void __cdecl llvm::printHTMLEscaped(class llvm::StringRef, class llvm::raw_ostream &))
>>> referenced by LLVMSupport.lib(StringExtras.cpp.obj):(void __cdecl llvm::printHTMLEscaped(class llvm::StringRef, class llvm::raw_ostream &))
>>> referenced by LLVMSupport.lib(StringExtras.cpp.obj):(void __cdecl llvm::printHTMLEscaped(class llvm::StringRef, class llvm::raw_ostream &))
>>> referenced by LLVMSupport.lib(StringExtras.cpp.obj):(void __cdecl llvm::printHTMLEscaped(class llvm::StringRef, class llvm::raw_ostream &))
>>> referenced by LLVMSupport.lib(StringExtras.cpp.obj):(void __cdecl llvm::printHTMLEscaped(class llvm::StringRef, class llvm::raw_ostream &))

lld-link: error: relocation against symbol in discarded section:
__profd_??6raw_ostream at llvm@@QEAAAEAV01 at PEBD@Z.49377690693
>>> referenced by LLVMSupport.lib(NativeFormatting.cpp.obj):(void __cdecl llvm::write_double(class llvm::raw_ostream &, double, enum llvm::FloatStyle, class llvm::Optional<unsigned __int64>))
>>> referenced by LLVMSupport.lib(NativeFormatting.cpp.obj):(void __cdecl llvm::write_double(class llvm::raw_ostream &, double, enum llvm::FloatStyle, class llvm::Optional<unsigned __int64>))
>>> referenced by LLVMSupport.lib(NativeFormatting.cpp.obj):(void __cdecl llvm::write_double(class llvm::raw_ostream &, double, enum llvm::FloatStyle, class llvm::Optional<unsigned __int64>))
>>> referenced by LLVMSupport.lib(NativeFormatting.cpp.obj):(void __cdecl llvm::write_double(class llvm::raw_ostream &, double, enum llvm::FloatStyle, class llvm::Optional<unsigned __int64>))
>>> referenced by LLVMSupport.lib(NativeFormatting.cpp.obj):(void __cdecl llvm::write_double(class llvm::raw_ostream &, double, enum llvm::FloatStyle, class llvm::Optional<unsigned __int64>))
>>> referenced by LLVMSupport.lib(NativeFormatting.cpp.obj):(void __cdecl llvm::write_double(class llvm::raw_ostream &, double, enum llvm::FloatStyle, class llvm::Optional<unsigned __int64>))

lld-link: error: relocation against symbol in discarded section:
__profd_?append@?$SmallVectorImpl at D@llvm@@QEAAX_KAEBD at Z.37713126052
>>> referenced by LLVMSupport.lib(CommandLine.cpp.obj):(unsigned __int64 __cdecl parseBackslash(class llvm::StringRef, unsigned __int64, class llvm::SmallString<128> &))
>>> referenced by LLVMSupport.lib(CommandLine.cpp.obj):(unsigned __int64 __cdecl parseBackslash(class llvm::StringRef, unsigned __int64, class llvm::SmallString<128> &))

lld-link: error: relocation against symbol in discarded section:
__profd_??6raw_ostream at llvm@@QEAAAEAV01 at PEBD@Z.49377690693
>>> referenced by LLVMSupport.lib(APFloat.cpp.obj):(public: void __cdecl llvm::APFloat::print(class llvm::raw_ostream &) const)

lld-link: error: relocation against symbol in discarded section:
__profd_??6raw_ostream at llvm@@QEAAAEAV01 at PEBD@Z.49377690693
>>> referenced by LLVMSupport.lib(NativeFormatting.cpp.obj):(void __cdecl llvm::write_double(class llvm::raw_ostream &, double, enum llvm::FloatStyle, class llvm::Optional<unsigned __int64>))
>>> referenced by LLVMSupport.lib(NativeFormatting.cpp.obj):(void __cdecl llvm::write_double(class llvm::raw_ostream &, double, enum llvm::FloatStyle, class llvm::Optional<unsigned __int64>))
>>> referenced by LLVMSupport.lib(NativeFormatting.cpp.obj):(void __cdecl llvm::write_double(class llvm::raw_ostream &, double, enum llvm::FloatStyle, class llvm::Optional<unsigned __int64>))
>>> referenced by LLVMSupport.lib(NativeFormatting.cpp.obj):(void __cdecl llvm::write_double(class llvm::raw_ostream &, double, enum llvm::FloatStyle, class llvm::Optional<unsigned __int64>))
>>> referenced by LLVMSupport.lib(NativeFormatting.cpp.obj):(void __cdecl llvm::write_double(class llvm::raw_ostream &, double, enum llvm::FloatStyle, class llvm::Optional<unsigned __int64>))
>>> referenced by LLVMSupport.lib(NativeFormatting.cpp.obj):(void __cdecl llvm::write_double(class llvm::raw_ostream &, double, enum llvm::FloatStyle, class llvm::Optional<unsigned __int64>))

lld-link: error: relocation against symbol in discarded section:
__profd_??$append at PEBDX@?$SmallVectorImpl at D@llvm@@QEAAXPEBD0 at Z.37713126052
>>> referenced by LLVMSupport.lib(Path.cpp.obj):(void __cdecl llvm::sys::path::append(class llvm::SmallVectorImpl<char> &, enum llvm::sys::path::Style, class llvm::Twine const &, class llvm::Twine const &, class llvm::Twine const &, class llvm::Twine const &))
>>> referenced by LLVMSupport.lib(Path.cpp.obj):(void __cdecl llvm::sys::path::append(class llvm::SmallVectorImpl<char> &, enum llvm::sys::path::Style, class llvm::Twine const &, class llvm::Twine const &, class llvm::Twine const &, class llvm::Twine const &))
>>> referenced by LLVMSupport.lib(Path.cpp.obj):(void __cdecl llvm::sys::path::replace_extension(class llvm::SmallVectorImpl<char> &, class llvm::Twine const &, enum llvm::sys::path::Style))
>>> referenced by LLVMSupport.lib(Path.cpp.obj):(bool __cdecl llvm::sys::path::remove_dots(class llvm::SmallVectorImpl<char> &, bool, enum llvm::sys::path::Style))
>>> referenced by LLVMSupport.lib(Path.cpp.obj):(void __cdecl llvm::sys::fs::make_absolute(class llvm::Twine const &, class llvm::SmallVectorImpl<char> &))
>>> referenced by LLVMSupport.lib(Path.cpp.obj):(public: void __cdecl llvm::sys::fs::directory_entry::replace_filename(class llvm::Twine const &, enum llvm::sys::fs::file_type, class llvm::sys::fs::basic_file_status))
>>> referenced by LLVMSupport.lib(Path.cpp.obj):(class std::error_code __cdecl llvm::sys::path::widenPath(class llvm::Twine const &, class llvm::SmallVectorImpl<wchar_t> &))
>>> referenced by LLVMSupport.lib(Path.cpp.obj):(class std::error_code __cdecl llvm::sys::path::widenPath(class llvm::Twine const &, class llvm::SmallVectorImpl<wchar_t> &))
>>> referenced by LLVMSupport.lib(Path.cpp.obj):(class std::error_code __cdecl llvm::sys::fs::detail::directory_iterator_construct(struct llvm::sys::fs::detail::DirIterState &, class llvm::StringRef, bool))

lld-link: error: relocation against symbol in discarded section:
__profd_??4APInt at llvm@@QEAAAEAV01 at _K@Z.39132274416
>>> referenced by LLVMSupport.lib(APInt.cpp.obj):(public: static void __cdecl llvm::APInt::udivrem(class llvm::APInt const &, class llvm::APInt const &, class llvm::APInt &, class llvm::APInt &))
>>> referenced by LLVMSupport.lib(APInt.cpp.obj):(public: static void __cdecl llvm::APInt::udivrem(class llvm::APInt const &, class llvm::APInt const &, class llvm::APInt &, class llvm::APInt &))
>>> referenced by LLVMSupport.lib(APInt.cpp.obj):(public: static void __cdecl llvm::APInt::udivrem(class llvm::APInt const &, unsigned __int64, class llvm::APInt &, unsigned __int64 &))

lld-link: error: relocation against symbol in discarded section:
__profd_?append@?$basic_string at DU?$char_traits at D@std@@V?$allocator at D@2@@std@@QEAAAEAV12 at QEBD_K@Z.40465189888
>>> referenced by LLVMSupport.lib(Error.cpp.obj):(public: virtual void __cdecl llvm::StringError::log(class llvm::raw_ostream &) const)
>>> referenced by LLVMSupport.lib(Error.cpp.obj):(public: virtual void __cdecl llvm::StringError::log(class llvm::raw_ostream &) const)
>>> referenced by LLVMSupport.lib(Error.cpp.obj):(class std::basic_string<char, struct std::char_traits<char>, class std::allocator<char>> __cdecl llvm::toString(class llvm::Error))
>>> referenced by LLVMSupport.lib(Error.cpp.obj):(class std::basic_string<char, struct std::char_traits<char>, class std::allocator<char>> __cdecl llvm::toString(class llvm::Error))
>>> referenced by LLVMSupport.lib(Error.cpp.obj):(class std::basic_string<char, struct std::char_traits<char>, class std::allocator<char>> __cdecl llvm::toString(class llvm::Error))

lld-link: error: relocation against symbol in discarded section:
__profd_??6raw_ostream at llvm@@QEAAAEAV01 at PEBD@Z.49377690693
>>> referenced by LLVMSupport.lib(Twine.cpp.obj):(private: void __cdecl llvm::Twine::printOneChild(class llvm::raw_ostream &, union llvm::Twine::Child, enum llvm::Twine::NodeKind) const)
>>> referenced by LLVMSupport.lib(Twine.cpp.obj):(private: void __cdecl llvm::Twine::printOneChildRepr(class llvm::raw_ostream &, union llvm::Twine::Child, enum llvm::Twine::NodeKind) const)
>>> referenced by LLVMSupport.lib(Twine.cpp.obj):(private: void __cdecl llvm::Twine::printOneChildRepr(class llvm::raw_ostream &, union llvm::Twine::Child, enum llvm::Twine::NodeKind) const)
>>> referenced by LLVMSupport.lib(Twine.cpp.obj):(private: void __cdecl llvm::Twine::printOneChildRepr(class llvm::raw_ostream &, union llvm::Twine::Child, enum llvm::Twine::NodeKind) const)
>>> referenced by LLVMSupport.lib(Twine.cpp.obj):(private: void __cdecl llvm::Twine::printOneChildRepr(class llvm::raw_ostream &, union llvm::Twine::Child, enum llvm::Twine::NodeKind) const)
>>> referenced by LLVMSupport.lib(Twine.cpp.obj):(private: void __cdecl llvm::Twine::printOneChildRepr(class llvm::raw_ostream &, union llvm::Twine::Child, enum llvm::Twine::NodeKind) const)
>>> referenced by LLVMSupport.lib(Twine.cpp.obj):(private: void __cdecl llvm::Twine::printOneChildRepr(class llvm::raw_ostream &, union llvm::Twine::Child, enum llvm::Twine::NodeKind) const)
>>> referenced by LLVMSupport.lib(Twine.cpp.obj):(private: void __cdecl llvm::Twine::printOneChildRepr(class llvm::raw_ostream &, union llvm::Twine::Child, enum llvm::Twine::NodeKind) const)
>>> referenced by LLVMSupport.lib(Twine.cpp.obj):(private: void __cdecl llvm::Twine::printOneChildRepr(class llvm::raw_ostream &, union llvm::Twine::Child, enum llvm::Twine::NodeKind) const)
>>> referenced by LLVMSupport.lib(Twine.cpp.obj):(private: void __cdecl llvm::Twine::printOneChildRepr(class llvm::raw_ostream &, union llvm::Twine::Child, enum llvm::Twine::NodeKind) const)
>>> referenced by LLVMSupport.lib(Twine.cpp.obj):(private: void __cdecl llvm::Twine::printOneChildRepr(class llvm::raw_ostream &, union llvm::Twine::Child, enum llvm::Twine::NodeKind) const)
>>> referenced by LLVMSupport.lib(Twine.cpp.obj):(private: void __cdecl llvm::Twine::printOneChildRepr(class llvm::raw_ostream &, union llvm::Twine::Child, enum llvm::Twine::NodeKind) const)
>>> referenced by LLVMSupport.lib(Twine.cpp.obj):(private: void __cdecl llvm::Twine::printOneChildRepr(class llvm::raw_ostream &, union llvm::Twine::Child, enum llvm::Twine::NodeKind) const)
>>> referenced by LLVMSupport.lib(Twine.cpp.obj):(private: void __cdecl llvm::Twine::printOneChildRepr(class llvm::raw_ostream &, union llvm::Twine::Child, enum llvm::Twine::NodeKind) const)
>>> referenced by LLVMSupport.lib(Twine.cpp.obj):(private: void __cdecl llvm::Twine::printOneChildRepr(class llvm::raw_ostream &, union llvm::Twine::Child, enum llvm::Twine::NodeKind) const)
>>> referenced by LLVMSupport.lib(Twine.cpp.obj):(private: void __cdecl llvm::Twine::printOneChildRepr(class llvm::raw_ostream &, union llvm::Twine::Child, enum llvm::Twine::NodeKind) const)
>>> referenced by LLVMSupport.lib(Twine.cpp.obj):(private: void __cdecl llvm::Twine::printOneChildRepr(class llvm::raw_ostream &, union llvm::Twine::Child, enum llvm::Twine::NodeKind) const)
>>> referenced by LLVMSupport.lib(Twine.cpp.obj):(private: void __cdecl llvm::Twine::printOneChildRepr(class llvm::raw_ostream &, union llvm::Twine::Child, enum llvm::Twine::NodeKind) const)
>>> referenced by LLVMSupport.lib(Twine.cpp.obj):(private: void __cdecl llvm::Twine::printOneChildRepr(class llvm::raw_ostream &, union llvm::Twine::Child, enum llvm::Twine::NodeKind) const)
>>> referenced by LLVMSupport.lib(Twine.cpp.obj):(public: void __cdecl llvm::Twine::printRepr(class llvm::raw_ostream &) const)
>>> referenced by LLVMSupport.lib(Twine.cpp.obj):(public: void __cdecl llvm::Twine::printRepr(class llvm::raw_ostream &) const)
>>> referenced by LLVMSupport.lib(Twine.cpp.obj):(public: void __cdecl llvm::Twine::printRepr(class llvm::raw_ostream &) const)

lld-link: error: relocation against symbol in discarded section:
__profd_??6raw_ostream at llvm@@QEAAAEAV01 at PEBD@Z.49377690693
>>> referenced by LLVMSupport.lib(Error.cpp.obj):(class llvm::Error __cdecl llvm::handleErrorImpl<class `void __cdecl llvm::logAllUnhandledErrors(class llvm::Error, class llvm::raw_ostream &, class llvm::Twine)'::`1'::<lambda_0>>(class std::unique_ptr<class llvm::ErrorInfoBase, struct std::default_delete<class llvm::ErrorInfoBase>>, class `void __cdecl llvm::logAllUnhandledErrors(class llvm::Error, class llvm::raw_ostream &, class llvm::Twine)'::`1'::<lambda_0> &&))

lld-link: error: too many errors emitted, stopping now (use /errorlimit:0 to
see all errors)
ninja: build stopped: subcommand failed.

-- 
You are receiving this mail because:
You are on the CC list for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/llvm-bugs/attachments/20190624/0ec35c79/attachment-0001.html>


More information about the llvm-bugs mailing list