<div dir="ltr">Do you really need to build the C library for MLIR?<div><br></div><div>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.</div></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Thu, Apr 23, 2020 at 12:29 PM Luke A. Guest via llvm-dev <<a href="mailto:llvm-dev@lists.llvm.org">llvm-dev@lists.llvm.org</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">Here's the error:<br>
<br>
[1921/7570] /usr/lib/llvm/10/bin/clang++  -D_GNU_SOURCE<br>
-D__STDC_CONSTANT_MACROS -D__STDC_FORMAT_MACROS -D__STDC_LIMIT_MACROS<br>
-Itools/clang/utils/TableGen<br>
-I/home/laguest/src/mine-new/llvm/llvm-project/clang/utils/TableGen<br>
-I/home/laguest/src/mine-new/llvm/llvm-project/clang/include<br>
-Itools/clang/include -I/usr/include/libxml2 -Iinclude<br>
-I/home/laguest/src/mine-new/llvm/llvm-project/llvm/include -fPIC<br>
-fvisibility-inlines-hidden -Werror=date-time<br>
-Werror=unguarded-availability-new -Wall -Wextra -Wno-unused-parameter<br>
-Wwrite-strings -Wcast-qual -Wmissing-field-initializers -pedantic<br>
-Wno-long-long -Wimplicit-fallthrough -Wcovered-switch-default<br>
-Wno-noexcept-type -Wnon-virtual-dtor -Wdelete-non-virtual-dtor<br>
-Wstring-conversion -fdiagnostics-color -ffunction-sections<br>
-fdata-sections -fno-common -Woverloaded-virtual -Wno-nested-anon-types<br>
-O3 -DNDEBUG     -std=c++14 -MD -MT<br>
tools/clang/utils/TableGen/CMakeFiles/clang-tblgen.dir/ClangASTNodesEmitter.cpp.o<br>
-MF<br>
tools/clang/utils/TableGen/CMakeFiles/clang-tblgen.dir/ClangASTNodesEmitter.cpp.o.d<br>
-o<br>
tools/clang/utils/TableGen/CMakeFiles/clang-tblgen.dir/ClangASTNodesEmitter.cpp.o<br>
-c<br>
/home/laguest/src/mine-new/llvm/llvm-project/clang/utils/TableGen/ClangASTNodesEmitter.cpp<br>
[1922/7570] /usr/lib/llvm/10/bin/clang++  -D_GNU_SOURCE<br>
-D__STDC_CONSTANT_MACROS -D__STDC_FORMAT_MACROS -D__STDC_LIMIT_MACROS<br>
-Iprojects/compiler-rt/lib/tsan/dd<br>
-I/home/laguest/src/mine-new/llvm/llvm-project/compiler-rt/lib/tsan/dd<br>
-I/usr/include/libxml2 -Iinclude<br>
-I/home/laguest/src/mine-new/llvm/llvm-project/llvm/include<br>
-I/home/laguest/src/mine-new/llvm/llvm-project/compiler-rt/lib/tsan/dd/../..<br>
-fPIC -fvisibility-inlines-hidden -Werror=date-time<br>
-Werror=unguarded-availability-new -Wall -Wextra -Wno-unused-parameter<br>
-Wwrite-strings -Wcast-qual -Wmissing-field-initializers -pedantic<br>
-Wno-long-long -Wimplicit-fallthrough -Wcovered-switch-default<br>
-Wno-noexcept-type -Wnon-virtual-dtor -Wdelete-non-virtual-dtor<br>
-Wstring-conversion -fdiagnostics-color -ffunction-sections<br>
-fdata-sections -Wall -std=c++14 -Wno-unused-parameter -O3 -DNDEBUG<br>
-m64 -fno-lto -fPIC -fno-builtin -fno-exceptions -fomit-frame-pointer<br>
-funwind-tables -fno-stack-protector -fno-sanitize=safe-stack<br>
-fvisibility=hidden -fno-lto -O3 -gline-tables-only -Wno-gnu<br>
-Wno-variadic-macros -Wno-c99-extensions -Wno-non-virtual-dtor -fno-rtti<br>
-std=c++14 -MD -MT<br>
projects/compiler-rt/lib/tsan/dd/CMakeFiles/clang_rt.dd-x86_64.dir/dd_rtl.cpp.o<br>
-MF<br>
projects/compiler-rt/lib/tsan/dd/CMakeFiles/clang_rt.dd-x86_64.dir/dd_rtl.cpp.o.d<br>
-o<br>
projects/compiler-rt/lib/tsan/dd/CMakeFiles/clang_rt.dd-x86_64.dir/dd_rtl.cpp.o<br>
-c<br>
/home/laguest/src/mine-new/llvm/llvm-project/compiler-rt/lib/tsan/dd/dd_rtl.cpp<br>
[1923/7570] /usr/lib/llvm/10/bin/clang++  -D_GNU_SOURCE<br>
-D__STDC_CONSTANT_MACROS -D__STDC_FORMAT_MACROS -D__STDC_LIMIT_MACROS<br>
-Iprojects/libc/utils/HdrGen<br>
-I/home/laguest/src/mine-new/llvm/llvm-project/libc/utils/HdrGen<br>
-I/usr/include/libxml2 -Iinclude<br>
-I/home/laguest/src/mine-new/llvm/llvm-project/llvm/include -fPIC<br>
-fvisibility-inlines-hidden -Werror=date-time<br>
-Werror=unguarded-availability-new -Wall -Wextra -Wno-unused-parameter<br>
-Wwrite-strings -Wcast-qual -Wmissing-field-initializers -pedantic<br>
-Wno-long-long -Wimplicit-fallthrough -Wcovered-switch-default<br>
-Wno-noexcept-type -Wnon-virtual-dtor -Wdelete-non-virtual-dtor<br>
-Wstring-conversion -fdiagnostics-color -ffunction-sections<br>
-fdata-sections -O3 -DNDEBUG     -std=c++14 -MD -MT<br>
projects/libc/utils/HdrGen/CMakeFiles/libc-hdrgen.dir/Command.cpp.o -MF<br>
projects/libc/utils/HdrGen/CMakeFiles/libc-hdrgen.dir/Command.cpp.o.d -o<br>
projects/libc/utils/HdrGen/CMakeFiles/libc-hdrgen.dir/Command.cpp.o -c<br>
/home/laguest/src/mine-new/llvm/llvm-project/libc/utils/HdrGen/Command.cpp<br>
[1924/7570] /usr/lib/llvm/10/bin/clang++  -D_GNU_SOURCE<br>
-D__STDC_CONSTANT_MACROS -D__STDC_FORMAT_MACROS -D__STDC_LIMIT_MACROS<br>
-Itools/clang/utils/TableGen<br>
-I/home/laguest/src/mine-new/llvm/llvm-project/clang/utils/TableGen<br>
-I/home/laguest/src/mine-new/llvm/llvm-project/clang/include<br>
-Itools/clang/include -I/usr/include/libxml2 -Iinclude<br>
-I/home/laguest/src/mine-new/llvm/llvm-project/llvm/include -fPIC<br>
-fvisibility-inlines-hidden -Werror=date-time<br>
-Werror=unguarded-availability-new -Wall -Wextra -Wno-unused-parameter<br>
-Wwrite-strings -Wcast-qual -Wmissing-field-initializers -pedantic<br>
-Wno-long-long -Wimplicit-fallthrough -Wcovered-switch-default<br>
-Wno-noexcept-type -Wnon-virtual-dtor -Wdelete-non-virtual-dtor<br>
-Wstring-conversion -fdiagnostics-color -ffunction-sections<br>
-fdata-sections -fno-common -Woverloaded-virtual -Wno-nested-anon-types<br>
-O3 -DNDEBUG     -std=c++14 -MD -MT<br>
tools/clang/utils/TableGen/CMakeFiles/clang-tblgen.dir/ClangASTPropertiesEmitter.cpp.o<br>
-MF<br>
tools/clang/utils/TableGen/CMakeFiles/clang-tblgen.dir/ClangASTPropertiesEmitter.cpp.o.d<br>
-o<br>
tools/clang/utils/TableGen/CMakeFiles/clang-tblgen.dir/ClangASTPropertiesEmitter.cpp.o<br>
-c<br>
/home/laguest/src/mine-new/llvm/llvm-project/clang/utils/TableGen/ClangASTPropertiesEmitter.cpp<br>
[1925/7570] /usr/lib/llvm/10/bin/clang++  -D_GNU_SOURCE<br>
-D__STDC_CONSTANT_MACROS -D__STDC_FORMAT_MACROS -D__STDC_LIMIT_MACROS<br>
-Iprojects/libc/utils/HdrGen<br>
-I/home/laguest/src/mine-new/llvm/llvm-project/libc/utils/HdrGen<br>
-I/usr/include/libxml2 -Iinclude<br>
-I/home/laguest/src/mine-new/llvm/llvm-project/llvm/include -fPIC<br>
-fvisibility-inlines-hidden -Werror=date-time<br>
-Werror=unguarded-availability-new -Wall -Wextra -Wno-unused-parameter<br>
-Wwrite-strings -Wcast-qual -Wmissing-field-initializers -pedantic<br>
-Wno-long-long -Wimplicit-fallthrough -Wcovered-switch-default<br>
-Wno-noexcept-type -Wnon-virtual-dtor -Wdelete-non-virtual-dtor<br>
-Wstring-conversion -fdiagnostics-color -ffunction-sections<br>
-fdata-sections -O3 -DNDEBUG     -std=c++14 -MD -MT<br>
projects/libc/utils/HdrGen/CMakeFiles/libc-hdrgen.dir/Generator.cpp.o<br>
-MF<br>
projects/libc/utils/HdrGen/CMakeFiles/libc-hdrgen.dir/Generator.cpp.o.d<br>
-o projects/libc/utils/HdrGen/CMakeFiles/libc-hdrgen.dir/Generator.cpp.o<br>
-c<br>
/home/laguest/src/mine-new/llvm/llvm-project/libc/utils/HdrGen/Generator.cpp<br>
[1926/7570] /usr/lib/llvm/10/bin/clang++  -D_GNU_SOURCE<br>
-D__STDC_CONSTANT_MACROS -D__STDC_FORMAT_MACROS -D__STDC_LIMIT_MACROS<br>
-Itools/lld/lib/ReaderWriter/YAML<br>
-I/home/laguest/src/mine-new/llvm/llvm-project/lld/lib/ReaderWriter/YAML<br>
-I/home/laguest/src/mine-new/llvm/llvm-project/lld/include<br>
-Itools/lld/include -I/usr/include/libxml2 -Iinclude<br>
-I/home/laguest/src/mine-new/llvm/llvm-project/llvm/include -fPIC<br>
-fvisibility-inlines-hidden -Werror=date-time<br>
-Werror=unguarded-availability-new -Wall -Wextra -Wno-unused-parameter<br>
-Wwrite-strings -Wcast-qual -Wmissing-field-initializers -pedantic<br>
-Wno-long-long -Wimplicit-fallthrough -Wcovered-switch-default<br>
-Wno-noexcept-type -Wnon-virtual-dtor -Wdelete-non-virtual-dtor<br>
-Wstring-conversion -fdiagnostics-color -ffunction-sections<br>
-fdata-sections -O3 -DNDEBUG -fPIC     -std=c++14 -MD -MT<br>
tools/lld/lib/ReaderWriter/YAML/CMakeFiles/lldYAML.dir/ReaderWriterYAML.cpp.o<br>
-MF<br>
tools/lld/lib/ReaderWriter/YAML/CMakeFiles/lldYAML.dir/ReaderWriterYAML.cpp.o.d<br>
-o<br>
tools/lld/lib/ReaderWriter/YAML/CMakeFiles/lldYAML.dir/ReaderWriterYAML.cpp.o<br>
-c<br>
/home/laguest/src/mine-new/llvm/llvm-project/lld/lib/ReaderWriter/YAML/ReaderWriterYAML.cpp<br>
[1927/7570] /usr/lib/llvm/10/bin/clang++  -D_GNU_SOURCE<br>
-D__STDC_CONSTANT_MACROS -D__STDC_FORMAT_MACROS -D__STDC_LIMIT_MACROS<br>
-Iprojects/libc/utils/HdrGen<br>
-I/home/laguest/src/mine-new/llvm/llvm-project/libc/utils/HdrGen<br>
-I/usr/include/libxml2 -Iinclude<br>
-I/home/laguest/src/mine-new/llvm/llvm-project/llvm/include -fPIC<br>
-fvisibility-inlines-hidden -Werror=date-time<br>
-Werror=unguarded-availability-new -Wall -Wextra -Wno-unused-parameter<br>
-Wwrite-strings -Wcast-qual -Wmissing-field-initializers -pedantic<br>
-Wno-long-long -Wimplicit-fallthrough -Wcovered-switch-default<br>
-Wno-noexcept-type -Wnon-virtual-dtor -Wdelete-non-virtual-dtor<br>
-Wstring-conversion -fdiagnostics-color -ffunction-sections<br>
-fdata-sections -O3 -DNDEBUG     -std=c++14 -MD -MT<br>
projects/libc/utils/HdrGen/CMakeFiles/libc-hdrgen.dir/IncludeFileCommand.cpp.o<br>
-MF<br>
projects/libc/utils/HdrGen/CMakeFiles/libc-hdrgen.dir/IncludeFileCommand.cpp.o.d<br>
-o<br>
projects/libc/utils/HdrGen/CMakeFiles/libc-hdrgen.dir/IncludeFileCommand.cpp.o<br>
-c<br>
/home/laguest/src/mine-new/llvm/llvm-project/libc/utils/HdrGen/IncludeFileCommand.cpp<br>
[1928/7570] /usr/lib/llvm/10/bin/clang++  -D_GNU_SOURCE<br>
-D__STDC_CONSTANT_MACROS -D__STDC_FORMAT_MACROS -D__STDC_LIMIT_MACROS<br>
-DlibcMPFRWrapper_EXPORTS -Iprojects/libc/utils/MPFRWrapper<br>
-I/home/laguest/src/mine-new/llvm/llvm-project/libc/utils/MPFRWrapper<br>
-I/usr/include/libxml2 -Iinclude<br>
-I/home/laguest/src/mine-new/llvm/llvm-project/llvm/include -fPIC<br>
-fvisibility-inlines-hidden -Werror=date-time<br>
-Werror=unguarded-availability-new -Wall -Wextra -Wno-unused-parameter<br>
-Wwrite-strings -Wcast-qual -Wmissing-field-initializers -pedantic<br>
-Wno-long-long -Wimplicit-fallthrough -Wcovered-switch-default<br>
-Wno-noexcept-type -Wnon-virtual-dtor -Wdelete-non-virtual-dtor<br>
-Wstring-conversion -fdiagnostics-color -ffunction-sections<br>
-fdata-sections -O3 -DNDEBUG -fPIC   -std=c++14 -MD -MT<br>
projects/libc/utils/MPFRWrapper/CMakeFiles/libcMPFRWrapper.dir/MPFRUtils.cpp.o<br>
-MF<br>
projects/libc/utils/MPFRWrapper/CMakeFiles/libcMPFRWrapper.dir/MPFRUtils.cpp.o.d<br>
-o<br>
projects/libc/utils/MPFRWrapper/CMakeFiles/libcMPFRWrapper.dir/MPFRUtils.cpp.o<br>
-c<br>
/home/laguest/src/mine-new/llvm/llvm-project/libc/utils/MPFRWrapper/MPFRUtils.cpp<br>
[1929/7570] : && /usr/lib/llvm/10/bin/clang++ -fPIC -fPIC<br>
-fvisibility-inlines-hidden -Werror=date-time<br>
-Werror=unguarded-availability-new -Wall -Wextra -Wno-unused-parameter<br>
-Wwrite-strings -Wcast-qual -Wmissing-field-initializers -pedantic<br>
-Wno-long-long -Wimplicit-fallthrough -Wcovered-switch-default<br>
-Wno-noexcept-type -Wnon-virtual-dtor -Wdelete-non-virtual-dtor<br>
-Wstring-conversion -fdiagnostics-color -ffunction-sections<br>
-fdata-sections -O3 -DNDEBUG  -Wl,-z,defs -Wl,-z,nodelete -shared<br>
-Wl,-soname,liblibcMPFRWrapper.so -o lib/liblibcMPFRWrapper.so<br>
projects/libc/utils/MPFRWrapper/CMakeFiles/libcMPFRWrapper.dir/MPFRUtils.cpp.o<br>
  && :<br>
