I am nuilding that now. CC=clang CXX=clang++ cmake -DCMAKE_INSTALL_PREFIX=$HOME/opt/llvm11-git \ -DCMAKE_BUILD_TYPE=Release \ -DBUILD_SHARED_LIBS=ON \ -DLLVM_ENABLE_EH=ON \ -DLLVM_ENABLE_RTTI=ON \ -DLLVM_HOST_TRIPLE=x86_64-pc-linux-gnu \ -DLLVM_TARGETS_TO_BUILD="AMDGPU;MSP430;WebAssembly;X86" \ -DLLVM_EXPERIMENTAL_TARGETS_TO_BUILD="AVR" \ -DLLVM_ENABLE_PROJECTS="all" \ -G "Ninja" ../llvm On 23/04/2020 18:04, Juneyoung Lee wrote:> Can you try DBUILD_SHARED_LIBS=ON ? I saw the error when I compiled a > custom pass with shared libs off & passed it to opt. > > On Fri, Apr 24, 2020 at 1:47 AM Luke A. Guest via llvm-dev > <llvm-dev at lists.llvm.org <mailto:llvm-dev at lists.llvm.org>> wrote: > > Hi, > > Using master at b0a1c0b72c9c61f8b0a223e08f43498abb64f5e8, I cannot build > LLVM. I configured with: > > CC=clang CXX=clang++ cmake -DCMAKE_INSTALL_PREFIX=$HOME/opt/llvm11-git \ > -DCMAKE_BUILD_TYPE=Release \ > -DLLVM_BUILD_LLVM_DYLIB=ON \ > -DLLVM_LINK_LLVM_DYLIB=ON \ > -DBUILD_SHARED_LIBS=OFF \ > -DLLVM_ENABLE_EH=ON \ > -DLLVM_ENABLE_RTTI=ON \ > -DLLVM_HOST_TRIPLE=x86_64-pc-linux-gnu \ > -DLLVM_TARGETS_TO_BUILD="AMDGPU;MSP430;WebAssembly;X86" \ > -DLLVM_EXPERIMENTAL_TARGETS_TO_BUILD="AVR" \ > -DLLVM_ENABLE_PROJECTS="all" \ > -G "Ninja" ../llvm > > The final errors were: > > [5802/7319] : && /usr/lib/llvm/10/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 -Wimplicit-fallthrough -Wcovered-switch-default > -Wno-noexcept-type -Wnon-virtual-dtor -Wdelete-non-virtual-dtor > -Wstring-conversion -fdiagnostics-color -ffunction-sections > -fdata-sections -fno-common -Woverloaded-virtual -Wno-nested-anon-types > -O3 -DNDEBUG -Wl,-allow-shlib-undefined > -Wl,-rpath-link,/home/laguest/src/mine-new/llvm/llvm-project/build/./lib > -Wl,-O3 -Wl,--gc-sections > tools/clang/tools/extra/clang-change-namespace/tool/CMakeFiles/clang-change-namespace.dir/ClangChangeNamespace.cpp.o > -o bin/clang-change-namespace -Wl,-rpath,"\$ORIGIN/../lib" -lpthread > lib/libclang-cpp.so.11git lib/libclangChangeNamespace.a > lib/libclangTooling.a lib/libclangFormat.a > lib/libclangToolingInclusions.a lib/libclangFrontend.a > lib/libclangParse.a lib/libclangSerialization.a lib/libclangSema.a > lib/libclangEdit.a lib/libclangAnalysis.a lib/libclangASTMatchers.a > lib/libclangDriver.a lib/libclangToolingCore.a lib/libclangAST.a > lib/libclangRewrite.a lib/libclangLex.a lib/libclangBasic.a > lib/libLLVM-11git.so && : > [5803/7319] /usr/lib/llvm/10/bin/clang++ -D_GNU_SOURCE > -D__STDC_CONSTANT_MACROS -D__STDC_FORMAT_MACROS -D__STDC_LIMIT_MACROS > -Itools/clang/tools/driver > -I/home/laguest/src/mine-new/llvm/llvm-project/clang/tools/driver > -I/home/laguest/src/mine-new/llvm/llvm-project/clang/include > -Itools/clang/include -I/usr/include/libxml2 -Iinclude > -I/home/laguest/src/mine-new/llvm/llvm-project/llvm/include -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 -Wimplicit-fallthrough -Wcovered-switch-default > -Wno-noexcept-type -Wnon-virtual-dtor -Wdelete-non-virtual-dtor > -Wstring-conversion -fdiagnostics-color -ffunction-sections > -fdata-sections -fno-common -Woverloaded-virtual -Wno-nested-anon-types > -O3 -DNDEBUG -std=c++14 -MD -MT > tools/clang/tools/driver/CMakeFiles/clang.dir/cc1as_main.cpp.o -MF > tools/clang/tools/driver/CMakeFiles/clang.dir/cc1as_main.cpp.o.d -o > tools/clang/tools/driver/CMakeFiles/clang.dir/cc1as_main.cpp.o -c > /home/laguest/src/mine-new/llvm/llvm-project/clang/tools/driver/cc1as_main.cpp > [5804/7319] : && /usr/lib/llvm/10/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 -Wimplicit-fallthrough -Wcovered-switch-default > -Wno-noexcept-type -Wnon-virtual-dtor -Wdelete-non-virtual-dtor > -Wstring-conversion -fdiagnostics-color -ffunction-sections > -fdata-sections -fno-common -Woverloaded-virtual -Wno-nested-anon-types > -O3 -DNDEBUG -Wl,-allow-shlib-undefined > -Wl,-rpath-link,/home/laguest/src/mine-new/llvm/llvm-project/build/./lib > -Wl,-O3 -Wl,--gc-sections > tools/clang/tools/extra/clang-include-fixer/tool/CMakeFiles/clang-include-fixer.dir/ClangIncludeFixer.cpp.o > -o bin/clang-include-fixer -Wl,-rpath,"\$ORIGIN/../lib" -lpthread > lib/libclang-cpp.so.11git lib/libclangIncludeFixer.a > lib/libfindAllSymbols.a lib/libclangTooling.a lib/libclangFormat.a > lib/libclangToolingInclusions.a lib/libclangFrontend.a > lib/libclangParse.a lib/libclangSerialization.a lib/libclangSema.a > lib/libclangEdit.a lib/libclangAnalysis.a lib/libclangASTMatchers.a > lib/libclangDriver.a lib/libclangToolingCore.a lib/libclangAST.a > lib/libclangRewrite.a lib/libclangLex.a lib/libclangBasic.a > lib/libLLVM-11git.so && : > [5805/7319] : && /usr/lib/llvm/10/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 -Wimplicit-fallthrough -Wcovered-switch-default > -Wno-noexcept-type -Wnon-virtual-dtor -Wdelete-non-virtual-dtor > -Wstring-conversion -fdiagnostics-color -ffunction-sections > -fdata-sections -fno-common -Woverloaded-virtual -Wno-nested-anon-types > -O3 -DNDEBUG -Wl,-allow-shlib-undefined > -Wl,-rpath-link,/home/laguest/src/mine-new/llvm/llvm-project/build/./lib > -Wl,-O3 -Wl,--gc-sections > tools/clang/tools/extra/clang-include-fixer/find-all-symbols/tool/CMakeFiles/find-all-symbols.dir/FindAllSymbolsMain.cpp.o > -o bin/find-all-symbols -Wl,-rpath,"\$ORIGIN/../lib" -lpthread > lib/libclang-cpp.so.11git lib/libfindAllSymbols.a lib/libclangTooling.a > lib/libclangFrontend.a lib/libclangParse.a lib/libclangDriver.a > lib/libclangSerialization.a lib/libclangSema.a lib/libclangEdit.a > lib/libclangAnalysis.a lib/libclangASTMatchers.a lib/libclangFormat.a > lib/libclangToolingInclusions.a lib/libclangToolingCore.a > lib/libclangAST.a lib/libclangRewrite.a lib/libclangLex.a > lib/libclangBasic.a lib/libLLVM-11git.so && : > [5806/7319] : && /usr/lib/llvm/10/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 -Wimplicit-fallthrough -Wcovered-switch-default > -Wno-noexcept-type -Wnon-virtual-dtor -Wdelete-non-virtual-dtor > -Wstring-conversion -fdiagnostics-color -ffunction-sections > -fdata-sections -fno-common -Woverloaded-virtual -Wno-nested-anon-types > -O3 -DNDEBUG -Wl,-allow-shlib-undefined > -Wl,-rpath-link,/home/laguest/src/mine-new/llvm/llvm-project/build/./lib > -Wl,-O3 -Wl,--gc-sections > tools/clang/tools/extra/clang-move/tool/CMakeFiles/clang-move.dir/ClangMove.cpp.o > -o bin/clang-move -Wl,-rpath,"\$ORIGIN/../lib" -lpthread > lib/libclang-cpp.so.11git lib/libclangMove.a lib/libclangTooling.a > lib/libclangFormat.a lib/libclangToolingInclusions.a > lib/libclangFrontend.a lib/libclangParse.a lib/libclangSerialization.a > lib/libclangSema.a lib/libclangAnalysis.a lib/libclangASTMatchers.a > lib/libclangEdit.a lib/libclangDriver.a lib/libclangToolingCore.a > lib/libclangAST.a lib/libclangRewrite.a lib/libclangLex.a > lib/libclangBasic.a lib/libLLVM-11git.so && : > [5807/7319] : && /usr/lib/llvm/10/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 -Wimplicit-fallthrough -Wcovered-switch-default > -Wno-noexcept-type -Wnon-virtual-dtor -Wdelete-non-virtual-dtor > -Wstring-conversion -fdiagnostics-color -ffunction-sections > -fdata-sections -fno-common -Woverloaded-virtual -Wno-nested-anon-types > -O3 -DNDEBUG -Wl,-allow-shlib-undefined > -Wl,-rpath-link,/home/laguest/src/mine-new/llvm/llvm-project/build/./lib > -Wl,-O3 -Wl,--gc-sections > tools/clang/tools/extra/clang-tidy/tool/CMakeFiles/clang-tidy.dir/ClangTidyToolMain.cpp.o > -o bin/clang-tidy -Wl,-rpath,"\$ORIGIN/../lib" -lpthread > lib/libclang-cpp.so.11git lib/libclangTidy.a lib/libclangTidyMain.a > lib/libclangTidyAndroidModule.a lib/libclangTidyAbseilModule.a > lib/libclangTidyBoostModule.a lib/libclangTidyBugproneModule.a > lib/libclangTidyCERTModule.a lib/libclangTidyCppCoreGuidelinesModule.a > lib/libclangTidyDarwinModule.a lib/libclangTidyFuchsiaModule.a > lib/libclangTidyGoogleModule.a lib/libclangTidyHICPPModule.a > lib/libclangTidyLinuxKernelModule.a lib/libclangTidyLLVMModule.a > lib/libclangTidyLLVMLibcModule.a lib/libclangTidyMiscModule.a > lib/libclangTidyModernizeModule.a lib/libclangTidyObjCModule.a > lib/libclangTidyOpenMPModule.a lib/libclangTidyPerformanceModule.a > lib/libclangTidyPortabilityModule.a lib/libclangTidyReadabilityModule.a > lib/libclangTidyZirconModule.a lib/libclangTidyMPIModule.a > lib/libclangTidyBugproneModule.a > lib/libclangTidyCppCoreGuidelinesModule.a lib/libclangTidyGoogleModule.a > lib/libclangTidyMiscModule.a lib/libclangTidyModernizeModule.a > lib/libclangTidyReadabilityModule.a lib/libclangTidyUtils.a > lib/libclangTidy.a lib/libclangStaticAnalyzerFrontend.a > lib/libclangTransformer.a lib/libclangToolingRefactoring.a > lib/libclangStaticAnalyzerCheckers.a lib/libclangStaticAnalyzerCore.a > lib/libclangCrossTU.a lib/libclangIndex.a lib/libclangTooling.a > lib/libclangFormat.a lib/libclangToolingInclusions.a > lib/libclangFrontend.a lib/libclangParse.a lib/libclangSerialization.a > lib/libclangSema.a lib/libclangAnalysis.a lib/libclangASTMatchers.a > lib/libclangEdit.a lib/libclangDriver.a lib/libclangToolingCore.a > lib/libclangAST.a lib/libclangRewrite.a lib/libclangLex.a > lib/libclangBasic.a lib/libLLVM-11git.so && : > [5808/7319] : && /usr/lib/llvm/10/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 -Wimplicit-fallthrough -Wcovered-switch-default > -Wno-noexcept-type -Wnon-virtual-dtor -Wdelete-non-virtual-dtor > -Wstring-conversion -fdiagnostics-color -ffunction-sections > -fdata-sections -fno-common -Woverloaded-virtual -Wno-nested-anon-types > -O3 -DNDEBUG -Wl,-allow-shlib-undefined > -Wl,-rpath-link,/home/laguest/src/mine-new/llvm/llvm-project/build/./lib > -Wl,-O3 -Wl,--gc-sections > tools/clang/tools/extra/clang-query/tool/CMakeFiles/clang-query.dir/ClangQuery.cpp.o > -o bin/clang-query -Wl,-rpath,"\$ORIGIN/../lib" -lpthread > lib/libclang-cpp.so.11git lib/libclangQuery.a > lib/libclangDynamicASTMatchers.a lib/libclangFrontend.a > lib/libclangDriver.a lib/libclangParse.a lib/libclangSerialization.a > lib/libclangSema.a lib/libclangEdit.a lib/libclangAnalysis.a > lib/libclangASTMatchers.a lib/libclangAST.a lib/libclangLex.a > lib/libclangBasic.a lib/libLLVM-11git.so && : > [5809/7319] cd > /home/laguest/src/mine-new/llvm/llvm-project/libc/src/errno && > /home/laguest/src/mine-new/llvm/llvm-project/build/bin/clang-tidy > --extra-arg=-fno-caret-diagnostics --quiet -p > /home/laguest/src/mine-new/llvm/llvm-project/build errno_location.cpp && > /usr/bin/cmake -E touch > /home/laguest/src/mine-new/llvm/llvm-project/build/projects/libc/src/errno/.__errno_location.__lint_timestamp__ > FAILED: projects/libc/src/errno/.__errno_location.__lint_timestamp__ > cd /home/laguest/src/mine-new/llvm/llvm-project/libc/src/errno && > /home/laguest/src/mine-new/llvm/llvm-project/build/bin/clang-tidy > --extra-arg=-fno-caret-diagnostics --quiet -p > /home/laguest/src/mine-new/llvm/llvm-project/build errno_location.cpp && > /usr/bin/cmake -E touch > /home/laguest/src/mine-new/llvm/llvm-project/build/projects/libc/src/errno/.__errno_location.__lint_timestamp__ > : CommandLine Error: Option 'polly' registered more than once! > LLVM ERROR: inconsistency in registered CommandLine options > /bin/sh: line 1: 15290 Aborted > /home/laguest/src/mine-new/llvm/llvm-project/build/bin/clang-tidy > --extra-arg=-fno-caret-diagnostics --quiet -p > /home/laguest/src/mine-new/llvm/llvm-project/build errno_location.cpp > [5810/7319] cd > /home/laguest/src/mine-new/llvm/llvm-project/libc/src/signal/linux && > /home/laguest/src/mine-new/llvm/llvm-project/build/bin/clang-tidy > --extra-arg=-fno-caret-diagnostics --quiet -p > /home/laguest/src/mine-new/llvm/llvm-project/build raise.cpp && > /usr/bin/cmake -E touch > /home/laguest/src/mine-new/llvm/llvm-project/build/projects/libc/src/signal/linux/.raise.__lint_timestamp__ > FAILED: projects/libc/src/signal/linux/.raise.__lint_timestamp__ > cd /home/laguest/src/mine-new/llvm/llvm-project/libc/src/signal/linux && > /home/laguest/src/mine-new/llvm/llvm-project/build/bin/clang-tidy > --extra-arg=-fno-caret-diagnostics --quiet -p > /home/laguest/src/mine-new/llvm/llvm-project/build raise.cpp && > /usr/bin/cmake -E touch > /home/laguest/src/mine-new/llvm/llvm-project/build/projects/libc/src/signal/linux/.raise.__lint_timestamp__ > : CommandLine Error: Option 'polly' registered more than once! > LLVM ERROR: inconsistency in registered CommandLine options > /bin/sh: line 1: 15292 Aborted > /home/laguest/src/mine-new/llvm/llvm-project/build/bin/clang-tidy > --extra-arg=-fno-caret-diagnostics --quiet -p > /home/laguest/src/mine-new/llvm/llvm-project/build raise.cpp > [5811/7319] : && /usr/lib/llvm/10/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 -Wimplicit-fallthrough -Wcovered-switch-default > -Wno-noexcept-type -Wnon-virtual-dtor -Wdelete-non-virtual-dtor > -Wstring-conversion -fdiagnostics-color -ffunction-sections > -fdata-sections -fno-common -Woverloaded-virtual -Wno-nested-anon-types > -O3 -DNDEBUG -Wl,-allow-shlib-undefined > -Wl,-rpath-link,/home/laguest/src/mine-new/llvm/llvm-project/build/./lib > -Wl,-O3 -Wl,--gc-sections > tools/clang/tools/extra/pp-trace/CMakeFiles/pp-trace.dir/PPTrace.cpp.o > tools/clang/tools/extra/pp-trace/CMakeFiles/pp-trace.dir/PPCallbacksTracker.cpp.o > -o bin/pp-trace -Wl,-rpath,"\$ORIGIN/../lib" lib/libLLVM-11git.so > -lpthread lib/libclang-cpp.so.11git && : > [5812/7319] : && /usr/lib/llvm/10/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 -Wimplicit-fallthrough -Wcovered-switch-default > -Wno-noexcept-type -Wnon-virtual-dtor -Wdelete-non-virtual-dtor > -Wstring-conversion -fdiagnostics-color -ffunction-sections > -fdata-sections -fno-common -Woverloaded-virtual -Wno-nested-anon-types > -O3 -DNDEBUG -Wl,-allow-shlib-undefined > -Wl,-rpath-link,/home/laguest/src/mine-new/llvm/llvm-project/build/./lib > -Wl,-O3 -Wl,--gc-sections > tools/clang/tools/extra/tool-template/CMakeFiles/tool-template.dir/ToolTemplate.cpp.o > -o bin/tool-template -Wl,-rpath,"\$ORIGIN/../lib" lib/libLLVM-11git.so > -lpthread lib/libclang-cpp.so.11git && : > [5813/7319] /usr/lib/llvm/10/bin/clang++ -D_GNU_SOURCE > -D__STDC_CONSTANT_MACROS -D__STDC_FORMAT_MACROS -D__STDC_LIMIT_MACROS > -Itools/clang/tools/driver > -I/home/laguest/src/mine-new/llvm/llvm-project/clang/tools/driver > -I/home/laguest/src/mine-new/llvm/llvm-project/clang/include > -Itools/clang/include -I/usr/include/libxml2 -Iinclude > -I/home/laguest/src/mine-new/llvm/llvm-project/llvm/include -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 -Wimplicit-fallthrough -Wcovered-switch-default > -Wno-noexcept-type -Wnon-virtual-dtor -Wdelete-non-virtual-dtor > -Wstring-conversion -fdiagnostics-color -ffunction-sections > -fdata-sections -fno-common -Woverloaded-virtual -Wno-nested-anon-types > -O3 -DNDEBUG -std=c++14 -MD -MT > tools/clang/tools/driver/CMakeFiles/clang.dir/cc1_main.cpp.o -MF > tools/clang/tools/driver/CMakeFiles/clang.dir/cc1_main.cpp.o.d -o > tools/clang/tools/driver/CMakeFiles/clang.dir/cc1_main.cpp.o -c > /home/laguest/src/mine-new/llvm/llvm-project/clang/tools/driver/cc1_main.cpp > ninja: build stopped: subcommand failed. > > I've been struggling to build with gcc-9.3 and clang 9/10 with DYLIB and > without. > > Luke. > _______________________________________________ > LLVM Developers mailing list > llvm-dev at lists.llvm.org <mailto:llvm-dev at lists.llvm.org> > https://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-dev > > > > -- > > Juneyoung Lee > Software Foundation Lab, Seoul National University
Here's the error: [1921/7570] /usr/lib/llvm/10/bin/clang++ -D_GNU_SOURCE -D__STDC_CONSTANT_MACROS -D__STDC_FORMAT_MACROS -D__STDC_LIMIT_MACROS -Itools/clang/utils/TableGen -I/home/laguest/src/mine-new/llvm/llvm-project/clang/utils/TableGen -I/home/laguest/src/mine-new/llvm/llvm-project/clang/include -Itools/clang/include -I/usr/include/libxml2 -Iinclude -I/home/laguest/src/mine-new/llvm/llvm-project/llvm/include -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 -Wimplicit-fallthrough -Wcovered-switch-default -Wno-noexcept-type -Wnon-virtual-dtor -Wdelete-non-virtual-dtor -Wstring-conversion -fdiagnostics-color -ffunction-sections -fdata-sections -fno-common -Woverloaded-virtual -Wno-nested-anon-types -O3 -DNDEBUG -std=c++14 -MD -MT tools/clang/utils/TableGen/CMakeFiles/clang-tblgen.dir/ClangASTNodesEmitter.cpp.o -MF tools/clang/utils/TableGen/CMakeFiles/clang-tblgen.dir/ClangASTNodesEmitter.cpp.o.d -o tools/clang/utils/TableGen/CMakeFiles/clang-tblgen.dir/ClangASTNodesEmitter.cpp.o -c /home/laguest/src/mine-new/llvm/llvm-project/clang/utils/TableGen/ClangASTNodesEmitter.cpp [1922/7570] /usr/lib/llvm/10/bin/clang++ -D_GNU_SOURCE -D__STDC_CONSTANT_MACROS -D__STDC_FORMAT_MACROS -D__STDC_LIMIT_MACROS -Iprojects/compiler-rt/lib/tsan/dd -I/home/laguest/src/mine-new/llvm/llvm-project/compiler-rt/lib/tsan/dd -I/usr/include/libxml2 -Iinclude -I/home/laguest/src/mine-new/llvm/llvm-project/llvm/include -I/home/laguest/src/mine-new/llvm/llvm-project/compiler-rt/lib/tsan/dd/../.. -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 -Wimplicit-fallthrough -Wcovered-switch-default -Wno-noexcept-type -Wnon-virtual-dtor -Wdelete-non-virtual-dtor -Wstring-conversion -fdiagnostics-color -ffunction-sections -fdata-sections -Wall -std=c++14 -Wno-unused-parameter -O3 -DNDEBUG -m64 -fno-lto -fPIC -fno-builtin -fno-exceptions -fomit-frame-pointer -funwind-tables -fno-stack-protector -fno-sanitize=safe-stack -fvisibility=hidden -fno-lto -O3 -gline-tables-only -Wno-gnu -Wno-variadic-macros -Wno-c99-extensions -Wno-non-virtual-dtor -fno-rtti -std=c++14 -MD -MT projects/compiler-rt/lib/tsan/dd/CMakeFiles/clang_rt.dd-x86_64.dir/dd_rtl.cpp.o -MF projects/compiler-rt/lib/tsan/dd/CMakeFiles/clang_rt.dd-x86_64.dir/dd_rtl.cpp.o.d -o projects/compiler-rt/lib/tsan/dd/CMakeFiles/clang_rt.dd-x86_64.dir/dd_rtl.cpp.o -c /home/laguest/src/mine-new/llvm/llvm-project/compiler-rt/lib/tsan/dd/dd_rtl.cpp [1923/7570] /usr/lib/llvm/10/bin/clang++ -D_GNU_SOURCE -D__STDC_CONSTANT_MACROS -D__STDC_FORMAT_MACROS -D__STDC_LIMIT_MACROS -Iprojects/libc/utils/HdrGen -I/home/laguest/src/mine-new/llvm/llvm-project/libc/utils/HdrGen -I/usr/include/libxml2 -Iinclude -I/home/laguest/src/mine-new/llvm/llvm-project/llvm/include -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 -Wimplicit-fallthrough -Wcovered-switch-default -Wno-noexcept-type -Wnon-virtual-dtor -Wdelete-non-virtual-dtor -Wstring-conversion -fdiagnostics-color -ffunction-sections -fdata-sections -O3 -DNDEBUG -std=c++14 -MD -MT projects/libc/utils/HdrGen/CMakeFiles/libc-hdrgen.dir/Command.cpp.o -MF projects/libc/utils/HdrGen/CMakeFiles/libc-hdrgen.dir/Command.cpp.o.d -o projects/libc/utils/HdrGen/CMakeFiles/libc-hdrgen.dir/Command.cpp.o -c /home/laguest/src/mine-new/llvm/llvm-project/libc/utils/HdrGen/Command.cpp [1924/7570] /usr/lib/llvm/10/bin/clang++ -D_GNU_SOURCE -D__STDC_CONSTANT_MACROS -D__STDC_FORMAT_MACROS -D__STDC_LIMIT_MACROS -Itools/clang/utils/TableGen -I/home/laguest/src/mine-new/llvm/llvm-project/clang/utils/TableGen -I/home/laguest/src/mine-new/llvm/llvm-project/clang/include -Itools/clang/include -I/usr/include/libxml2 -Iinclude -I/home/laguest/src/mine-new/llvm/llvm-project/llvm/include -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 -Wimplicit-fallthrough -Wcovered-switch-default -Wno-noexcept-type -Wnon-virtual-dtor -Wdelete-non-virtual-dtor -Wstring-conversion -fdiagnostics-color -ffunction-sections -fdata-sections -fno-common -Woverloaded-virtual -Wno-nested-anon-types -O3 -DNDEBUG -std=c++14 -MD -MT tools/clang/utils/TableGen/CMakeFiles/clang-tblgen.dir/ClangASTPropertiesEmitter.cpp.o -MF tools/clang/utils/TableGen/CMakeFiles/clang-tblgen.dir/ClangASTPropertiesEmitter.cpp.o.d -o tools/clang/utils/TableGen/CMakeFiles/clang-tblgen.dir/ClangASTPropertiesEmitter.cpp.o -c /home/laguest/src/mine-new/llvm/llvm-project/clang/utils/TableGen/ClangASTPropertiesEmitter.cpp [1925/7570] /usr/lib/llvm/10/bin/clang++ -D_GNU_SOURCE -D__STDC_CONSTANT_MACROS -D__STDC_FORMAT_MACROS -D__STDC_LIMIT_MACROS -Iprojects/libc/utils/HdrGen -I/home/laguest/src/mine-new/llvm/llvm-project/libc/utils/HdrGen -I/usr/include/libxml2 -Iinclude -I/home/laguest/src/mine-new/llvm/llvm-project/llvm/include -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 -Wimplicit-fallthrough -Wcovered-switch-default -Wno-noexcept-type -Wnon-virtual-dtor -Wdelete-non-virtual-dtor -Wstring-conversion -fdiagnostics-color -ffunction-sections -fdata-sections -O3 -DNDEBUG -std=c++14 -MD -MT projects/libc/utils/HdrGen/CMakeFiles/libc-hdrgen.dir/Generator.cpp.o -MF projects/libc/utils/HdrGen/CMakeFiles/libc-hdrgen.dir/Generator.cpp.o.d -o projects/libc/utils/HdrGen/CMakeFiles/libc-hdrgen.dir/Generator.cpp.o -c /home/laguest/src/mine-new/llvm/llvm-project/libc/utils/HdrGen/Generator.cpp [1926/7570] /usr/lib/llvm/10/bin/clang++ -D_GNU_SOURCE -D__STDC_CONSTANT_MACROS -D__STDC_FORMAT_MACROS -D__STDC_LIMIT_MACROS -Itools/lld/lib/ReaderWriter/YAML -I/home/laguest/src/mine-new/llvm/llvm-project/lld/lib/ReaderWriter/YAML -I/home/laguest/src/mine-new/llvm/llvm-project/lld/include -Itools/lld/include -I/usr/include/libxml2 -Iinclude -I/home/laguest/src/mine-new/llvm/llvm-project/llvm/include -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 -Wimplicit-fallthrough -Wcovered-switch-default -Wno-noexcept-type -Wnon-virtual-dtor -Wdelete-non-virtual-dtor -Wstring-conversion -fdiagnostics-color -ffunction-sections -fdata-sections -O3 -DNDEBUG -fPIC -std=c++14 -MD -MT tools/lld/lib/ReaderWriter/YAML/CMakeFiles/lldYAML.dir/ReaderWriterYAML.cpp.o -MF tools/lld/lib/ReaderWriter/YAML/CMakeFiles/lldYAML.dir/ReaderWriterYAML.cpp.o.d -o tools/lld/lib/ReaderWriter/YAML/CMakeFiles/lldYAML.dir/ReaderWriterYAML.cpp.o -c /home/laguest/src/mine-new/llvm/llvm-project/lld/lib/ReaderWriter/YAML/ReaderWriterYAML.cpp [1927/7570] /usr/lib/llvm/10/bin/clang++ -D_GNU_SOURCE -D__STDC_CONSTANT_MACROS -D__STDC_FORMAT_MACROS -D__STDC_LIMIT_MACROS -Iprojects/libc/utils/HdrGen -I/home/laguest/src/mine-new/llvm/llvm-project/libc/utils/HdrGen -I/usr/include/libxml2 -Iinclude -I/home/laguest/src/mine-new/llvm/llvm-project/llvm/include -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 -Wimplicit-fallthrough -Wcovered-switch-default -Wno-noexcept-type -Wnon-virtual-dtor -Wdelete-non-virtual-dtor -Wstring-conversion -fdiagnostics-color -ffunction-sections -fdata-sections -O3 -DNDEBUG -std=c++14 -MD -MT projects/libc/utils/HdrGen/CMakeFiles/libc-hdrgen.dir/IncludeFileCommand.cpp.o -MF projects/libc/utils/HdrGen/CMakeFiles/libc-hdrgen.dir/IncludeFileCommand.cpp.o.d -o projects/libc/utils/HdrGen/CMakeFiles/libc-hdrgen.dir/IncludeFileCommand.cpp.o -c /home/laguest/src/mine-new/llvm/llvm-project/libc/utils/HdrGen/IncludeFileCommand.cpp [1928/7570] /usr/lib/llvm/10/bin/clang++ -D_GNU_SOURCE -D__STDC_CONSTANT_MACROS -D__STDC_FORMAT_MACROS -D__STDC_LIMIT_MACROS -DlibcMPFRWrapper_EXPORTS -Iprojects/libc/utils/MPFRWrapper -I/home/laguest/src/mine-new/llvm/llvm-project/libc/utils/MPFRWrapper -I/usr/include/libxml2 -Iinclude -I/home/laguest/src/mine-new/llvm/llvm-project/llvm/include -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 -Wimplicit-fallthrough -Wcovered-switch-default -Wno-noexcept-type -Wnon-virtual-dtor -Wdelete-non-virtual-dtor -Wstring-conversion -fdiagnostics-color -ffunction-sections -fdata-sections -O3 -DNDEBUG -fPIC -std=c++14 -MD -MT projects/libc/utils/MPFRWrapper/CMakeFiles/libcMPFRWrapper.dir/MPFRUtils.cpp.o -MF projects/libc/utils/MPFRWrapper/CMakeFiles/libcMPFRWrapper.dir/MPFRUtils.cpp.o.d -o projects/libc/utils/MPFRWrapper/CMakeFiles/libcMPFRWrapper.dir/MPFRUtils.cpp.o -c /home/laguest/src/mine-new/llvm/llvm-project/libc/utils/MPFRWrapper/MPFRUtils.cpp [1929/7570] : && /usr/lib/llvm/10/bin/clang++ -fPIC -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 -Wimplicit-fallthrough -Wcovered-switch-default -Wno-noexcept-type -Wnon-virtual-dtor -Wdelete-non-virtual-dtor -Wstring-conversion -fdiagnostics-color -ffunction-sections -fdata-sections -O3 -DNDEBUG -Wl,-z,defs -Wl,-z,nodelete -shared -Wl,-soname,liblibcMPFRWrapper.so -o lib/liblibcMPFRWrapper.so projects/libc/utils/MPFRWrapper/CMakeFiles/libcMPFRWrapper.dir/MPFRUtils.cpp.o && : FAILED: lib/liblibcMPFRWrapper.so : && /usr/lib/llvm/10/bin/clang++ -fPIC -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 -Wimplicit-fallthrough -Wcovered-switch-default -Wno-noexcept-type -Wnon-virtual-dtor -Wdelete-non-virtual-dtor -Wstring-conversion -fdiagnostics-color -ffunction-sections -fdata-sections -O3 -DNDEBUG -Wl,-z,defs -Wl,-z,nodelete -shared -Wl,-soname,liblibcMPFRWrapper.so -o lib/liblibcMPFRWrapper.so projects/libc/utils/MPFRWrapper/CMakeFiles/libcMPFRWrapper.dir/MPFRUtils.cpp.o && : /usr/lib/gcc/x86_64-pc-linux-gnu/9.3.0/../../../../x86_64-pc-linux-gnu/bin/ld: projects/libc/utils/MPFRWrapper/CMakeFiles/libcMPFRWrapper.dir/MPFRUtils.cpp.o: in function `__llvm_libc::testing::mpfr::equalsCos(float, float, __llvm_libc::testing::mpfr::Tolerance const&)': MPFRUtils.cpp:(.text._ZN11__llvm_libc7testing4mpfr9equalsCosEffRKNS1_9ToleranceE+0x23): undefined reference to `mpfr_init2' /usr/lib/gcc/x86_64-pc-linux-gnu/9.3.0/../../../../x86_64-pc-linux-gnu/bin/ld: MPFRUtils.cpp:(.text._ZN11__llvm_libc7testing4mpfr9equalsCosEffRKNS1_9ToleranceE+0x35): undefined reference to `mpfr_set_flt' /usr/lib/gcc/x86_64-pc-linux-gnu/9.3.0/../../../../x86_64-pc-linux-gnu/bin/ld: MPFRUtils.cpp:(.text._ZN11__llvm_libc7testing4mpfr9equalsCosEffRKNS1_9ToleranceE+0x53): undefined reference to `mpfr_clear' /usr/lib/gcc/x86_64-pc-linux-gnu/9.3.0/../../../../x86_64-pc-linux-gnu/bin/ld: MPFRUtils.cpp:(.text._ZN11__llvm_libc7testing4mpfr9equalsCosEffRKNS1_9ToleranceE+0x5d): undefined reference to `mpfr_clear' /usr/lib/gcc/x86_64-pc-linux-gnu/9.3.0/../../../../x86_64-pc-linux-gnu/bin/ld: MPFRUtils.cpp:(.text._ZN11__llvm_libc7testing4mpfr9equalsCosEffRKNS1_9ToleranceE+0x82): undefined reference to `mpfr_clear' /usr/lib/gcc/x86_64-pc-linux-gnu/9.3.0/../../../../x86_64-pc-linux-gnu/bin/ld: MPFRUtils.cpp:(.text._ZN11__llvm_libc7testing4mpfr9equalsCosEffRKNS1_9ToleranceE+0x99): undefined reference to `mpfr_clear' /usr/lib/gcc/x86_64-pc-linux-gnu/9.3.0/../../../../x86_64-pc-linux-gnu/bin/ld: projects/libc/utils/MPFRWrapper/CMakeFiles/libcMPFRWrapper.dir/MPFRUtils.cpp.o: in function `__llvm_libc::testing::mpfr::MPFRNumber::cos(float)': MPFRUtils.cpp:(.text._ZN11__llvm_libc7testing4mpfr10MPFRNumber3cosEf[_ZN11__llvm_libc7testing4mpfr10MPFRNumber3cosEf]+0x16): undefined reference to `mpfr_init2' /usr/lib/gcc/x86_64-pc-linux-gnu/9.3.0/../../../../x86_64-pc-linux-gnu/bin/ld: MPFRUtils.cpp:(.text._ZN11__llvm_libc7testing4mpfr10MPFRNumber3cosEf[_ZN11__llvm_libc7testing4mpfr10MPFRNumber3cosEf]+0x25): undefined reference to `mpfr_init2' /usr/lib/gcc/x86_64-pc-linux-gnu/9.3.0/../../../../x86_64-pc-linux-gnu/bin/ld: MPFRUtils.cpp:(.text._ZN11__llvm_libc7testing4mpfr10MPFRNumber3cosEf[_ZN11__llvm_libc7testing4mpfr10MPFRNumber3cosEf]+0x37): undefined reference to `mpfr_set_flt' /usr/lib/gcc/x86_64-pc-linux-gnu/9.3.0/../../../../x86_64-pc-linux-gnu/bin/ld: MPFRUtils.cpp:(.text._ZN11__llvm_libc7testing4mpfr10MPFRNumber3cosEf[_ZN11__llvm_libc7testing4mpfr10MPFRNumber3cosEf]+0x46): undefined reference to `mpfr_cos' /usr/lib/gcc/x86_64-pc-linux-gnu/9.3.0/../../../../x86_64-pc-linux-gnu/bin/ld: MPFRUtils.cpp:(.text._ZN11__llvm_libc7testing4mpfr10MPFRNumber3cosEf[_ZN11__llvm_libc7testing4mpfr10MPFRNumber3cosEf]+0x50): undefined reference to `mpfr_clear' /usr/lib/gcc/x86_64-pc-linux-gnu/9.3.0/../../../../x86_64-pc-linux-gnu/bin/ld: MPFRUtils.cpp:(.text._ZN11__llvm_libc7testing4mpfr10MPFRNumber3cosEf[_ZN11__llvm_libc7testing4mpfr10MPFRNumber3cosEf]+0x70): undefined reference to `mpfr_clear' /usr/lib/gcc/x86_64-pc-linux-gnu/9.3.0/../../../../x86_64-pc-linux-gnu/bin/ld: MPFRUtils.cpp:(.text._ZN11__llvm_libc7testing4mpfr10MPFRNumber3cosEf[_ZN11__llvm_libc7testing4mpfr10MPFRNumber3cosEf]+0x85): undefined reference to `mpfr_clear' /usr/lib/gcc/x86_64-pc-linux-gnu/9.3.0/../../../../x86_64-pc-linux-gnu/bin/ld: projects/libc/utils/MPFRWrapper/CMakeFiles/libcMPFRWrapper.dir/MPFRUtils.cpp.o: in function `__llvm_libc::testing::mpfr::MPFRNumber::isEqual(__llvm_libc::testing::mpfr::MPFRNumber const&, __llvm_libc::testing::mpfr::Tolerance const&)': MPFRUtils.cpp:(.text._ZN11__llvm_libc7testing4mpfr10MPFRNumber7isEqualERKS2_RKNS1_9ToleranceE[_ZN11__llvm_libc7testing4mpfr10MPFRNumber7isEqualERKS2_RKNS1_9ToleranceE]+0x26): undefined reference to `mpfr_init2' /usr/lib/gcc/x86_64-pc-linux-gnu/9.3.0/../../../../x86_64-pc-linux-gnu/bin/ld: MPFRUtils.cpp:(.text._ZN11__llvm_libc7testing4mpfr10MPFRNumber7isEqualERKS2_RKNS1_9ToleranceE[_ZN11__llvm_libc7testing4mpfr10MPFRNumber7isEqualERKS2_RKNS1_9ToleranceE]+0x35): undefined reference to `mpfr_set_flt' /usr/lib/gcc/x86_64-pc-linux-gnu/9.3.0/../../../../x86_64-pc-linux-gnu/bin/ld: MPFRUtils.cpp:(.text._ZN11__llvm_libc7testing4mpfr10MPFRNumber7isEqualERKS2_RKNS1_9ToleranceE[_ZN11__llvm_libc7testing4mpfr10MPFRNumber7isEqualERKS2_RKNS1_9ToleranceE]+0x7b): undefined reference to `mpfr_init2' /usr/lib/gcc/x86_64-pc-linux-gnu/9.3.0/../../../../x86_64-pc-linux-gnu/bin/ld: MPFRUtils.cpp:(.text._ZN11__llvm_libc7testing4mpfr10MPFRNumber7isEqualERKS2_RKNS1_9ToleranceE[_ZN11__llvm_libc7testing4mpfr10MPFRNumber7isEqualERKS2_RKNS1_9ToleranceE]+0x8d): undefined reference to `mpfr_set_ui_2exp' /usr/lib/gcc/x86_64-pc-linux-gnu/9.3.0/../../../../x86_64-pc-linux-gnu/bin/ld: MPFRUtils.cpp:(.text._ZN11__llvm_libc7testing4mpfr10MPFRNumber7isEqualERKS2_RKNS1_9ToleranceE[_ZN11__llvm_libc7testing4mpfr10MPFRNumber7isEqualERKS2_RKNS1_9ToleranceE]+0x9d): undefined reference to `mpfr_add' /usr/lib/gcc/x86_64-pc-linux-gnu/9.3.0/../../../../x86_64-pc-linux-gnu/bin/ld: MPFRUtils.cpp:(.text._ZN11__llvm_libc7testing4mpfr10MPFRNumber7isEqualERKS2_RKNS1_9ToleranceE[_ZN11__llvm_libc7testing4mpfr10MPFRNumber7isEqualERKS2_RKNS1_9ToleranceE]+0xa5): undefined reference to `mpfr_clear' /usr/lib/gcc/x86_64-pc-linux-gnu/9.3.0/../../../../x86_64-pc-linux-gnu/bin/ld: MPFRUtils.cpp:(.text._ZN11__llvm_libc7testing4mpfr10MPFRNumber7isEqualERKS2_RKNS1_9ToleranceE[_ZN11__llvm_libc7testing4mpfr10MPFRNumber7isEqualERKS2_RKNS1_9ToleranceE]+0xb6): undefined reference to `mpfr_init2' /usr/lib/gcc/x86_64-pc-linux-gnu/9.3.0/../../../../x86_64-pc-linux-gnu/bin/ld: MPFRUtils.cpp:(.text._ZN11__llvm_libc7testing4mpfr10MPFRNumber7isEqualERKS2_RKNS1_9ToleranceE[_ZN11__llvm_libc7testing4mpfr10MPFRNumber7isEqualERKS2_RKNS1_9ToleranceE]+0xca): undefined reference to `mpfr_cmp3' /usr/lib/gcc/x86_64-pc-linux-gnu/9.3.0/../../../../x86_64-pc-linux-gnu/bin/ld: MPFRUtils.cpp:(.text._ZN11__llvm_libc7testing4mpfr10MPFRNumber7isEqualERKS2_RKNS1_9ToleranceE[_ZN11__llvm_libc7testing4mpfr10MPFRNumber7isEqualERKS2_RKNS1_9ToleranceE]+0xe0): undefined reference to `mpfr_sub' /usr/lib/gcc/x86_64-pc-linux-gnu/9.3.0/../../../../x86_64-pc-linux-gnu/bin/ld: MPFRUtils.cpp:(.text._ZN11__llvm_libc7testing4mpfr10MPFRNumber7isEqualERKS2_RKNS1_9ToleranceE[_ZN11__llvm_libc7testing4mpfr10MPFRNumber7isEqualERKS2_RKNS1_9ToleranceE]+0xf4): undefined reference to `mpfr_sub' /usr/lib/gcc/x86_64-pc-linux-gnu/9.3.0/../../../../x86_64-pc-linux-gnu/bin/ld: MPFRUtils.cpp:(.text._ZN11__llvm_libc7testing4mpfr10MPFRNumber7isEqualERKS2_RKNS1_9ToleranceE[_ZN11__llvm_libc7testing4mpfr10MPFRNumber7isEqualERKS2_RKNS1_9ToleranceE]+0x103): undefined reference to `mpfr_lessequal_p' /usr/lib/gcc/x86_64-pc-linux-gnu/9.3.0/../../../../x86_64-pc-linux-gnu/bin/ld: MPFRUtils.cpp:(.text._ZN11__llvm_libc7testing4mpfr10MPFRNumber7isEqualERKS2_RKNS1_9ToleranceE[_ZN11__llvm_libc7testing4mpfr10MPFRNumber7isEqualERKS2_RKNS1_9ToleranceE]+0x10f): undefined reference to `mpfr_clear' /usr/lib/gcc/x86_64-pc-linux-gnu/9.3.0/../../../../x86_64-pc-linux-gnu/bin/ld: MPFRUtils.cpp:(.text._ZN11__llvm_libc7testing4mpfr10MPFRNumber7isEqualERKS2_RKNS1_9ToleranceE[_ZN11__llvm_libc7testing4mpfr10MPFRNumber7isEqualERKS2_RKNS1_9ToleranceE]+0x119): undefined reference to `mpfr_clear' /usr/lib/gcc/x86_64-pc-linux-gnu/9.3.0/../../../../x86_64-pc-linux-gnu/bin/ld: MPFRUtils.cpp:(.text._ZN11__llvm_libc7testing4mpfr10MPFRNumber7isEqualERKS2_RKNS1_9ToleranceE[_ZN11__llvm_libc7testing4mpfr10MPFRNumber7isEqualERKS2_RKNS1_9ToleranceE]+0x14c): undefined reference to `mpfr_clear' /usr/lib/gcc/x86_64-pc-linux-gnu/9.3.0/../../../../x86_64-pc-linux-gnu/bin/ld: MPFRUtils.cpp:(.text._ZN11__llvm_libc7testing4mpfr10MPFRNumber7isEqualERKS2_RKNS1_9ToleranceE[_ZN11__llvm_libc7testing4mpfr10MPFRNumber7isEqualERKS2_RKNS1_9ToleranceE]+0x170): undefined reference to `mpfr_clear' /usr/lib/gcc/x86_64-pc-linux-gnu/9.3.0/../../../../x86_64-pc-linux-gnu/bin/ld: MPFRUtils.cpp:(.text._ZN11__llvm_libc7testing4mpfr10MPFRNumber7isEqualERKS2_RKNS1_9ToleranceE[_ZN11__llvm_libc7testing4mpfr10MPFRNumber7isEqualERKS2_RKNS1_9ToleranceE]+0x17a): undefined reference to `mpfr_clear' /usr/lib/gcc/x86_64-pc-linux-gnu/9.3.0/../../../../x86_64-pc-linux-gnu/bin/ld: projects/libc/utils/MPFRWrapper/CMakeFiles/libcMPFRWrapper.dir/MPFRUtils.cpp.o: in function `__llvm_libc::testing::mpfr::equalsSin(float, float, __llvm_libc::testing::mpfr::Tolerance const&)': MPFRUtils.cpp:(.text._ZN11__llvm_libc7testing4mpfr9equalsSinEffRKNS1_9ToleranceE+0x23): undefined reference to `mpfr_init2' /usr/lib/gcc/x86_64-pc-linux-gnu/9.3.0/../../../../x86_64-pc-linux-gnu/bin/ld: MPFRUtils.cpp:(.text._ZN11__llvm_libc7testing4mpfr9equalsSinEffRKNS1_9ToleranceE+0x35): undefined reference to `mpfr_set_flt' /usr/lib/gcc/x86_64-pc-linux-gnu/9.3.0/../../../../x86_64-pc-linux-gnu/bin/ld: MPFRUtils.cpp:(.text._ZN11__llvm_libc7testing4mpfr9equalsSinEffRKNS1_9ToleranceE+0x53): undefined reference to `mpfr_clear' /usr/lib/gcc/x86_64-pc-linux-gnu/9.3.0/../../../../x86_64-pc-linux-gnu/bin/ld: MPFRUtils.cpp:(.text._ZN11__llvm_libc7testing4mpfr9equalsSinEffRKNS1_9ToleranceE+0x5d): undefined reference to `mpfr_clear' /usr/lib/gcc/x86_64-pc-linux-gnu/9.3.0/../../../../x86_64-pc-linux-gnu/bin/ld: MPFRUtils.cpp:(.text._ZN11__llvm_libc7testing4mpfr9equalsSinEffRKNS1_9ToleranceE+0x82): undefined reference to `mpfr_clear' /usr/lib/gcc/x86_64-pc-linux-gnu/9.3.0/../../../../x86_64-pc-linux-gnu/bin/ld: MPFRUtils.cpp:(.text._ZN11__llvm_libc7testing4mpfr9equalsSinEffRKNS1_9ToleranceE+0x99): undefined reference to `mpfr_clear' /usr/lib/gcc/x86_64-pc-linux-gnu/9.3.0/../../../../x86_64-pc-linux-gnu/bin/ld: projects/libc/utils/MPFRWrapper/CMakeFiles/libcMPFRWrapper.dir/MPFRUtils.cpp.o: in function `__llvm_libc::testing::mpfr::MPFRNumber::sin(float)': MPFRUtils.cpp:(.text._ZN11__llvm_libc7testing4mpfr10MPFRNumber3sinEf[_ZN11__llvm_libc7testing4mpfr10MPFRNumber3sinEf]+0x16): undefined reference to `mpfr_init2' /usr/lib/gcc/x86_64-pc-linux-gnu/9.3.0/../../../../x86_64-pc-linux-gnu/bin/ld: MPFRUtils.cpp:(.text._ZN11__llvm_libc7testing4mpfr10MPFRNumber3sinEf[_ZN11__llvm_libc7testing4mpfr10MPFRNumber3sinEf]+0x25): undefined reference to `mpfr_init2' /usr/lib/gcc/x86_64-pc-linux-gnu/9.3.0/../../../../x86_64-pc-linux-gnu/bin/ld: MPFRUtils.cpp:(.text._ZN11__llvm_libc7testing4mpfr10MPFRNumber3sinEf[_ZN11__llvm_libc7testing4mpfr10MPFRNumber3sinEf]+0x37): undefined reference to `mpfr_set_flt' /usr/lib/gcc/x86_64-pc-linux-gnu/9.3.0/../../../../x86_64-pc-linux-gnu/bin/ld: MPFRUtils.cpp:(.text._ZN11__llvm_libc7testing4mpfr10MPFRNumber3sinEf[_ZN11__llvm_libc7testing4mpfr10MPFRNumber3sinEf]+0x46): undefined reference to `mpfr_sin' /usr/lib/gcc/x86_64-pc-linux-gnu/9.3.0/../../../../x86_64-pc-linux-gnu/bin/ld: MPFRUtils.cpp:(.text._ZN11__llvm_libc7testing4mpfr10MPFRNumber3sinEf[_ZN11__llvm_libc7testing4mpfr10MPFRNumber3sinEf]+0x50): undefined reference to `mpfr_clear' /usr/lib/gcc/x86_64-pc-linux-gnu/9.3.0/../../../../x86_64-pc-linux-gnu/bin/ld: MPFRUtils.cpp:(.text._ZN11__llvm_libc7testing4mpfr10MPFRNumber3sinEf[_ZN11__llvm_libc7testing4mpfr10MPFRNumber3sinEf]+0x70): undefined reference to `mpfr_clear' /usr/lib/gcc/x86_64-pc-linux-gnu/9.3.0/../../../../x86_64-pc-linux-gnu/bin/ld: MPFRUtils.cpp:(.text._ZN11__llvm_libc7testing4mpfr10MPFRNumber3sinEf[_ZN11__llvm_libc7testing4mpfr10MPFRNumber3sinEf]+0x85): undefined reference to `mpfr_clear' clang-10: error: linker command failed with exit code 1 (use -v to see invocation) [1930/7570] /usr/lib/llvm/10/bin/clang++ -D_GNU_SOURCE -D__STDC_CONSTANT_MACROS -D__STDC_FORMAT_MACROS -D__STDC_LIMIT_MACROS -Iprojects/libc/utils/HdrGen -I/home/laguest/src/mine-new/llvm/llvm-project/libc/utils/HdrGen -I/usr/include/libxml2 -Iinclude -I/home/laguest/src/mine-new/llvm/llvm-project/llvm/include -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 -Wimplicit-fallthrough -Wcovered-switch-default -Wno-noexcept-type -Wnon-virtual-dtor -Wdelete-non-virtual-dtor -Wstring-conversion -fdiagnostics-color -ffunction-sections -fdata-sections -O3 -DNDEBUG -std=c++14 -MD -MT projects/libc/utils/HdrGen/CMakeFiles/libc-hdrgen.dir/Main.cpp.o -MF projects/libc/utils/HdrGen/CMakeFiles/libc-hdrgen.dir/Main.cpp.o.d -o projects/libc/utils/HdrGen/CMakeFiles/libc-hdrgen.dir/Main.cpp.o -c /home/laguest/src/mine-new/llvm/llvm-project/libc/utils/HdrGen/Main.cpp [1931/7570] /usr/lib/llvm/10/bin/clang++ -D_GNU_SOURCE -D__STDC_CONSTANT_MACROS -D__STDC_FORMAT_MACROS -D__STDC_LIMIT_MACROS -Iprojects/libc/utils/HdrGen -I/home/laguest/src/mine-new/llvm/llvm-project/libc/utils/HdrGen -I/usr/include/libxml2 -Iinclude -I/home/laguest/src/mine-new/llvm/llvm-project/llvm/include -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 -Wimplicit-fallthrough -Wcovered-switch-default -Wno-noexcept-type -Wnon-virtual-dtor -Wdelete-non-virtual-dtor -Wstring-conversion -fdiagnostics-color -ffunction-sections -fdata-sections -O3 -DNDEBUG -std=c++14 -MD -MT projects/libc/utils/HdrGen/CMakeFiles/libc-hdrgen.dir/PublicAPICommand.cpp.o -MF projects/libc/utils/HdrGen/CMakeFiles/libc-hdrgen.dir/PublicAPICommand.cpp.o.d -o projects/libc/utils/HdrGen/CMakeFiles/libc-hdrgen.dir/PublicAPICommand.cpp.o -c /home/laguest/src/mine-new/llvm/llvm-project/libc/utils/HdrGen/PublicAPICommand.cpp [1932/7570] /usr/lib/llvm/10/bin/clang++ -D_GNU_SOURCE -D__STDC_CONSTANT_MACROS -D__STDC_FORMAT_MACROS -D__STDC_LIMIT_MACROS -Itools/clang/utils/TableGen -I/home/laguest/src/mine-new/llvm/llvm-project/clang/utils/TableGen -I/home/laguest/src/mine-new/llvm/llvm-project/clang/include -Itools/clang/include -I/usr/include/libxml2 -Iinclude -I/home/laguest/src/mine-new/llvm/llvm-project/llvm/include -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 -Wimplicit-fallthrough -Wcovered-switch-default -Wno-noexcept-type -Wnon-virtual-dtor -Wdelete-non-virtual-dtor -Wstring-conversion -fdiagnostics-color -ffunction-sections -fdata-sections -fno-common -Woverloaded-virtual -Wno-nested-anon-types -O3 -DNDEBUG -std=c++14 -MD -MT tools/clang/utils/TableGen/CMakeFiles/clang-tblgen.dir/ClangAttrEmitter.cpp.o -MF tools/clang/utils/TableGen/CMakeFiles/clang-tblgen.dir/ClangAttrEmitter.cpp.o.d -o tools/clang/utils/TableGen/CMakeFiles/clang-tblgen.dir/ClangAttrEmitter.cpp.o -c /home/laguest/src/mine-new/llvm/llvm-project/clang/utils/TableGen/ClangAttrEmitter.cpp [1933/7570] /usr/lib/llvm/10/bin/clang++ -D_GNU_SOURCE -D__STDC_CONSTANT_MACROS -D__STDC_FORMAT_MACROS -D__STDC_LIMIT_MACROS -Ilib/Passes -I/home/laguest/src/mine-new/llvm/llvm-project/llvm/lib/Passes -I/usr/include/libxml2 -Iinclude -I/home/laguest/src/mine-new/llvm/llvm-project/llvm/include -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 -Wimplicit-fallthrough -Wcovered-switch-default -Wno-noexcept-type -Wnon-virtual-dtor -Wdelete-non-virtual-dtor -Wstring-conversion -fdiagnostics-color -ffunction-sections -fdata-sections -O3 -DNDEBUG -fPIC -std=c++14 -MD -MT lib/Passes/CMakeFiles/LLVMPasses.dir/PassBuilder.cpp.o -MF lib/Passes/CMakeFiles/LLVMPasses.dir/PassBuilder.cpp.o.d -o lib/Passes/CMakeFiles/LLVMPasses.dir/PassBuilder.cpp.o -c /home/laguest/src/mine-new/llvm/llvm-project/llvm/lib/Passes/PassBuilder.cpp ninja: build stopped: subcommand failed. On 23/04/2020 18:11, Luke A. Guest via llvm-dev wrote:> I am nuilding that now. > > > CC=clang CXX=clang++ cmake -DCMAKE_INSTALL_PREFIX=$HOME/opt/llvm11-git \ > -DCMAKE_BUILD_TYPE=Release \ > -DBUILD_SHARED_LIBS=ON \ > -DLLVM_ENABLE_EH=ON \ > -DLLVM_ENABLE_RTTI=ON \ > -DLLVM_HOST_TRIPLE=x86_64-pc-linux-gnu \ > -DLLVM_TARGETS_TO_BUILD="AMDGPU;MSP430;WebAssembly;X86" \ > -DLLVM_EXPERIMENTAL_TARGETS_TO_BUILD="AVR" \ > -DLLVM_ENABLE_PROJECTS="all" \ > -G "Ninja" ../llvm > > > On 23/04/2020 18:04, Juneyoung Lee wrote: >> Can you try DBUILD_SHARED_LIBS=ON ? I saw the error when I compiled a >> custom pass with shared libs off & passed it to opt.
Do you really need to build the C library for MLIR? If so, it looks like it's just a missing dependency - MPFR library. Or if you do have that library available, it's missing expected features. On Thu, Apr 23, 2020 at 12:29 PM Luke A. Guest via llvm-dev < llvm-dev at lists.llvm.org> wrote:> Here's the error: > > [1921/7570] /usr/lib/llvm/10/bin/clang++ -D_GNU_SOURCE > -D__STDC_CONSTANT_MACROS -D__STDC_FORMAT_MACROS -D__STDC_LIMIT_MACROS > -Itools/clang/utils/TableGen > -I/home/laguest/src/mine-new/llvm/llvm-project/clang/utils/TableGen > -I/home/laguest/src/mine-new/llvm/llvm-project/clang/include > -Itools/clang/include -I/usr/include/libxml2 -Iinclude > -I/home/laguest/src/mine-new/llvm/llvm-project/llvm/include -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 -Wimplicit-fallthrough -Wcovered-switch-default > -Wno-noexcept-type -Wnon-virtual-dtor -Wdelete-non-virtual-dtor > -Wstring-conversion -fdiagnostics-color -ffunction-sections > -fdata-sections -fno-common -Woverloaded-virtual -Wno-nested-anon-types > -O3 -DNDEBUG -std=c++14 -MD -MT > > tools/clang/utils/TableGen/CMakeFiles/clang-tblgen.dir/ClangASTNodesEmitter.cpp.o > -MF > > tools/clang/utils/TableGen/CMakeFiles/clang-tblgen.dir/ClangASTNodesEmitter.cpp.o.d > -o > > tools/clang/utils/TableGen/CMakeFiles/clang-tblgen.dir/ClangASTNodesEmitter.cpp.o > -c > > /home/laguest/src/mine-new/llvm/llvm-project/clang/utils/TableGen/ClangASTNodesEmitter.cpp > [1922/7570] /usr/lib/llvm/10/bin/clang++ -D_GNU_SOURCE > -D__STDC_CONSTANT_MACROS -D__STDC_FORMAT_MACROS -D__STDC_LIMIT_MACROS > -Iprojects/compiler-rt/lib/tsan/dd > -I/home/laguest/src/mine-new/llvm/llvm-project/compiler-rt/lib/tsan/dd > -I/usr/include/libxml2 -Iinclude > -I/home/laguest/src/mine-new/llvm/llvm-project/llvm/include > > -I/home/laguest/src/mine-new/llvm/llvm-project/compiler-rt/lib/tsan/dd/../.. > -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 -Wimplicit-fallthrough -Wcovered-switch-default > -Wno-noexcept-type -Wnon-virtual-dtor -Wdelete-non-virtual-dtor > -Wstring-conversion -fdiagnostics-color -ffunction-sections > -fdata-sections -Wall -std=c++14 -Wno-unused-parameter -O3 -DNDEBUG > -m64 -fno-lto -fPIC -fno-builtin -fno-exceptions -fomit-frame-pointer > -funwind-tables -fno-stack-protector -fno-sanitize=safe-stack > -fvisibility=hidden -fno-lto -O3 -gline-tables-only -Wno-gnu > -Wno-variadic-macros -Wno-c99-extensions -Wno-non-virtual-dtor -fno-rtti > -std=c++14 -MD -MT > > projects/compiler-rt/lib/tsan/dd/CMakeFiles/clang_rt.dd-x86_64.dir/dd_rtl.cpp.o > -MF > > projects/compiler-rt/lib/tsan/dd/CMakeFiles/clang_rt.dd-x86_64.dir/dd_rtl.cpp.o.d > -o > > projects/compiler-rt/lib/tsan/dd/CMakeFiles/clang_rt.dd-x86_64.dir/dd_rtl.cpp.o > -c > > /home/laguest/src/mine-new/llvm/llvm-project/compiler-rt/lib/tsan/dd/dd_rtl.cpp > [1923/7570] /usr/lib/llvm/10/bin/clang++ -D_GNU_SOURCE > -D__STDC_CONSTANT_MACROS -D__STDC_FORMAT_MACROS -D__STDC_LIMIT_MACROS > -Iprojects/libc/utils/HdrGen > -I/home/laguest/src/mine-new/llvm/llvm-project/libc/utils/HdrGen > -I/usr/include/libxml2 -Iinclude > -I/home/laguest/src/mine-new/llvm/llvm-project/llvm/include -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 -Wimplicit-fallthrough -Wcovered-switch-default > -Wno-noexcept-type -Wnon-virtual-dtor -Wdelete-non-virtual-dtor > -Wstring-conversion -fdiagnostics-color -ffunction-sections > -fdata-sections -O3 -DNDEBUG -std=c++14 -MD -MT > projects/libc/utils/HdrGen/CMakeFiles/libc-hdrgen.dir/Command.cpp.o -MF > projects/libc/utils/HdrGen/CMakeFiles/libc-hdrgen.dir/Command.cpp.o.d -o > projects/libc/utils/HdrGen/CMakeFiles/libc-hdrgen.dir/Command.cpp.o -c > /home/laguest/src/mine-new/llvm/llvm-project/libc/utils/HdrGen/Command.cpp > [1924/7570] /usr/lib/llvm/10/bin/clang++ -D_GNU_SOURCE > -D__STDC_CONSTANT_MACROS -D__STDC_FORMAT_MACROS -D__STDC_LIMIT_MACROS > -Itools/clang/utils/TableGen > -I/home/laguest/src/mine-new/llvm/llvm-project/clang/utils/TableGen > -I/home/laguest/src/mine-new/llvm/llvm-project/clang/include > -Itools/clang/include -I/usr/include/libxml2 -Iinclude > -I/home/laguest/src/mine-new/llvm/llvm-project/llvm/include -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 -Wimplicit-fallthrough -Wcovered-switch-default > -Wno-noexcept-type -Wnon-virtual-dtor -Wdelete-non-virtual-dtor > -Wstring-conversion -fdiagnostics-color -ffunction-sections > -fdata-sections -fno-common -Woverloaded-virtual -Wno-nested-anon-types > -O3 -DNDEBUG -std=c++14 -MD -MT > > tools/clang/utils/TableGen/CMakeFiles/clang-tblgen.dir/ClangASTPropertiesEmitter.cpp.o > -MF > > tools/clang/utils/TableGen/CMakeFiles/clang-tblgen.dir/ClangASTPropertiesEmitter.cpp.o.d > -o > > tools/clang/utils/TableGen/CMakeFiles/clang-tblgen.dir/ClangASTPropertiesEmitter.cpp.o > -c > > /home/laguest/src/mine-new/llvm/llvm-project/clang/utils/TableGen/ClangASTPropertiesEmitter.cpp > [1925/7570] /usr/lib/llvm/10/bin/clang++ -D_GNU_SOURCE > -D__STDC_CONSTANT_MACROS -D__STDC_FORMAT_MACROS -D__STDC_LIMIT_MACROS > -Iprojects/libc/utils/HdrGen > -I/home/laguest/src/mine-new/llvm/llvm-project/libc/utils/HdrGen > -I/usr/include/libxml2 -Iinclude > -I/home/laguest/src/mine-new/llvm/llvm-project/llvm/include -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 -Wimplicit-fallthrough -Wcovered-switch-default > -Wno-noexcept-type -Wnon-virtual-dtor -Wdelete-non-virtual-dtor > -Wstring-conversion -fdiagnostics-color -ffunction-sections > -fdata-sections -O3 -DNDEBUG -std=c++14 -MD -MT > projects/libc/utils/HdrGen/CMakeFiles/libc-hdrgen.dir/Generator.cpp.o > -MF > projects/libc/utils/HdrGen/CMakeFiles/libc-hdrgen.dir/Generator.cpp.o.d > -o projects/libc/utils/HdrGen/CMakeFiles/libc-hdrgen.dir/Generator.cpp.o > -c > > /home/laguest/src/mine-new/llvm/llvm-project/libc/utils/HdrGen/Generator.cpp > [1926/7570] /usr/lib/llvm/10/bin/clang++ -D_GNU_SOURCE > -D__STDC_CONSTANT_MACROS -D__STDC_FORMAT_MACROS -D__STDC_LIMIT_MACROS > -Itools/lld/lib/ReaderWriter/YAML > -I/home/laguest/src/mine-new/llvm/llvm-project/lld/lib/ReaderWriter/YAML > -I/home/laguest/src/mine-new/llvm/llvm-project/lld/include > -Itools/lld/include -I/usr/include/libxml2 -Iinclude > -I/home/laguest/src/mine-new/llvm/llvm-project/llvm/include -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 -Wimplicit-fallthrough -Wcovered-switch-default > -Wno-noexcept-type -Wnon-virtual-dtor -Wdelete-non-virtual-dtor > -Wstring-conversion -fdiagnostics-color -ffunction-sections > -fdata-sections -O3 -DNDEBUG -fPIC -std=c++14 -MD -MT > > tools/lld/lib/ReaderWriter/YAML/CMakeFiles/lldYAML.dir/ReaderWriterYAML.cpp.o > -MF > > tools/lld/lib/ReaderWriter/YAML/CMakeFiles/lldYAML.dir/ReaderWriterYAML.cpp.o.d > -o > > tools/lld/lib/ReaderWriter/YAML/CMakeFiles/lldYAML.dir/ReaderWriterYAML.cpp.o > -c > > /home/laguest/src/mine-new/llvm/llvm-project/lld/lib/ReaderWriter/YAML/ReaderWriterYAML.cpp > [1927/7570] /usr/lib/llvm/10/bin/clang++ -D_GNU_SOURCE > -D__STDC_CONSTANT_MACROS -D__STDC_FORMAT_MACROS -D__STDC_LIMIT_MACROS > -Iprojects/libc/utils/HdrGen > -I/home/laguest/src/mine-new/llvm/llvm-project/libc/utils/HdrGen > -I/usr/include/libxml2 -Iinclude > -I/home/laguest/src/mine-new/llvm/llvm-project/llvm/include -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 -Wimplicit-fallthrough -Wcovered-switch-default > -Wno-noexcept-type -Wnon-virtual-dtor -Wdelete-non-virtual-dtor > -Wstring-conversion -fdiagnostics-color -ffunction-sections > -fdata-sections -O3 -DNDEBUG -std=c++14 -MD -MT > > projects/libc/utils/HdrGen/CMakeFiles/libc-hdrgen.dir/IncludeFileCommand.cpp.o > -MF > > projects/libc/utils/HdrGen/CMakeFiles/libc-hdrgen.dir/IncludeFileCommand.cpp.o.d > -o > > projects/libc/utils/HdrGen/CMakeFiles/libc-hdrgen.dir/IncludeFileCommand.cpp.o > -c > > /home/laguest/src/mine-new/llvm/llvm-project/libc/utils/HdrGen/IncludeFileCommand.cpp > [1928/7570] /usr/lib/llvm/10/bin/clang++ -D_GNU_SOURCE > -D__STDC_CONSTANT_MACROS -D__STDC_FORMAT_MACROS -D__STDC_LIMIT_MACROS > -DlibcMPFRWrapper_EXPORTS -Iprojects/libc/utils/MPFRWrapper > -I/home/laguest/src/mine-new/llvm/llvm-project/libc/utils/MPFRWrapper > -I/usr/include/libxml2 -Iinclude > -I/home/laguest/src/mine-new/llvm/llvm-project/llvm/include -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 -Wimplicit-fallthrough -Wcovered-switch-default > -Wno-noexcept-type -Wnon-virtual-dtor -Wdelete-non-virtual-dtor > -Wstring-conversion -fdiagnostics-color -ffunction-sections > -fdata-sections -O3 -DNDEBUG -fPIC -std=c++14 -MD -MT > > projects/libc/utils/MPFRWrapper/CMakeFiles/libcMPFRWrapper.dir/MPFRUtils.cpp.o > -MF > > projects/libc/utils/MPFRWrapper/CMakeFiles/libcMPFRWrapper.dir/MPFRUtils.cpp.o.d > -o > > projects/libc/utils/MPFRWrapper/CMakeFiles/libcMPFRWrapper.dir/MPFRUtils.cpp.o > -c > > /home/laguest/src/mine-new/llvm/llvm-project/libc/utils/MPFRWrapper/MPFRUtils.cpp > [1929/7570] : && /usr/lib/llvm/10/bin/clang++ -fPIC -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 -Wimplicit-fallthrough -Wcovered-switch-default > -Wno-noexcept-type -Wnon-virtual-dtor -Wdelete-non-virtual-dtor > -Wstring-conversion -fdiagnostics-color -ffunction-sections > -fdata-sections -O3 -DNDEBUG -Wl,-z,defs -Wl,-z,nodelete -shared > -Wl,-soname,liblibcMPFRWrapper.so -o lib/liblibcMPFRWrapper.so > > projects/libc/utils/MPFRWrapper/CMakeFiles/libcMPFRWrapper.dir/MPFRUtils.cpp.o > && : > FAILED: lib/liblibcMPFRWrapper.so > : && /usr/lib/llvm/10/bin/clang++ -fPIC -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 -Wimplicit-fallthrough -Wcovered-switch-default > -Wno-noexcept-type -Wnon-virtual-dtor -Wdelete-non-virtual-dtor > -Wstring-conversion -fdiagnostics-color -ffunction-sections > -fdata-sections -O3 -DNDEBUG -Wl,-z,defs -Wl,-z,nodelete -shared > -Wl,-soname,liblibcMPFRWrapper.so -o lib/liblibcMPFRWrapper.so > > projects/libc/utils/MPFRWrapper/CMakeFiles/libcMPFRWrapper.dir/MPFRUtils.cpp.o > && : > > /usr/lib/gcc/x86_64-pc-linux-gnu/9.3.0/../../../../x86_64-pc-linux-gnu/bin/ld: > > projects/libc/utils/MPFRWrapper/CMakeFiles/libcMPFRWrapper.dir/MPFRUtils.cpp.o: > in function `__llvm_libc::testing::mpfr::equalsCos(float, float, > __llvm_libc::testing::mpfr::Tolerance const&)': > > MPFRUtils.cpp:(.text._ZN11__llvm_libc7testing4mpfr9equalsCosEffRKNS1_9ToleranceE+0x23): > undefined reference to `mpfr_init2' > > /usr/lib/gcc/x86_64-pc-linux-gnu/9.3.0/../../../../x86_64-pc-linux-gnu/bin/ld: > > MPFRUtils.cpp:(.text._ZN11__llvm_libc7testing4mpfr9equalsCosEffRKNS1_9ToleranceE+0x35): > undefined reference to `mpfr_set_flt' > > /usr/lib/gcc/x86_64-pc-linux-gnu/9.3.0/../../../../x86_64-pc-linux-gnu/bin/ld: > > MPFRUtils.cpp:(.text._ZN11__llvm_libc7testing4mpfr9equalsCosEffRKNS1_9ToleranceE+0x53): > undefined reference to `mpfr_clear' > > /usr/lib/gcc/x86_64-pc-linux-gnu/9.3.0/../../../../x86_64-pc-linux-gnu/bin/ld: > > MPFRUtils.cpp:(.text._ZN11__llvm_libc7testing4mpfr9equalsCosEffRKNS1_9ToleranceE+0x5d): > undefined reference to `mpfr_clear' > > /usr/lib/gcc/x86_64-pc-linux-gnu/9.3.0/../../../../x86_64-pc-linux-gnu/bin/ld: > > MPFRUtils.cpp:(.text._ZN11__llvm_libc7testing4mpfr9equalsCosEffRKNS1_9ToleranceE+0x82): > undefined reference to `mpfr_clear' > > /usr/lib/gcc/x86_64-pc-linux-gnu/9.3.0/../../../../x86_64-pc-linux-gnu/bin/ld: > > MPFRUtils.cpp:(.text._ZN11__llvm_libc7testing4mpfr9equalsCosEffRKNS1_9ToleranceE+0x99): > undefined reference to `mpfr_clear' > > /usr/lib/gcc/x86_64-pc-linux-gnu/9.3.0/../../../../x86_64-pc-linux-gnu/bin/ld: > > projects/libc/utils/MPFRWrapper/CMakeFiles/libcMPFRWrapper.dir/MPFRUtils.cpp.o: > in function `__llvm_libc::testing::mpfr::MPFRNumber::cos(float)': > > MPFRUtils.cpp:(.text._ZN11__llvm_libc7testing4mpfr10MPFRNumber3cosEf[_ZN11__llvm_libc7testing4mpfr10MPFRNumber3cosEf]+0x16): > undefined reference to `mpfr_init2' > > /usr/lib/gcc/x86_64-pc-linux-gnu/9.3.0/../../../../x86_64-pc-linux-gnu/bin/ld: > > MPFRUtils.cpp:(.text._ZN11__llvm_libc7testing4mpfr10MPFRNumber3cosEf[_ZN11__llvm_libc7testing4mpfr10MPFRNumber3cosEf]+0x25): > undefined reference to `mpfr_init2' > > /usr/lib/gcc/x86_64-pc-linux-gnu/9.3.0/../../../../x86_64-pc-linux-gnu/bin/ld: > > MPFRUtils.cpp:(.text._ZN11__llvm_libc7testing4mpfr10MPFRNumber3cosEf[_ZN11__llvm_libc7testing4mpfr10MPFRNumber3cosEf]+0x37): > undefined reference to `mpfr_set_flt' > > /usr/lib/gcc/x86_64-pc-linux-gnu/9.3.0/../../../../x86_64-pc-linux-gnu/bin/ld: > > MPFRUtils.cpp:(.text._ZN11__llvm_libc7testing4mpfr10MPFRNumber3cosEf[_ZN11__llvm_libc7testing4mpfr10MPFRNumber3cosEf]+0x46): > undefined reference to `mpfr_cos' > > /usr/lib/gcc/x86_64-pc-linux-gnu/9.3.0/../../../../x86_64-pc-linux-gnu/bin/ld: > > MPFRUtils.cpp:(.text._ZN11__llvm_libc7testing4mpfr10MPFRNumber3cosEf[_ZN11__llvm_libc7testing4mpfr10MPFRNumber3cosEf]+0x50): > undefined reference to `mpfr_clear' > > /usr/lib/gcc/x86_64-pc-linux-gnu/9.3.0/../../../../x86_64-pc-linux-gnu/bin/ld: > > MPFRUtils.cpp:(.text._ZN11__llvm_libc7testing4mpfr10MPFRNumber3cosEf[_ZN11__llvm_libc7testing4mpfr10MPFRNumber3cosEf]+0x70): > undefined reference to `mpfr_clear' > > /usr/lib/gcc/x86_64-pc-linux-gnu/9.3.0/../../../../x86_64-pc-linux-gnu/bin/ld: > > MPFRUtils.cpp:(.text._ZN11__llvm_libc7testing4mpfr10MPFRNumber3cosEf[_ZN11__llvm_libc7testing4mpfr10MPFRNumber3cosEf]+0x85): > undefined reference to `mpfr_clear' > > /usr/lib/gcc/x86_64-pc-linux-gnu/9.3.0/../../../../x86_64-pc-linux-gnu/bin/ld: > > projects/libc/utils/MPFRWrapper/CMakeFiles/libcMPFRWrapper.dir/MPFRUtils.cpp.o: > in function > > `__llvm_libc::testing::mpfr::MPFRNumber::isEqual(__llvm_libc::testing::mpfr::MPFRNumber > const&, __llvm_libc::testing::mpfr::Tolerance const&)': > > MPFRUtils.cpp:(.text._ZN11__llvm_libc7testing4mpfr10MPFRNumber7isEqualERKS2_RKNS1_9ToleranceE[_ZN11__llvm_libc7testing4mpfr10MPFRNumber7isEqualERKS2_RKNS1_9ToleranceE]+0x26): > undefined reference to `mpfr_init2' > > /usr/lib/gcc/x86_64-pc-linux-gnu/9.3.0/../../../../x86_64-pc-linux-gnu/bin/ld: > > MPFRUtils.cpp:(.text._ZN11__llvm_libc7testing4mpfr10MPFRNumber7isEqualERKS2_RKNS1_9ToleranceE[_ZN11__llvm_libc7testing4mpfr10MPFRNumber7isEqualERKS2_RKNS1_9ToleranceE]+0x35): > undefined reference to `mpfr_set_flt' > > /usr/lib/gcc/x86_64-pc-linux-gnu/9.3.0/../../../../x86_64-pc-linux-gnu/bin/ld: > > MPFRUtils.cpp:(.text._ZN11__llvm_libc7testing4mpfr10MPFRNumber7isEqualERKS2_RKNS1_9ToleranceE[_ZN11__llvm_libc7testing4mpfr10MPFRNumber7isEqualERKS2_RKNS1_9ToleranceE]+0x7b): > undefined reference to `mpfr_init2' > > /usr/lib/gcc/x86_64-pc-linux-gnu/9.3.0/../../../../x86_64-pc-linux-gnu/bin/ld: > > MPFRUtils.cpp:(.text._ZN11__llvm_libc7testing4mpfr10MPFRNumber7isEqualERKS2_RKNS1_9ToleranceE[_ZN11__llvm_libc7testing4mpfr10MPFRNumber7isEqualERKS2_RKNS1_9ToleranceE]+0x8d): > undefined reference to `mpfr_set_ui_2exp' > > /usr/lib/gcc/x86_64-pc-linux-gnu/9.3.0/../../../../x86_64-pc-linux-gnu/bin/ld: > > MPFRUtils.cpp:(.text._ZN11__llvm_libc7testing4mpfr10MPFRNumber7isEqualERKS2_RKNS1_9ToleranceE[_ZN11__llvm_libc7testing4mpfr10MPFRNumber7isEqualERKS2_RKNS1_9ToleranceE]+0x9d): > undefined reference to `mpfr_add' > > /usr/lib/gcc/x86_64-pc-linux-gnu/9.3.0/../../../../x86_64-pc-linux-gnu/bin/ld: > > MPFRUtils.cpp:(.text._ZN11__llvm_libc7testing4mpfr10MPFRNumber7isEqualERKS2_RKNS1_9ToleranceE[_ZN11__llvm_libc7testing4mpfr10MPFRNumber7isEqualERKS2_RKNS1_9ToleranceE]+0xa5): > undefined reference to `mpfr_clear' > > /usr/lib/gcc/x86_64-pc-linux-gnu/9.3.0/../../../../x86_64-pc-linux-gnu/bin/ld: > > MPFRUtils.cpp:(.text._ZN11__llvm_libc7testing4mpfr10MPFRNumber7isEqualERKS2_RKNS1_9ToleranceE[_ZN11__llvm_libc7testing4mpfr10MPFRNumber7isEqualERKS2_RKNS1_9ToleranceE]+0xb6): > undefined reference to `mpfr_init2' > > /usr/lib/gcc/x86_64-pc-linux-gnu/9.3.0/../../../../x86_64-pc-linux-gnu/bin/ld: > > MPFRUtils.cpp:(.text._ZN11__llvm_libc7testing4mpfr10MPFRNumber7isEqualERKS2_RKNS1_9ToleranceE[_ZN11__llvm_libc7testing4mpfr10MPFRNumber7isEqualERKS2_RKNS1_9ToleranceE]+0xca): > undefined reference to `mpfr_cmp3' > > /usr/lib/gcc/x86_64-pc-linux-gnu/9.3.0/../../../../x86_64-pc-linux-gnu/bin/ld: > > MPFRUtils.cpp:(.text._ZN11__llvm_libc7testing4mpfr10MPFRNumber7isEqualERKS2_RKNS1_9ToleranceE[_ZN11__llvm_libc7testing4mpfr10MPFRNumber7isEqualERKS2_RKNS1_9ToleranceE]+0xe0): > undefined reference to `mpfr_sub' > > /usr/lib/gcc/x86_64-pc-linux-gnu/9.3.0/../../../../x86_64-pc-linux-gnu/bin/ld: > > MPFRUtils.cpp:(.text._ZN11__llvm_libc7testing4mpfr10MPFRNumber7isEqualERKS2_RKNS1_9ToleranceE[_ZN11__llvm_libc7testing4mpfr10MPFRNumber7isEqualERKS2_RKNS1_9ToleranceE]+0xf4): > undefined reference to `mpfr_sub' > > /usr/lib/gcc/x86_64-pc-linux-gnu/9.3.0/../../../../x86_64-pc-linux-gnu/bin/ld: > > MPFRUtils.cpp:(.text._ZN11__llvm_libc7testing4mpfr10MPFRNumber7isEqualERKS2_RKNS1_9ToleranceE[_ZN11__llvm_libc7testing4mpfr10MPFRNumber7isEqualERKS2_RKNS1_9ToleranceE]+0x103): > undefined reference to `mpfr_lessequal_p' > > /usr/lib/gcc/x86_64-pc-linux-gnu/9.3.0/../../../../x86_64-pc-linux-gnu/bin/ld: > > MPFRUtils.cpp:(.text._ZN11__llvm_libc7testing4mpfr10MPFRNumber7isEqualERKS2_RKNS1_9ToleranceE[_ZN11__llvm_libc7testing4mpfr10MPFRNumber7isEqualERKS2_RKNS1_9ToleranceE]+0x10f): > undefined reference to `mpfr_clear' > > /usr/lib/gcc/x86_64-pc-linux-gnu/9.3.0/../../../../x86_64-pc-linux-gnu/bin/ld: > > MPFRUtils.cpp:(.text._ZN11__llvm_libc7testing4mpfr10MPFRNumber7isEqualERKS2_RKNS1_9ToleranceE[_ZN11__llvm_libc7testing4mpfr10MPFRNumber7isEqualERKS2_RKNS1_9ToleranceE]+0x119): > undefined reference to `mpfr_clear' > > /usr/lib/gcc/x86_64-pc-linux-gnu/9.3.0/../../../../x86_64-pc-linux-gnu/bin/ld: > > MPFRUtils.cpp:(.text._ZN11__llvm_libc7testing4mpfr10MPFRNumber7isEqualERKS2_RKNS1_9ToleranceE[_ZN11__llvm_libc7testing4mpfr10MPFRNumber7isEqualERKS2_RKNS1_9ToleranceE]+0x14c): > undefined reference to `mpfr_clear' > > /usr/lib/gcc/x86_64-pc-linux-gnu/9.3.0/../../../../x86_64-pc-linux-gnu/bin/ld: > > MPFRUtils.cpp:(.text._ZN11__llvm_libc7testing4mpfr10MPFRNumber7isEqualERKS2_RKNS1_9ToleranceE[_ZN11__llvm_libc7testing4mpfr10MPFRNumber7isEqualERKS2_RKNS1_9ToleranceE]+0x170): > undefined reference to `mpfr_clear' > > /usr/lib/gcc/x86_64-pc-linux-gnu/9.3.0/../../../../x86_64-pc-linux-gnu/bin/ld: > > MPFRUtils.cpp:(.text._ZN11__llvm_libc7testing4mpfr10MPFRNumber7isEqualERKS2_RKNS1_9ToleranceE[_ZN11__llvm_libc7testing4mpfr10MPFRNumber7isEqualERKS2_RKNS1_9ToleranceE]+0x17a): > undefined reference to `mpfr_clear' > > /usr/lib/gcc/x86_64-pc-linux-gnu/9.3.0/../../../../x86_64-pc-linux-gnu/bin/ld: > > projects/libc/utils/MPFRWrapper/CMakeFiles/libcMPFRWrapper.dir/MPFRUtils.cpp.o: > in function `__llvm_libc::testing::mpfr::equalsSin(float, float, > __llvm_libc::testing::mpfr::Tolerance const&)': > > MPFRUtils.cpp:(.text._ZN11__llvm_libc7testing4mpfr9equalsSinEffRKNS1_9ToleranceE+0x23): > undefined reference to `mpfr_init2' > > /usr/lib/gcc/x86_64-pc-linux-gnu/9.3.0/../../../../x86_64-pc-linux-gnu/bin/ld: > > MPFRUtils.cpp:(.text._ZN11__llvm_libc7testing4mpfr9equalsSinEffRKNS1_9ToleranceE+0x35): > undefined reference to `mpfr_set_flt' > > /usr/lib/gcc/x86_64-pc-linux-gnu/9.3.0/../../../../x86_64-pc-linux-gnu/bin/ld: > > MPFRUtils.cpp:(.text._ZN11__llvm_libc7testing4mpfr9equalsSinEffRKNS1_9ToleranceE+0x53): > undefined reference to `mpfr_clear' > > /usr/lib/gcc/x86_64-pc-linux-gnu/9.3.0/../../../../x86_64-pc-linux-gnu/bin/ld: > > MPFRUtils.cpp:(.text._ZN11__llvm_libc7testing4mpfr9equalsSinEffRKNS1_9ToleranceE+0x5d): > undefined reference to `mpfr_clear' > > /usr/lib/gcc/x86_64-pc-linux-gnu/9.3.0/../../../../x86_64-pc-linux-gnu/bin/ld: > > MPFRUtils.cpp:(.text._ZN11__llvm_libc7testing4mpfr9equalsSinEffRKNS1_9ToleranceE+0x82): > undefined reference to `mpfr_clear' > > /usr/lib/gcc/x86_64-pc-linux-gnu/9.3.0/../../../../x86_64-pc-linux-gnu/bin/ld: > > MPFRUtils.cpp:(.text._ZN11__llvm_libc7testing4mpfr9equalsSinEffRKNS1_9ToleranceE+0x99): > undefined reference to `mpfr_clear' > > /usr/lib/gcc/x86_64-pc-linux-gnu/9.3.0/../../../../x86_64-pc-linux-gnu/bin/ld: > > projects/libc/utils/MPFRWrapper/CMakeFiles/libcMPFRWrapper.dir/MPFRUtils.cpp.o: > in function `__llvm_libc::testing::mpfr::MPFRNumber::sin(float)': > > MPFRUtils.cpp:(.text._ZN11__llvm_libc7testing4mpfr10MPFRNumber3sinEf[_ZN11__llvm_libc7testing4mpfr10MPFRNumber3sinEf]+0x16): > undefined reference to `mpfr_init2' > > /usr/lib/gcc/x86_64-pc-linux-gnu/9.3.0/../../../../x86_64-pc-linux-gnu/bin/ld: > > MPFRUtils.cpp:(.text._ZN11__llvm_libc7testing4mpfr10MPFRNumber3sinEf[_ZN11__llvm_libc7testing4mpfr10MPFRNumber3sinEf]+0x25): > undefined reference to `mpfr_init2' > > /usr/lib/gcc/x86_64-pc-linux-gnu/9.3.0/../../../../x86_64-pc-linux-gnu/bin/ld: > > MPFRUtils.cpp:(.text._ZN11__llvm_libc7testing4mpfr10MPFRNumber3sinEf[_ZN11__llvm_libc7testing4mpfr10MPFRNumber3sinEf]+0x37): > undefined reference to `mpfr_set_flt' > > /usr/lib/gcc/x86_64-pc-linux-gnu/9.3.0/../../../../x86_64-pc-linux-gnu/bin/ld: > > MPFRUtils.cpp:(.text._ZN11__llvm_libc7testing4mpfr10MPFRNumber3sinEf[_ZN11__llvm_libc7testing4mpfr10MPFRNumber3sinEf]+0x46): > undefined reference to `mpfr_sin' > > /usr/lib/gcc/x86_64-pc-linux-gnu/9.3.0/../../../../x86_64-pc-linux-gnu/bin/ld: > > MPFRUtils.cpp:(.text._ZN11__llvm_libc7testing4mpfr10MPFRNumber3sinEf[_ZN11__llvm_libc7testing4mpfr10MPFRNumber3sinEf]+0x50): > undefined reference to `mpfr_clear' > > /usr/lib/gcc/x86_64-pc-linux-gnu/9.3.0/../../../../x86_64-pc-linux-gnu/bin/ld: > > MPFRUtils.cpp:(.text._ZN11__llvm_libc7testing4mpfr10MPFRNumber3sinEf[_ZN11__llvm_libc7testing4mpfr10MPFRNumber3sinEf]+0x70): > undefined reference to `mpfr_clear' > > /usr/lib/gcc/x86_64-pc-linux-gnu/9.3.0/../../../../x86_64-pc-linux-gnu/bin/ld: > > MPFRUtils.cpp:(.text._ZN11__llvm_libc7testing4mpfr10MPFRNumber3sinEf[_ZN11__llvm_libc7testing4mpfr10MPFRNumber3sinEf]+0x85): > undefined reference to `mpfr_clear' > clang-10: error: linker command failed with exit code 1 (use -v to see > invocation) > [1930/7570] /usr/lib/llvm/10/bin/clang++ -D_GNU_SOURCE > -D__STDC_CONSTANT_MACROS -D__STDC_FORMAT_MACROS -D__STDC_LIMIT_MACROS > -Iprojects/libc/utils/HdrGen > -I/home/laguest/src/mine-new/llvm/llvm-project/libc/utils/HdrGen > -I/usr/include/libxml2 -Iinclude > -I/home/laguest/src/mine-new/llvm/llvm-project/llvm/include -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 -Wimplicit-fallthrough -Wcovered-switch-default > -Wno-noexcept-type -Wnon-virtual-dtor -Wdelete-non-virtual-dtor > -Wstring-conversion -fdiagnostics-color -ffunction-sections > -fdata-sections -O3 -DNDEBUG -std=c++14 -MD -MT > projects/libc/utils/HdrGen/CMakeFiles/libc-hdrgen.dir/Main.cpp.o -MF > projects/libc/utils/HdrGen/CMakeFiles/libc-hdrgen.dir/Main.cpp.o.d -o > projects/libc/utils/HdrGen/CMakeFiles/libc-hdrgen.dir/Main.cpp.o -c > /home/laguest/src/mine-new/llvm/llvm-project/libc/utils/HdrGen/Main.cpp > [1931/7570] /usr/lib/llvm/10/bin/clang++ -D_GNU_SOURCE > -D__STDC_CONSTANT_MACROS -D__STDC_FORMAT_MACROS -D__STDC_LIMIT_MACROS > -Iprojects/libc/utils/HdrGen > -I/home/laguest/src/mine-new/llvm/llvm-project/libc/utils/HdrGen > -I/usr/include/libxml2 -Iinclude > -I/home/laguest/src/mine-new/llvm/llvm-project/llvm/include -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 -Wimplicit-fallthrough -Wcovered-switch-default > -Wno-noexcept-type -Wnon-virtual-dtor -Wdelete-non-virtual-dtor > -Wstring-conversion -fdiagnostics-color -ffunction-sections > -fdata-sections -O3 -DNDEBUG -std=c++14 -MD -MT > > projects/libc/utils/HdrGen/CMakeFiles/libc-hdrgen.dir/PublicAPICommand.cpp.o > -MF > > projects/libc/utils/HdrGen/CMakeFiles/libc-hdrgen.dir/PublicAPICommand.cpp.o.d > -o > > projects/libc/utils/HdrGen/CMakeFiles/libc-hdrgen.dir/PublicAPICommand.cpp.o > -c > > /home/laguest/src/mine-new/llvm/llvm-project/libc/utils/HdrGen/PublicAPICommand.cpp > [1932/7570] /usr/lib/llvm/10/bin/clang++ -D_GNU_SOURCE > -D__STDC_CONSTANT_MACROS -D__STDC_FORMAT_MACROS -D__STDC_LIMIT_MACROS > -Itools/clang/utils/TableGen > -I/home/laguest/src/mine-new/llvm/llvm-project/clang/utils/TableGen > -I/home/laguest/src/mine-new/llvm/llvm-project/clang/include > -Itools/clang/include -I/usr/include/libxml2 -Iinclude > -I/home/laguest/src/mine-new/llvm/llvm-project/llvm/include -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 -Wimplicit-fallthrough -Wcovered-switch-default > -Wno-noexcept-type -Wnon-virtual-dtor -Wdelete-non-virtual-dtor > -Wstring-conversion -fdiagnostics-color -ffunction-sections > -fdata-sections -fno-common -Woverloaded-virtual -Wno-nested-anon-types > -O3 -DNDEBUG -std=c++14 -MD -MT > > tools/clang/utils/TableGen/CMakeFiles/clang-tblgen.dir/ClangAttrEmitter.cpp.o > -MF > > tools/clang/utils/TableGen/CMakeFiles/clang-tblgen.dir/ClangAttrEmitter.cpp.o.d > -o > > tools/clang/utils/TableGen/CMakeFiles/clang-tblgen.dir/ClangAttrEmitter.cpp.o > -c > > /home/laguest/src/mine-new/llvm/llvm-project/clang/utils/TableGen/ClangAttrEmitter.cpp > [1933/7570] /usr/lib/llvm/10/bin/clang++ -D_GNU_SOURCE > -D__STDC_CONSTANT_MACROS -D__STDC_FORMAT_MACROS -D__STDC_LIMIT_MACROS > -Ilib/Passes > -I/home/laguest/src/mine-new/llvm/llvm-project/llvm/lib/Passes > -I/usr/include/libxml2 -Iinclude > -I/home/laguest/src/mine-new/llvm/llvm-project/llvm/include -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 -Wimplicit-fallthrough -Wcovered-switch-default > -Wno-noexcept-type -Wnon-virtual-dtor -Wdelete-non-virtual-dtor > -Wstring-conversion -fdiagnostics-color -ffunction-sections > -fdata-sections -O3 -DNDEBUG -fPIC -std=c++14 -MD -MT > lib/Passes/CMakeFiles/LLVMPasses.dir/PassBuilder.cpp.o -MF > lib/Passes/CMakeFiles/LLVMPasses.dir/PassBuilder.cpp.o.d -o > lib/Passes/CMakeFiles/LLVMPasses.dir/PassBuilder.cpp.o -c > > /home/laguest/src/mine-new/llvm/llvm-project/llvm/lib/Passes/PassBuilder.cpp > ninja: build stopped: subcommand failed. > > > On 23/04/2020 18:11, Luke A. Guest via llvm-dev wrote: > > I am nuilding that now. > > > > > > CC=clang CXX=clang++ cmake -DCMAKE_INSTALL_PREFIX=$HOME/opt/llvm11-git \ > > -DCMAKE_BUILD_TYPE=Release \ > > -DBUILD_SHARED_LIBS=ON \ > > -DLLVM_ENABLE_EH=ON \ > > -DLLVM_ENABLE_RTTI=ON \ > > -DLLVM_HOST_TRIPLE=x86_64-pc-linux-gnu \ > > -DLLVM_TARGETS_TO_BUILD="AMDGPU;MSP430;WebAssembly;X86" \ > > -DLLVM_EXPERIMENTAL_TARGETS_TO_BUILD="AVR" \ > > -DLLVM_ENABLE_PROJECTS="all" \ > > -G "Ninja" ../llvm > > > > > > On 23/04/2020 18:04, Juneyoung Lee wrote: > >> Can you try DBUILD_SHARED_LIBS=ON ? I saw the error when I compiled a > >> custom pass with shared libs off & passed it to opt. > _______________________________________________ > LLVM Developers mailing list > llvm-dev at lists.llvm.org > https://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-dev >-- -Brian -------------- next part -------------- An HTML attachment was scrubbed... URL: <http://lists.llvm.org/pipermail/llvm-dev/attachments/20200423/0e409986/attachment-0001.html>
Siva - you might want to take a look at this & maybe some library dependency checking should be added to cmake to make this failure clearer? On Thu, Apr 23, 2020 at 10:29 AM Luke A. Guest via llvm-dev < llvm-dev at lists.llvm.org> wrote:> Here's the error: > > [1921/7570] /usr/lib/llvm/10/bin/clang++ -D_GNU_SOURCE > -D__STDC_CONSTANT_MACROS -D__STDC_FORMAT_MACROS -D__STDC_LIMIT_MACROS > -Itools/clang/utils/TableGen > -I/home/laguest/src/mine-new/llvm/llvm-project/clang/utils/TableGen > -I/home/laguest/src/mine-new/llvm/llvm-project/clang/include > -Itools/clang/include -I/usr/include/libxml2 -Iinclude > -I/home/laguest/src/mine-new/llvm/llvm-project/llvm/include -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 -Wimplicit-fallthrough -Wcovered-switch-default > -Wno-noexcept-type -Wnon-virtual-dtor -Wdelete-non-virtual-dtor > -Wstring-conversion -fdiagnostics-color -ffunction-sections > -fdata-sections -fno-common -Woverloaded-virtual -Wno-nested-anon-types > -O3 -DNDEBUG -std=c++14 -MD -MT > > tools/clang/utils/TableGen/CMakeFiles/clang-tblgen.dir/ClangASTNodesEmitter.cpp.o > -MF > > tools/clang/utils/TableGen/CMakeFiles/clang-tblgen.dir/ClangASTNodesEmitter.cpp.o.d > -o > > tools/clang/utils/TableGen/CMakeFiles/clang-tblgen.dir/ClangASTNodesEmitter.cpp.o > -c > > /home/laguest/src/mine-new/llvm/llvm-project/clang/utils/TableGen/ClangASTNodesEmitter.cpp > [1922/7570] /usr/lib/llvm/10/bin/clang++ -D_GNU_SOURCE > -D__STDC_CONSTANT_MACROS -D__STDC_FORMAT_MACROS -D__STDC_LIMIT_MACROS > -Iprojects/compiler-rt/lib/tsan/dd > -I/home/laguest/src/mine-new/llvm/llvm-project/compiler-rt/lib/tsan/dd > -I/usr/include/libxml2 -Iinclude > -I/home/laguest/src/mine-new/llvm/llvm-project/llvm/include > > -I/home/laguest/src/mine-new/llvm/llvm-project/compiler-rt/lib/tsan/dd/../.. > -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 -Wimplicit-fallthrough -Wcovered-switch-default > -Wno-noexcept-type -Wnon-virtual-dtor -Wdelete-non-virtual-dtor > -Wstring-conversion -fdiagnostics-color -ffunction-sections > -fdata-sections -Wall -std=c++14 -Wno-unused-parameter -O3 -DNDEBUG > -m64 -fno-lto -fPIC -fno-builtin -fno-exceptions -fomit-frame-pointer > -funwind-tables -fno-stack-protector -fno-sanitize=safe-stack > -fvisibility=hidden -fno-lto -O3 -gline-tables-only -Wno-gnu > -Wno-variadic-macros -Wno-c99-extensions -Wno-non-virtual-dtor -fno-rtti > -std=c++14 -MD -MT > > projects/compiler-rt/lib/tsan/dd/CMakeFiles/clang_rt.dd-x86_64.dir/dd_rtl.cpp.o > -MF > > projects/compiler-rt/lib/tsan/dd/CMakeFiles/clang_rt.dd-x86_64.dir/dd_rtl.cpp.o.d > -o > > projects/compiler-rt/lib/tsan/dd/CMakeFiles/clang_rt.dd-x86_64.dir/dd_rtl.cpp.o > -c > > /home/laguest/src/mine-new/llvm/llvm-project/compiler-rt/lib/tsan/dd/dd_rtl.cpp > [1923/7570] /usr/lib/llvm/10/bin/clang++ -D_GNU_SOURCE > -D__STDC_CONSTANT_MACROS -D__STDC_FORMAT_MACROS -D__STDC_LIMIT_MACROS > -Iprojects/libc/utils/HdrGen > -I/home/laguest/src/mine-new/llvm/llvm-project/libc/utils/HdrGen > -I/usr/include/libxml2 -Iinclude > -I/home/laguest/src/mine-new/llvm/llvm-project/llvm/include -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 -Wimplicit-fallthrough -Wcovered-switch-default > -Wno-noexcept-type -Wnon-virtual-dtor -Wdelete-non-virtual-dtor > -Wstring-conversion -fdiagnostics-color -ffunction-sections > -fdata-sections -O3 -DNDEBUG -std=c++14 -MD -MT > projects/libc/utils/HdrGen/CMakeFiles/libc-hdrgen.dir/Command.cpp.o -MF > projects/libc/utils/HdrGen/CMakeFiles/libc-hdrgen.dir/Command.cpp.o.d -o > projects/libc/utils/HdrGen/CMakeFiles/libc-hdrgen.dir/Command.cpp.o -c > /home/laguest/src/mine-new/llvm/llvm-project/libc/utils/HdrGen/Command.cpp > [1924/7570] /usr/lib/llvm/10/bin/clang++ -D_GNU_SOURCE > -D__STDC_CONSTANT_MACROS -D__STDC_FORMAT_MACROS -D__STDC_LIMIT_MACROS > -Itools/clang/utils/TableGen > -I/home/laguest/src/mine-new/llvm/llvm-project/clang/utils/TableGen > -I/home/laguest/src/mine-new/llvm/llvm-project/clang/include > -Itools/clang/include -I/usr/include/libxml2 -Iinclude > -I/home/laguest/src/mine-new/llvm/llvm-project/llvm/include -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 -Wimplicit-fallthrough -Wcovered-switch-default > -Wno-noexcept-type -Wnon-virtual-dtor -Wdelete-non-virtual-dtor > -Wstring-conversion -fdiagnostics-color -ffunction-sections > -fdata-sections -fno-common -Woverloaded-virtual -Wno-nested-anon-types > -O3 -DNDEBUG -std=c++14 -MD -MT > > tools/clang/utils/TableGen/CMakeFiles/clang-tblgen.dir/ClangASTPropertiesEmitter.cpp.o > -MF > > tools/clang/utils/TableGen/CMakeFiles/clang-tblgen.dir/ClangASTPropertiesEmitter.cpp.o.d > -o > > tools/clang/utils/TableGen/CMakeFiles/clang-tblgen.dir/ClangASTPropertiesEmitter.cpp.o > -c > > /home/laguest/src/mine-new/llvm/llvm-project/clang/utils/TableGen/ClangASTPropertiesEmitter.cpp > [1925/7570] /usr/lib/llvm/10/bin/clang++ -D_GNU_SOURCE > -D__STDC_CONSTANT_MACROS -D__STDC_FORMAT_MACROS -D__STDC_LIMIT_MACROS > -Iprojects/libc/utils/HdrGen > -I/home/laguest/src/mine-new/llvm/llvm-project/libc/utils/HdrGen > -I/usr/include/libxml2 -Iinclude > -I/home/laguest/src/mine-new/llvm/llvm-project/llvm/include -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 -Wimplicit-fallthrough -Wcovered-switch-default > -Wno-noexcept-type -Wnon-virtual-dtor -Wdelete-non-virtual-dtor > -Wstring-conversion -fdiagnostics-color -ffunction-sections > -fdata-sections -O3 -DNDEBUG -std=c++14 -MD -MT > projects/libc/utils/HdrGen/CMakeFiles/libc-hdrgen.dir/Generator.cpp.o > -MF > projects/libc/utils/HdrGen/CMakeFiles/libc-hdrgen.dir/Generator.cpp.o.d > -o projects/libc/utils/HdrGen/CMakeFiles/libc-hdrgen.dir/Generator.cpp.o > -c > > /home/laguest/src/mine-new/llvm/llvm-project/libc/utils/HdrGen/Generator.cpp > [1926/7570] /usr/lib/llvm/10/bin/clang++ -D_GNU_SOURCE > -D__STDC_CONSTANT_MACROS -D__STDC_FORMAT_MACROS -D__STDC_LIMIT_MACROS > -Itools/lld/lib/ReaderWriter/YAML > -I/home/laguest/src/mine-new/llvm/llvm-project/lld/lib/ReaderWriter/YAML > -I/home/laguest/src/mine-new/llvm/llvm-project/lld/include > -Itools/lld/include -I/usr/include/libxml2 -Iinclude > -I/home/laguest/src/mine-new/llvm/llvm-project/llvm/include -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 -Wimplicit-fallthrough -Wcovered-switch-default > -Wno-noexcept-type -Wnon-virtual-dtor -Wdelete-non-virtual-dtor > -Wstring-conversion -fdiagnostics-color -ffunction-sections > -fdata-sections -O3 -DNDEBUG -fPIC -std=c++14 -MD -MT > > tools/lld/lib/ReaderWriter/YAML/CMakeFiles/lldYAML.dir/ReaderWriterYAML.cpp.o > -MF > > tools/lld/lib/ReaderWriter/YAML/CMakeFiles/lldYAML.dir/ReaderWriterYAML.cpp.o.d > -o > > tools/lld/lib/ReaderWriter/YAML/CMakeFiles/lldYAML.dir/ReaderWriterYAML.cpp.o > -c > > /home/laguest/src/mine-new/llvm/llvm-project/lld/lib/ReaderWriter/YAML/ReaderWriterYAML.cpp > [1927/7570] /usr/lib/llvm/10/bin/clang++ -D_GNU_SOURCE > -D__STDC_CONSTANT_MACROS -D__STDC_FORMAT_MACROS -D__STDC_LIMIT_MACROS > -Iprojects/libc/utils/HdrGen > -I/home/laguest/src/mine-new/llvm/llvm-project/libc/utils/HdrGen > -I/usr/include/libxml2 -Iinclude > -I/home/laguest/src/mine-new/llvm/llvm-project/llvm/include -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 -Wimplicit-fallthrough -Wcovered-switch-default > -Wno-noexcept-type -Wnon-virtual-dtor -Wdelete-non-virtual-dtor > -Wstring-conversion -fdiagnostics-color -ffunction-sections > -fdata-sections -O3 -DNDEBUG -std=c++14 -MD -MT > > projects/libc/utils/HdrGen/CMakeFiles/libc-hdrgen.dir/IncludeFileCommand.cpp.o > -MF > > projects/libc/utils/HdrGen/CMakeFiles/libc-hdrgen.dir/IncludeFileCommand.cpp.o.d > -o > > projects/libc/utils/HdrGen/CMakeFiles/libc-hdrgen.dir/IncludeFileCommand.cpp.o > -c > > /home/laguest/src/mine-new/llvm/llvm-project/libc/utils/HdrGen/IncludeFileCommand.cpp > [1928/7570] /usr/lib/llvm/10/bin/clang++ -D_GNU_SOURCE > -D__STDC_CONSTANT_MACROS -D__STDC_FORMAT_MACROS -D__STDC_LIMIT_MACROS > -DlibcMPFRWrapper_EXPORTS -Iprojects/libc/utils/MPFRWrapper > -I/home/laguest/src/mine-new/llvm/llvm-project/libc/utils/MPFRWrapper > -I/usr/include/libxml2 -Iinclude > -I/home/laguest/src/mine-new/llvm/llvm-project/llvm/include -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 -Wimplicit-fallthrough -Wcovered-switch-default > -Wno-noexcept-type -Wnon-virtual-dtor -Wdelete-non-virtual-dtor > -Wstring-conversion -fdiagnostics-color -ffunction-sections > -fdata-sections -O3 -DNDEBUG -fPIC -std=c++14 -MD -MT > > projects/libc/utils/MPFRWrapper/CMakeFiles/libcMPFRWrapper.dir/MPFRUtils.cpp.o > -MF > > projects/libc/utils/MPFRWrapper/CMakeFiles/libcMPFRWrapper.dir/MPFRUtils.cpp.o.d > -o > > projects/libc/utils/MPFRWrapper/CMakeFiles/libcMPFRWrapper.dir/MPFRUtils.cpp.o > -c > > /home/laguest/src/mine-new/llvm/llvm-project/libc/utils/MPFRWrapper/MPFRUtils.cpp > [1929/7570] : && /usr/lib/llvm/10/bin/clang++ -fPIC -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 -Wimplicit-fallthrough -Wcovered-switch-default > -Wno-noexcept-type -Wnon-virtual-dtor -Wdelete-non-virtual-dtor > -Wstring-conversion -fdiagnostics-color -ffunction-sections > -fdata-sections -O3 -DNDEBUG -Wl,-z,defs -Wl,-z,nodelete -shared > -Wl,-soname,liblibcMPFRWrapper.so -o lib/liblibcMPFRWrapper.so > > projects/libc/utils/MPFRWrapper/CMakeFiles/libcMPFRWrapper.dir/MPFRUtils.cpp.o > && : > FAILED: lib/liblibcMPFRWrapper.so > : && /usr/lib/llvm/10/bin/clang++ -fPIC -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 -Wimplicit-fallthrough -Wcovered-switch-default > -Wno-noexcept-type -Wnon-virtual-dtor -Wdelete-non-virtual-dtor > -Wstring-conversion -fdiagnostics-color -ffunction-sections > -fdata-sections -O3 -DNDEBUG -Wl,-z,defs -Wl,-z,nodelete -shared > -Wl,-soname,liblibcMPFRWrapper.so -o lib/liblibcMPFRWrapper.so > > projects/libc/utils/MPFRWrapper/CMakeFiles/libcMPFRWrapper.dir/MPFRUtils.cpp.o > && : > > /usr/lib/gcc/x86_64-pc-linux-gnu/9.3.0/../../../../x86_64-pc-linux-gnu/bin/ld: > > projects/libc/utils/MPFRWrapper/CMakeFiles/libcMPFRWrapper.dir/MPFRUtils.cpp.o: > in function `__llvm_libc::testing::mpfr::equalsCos(float, float, > __llvm_libc::testing::mpfr::Tolerance const&)': > > MPFRUtils.cpp:(.text._ZN11__llvm_libc7testing4mpfr9equalsCosEffRKNS1_9ToleranceE+0x23): > undefined reference to `mpfr_init2' > > /usr/lib/gcc/x86_64-pc-linux-gnu/9.3.0/../../../../x86_64-pc-linux-gnu/bin/ld: > > MPFRUtils.cpp:(.text._ZN11__llvm_libc7testing4mpfr9equalsCosEffRKNS1_9ToleranceE+0x35): > undefined reference to `mpfr_set_flt' > > /usr/lib/gcc/x86_64-pc-linux-gnu/9.3.0/../../../../x86_64-pc-linux-gnu/bin/ld: > > MPFRUtils.cpp:(.text._ZN11__llvm_libc7testing4mpfr9equalsCosEffRKNS1_9ToleranceE+0x53): > undefined reference to `mpfr_clear' > > /usr/lib/gcc/x86_64-pc-linux-gnu/9.3.0/../../../../x86_64-pc-linux-gnu/bin/ld: > > MPFRUtils.cpp:(.text._ZN11__llvm_libc7testing4mpfr9equalsCosEffRKNS1_9ToleranceE+0x5d): > undefined reference to `mpfr_clear' > > /usr/lib/gcc/x86_64-pc-linux-gnu/9.3.0/../../../../x86_64-pc-linux-gnu/bin/ld: > > MPFRUtils.cpp:(.text._ZN11__llvm_libc7testing4mpfr9equalsCosEffRKNS1_9ToleranceE+0x82): > undefined reference to `mpfr_clear' > > /usr/lib/gcc/x86_64-pc-linux-gnu/9.3.0/../../../../x86_64-pc-linux-gnu/bin/ld: > > MPFRUtils.cpp:(.text._ZN11__llvm_libc7testing4mpfr9equalsCosEffRKNS1_9ToleranceE+0x99): > undefined reference to `mpfr_clear' > > /usr/lib/gcc/x86_64-pc-linux-gnu/9.3.0/../../../../x86_64-pc-linux-gnu/bin/ld: > > projects/libc/utils/MPFRWrapper/CMakeFiles/libcMPFRWrapper.dir/MPFRUtils.cpp.o: > in function `__llvm_libc::testing::mpfr::MPFRNumber::cos(float)': > > MPFRUtils.cpp:(.text._ZN11__llvm_libc7testing4mpfr10MPFRNumber3cosEf[_ZN11__llvm_libc7testing4mpfr10MPFRNumber3cosEf]+0x16): > undefined reference to `mpfr_init2' > > /usr/lib/gcc/x86_64-pc-linux-gnu/9.3.0/../../../../x86_64-pc-linux-gnu/bin/ld: > > MPFRUtils.cpp:(.text._ZN11__llvm_libc7testing4mpfr10MPFRNumber3cosEf[_ZN11__llvm_libc7testing4mpfr10MPFRNumber3cosEf]+0x25): > undefined reference to `mpfr_init2' > > /usr/lib/gcc/x86_64-pc-linux-gnu/9.3.0/../../../../x86_64-pc-linux-gnu/bin/ld: > > MPFRUtils.cpp:(.text._ZN11__llvm_libc7testing4mpfr10MPFRNumber3cosEf[_ZN11__llvm_libc7testing4mpfr10MPFRNumber3cosEf]+0x37): > undefined reference to `mpfr_set_flt' > > /usr/lib/gcc/x86_64-pc-linux-gnu/9.3.0/../../../../x86_64-pc-linux-gnu/bin/ld: > > MPFRUtils.cpp:(.text._ZN11__llvm_libc7testing4mpfr10MPFRNumber3cosEf[_ZN11__llvm_libc7testing4mpfr10MPFRNumber3cosEf]+0x46): > undefined reference to `mpfr_cos' > > /usr/lib/gcc/x86_64-pc-linux-gnu/9.3.0/../../../../x86_64-pc-linux-gnu/bin/ld: > > MPFRUtils.cpp:(.text._ZN11__llvm_libc7testing4mpfr10MPFRNumber3cosEf[_ZN11__llvm_libc7testing4mpfr10MPFRNumber3cosEf]+0x50): > undefined reference to `mpfr_clear' > > /usr/lib/gcc/x86_64-pc-linux-gnu/9.3.0/../../../../x86_64-pc-linux-gnu/bin/ld: > > MPFRUtils.cpp:(.text._ZN11__llvm_libc7testing4mpfr10MPFRNumber3cosEf[_ZN11__llvm_libc7testing4mpfr10MPFRNumber3cosEf]+0x70): > undefined reference to `mpfr_clear' > > /usr/lib/gcc/x86_64-pc-linux-gnu/9.3.0/../../../../x86_64-pc-linux-gnu/bin/ld: > > MPFRUtils.cpp:(.text._ZN11__llvm_libc7testing4mpfr10MPFRNumber3cosEf[_ZN11__llvm_libc7testing4mpfr10MPFRNumber3cosEf]+0x85): > undefined reference to `mpfr_clear' > > /usr/lib/gcc/x86_64-pc-linux-gnu/9.3.0/../../../../x86_64-pc-linux-gnu/bin/ld: > > projects/libc/utils/MPFRWrapper/CMakeFiles/libcMPFRWrapper.dir/MPFRUtils.cpp.o: > in function > > `__llvm_libc::testing::mpfr::MPFRNumber::isEqual(__llvm_libc::testing::mpfr::MPFRNumber > const&, __llvm_libc::testing::mpfr::Tolerance const&)': > > MPFRUtils.cpp:(.text._ZN11__llvm_libc7testing4mpfr10MPFRNumber7isEqualERKS2_RKNS1_9ToleranceE[_ZN11__llvm_libc7testing4mpfr10MPFRNumber7isEqualERKS2_RKNS1_9ToleranceE]+0x26): > undefined reference to `mpfr_init2' > > /usr/lib/gcc/x86_64-pc-linux-gnu/9.3.0/../../../../x86_64-pc-linux-gnu/bin/ld: > > MPFRUtils.cpp:(.text._ZN11__llvm_libc7testing4mpfr10MPFRNumber7isEqualERKS2_RKNS1_9ToleranceE[_ZN11__llvm_libc7testing4mpfr10MPFRNumber7isEqualERKS2_RKNS1_9ToleranceE]+0x35): > undefined reference to `mpfr_set_flt' > > /usr/lib/gcc/x86_64-pc-linux-gnu/9.3.0/../../../../x86_64-pc-linux-gnu/bin/ld: > > MPFRUtils.cpp:(.text._ZN11__llvm_libc7testing4mpfr10MPFRNumber7isEqualERKS2_RKNS1_9ToleranceE[_ZN11__llvm_libc7testing4mpfr10MPFRNumber7isEqualERKS2_RKNS1_9ToleranceE]+0x7b): > undefined reference to `mpfr_init2' > > /usr/lib/gcc/x86_64-pc-linux-gnu/9.3.0/../../../../x86_64-pc-linux-gnu/bin/ld: > > MPFRUtils.cpp:(.text._ZN11__llvm_libc7testing4mpfr10MPFRNumber7isEqualERKS2_RKNS1_9ToleranceE[_ZN11__llvm_libc7testing4mpfr10MPFRNumber7isEqualERKS2_RKNS1_9ToleranceE]+0x8d): > undefined reference to `mpfr_set_ui_2exp' > > /usr/lib/gcc/x86_64-pc-linux-gnu/9.3.0/../../../../x86_64-pc-linux-gnu/bin/ld: > > MPFRUtils.cpp:(.text._ZN11__llvm_libc7testing4mpfr10MPFRNumber7isEqualERKS2_RKNS1_9ToleranceE[_ZN11__llvm_libc7testing4mpfr10MPFRNumber7isEqualERKS2_RKNS1_9ToleranceE]+0x9d): > undefined reference to `mpfr_add' > > /usr/lib/gcc/x86_64-pc-linux-gnu/9.3.0/../../../../x86_64-pc-linux-gnu/bin/ld: > > MPFRUtils.cpp:(.text._ZN11__llvm_libc7testing4mpfr10MPFRNumber7isEqualERKS2_RKNS1_9ToleranceE[_ZN11__llvm_libc7testing4mpfr10MPFRNumber7isEqualERKS2_RKNS1_9ToleranceE]+0xa5): > undefined reference to `mpfr_clear' > > /usr/lib/gcc/x86_64-pc-linux-gnu/9.3.0/../../../../x86_64-pc-linux-gnu/bin/ld: > > MPFRUtils.cpp:(.text._ZN11__llvm_libc7testing4mpfr10MPFRNumber7isEqualERKS2_RKNS1_9ToleranceE[_ZN11__llvm_libc7testing4mpfr10MPFRNumber7isEqualERKS2_RKNS1_9ToleranceE]+0xb6): > undefined reference to `mpfr_init2' > > /usr/lib/gcc/x86_64-pc-linux-gnu/9.3.0/../../../../x86_64-pc-linux-gnu/bin/ld: > > MPFRUtils.cpp:(.text._ZN11__llvm_libc7testing4mpfr10MPFRNumber7isEqualERKS2_RKNS1_9ToleranceE[_ZN11__llvm_libc7testing4mpfr10MPFRNumber7isEqualERKS2_RKNS1_9ToleranceE]+0xca): > undefined reference to `mpfr_cmp3' > > /usr/lib/gcc/x86_64-pc-linux-gnu/9.3.0/../../../../x86_64-pc-linux-gnu/bin/ld: > > MPFRUtils.cpp:(.text._ZN11__llvm_libc7testing4mpfr10MPFRNumber7isEqualERKS2_RKNS1_9ToleranceE[_ZN11__llvm_libc7testing4mpfr10MPFRNumber7isEqualERKS2_RKNS1_9ToleranceE]+0xe0): > undefined reference to `mpfr_sub' > > /usr/lib/gcc/x86_64-pc-linux-gnu/9.3.0/../../../../x86_64-pc-linux-gnu/bin/ld: > > MPFRUtils.cpp:(.text._ZN11__llvm_libc7testing4mpfr10MPFRNumber7isEqualERKS2_RKNS1_9ToleranceE[_ZN11__llvm_libc7testing4mpfr10MPFRNumber7isEqualERKS2_RKNS1_9ToleranceE]+0xf4): > undefined reference to `mpfr_sub' > > /usr/lib/gcc/x86_64-pc-linux-gnu/9.3.0/../../../../x86_64-pc-linux-gnu/bin/ld: > > MPFRUtils.cpp:(.text._ZN11__llvm_libc7testing4mpfr10MPFRNumber7isEqualERKS2_RKNS1_9ToleranceE[_ZN11__llvm_libc7testing4mpfr10MPFRNumber7isEqualERKS2_RKNS1_9ToleranceE]+0x103): > undefined reference to `mpfr_lessequal_p' > > /usr/lib/gcc/x86_64-pc-linux-gnu/9.3.0/../../../../x86_64-pc-linux-gnu/bin/ld: > > MPFRUtils.cpp:(.text._ZN11__llvm_libc7testing4mpfr10MPFRNumber7isEqualERKS2_RKNS1_9ToleranceE[_ZN11__llvm_libc7testing4mpfr10MPFRNumber7isEqualERKS2_RKNS1_9ToleranceE]+0x10f): > undefined reference to `mpfr_clear' > > /usr/lib/gcc/x86_64-pc-linux-gnu/9.3.0/../../../../x86_64-pc-linux-gnu/bin/ld: > > MPFRUtils.cpp:(.text._ZN11__llvm_libc7testing4mpfr10MPFRNumber7isEqualERKS2_RKNS1_9ToleranceE[_ZN11__llvm_libc7testing4mpfr10MPFRNumber7isEqualERKS2_RKNS1_9ToleranceE]+0x119): > undefined reference to `mpfr_clear' > > /usr/lib/gcc/x86_64-pc-linux-gnu/9.3.0/../../../../x86_64-pc-linux-gnu/bin/ld: > > MPFRUtils.cpp:(.text._ZN11__llvm_libc7testing4mpfr10MPFRNumber7isEqualERKS2_RKNS1_9ToleranceE[_ZN11__llvm_libc7testing4mpfr10MPFRNumber7isEqualERKS2_RKNS1_9ToleranceE]+0x14c): > undefined reference to `mpfr_clear' > > /usr/lib/gcc/x86_64-pc-linux-gnu/9.3.0/../../../../x86_64-pc-linux-gnu/bin/ld: > > MPFRUtils.cpp:(.text._ZN11__llvm_libc7testing4mpfr10MPFRNumber7isEqualERKS2_RKNS1_9ToleranceE[_ZN11__llvm_libc7testing4mpfr10MPFRNumber7isEqualERKS2_RKNS1_9ToleranceE]+0x170): > undefined reference to `mpfr_clear' > > /usr/lib/gcc/x86_64-pc-linux-gnu/9.3.0/../../../../x86_64-pc-linux-gnu/bin/ld: > > MPFRUtils.cpp:(.text._ZN11__llvm_libc7testing4mpfr10MPFRNumber7isEqualERKS2_RKNS1_9ToleranceE[_ZN11__llvm_libc7testing4mpfr10MPFRNumber7isEqualERKS2_RKNS1_9ToleranceE]+0x17a): > undefined reference to `mpfr_clear' > > /usr/lib/gcc/x86_64-pc-linux-gnu/9.3.0/../../../../x86_64-pc-linux-gnu/bin/ld: > > projects/libc/utils/MPFRWrapper/CMakeFiles/libcMPFRWrapper.dir/MPFRUtils.cpp.o: > in function `__llvm_libc::testing::mpfr::equalsSin(float, float, > __llvm_libc::testing::mpfr::Tolerance const&)': > > MPFRUtils.cpp:(.text._ZN11__llvm_libc7testing4mpfr9equalsSinEffRKNS1_9ToleranceE+0x23): > undefined reference to `mpfr_init2' > > /usr/lib/gcc/x86_64-pc-linux-gnu/9.3.0/../../../../x86_64-pc-linux-gnu/bin/ld: > > MPFRUtils.cpp:(.text._ZN11__llvm_libc7testing4mpfr9equalsSinEffRKNS1_9ToleranceE+0x35): > undefined reference to `mpfr_set_flt' > > /usr/lib/gcc/x86_64-pc-linux-gnu/9.3.0/../../../../x86_64-pc-linux-gnu/bin/ld: > > MPFRUtils.cpp:(.text._ZN11__llvm_libc7testing4mpfr9equalsSinEffRKNS1_9ToleranceE+0x53): > undefined reference to `mpfr_clear' > > /usr/lib/gcc/x86_64-pc-linux-gnu/9.3.0/../../../../x86_64-pc-linux-gnu/bin/ld: > > MPFRUtils.cpp:(.text._ZN11__llvm_libc7testing4mpfr9equalsSinEffRKNS1_9ToleranceE+0x5d): > undefined reference to `mpfr_clear' > > /usr/lib/gcc/x86_64-pc-linux-gnu/9.3.0/../../../../x86_64-pc-linux-gnu/bin/ld: > > MPFRUtils.cpp:(.text._ZN11__llvm_libc7testing4mpfr9equalsSinEffRKNS1_9ToleranceE+0x82): > undefined reference to `mpfr_clear' > > /usr/lib/gcc/x86_64-pc-linux-gnu/9.3.0/../../../../x86_64-pc-linux-gnu/bin/ld: > > MPFRUtils.cpp:(.text._ZN11__llvm_libc7testing4mpfr9equalsSinEffRKNS1_9ToleranceE+0x99): > undefined reference to `mpfr_clear' > > /usr/lib/gcc/x86_64-pc-linux-gnu/9.3.0/../../../../x86_64-pc-linux-gnu/bin/ld: > > projects/libc/utils/MPFRWrapper/CMakeFiles/libcMPFRWrapper.dir/MPFRUtils.cpp.o: > in function `__llvm_libc::testing::mpfr::MPFRNumber::sin(float)': > > MPFRUtils.cpp:(.text._ZN11__llvm_libc7testing4mpfr10MPFRNumber3sinEf[_ZN11__llvm_libc7testing4mpfr10MPFRNumber3sinEf]+0x16): > undefined reference to `mpfr_init2' > > /usr/lib/gcc/x86_64-pc-linux-gnu/9.3.0/../../../../x86_64-pc-linux-gnu/bin/ld: > > MPFRUtils.cpp:(.text._ZN11__llvm_libc7testing4mpfr10MPFRNumber3sinEf[_ZN11__llvm_libc7testing4mpfr10MPFRNumber3sinEf]+0x25): > undefined reference to `mpfr_init2' > > /usr/lib/gcc/x86_64-pc-linux-gnu/9.3.0/../../../../x86_64-pc-linux-gnu/bin/ld: > > MPFRUtils.cpp:(.text._ZN11__llvm_libc7testing4mpfr10MPFRNumber3sinEf[_ZN11__llvm_libc7testing4mpfr10MPFRNumber3sinEf]+0x37): > undefined reference to `mpfr_set_flt' > > /usr/lib/gcc/x86_64-pc-linux-gnu/9.3.0/../../../../x86_64-pc-linux-gnu/bin/ld: > > MPFRUtils.cpp:(.text._ZN11__llvm_libc7testing4mpfr10MPFRNumber3sinEf[_ZN11__llvm_libc7testing4mpfr10MPFRNumber3sinEf]+0x46): > undefined reference to `mpfr_sin' > > /usr/lib/gcc/x86_64-pc-linux-gnu/9.3.0/../../../../x86_64-pc-linux-gnu/bin/ld: > > MPFRUtils.cpp:(.text._ZN11__llvm_libc7testing4mpfr10MPFRNumber3sinEf[_ZN11__llvm_libc7testing4mpfr10MPFRNumber3sinEf]+0x50): > undefined reference to `mpfr_clear' > > /usr/lib/gcc/x86_64-pc-linux-gnu/9.3.0/../../../../x86_64-pc-linux-gnu/bin/ld: > > MPFRUtils.cpp:(.text._ZN11__llvm_libc7testing4mpfr10MPFRNumber3sinEf[_ZN11__llvm_libc7testing4mpfr10MPFRNumber3sinEf]+0x70): > undefined reference to `mpfr_clear' > > /usr/lib/gcc/x86_64-pc-linux-gnu/9.3.0/../../../../x86_64-pc-linux-gnu/bin/ld: > > MPFRUtils.cpp:(.text._ZN11__llvm_libc7testing4mpfr10MPFRNumber3sinEf[_ZN11__llvm_libc7testing4mpfr10MPFRNumber3sinEf]+0x85): > undefined reference to `mpfr_clear' > clang-10: error: linker command failed with exit code 1 (use -v to see > invocation) > [1930/7570] /usr/lib/llvm/10/bin/clang++ -D_GNU_SOURCE > -D__STDC_CONSTANT_MACROS -D__STDC_FORMAT_MACROS -D__STDC_LIMIT_MACROS > -Iprojects/libc/utils/HdrGen > -I/home/laguest/src/mine-new/llvm/llvm-project/libc/utils/HdrGen > -I/usr/include/libxml2 -Iinclude > -I/home/laguest/src/mine-new/llvm/llvm-project/llvm/include -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 -Wimplicit-fallthrough -Wcovered-switch-default > -Wno-noexcept-type -Wnon-virtual-dtor -Wdelete-non-virtual-dtor > -Wstring-conversion -fdiagnostics-color -ffunction-sections > -fdata-sections -O3 -DNDEBUG -std=c++14 -MD -MT > projects/libc/utils/HdrGen/CMakeFiles/libc-hdrgen.dir/Main.cpp.o -MF > projects/libc/utils/HdrGen/CMakeFiles/libc-hdrgen.dir/Main.cpp.o.d -o > projects/libc/utils/HdrGen/CMakeFiles/libc-hdrgen.dir/Main.cpp.o -c > /home/laguest/src/mine-new/llvm/llvm-project/libc/utils/HdrGen/Main.cpp > [1931/7570] /usr/lib/llvm/10/bin/clang++ -D_GNU_SOURCE > -D__STDC_CONSTANT_MACROS -D__STDC_FORMAT_MACROS -D__STDC_LIMIT_MACROS > -Iprojects/libc/utils/HdrGen > -I/home/laguest/src/mine-new/llvm/llvm-project/libc/utils/HdrGen > -I/usr/include/libxml2 -Iinclude > -I/home/laguest/src/mine-new/llvm/llvm-project/llvm/include -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 -Wimplicit-fallthrough -Wcovered-switch-default > -Wno-noexcept-type -Wnon-virtual-dtor -Wdelete-non-virtual-dtor > -Wstring-conversion -fdiagnostics-color -ffunction-sections > -fdata-sections -O3 -DNDEBUG -std=c++14 -MD -MT > > projects/libc/utils/HdrGen/CMakeFiles/libc-hdrgen.dir/PublicAPICommand.cpp.o > -MF > > projects/libc/utils/HdrGen/CMakeFiles/libc-hdrgen.dir/PublicAPICommand.cpp.o.d > -o > > projects/libc/utils/HdrGen/CMakeFiles/libc-hdrgen.dir/PublicAPICommand.cpp.o > -c > > /home/laguest/src/mine-new/llvm/llvm-project/libc/utils/HdrGen/PublicAPICommand.cpp > [1932/7570] /usr/lib/llvm/10/bin/clang++ -D_GNU_SOURCE > -D__STDC_CONSTANT_MACROS -D__STDC_FORMAT_MACROS -D__STDC_LIMIT_MACROS > -Itools/clang/utils/TableGen > -I/home/laguest/src/mine-new/llvm/llvm-project/clang/utils/TableGen > -I/home/laguest/src/mine-new/llvm/llvm-project/clang/include > -Itools/clang/include -I/usr/include/libxml2 -Iinclude > -I/home/laguest/src/mine-new/llvm/llvm-project/llvm/include -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 -Wimplicit-fallthrough -Wcovered-switch-default > -Wno-noexcept-type -Wnon-virtual-dtor -Wdelete-non-virtual-dtor > -Wstring-conversion -fdiagnostics-color -ffunction-sections > -fdata-sections -fno-common -Woverloaded-virtual -Wno-nested-anon-types > -O3 -DNDEBUG -std=c++14 -MD -MT > > tools/clang/utils/TableGen/CMakeFiles/clang-tblgen.dir/ClangAttrEmitter.cpp.o > -MF > > tools/clang/utils/TableGen/CMakeFiles/clang-tblgen.dir/ClangAttrEmitter.cpp.o.d > -o > > tools/clang/utils/TableGen/CMakeFiles/clang-tblgen.dir/ClangAttrEmitter.cpp.o > -c > > /home/laguest/src/mine-new/llvm/llvm-project/clang/utils/TableGen/ClangAttrEmitter.cpp > [1933/7570] /usr/lib/llvm/10/bin/clang++ -D_GNU_SOURCE > -D__STDC_CONSTANT_MACROS -D__STDC_FORMAT_MACROS -D__STDC_LIMIT_MACROS > -Ilib/Passes > -I/home/laguest/src/mine-new/llvm/llvm-project/llvm/lib/Passes > -I/usr/include/libxml2 -Iinclude > -I/home/laguest/src/mine-new/llvm/llvm-project/llvm/include -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 -Wimplicit-fallthrough -Wcovered-switch-default > -Wno-noexcept-type -Wnon-virtual-dtor -Wdelete-non-virtual-dtor > -Wstring-conversion -fdiagnostics-color -ffunction-sections > -fdata-sections -O3 -DNDEBUG -fPIC -std=c++14 -MD -MT > lib/Passes/CMakeFiles/LLVMPasses.dir/PassBuilder.cpp.o -MF > lib/Passes/CMakeFiles/LLVMPasses.dir/PassBuilder.cpp.o.d -o > lib/Passes/CMakeFiles/LLVMPasses.dir/PassBuilder.cpp.o -c > > /home/laguest/src/mine-new/llvm/llvm-project/llvm/lib/Passes/PassBuilder.cpp > ninja: build stopped: subcommand failed. > > > On 23/04/2020 18:11, Luke A. Guest via llvm-dev wrote: > > I am nuilding that now. > > > > > > CC=clang CXX=clang++ cmake -DCMAKE_INSTALL_PREFIX=$HOME/opt/llvm11-git \ > > -DCMAKE_BUILD_TYPE=Release \ > > -DBUILD_SHARED_LIBS=ON \ > > -DLLVM_ENABLE_EH=ON \ > > -DLLVM_ENABLE_RTTI=ON \ > > -DLLVM_HOST_TRIPLE=x86_64-pc-linux-gnu \ > > -DLLVM_TARGETS_TO_BUILD="AMDGPU;MSP430;WebAssembly;X86" \ > > -DLLVM_EXPERIMENTAL_TARGETS_TO_BUILD="AVR" \ > > -DLLVM_ENABLE_PROJECTS="all" \ > > -G "Ninja" ../llvm > > > > > > On 23/04/2020 18:04, Juneyoung Lee wrote: > >> Can you try DBUILD_SHARED_LIBS=ON ? I saw the error when I compiled a > >> custom pass with shared libs off & passed it to opt. > _______________________________________________ > LLVM Developers mailing list > llvm-dev at lists.llvm.org > https://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-dev >-------------- next part -------------- An HTML attachment was scrubbed... URL: <http://lists.llvm.org/pipermail/llvm-dev/attachments/20200423/f4b6fecc/attachment.html>