Building error
Open
Nobody has claimed this yet.
- Dominant language
- C++
- Stars
- 624
- Forks
- 170
- PR merge metrics
- No merged PRs in 30d
Description
When I install Polygeist using the first method, I met errors when buidling MLIR.
FAILED: tools/mlir/lib/Dialect/Math/IR/CMakeFiles/obj.MLIRMathDialect.dir/MathOps.cpp.o
/usr/bin/clang++ -DGTEST_HAS_RTTI=0 -DMLIR_CUDA_CONVERSIONS_ENABLED=0 -DMLIR_ROCM_CONVERSIONS_ENABLED=0 -D_DEBUG -D__STDC_CONSTANT_MACROS -D__STDC_FORMAT_MACROS -D__STDC_LIMIT_MACROS -I/Users/mxch/Workdir/Polygeist/llvm-project/build/tools/mlir/lib/Dialect/Math/IR -I/Users/mxch/Workdir/Polygeist/llvm-project/mlir/lib/Dialect/Math/IR -I/Users/mxch/Workdir/Polygeist/llvm-project/build/include -I/Users/mxch/Workdir/Polygeist/llvm-project/llvm/include -I/Users/mxch/Workdir/Polygeist/llvm-project/mlir/include -I/Users/mxch/Workdir/Polygeist/llvm-project/build/tools/mlir/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 -Wc++98-compat-extra-semi -Wimplicit-fallthrough -Wcovered-switch-default -Wno-noexcept-type -Wnon-virtual-dtor -Wdelete-non-virtual-dtor -Wsuggest-override -Wstring-conversion -Wmisleading-indentation -Wctad-maybe-unsupported -fdiagnostics-color -Werror=mismatched-tags -Werror=global-constructors -g -arch arm64 -isysroot /Library/Developer/CommandLineTools/SDKs/MacOSX12.3.sdk -fno-exceptions -fno-rtti -std=c++17 -MD -MT tools/mlir/lib/Dialect/Math/IR/CMakeFiles/obj.MLIRMathDialect.dir/MathOps.cpp.o -MF tools/mlir/lib/Dialect/Math/IR/CMakeFiles/obj.MLIRMathDialect.dir/MathOps.cpp.o.d -o tools/mlir/lib/Dialect/Math/IR/CMakeFiles/obj.MLIRMathDialect.dir/MathOps.cpp.o -c /Users/mxch/Workdir/Polygeist/llvm-project/mlir/lib/Dialect/Math/IR/MathOps.cpp
/Users/mxch/Workdir/Polygeist/llvm-project/mlir/lib/Dialect/Math/IR/MathOps.cpp:427:26: error: use of undeclared identifier 'roundeven'
return APFloat(roundeven(a.convertToDouble()));
Can I get some help?
Contributor guide
No contributing guide indexed for this repository
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Reproduce the first Polygeist installation method on the reported macOS arm64 setup. Start with llvm-project/mlir/lib/Dialect/Math/IR/MathOps.cpp around line 427 and inspect the MLIR build failure for the undeclared roundeven identifier. Done means the MLIR build completes successfully on the affected setup.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- cmake, cpp
- Domain
- build-system, compilers
- Issue type
- Bug
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Stale
- Clarity
- Needs clarification
- Newbie friendliness
- 25/100