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>