FAILED: lib/liblibcMPFRWrapper.so<br>
: && /usr/lib/llvm/10/bin/clang++ -fPIC -fPIC<br>
-fvisibility-inlines-hidden -Werror=date-time<br>
-Werror=unguarded-availability-new -Wall -Wextra -Wno-unused-parameter<br>
-Wwrite-strings -Wcast-qual -Wmissing-field-initializers -pedantic<br>
-Wno-long-long -Wimplicit-fallthrough -Wcovered-switch-default<br>
-Wno-noexcept-type -Wnon-virtual-dtor -Wdelete-non-virtual-dtor<br>
-Wstring-conversion -fdiagnostics-color -ffunction-sections<br>
-fdata-sections -O3 -DNDEBUG  -Wl,-z,defs -Wl,-z,nodelete -shared<br>
-Wl,-soname,liblibcMPFRWrapper.so -o lib/liblibcMPFRWrapper.so<br>
projects/libc/utils/MPFRWrapper/CMakeFiles/libcMPFRWrapper.dir/MPFRUtils.cpp.o<br>
  && :<br>
/usr/lib/gcc/x86_64-pc-linux-gnu/9.3.0/../../../../x86_64-pc-linux-gnu/bin/ld:<br>
projects/libc/utils/MPFRWrapper/CMakeFiles/libcMPFRWrapper.dir/MPFRUtils.cpp.o:<br>
in function `__llvm_libc::testing::mpfr::equalsCos(float, float,<br>
__llvm_libc::testing::mpfr::Tolerance const&)':<br>
MPFRUtils.cpp:(.text._ZN11__llvm_libc7testing4mpfr9equalsCosEffRKNS1_9ToleranceE+0x23):<br>
undefined reference to `mpfr_init2'<br>
/usr/lib/gcc/x86_64-pc-linux-gnu/9.3.0/../../../../x86_64-pc-linux-gnu/bin/ld:<br>
MPFRUtils.cpp:(.text._ZN11__llvm_libc7testing4mpfr9equalsCosEffRKNS1_9ToleranceE+0x35):<br>
undefined reference to `mpfr_set_flt'<br>
/usr/lib/gcc/x86_64-pc-linux-gnu/9.3.0/../../../../x86_64-pc-linux-gnu/bin/ld:<br>
MPFRUtils.cpp:(.text._ZN11__llvm_libc7testing4mpfr9equalsCosEffRKNS1_9ToleranceE+0x53):<br>
undefined reference to `mpfr_clear'<br>
/usr/lib/gcc/x86_64-pc-linux-gnu/9.3.0/../../../../x86_64-pc-linux-gnu/bin/ld:<br>
MPFRUtils.cpp:(.text._ZN11__llvm_libc7testing4mpfr9equalsCosEffRKNS1_9ToleranceE+0x5d):<br>
undefined reference to `mpfr_clear'<br>
/usr/lib/gcc/x86_64-pc-linux-gnu/9.3.0/../../../../x86_64-pc-linux-gnu/bin/ld:<br>
MPFRUtils.cpp:(.text._ZN11__llvm_libc7testing4mpfr9equalsCosEffRKNS1_9ToleranceE+0x82):<br>
undefined reference to `mpfr_clear'<br>
/usr/lib/gcc/x86_64-pc-linux-gnu/9.3.0/../../../../x86_64-pc-linux-gnu/bin/ld:<br>
MPFRUtils.cpp:(.text._ZN11__llvm_libc7testing4mpfr9equalsCosEffRKNS1_9ToleranceE+0x99):<br>
undefined reference to `mpfr_clear'<br>
/usr/lib/gcc/x86_64-pc-linux-gnu/9.3.0/../../../../x86_64-pc-linux-gnu/bin/ld:<br>
projects/libc/utils/MPFRWrapper/CMakeFiles/libcMPFRWrapper.dir/MPFRUtils.cpp.o:<br>
in function `__llvm_libc::testing::mpfr::MPFRNumber::cos(float)':<br>
MPFRUtils.cpp:(.text._ZN11__llvm_libc7testing4mpfr10MPFRNumber3cosEf[_ZN11__llvm_libc7testing4mpfr10MPFRNumber3cosEf]+0x16):<br>
undefined reference to `mpfr_init2'<br>
/usr/lib/gcc/x86_64-pc-linux-gnu/9.3.0/../../../../x86_64-pc-linux-gnu/bin/ld:<br>
MPFRUtils.cpp:(.text._ZN11__llvm_libc7testing4mpfr10MPFRNumber3cosEf[_ZN11__llvm_libc7testing4mpfr10MPFRNumber3cosEf]+0x25):<br>
undefined reference to `mpfr_init2'<br>
/usr/lib/gcc/x86_64-pc-linux-gnu/9.3.0/../../../../x86_64-pc-linux-gnu/bin/ld:<br>
MPFRUtils.cpp:(.text._ZN11__llvm_libc7testing4mpfr10MPFRNumber3cosEf[_ZN11__llvm_libc7testing4mpfr10MPFRNumber3cosEf]+0x37):<br>
undefined reference to `mpfr_set_flt'<br>
/usr/lib/gcc/x86_64-pc-linux-gnu/9.3.0/../../../../x86_64-pc-linux-gnu/bin/ld:<br>
MPFRUtils.cpp:(.text._ZN11__llvm_libc7testing4mpfr10MPFRNumber3cosEf[_ZN11__llvm_libc7testing4mpfr10MPFRNumber3cosEf]+0x46):<br>
undefined reference to `mpfr_cos'<br>
/usr/lib/gcc/x86_64-pc-linux-gnu/9.3.0/../../../../x86_64-pc-linux-gnu/bin/ld:<br>
MPFRUtils.cpp:(.text._ZN11__llvm_libc7testing4mpfr10MPFRNumber3cosEf[_ZN11__llvm_libc7testing4mpfr10MPFRNumber3cosEf]+0x50):<br>
undefined reference to `mpfr_clear'<br>
/usr/lib/gcc/x86_64-pc-linux-gnu/9.3.0/../../../../x86_64-pc-linux-gnu/bin/ld:<br>
MPFRUtils.cpp:(.text._ZN11__llvm_libc7testing4mpfr10MPFRNumber3cosEf[_ZN11__llvm_libc7testing4mpfr10MPFRNumber3cosEf]+0x70):<br>
undefined reference to `mpfr_clear'<br>
/usr/lib/gcc/x86_64-pc-linux-gnu/9.3.0/../../../../x86_64-pc-linux-gnu/bin/ld:<br>
MPFRUtils.cpp:(.text._ZN11__llvm_libc7testing4mpfr10MPFRNumber3cosEf[_ZN11__llvm_libc7testing4mpfr10MPFRNumber3cosEf]+0x85):<br>
undefined reference to `mpfr_clear'<br>
/usr/lib/gcc/x86_64-pc-linux-gnu/9.3.0/../../../../x86_64-pc-linux-gnu/bin/ld:<br>
projects/libc/utils/MPFRWrapper/CMakeFiles/libcMPFRWrapper.dir/MPFRUtils.cpp.o:<br>
in function<br>
`__llvm_libc::testing::mpfr::MPFRNumber::isEqual(__llvm_libc::testing::mpfr::MPFRNumber<br>
const&, __llvm_libc::testing::mpfr::Tolerance const&)':<br>
MPFRUtils.cpp:(.text._ZN11__llvm_libc7testing4mpfr10MPFRNumber7isEqualERKS2_RKNS1_9ToleranceE[_ZN11__llvm_libc7testing4mpfr10MPFRNumber7isEqualERKS2_RKNS1_9ToleranceE]+0x26):<br>
undefined reference to `mpfr_init2'<br>
/usr/lib/gcc/x86_64-pc-linux-gnu/9.3.0/../../../../x86_64-pc-linux-gnu/bin/ld:<br>
MPFRUtils.cpp:(.text._ZN11__llvm_libc7testing4mpfr10MPFRNumber7isEqualERKS2_RKNS1_9ToleranceE[_ZN11__llvm_libc7testing4mpfr10MPFRNumber7isEqualERKS2_RKNS1_9ToleranceE]+0x35):<br>
undefined reference to `mpfr_set_flt'<br>
/usr/lib/gcc/x86_64-pc-linux-gnu/9.3.0/../../../../x86_64-pc-linux-gnu/bin/ld:<br>
MPFRUtils.cpp:(.text._ZN11__llvm_libc7testing4mpfr10MPFRNumber7isEqualERKS2_RKNS1_9ToleranceE[_ZN11__llvm_libc7testing4mpfr10MPFRNumber7isEqualERKS2_RKNS1_9ToleranceE]+0x7b):<br>
undefined reference to `mpfr_init2'<br>
/usr/lib/gcc/x86_64-pc-linux-gnu/9.3.0/../../../../x86_64-pc-linux-gnu/bin/ld:<br>
MPFRUtils.cpp:(.text._ZN11__llvm_libc7testing4mpfr10MPFRNumber7isEqualERKS2_RKNS1_9ToleranceE[_ZN11__llvm_libc7testing4mpfr10MPFRNumber7isEqualERKS2_RKNS1_9ToleranceE]+0x8d):<br>
undefined reference to `mpfr_set_ui_2exp'<br>
/usr/lib/gcc/x86_64-pc-linux-gnu/9.3.0/../../../../x86_64-pc-linux-gnu/bin/ld:<br>
MPFRUtils.cpp:(.text._ZN11__llvm_libc7testing4mpfr10MPFRNumber7isEqualERKS2_RKNS1_9ToleranceE[_ZN11__llvm_libc7testing4mpfr10MPFRNumber7isEqualERKS2_RKNS1_9ToleranceE]+0x9d):<br>
undefined reference to `mpfr_add'<br>
/usr/lib/gcc/x86_64-pc-linux-gnu/9.3.0/../../../../x86_64-pc-linux-gnu/bin/ld:<br>
MPFRUtils.cpp:(.text._ZN11__llvm_libc7testing4mpfr10MPFRNumber7isEqualERKS2_RKNS1_9ToleranceE[_ZN11__llvm_libc7testing4mpfr10MPFRNumber7isEqualERKS2_RKNS1_9ToleranceE]+0xa5):<br>
undefined reference to `mpfr_clear'<br>
/usr/lib/gcc/x86_64-pc-linux-gnu/9.3.0/../../../../x86_64-pc-linux-gnu/bin/ld:<br>
MPFRUtils.cpp:(.text._ZN11__llvm_libc7testing4mpfr10MPFRNumber7isEqualERKS2_RKNS1_9ToleranceE[_ZN11__llvm_libc7testing4mpfr10MPFRNumber7isEqualERKS2_RKNS1_9ToleranceE]+0xb6):<br>
undefined reference to `mpfr_init2'<br>
/usr/lib/gcc/x86_64-pc-linux-gnu/9.3.0/../../../../x86_64-pc-linux-gnu/bin/ld:<br>
MPFRUtils.cpp:(.text._ZN11__llvm_libc7testing4mpfr10MPFRNumber7isEqualERKS2_RKNS1_9ToleranceE[_ZN11__llvm_libc7testing4mpfr10MPFRNumber7isEqualERKS2_RKNS1_9ToleranceE]+0xca):<br>
undefined reference to `mpfr_cmp3'<br>
/usr/lib/gcc/x86_64-pc-linux-gnu/9.3.0/../../../../x86_64-pc-linux-gnu/bin/ld:<br>
MPFRUtils.cpp:(.text._ZN11__llvm_libc7testing4mpfr10MPFRNumber7isEqualERKS2_RKNS1_9ToleranceE[_ZN11__llvm_libc7testing4mpfr10MPFRNumber7isEqualERKS2_RKNS1_9ToleranceE]+0xe0):<br>
undefined reference to `mpfr_sub'<br>
/usr/lib/gcc/x86_64-pc-linux-gnu/9.3.0/../../../../x86_64-pc-linux-gnu/bin/ld:<br>
MPFRUtils.cpp:(.text._ZN11__llvm_libc7testing4mpfr10MPFRNumber7isEqualERKS2_RKNS1_9ToleranceE[_ZN11__llvm_libc7testing4mpfr10MPFRNumber7isEqualERKS2_RKNS1_9ToleranceE]+0xf4):<br>
undefined reference to `mpfr_sub'<br>
/usr/lib/gcc/x86_64-pc-linux-gnu/9.3.0/../../../../x86_64-pc-linux-gnu/bin/ld:<br>
MPFRUtils.cpp:(.text._ZN11__llvm_libc7testing4mpfr10MPFRNumber7isEqualERKS2_RKNS1_9ToleranceE[_ZN11__llvm_libc7testing4mpfr10MPFRNumber7isEqualERKS2_RKNS1_9ToleranceE]+0x103):<br>
undefined reference to `mpfr_lessequal_p'<br>
/usr/lib/gcc/x86_64-pc-linux-gnu/9.3.0/../../../../x86_64-pc-linux-gnu/bin/ld:<br>
MPFRUtils.cpp:(.text._ZN11__llvm_libc7testing4mpfr10MPFRNumber7isEqualERKS2_RKNS1_9ToleranceE[_ZN11__llvm_libc7testing4mpfr10MPFRNumber7isEqualERKS2_RKNS1_9ToleranceE]+0x10f):<br>
undefined reference to `mpfr_clear'<br>
/usr/lib/gcc/x86_64-pc-linux-gnu/9.3.0/../../../../x86_64-pc-linux-gnu/bin/ld:<br>
MPFRUtils.cpp:(.text._ZN11__llvm_libc7testing4mpfr10MPFRNumber7isEqualERKS2_RKNS1_9ToleranceE[_ZN11__llvm_libc7testing4mpfr10MPFRNumber7isEqualERKS2_RKNS1_9ToleranceE]+0x119):<br>
undefined reference to `mpfr_clear'<br>
/usr/lib/gcc/x86_64-pc-linux-gnu/9.3.0/../../../../x86_64-pc-linux-gnu/bin/ld:<br>
MPFRUtils.cpp:(.text._ZN11__llvm_libc7testing4mpfr10MPFRNumber7isEqualERKS2_RKNS1_9ToleranceE[_ZN11__llvm_libc7testing4mpfr10MPFRNumber7isEqualERKS2_RKNS1_9ToleranceE]+0x14c):<br>
undefined reference to `mpfr_clear'<br>
/usr/lib/gcc/x86_64-pc-linux-gnu/9.3.0/../../../../x86_64-pc-linux-gnu/bin/ld:<br>
MPFRUtils.cpp:(.text._ZN11__llvm_libc7testing4mpfr10MPFRNumber7isEqualERKS2_RKNS1_9ToleranceE[_ZN11__llvm_libc7testing4mpfr10MPFRNumber7isEqualERKS2_RKNS1_9ToleranceE]+0x170):<br>
undefined reference to `mpfr_clear'<br>
/usr/lib/gcc/x86_64-pc-linux-gnu/9.3.0/../../../../x86_64-pc-linux-gnu/bin/ld:<br>
MPFRUtils.cpp:(.text._ZN11__llvm_libc7testing4mpfr10MPFRNumber7isEqualERKS2_RKNS1_9ToleranceE[_ZN11__llvm_libc7testing4mpfr10MPFRNumber7isEqualERKS2_RKNS1_9ToleranceE]+0x17a):<br>
undefined reference to `mpfr_clear'<br>
/usr/lib/gcc/x86_64-pc-linux-gnu/9.3.0/../../../../x86_64-pc-linux-gnu/bin/ld:<br>
projects/libc/utils/MPFRWrapper/CMakeFiles/libcMPFRWrapper.dir/MPFRUtils.cpp.o:<br>
in function `__llvm_libc::testing::mpfr::equalsSin(float, float,<br>
__llvm_libc::testing::mpfr::Tolerance const&)':<br>
MPFRUtils.cpp:(.text._ZN11__llvm_libc7testing4mpfr9equalsSinEffRKNS1_9ToleranceE+0x23):<br>
undefined reference to `mpfr_init2'<br>
/usr/lib/gcc/x86_64-pc-linux-gnu/9.3.0/../../../../x86_64-pc-linux-gnu/bin/ld:<br>
MPFRUtils.cpp:(.text._ZN11__llvm_libc7testing4mpfr9equalsSinEffRKNS1_9ToleranceE+0x35):<br>
undefined reference to `mpfr_set_flt'<br>
/usr/lib/gcc/x86_64-pc-linux-gnu/9.3.0/../../../../x86_64-pc-linux-gnu/bin/ld:<br>
MPFRUtils.cpp:(.text._ZN11__llvm_libc7testing4mpfr9equalsSinEffRKNS1_9ToleranceE+0x53):<br>
undefined reference to `mpfr_clear'<br>
/usr/lib/gcc/x86_64-pc-linux-gnu/9.3.0/../../../../x86_64-pc-linux-gnu/bin/ld:<br>
MPFRUtils.cpp:(.text._ZN11__llvm_libc7testing4mpfr9equalsSinEffRKNS1_9ToleranceE+0x5d):<br>
undefined reference to `mpfr_clear'<br>
/usr/lib/gcc/x86_64-pc-linux-gnu/9.3.0/../../../../x86_64-pc-linux-gnu/bin/ld:<br>
MPFRUtils.cpp:(.text._ZN11__llvm_libc7testing4mpfr9equalsSinEffRKNS1_9ToleranceE+0x82):<br>
undefined reference to `mpfr_clear'<br>
/usr/lib/gcc/x86_64-pc-linux-gnu/9.3.0/../../../../x86_64-pc-linux-gnu/bin/ld:<br>
MPFRUtils.cpp:(.text._ZN11__llvm_libc7testing4mpfr9equalsSinEffRKNS1_9ToleranceE+0x99):<br>
undefined reference to `mpfr_clear'<br>
/usr/lib/gcc/x86_64-pc-linux-gnu/9.3.0/../../../../x86_64-pc-linux-gnu/bin/ld:<br>
projects/libc/utils/MPFRWrapper/CMakeFiles/libcMPFRWrapper.dir/MPFRUtils.cpp.o:<br>
in function `__llvm_libc::testing::mpfr::MPFRNumber::sin(float)':<br>
MPFRUtils.cpp:(.text._ZN11__llvm_libc7testing4mpfr10MPFRNumber3sinEf[_ZN11__llvm_libc7testing4mpfr10MPFRNumber3sinEf]+0x16):<br>
undefined reference to `mpfr_init2'<br>
/usr/lib/gcc/x86_64-pc-linux-gnu/9.3.0/../../../../x86_64-pc-linux-gnu/bin/ld:<br>
MPFRUtils.cpp:(.text._ZN11__llvm_libc7testing4mpfr10MPFRNumber3sinEf[_ZN11__llvm_libc7testing4mpfr10MPFRNumber3sinEf]+0x25):<br>
undefined reference to `mpfr_init2'<br>
/usr/lib/gcc/x86_64-pc-linux-gnu/9.3.0/../../../../x86_64-pc-linux-gnu/bin/ld:<br>
MPFRUtils.cpp:(.text._ZN11__llvm_libc7testing4mpfr10MPFRNumber3sinEf[_ZN11__llvm_libc7testing4mpfr10MPFRNumber3sinEf]+0x37):<br>
undefined reference to `mpfr_set_flt'<br>
/usr/lib/gcc/x86_64-pc-linux-gnu/9.3.0/../../../../x86_64-pc-linux-gnu/bin/ld:<br>
MPFRUtils.cpp:(.text._ZN11__llvm_libc7testing4mpfr10MPFRNumber3sinEf[_ZN11__llvm_libc7testing4mpfr10MPFRNumber3sinEf]+0x46):<br>
undefined reference to `mpfr_sin'<br>
/usr/lib/gcc/x86_64-pc-linux-gnu/9.3.0/../../../../x86_64-pc-linux-gnu/bin/ld:<br>
MPFRUtils.cpp:(.text._ZN11__llvm_libc7testing4mpfr10MPFRNumber3sinEf[_ZN11__llvm_libc7testing4mpfr10MPFRNumber3sinEf]+0x50):<br>
undefined reference to `mpfr_clear'<br>
/usr/lib/gcc/x86_64-pc-linux-gnu/9.3.0/../../../../x86_64-pc-linux-gnu/bin/ld:<br>
MPFRUtils.cpp:(.text._ZN11__llvm_libc7testing4mpfr10MPFRNumber3sinEf[_ZN11__llvm_libc7testing4mpfr10MPFRNumber3sinEf]+0x70):<br>
undefined reference to `mpfr_clear'<br>
/usr/lib/gcc/x86_64-pc-linux-gnu/9.3.0/../../../../x86_64-pc-linux-gnu/bin/ld:<br>
MPFRUtils.cpp:(.text._ZN11__llvm_libc7testing4mpfr10MPFRNumber3sinEf[_ZN11__llvm_libc7testing4mpfr10MPFRNumber3sinEf]+0x85):<br>
undefined reference to `mpfr_clear'<br>
clang-10: error: linker command failed with exit code 1 (use -v to see<br>
invocation)<br>
[1930/7570] /usr/lib/llvm/10/bin/clang++  -D_GNU_SOURCE<br>
-D__STDC_CONSTANT_MACROS -D__STDC_FORMAT_MACROS -D__STDC_LIMIT_MACROS<br>
-Iprojects/libc/utils/HdrGen<br>
-I/home/laguest/src/mine-new/llvm/llvm-project/libc/utils/HdrGen<br>
-I/usr/include/libxml2 -Iinclude<br>
-I/home/laguest/src/mine-new/llvm/llvm-project/llvm/include -fPIC<br>
-fvisibility-inlines-hidden -Werror=date-time<br>
-Werror=unguarded-availability-new -Wall -Wextra -Wno-unused-parameter<br>
-Wwrite-strings -Wcast-qual -Wmissing-field-initializers -pedantic<br>
-Wno-long-long -Wimplicit-fallthrough -Wcovered-switch-default<br>
-Wno-noexcept-type -Wnon-virtual-dtor -Wdelete-non-virtual-dtor<br>
-Wstring-conversion -fdiagnostics-color -ffunction-sections<br>
-fdata-sections -O3 -DNDEBUG     -std=c++14 -MD -MT<br>
projects/libc/utils/HdrGen/CMakeFiles/libc-hdrgen.dir/Main.cpp.o -MF<br>
projects/libc/utils/HdrGen/CMakeFiles/libc-hdrgen.dir/Main.cpp.o.d -o<br>
projects/libc/utils/HdrGen/CMakeFiles/libc-hdrgen.dir/Main.cpp.o -c<br>
/home/laguest/src/mine-new/llvm/llvm-project/libc/utils/HdrGen/Main.cpp<br>
[1931/7570] /usr/lib/llvm/10/bin/clang++  -D_GNU_SOURCE<br>
-D__STDC_CONSTANT_MACROS -D__STDC_FORMAT_MACROS -D__STDC_LIMIT_MACROS<br>
-Iprojects/libc/utils/HdrGen<br>
-I/home/laguest/src/mine-new/llvm/llvm-project/libc/utils/HdrGen<br>
-I/usr/include/libxml2 -Iinclude<br>
-I/home/laguest/src/mine-new/llvm/llvm-project/llvm/include -fPIC<br>
-fvisibility-inlines-hidden -Werror=date-time<br>
-Werror=unguarded-availability-new -Wall -Wextra -Wno-unused-parameter<br>
-Wwrite-strings -Wcast-qual -Wmissing-field-initializers -pedantic<br>
-Wno-long-long -Wimplicit-fallthrough -Wcovered-switch-default<br>
-Wno-noexcept-type -Wnon-virtual-dtor -Wdelete-non-virtual-dtor<br>
-Wstring-conversion -fdiagnostics-color -ffunction-sections<br>
-fdata-sections -O3 -DNDEBUG     -std=c++14 -MD -MT<br>
projects/libc/utils/HdrGen/CMakeFiles/libc-hdrgen.dir/PublicAPICommand.cpp.o<br>
-MF<br>
projects/libc/utils/HdrGen/CMakeFiles/libc-hdrgen.dir/PublicAPICommand.cpp.o.d<br>
-o<br>
projects/libc/utils/HdrGen/CMakeFiles/libc-hdrgen.dir/PublicAPICommand.cpp.o<br>
-c<br>
/home/laguest/src/mine-new/llvm/llvm-project/libc/utils/HdrGen/PublicAPICommand.cpp<br>
[1932/7570] /usr/lib/llvm/10/bin/clang++  -D_GNU_SOURCE<br>
-D__STDC_CONSTANT_MACROS -D__STDC_FORMAT_MACROS -D__STDC_LIMIT_MACROS<br>
-Itools/clang/utils/TableGen<br>
-I/home/laguest/src/mine-new/llvm/llvm-project/clang/utils/TableGen<br>
-I/home/laguest/src/mine-new/llvm/llvm-project/clang/include<br>
-Itools/clang/include -I/usr/include/libxml2 -Iinclude<br>
-I/home/laguest/src/mine-new/llvm/llvm-project/llvm/include -fPIC<br>
-fvisibility-inlines-hidden -Werror=date-time<br>
-Werror=unguarded-availability-new -Wall -Wextra -Wno-unused-parameter<br>
-Wwrite-strings -Wcast-qual -Wmissing-field-initializers -pedantic<br>
-Wno-long-long -Wimplicit-fallthrough -Wcovered-switch-default<br>
-Wno-noexcept-type -Wnon-virtual-dtor -Wdelete-non-virtual-dtor<br>
-Wstring-conversion -fdiagnostics-color -ffunction-sections<br>
-fdata-sections -fno-common -Woverloaded-virtual -Wno-nested-anon-types<br>
-O3 -DNDEBUG     -std=c++14 -MD -MT<br>
tools/clang/utils/TableGen/CMakeFiles/clang-tblgen.dir/ClangAttrEmitter.cpp.o<br>
-MF<br>
tools/clang/utils/TableGen/CMakeFiles/clang-tblgen.dir/ClangAttrEmitter.cpp.o.d<br>
-o<br>
tools/clang/utils/TableGen/CMakeFiles/clang-tblgen.dir/ClangAttrEmitter.cpp.o<br>
-c<br>
/home/laguest/src/mine-new/llvm/llvm-project/clang/utils/TableGen/ClangAttrEmitter.cpp<br>
[1933/7570] /usr/lib/llvm/10/bin/clang++  -D_GNU_SOURCE<br>
-D__STDC_CONSTANT_MACROS -D__STDC_FORMAT_MACROS -D__STDC_LIMIT_MACROS<br>
-Ilib/Passes<br>
-I/home/laguest/src/mine-new/llvm/llvm-project/llvm/lib/Passes<br>
-I/usr/include/libxml2 -Iinclude<br>
-I/home/laguest/src/mine-new/llvm/llvm-project/llvm/include -fPIC<br>
-fvisibility-inlines-hidden -Werror=date-time<br>
-Werror=unguarded-availability-new -Wall -Wextra -Wno-unused-parameter<br>
-Wwrite-strings -Wcast-qual -Wmissing-field-initializers -pedantic<br>
-Wno-long-long -Wimplicit-fallthrough -Wcovered-switch-default<br>
-Wno-noexcept-type -Wnon-virtual-dtor -Wdelete-non-virtual-dtor<br>
-Wstring-conversion -fdiagnostics-color -ffunction-sections<br>
-fdata-sections -O3 -DNDEBUG -fPIC     -std=c++14 -MD -MT<br>
lib/Passes/CMakeFiles/LLVMPasses.dir/PassBuilder.cpp.o -MF<br>
lib/Passes/CMakeFiles/LLVMPasses.dir/PassBuilder.cpp.o.d -o<br>
lib/Passes/CMakeFiles/LLVMPasses.dir/PassBuilder.cpp.o -c<br>
/home/laguest/src/mine-new/llvm/llvm-project/llvm/lib/Passes/PassBuilder.cpp<br>
ninja: build stopped: subcommand failed.<br>
<br>
<br>
On 23/04/2020 18:11, Luke A. Guest via llvm-dev wrote:<br>
> I am nuilding that now.<br>
> <br>
> <br>
> CC=clang CXX=clang++ cmake -DCMAKE_INSTALL_PREFIX=$HOME/opt/llvm11-git \<br>
>         -DCMAKE_BUILD_TYPE=Release \<br>
>         -DBUILD_SHARED_LIBS=ON \<br>
>         -DLLVM_ENABLE_EH=ON \<br>
>         -DLLVM_ENABLE_RTTI=ON \<br>
>         -DLLVM_HOST_TRIPLE=x86_64-pc-linux-gnu \<br>
>         -DLLVM_TARGETS_TO_BUILD="AMDGPU;MSP430;WebAssembly;X86" \<br>
>         -DLLVM_EXPERIMENTAL_TARGETS_TO_BUILD="AVR" \<br>
>         -DLLVM_ENABLE_PROJECTS="all" \<br>
>         -G "Ninja" ../llvm<br>
> <br>
> <br>
> On 23/04/2020 18:04, Juneyoung Lee wrote:<br>
>>  Can you try DBUILD_SHARED_LIBS=ON ? I saw the error when I compiled a<br>
>> custom pass with shared libs off & passed it to opt. <br>
_______________________________________________<br>
LLVM Developers mailing list<br>
<a href="mailto:llvm-dev@lists.llvm.org" target="_blank">llvm-dev@lists.llvm.org</a><br>
<a href="https://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-dev" rel="noreferrer" target="_blank">https://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-dev</a><br>
</blockquote></div><br clear="all"><div><br></div>-- <br><div dir="ltr" class="gmail_signature">-Brian</div>