Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Unable to compile due to missing "MakeNaturalAddressForPointer" in CIRGenFunction #558

Open
eZWALT opened this issue Apr 21, 2024 · 1 comment

Comments

@eZWALT
Copy link
Contributor

eZWALT commented Apr 21, 2024

Yesterday I've experienced some issues trying to locally compile ClangIR due to the changes to the function buildPointerWithAlingment (File CIRGenExpr.cpp) that were introduced 2 days ago in commit aa6e197. Is this expected behavior @bcardosolopes and maybe is an issue with my local setup or does this make sense? The error that I'm getting is the following.

[1/19] Building CXX object tools/clang/lib/CIR/CodeGen/CMakeFiles/obj.clangCIR.dir/CIRGenExpr.cpp.o
FAILED: tools/clang/lib/CIR/CodeGen/CMakeFiles/obj.clangCIR.dir/CIRGenExpr.cpp.o 
/usr/bin/clang++ -DBUILD_EXAMPLES -DGTEST_HAS_RTTI=0 -D_DEBUG -D_GLIBCXX_ASSERTIONS -D_GNU_SOURCE -D__STDC_CONSTANT_MACROS -D__STDC_FORMAT_MACROS -D__STDC_LIMIT_MACROS -I/home/walterjtv/Escritorio/Q8/TFG/clangir-build/tools/clang/lib/CIR/CodeGen -I/home/walterjtv/Escritorio/Q8/TFG/clangir/clang/lib/CIR/CodeGen -I/home/walterjtv/Escritorio/Q8/TFG/clangir/clang/include -I/home/walterjtv/Escritorio/Q8/TFG/clangir-build/tools/clang/include -I/home/walterjtv/Escritorio/Q8/TFG/clangir-build/include -I/home/walterjtv/Escritorio/Q8/TFG/clangir/llvm/include -I/home/walterjtv/Escritorio/Q8/TFG/clangir/llvm/../mlir/include -I/home/walterjtv/Escritorio/Q8/TFG/clangir-build/tools/mlir/include -fPIC -fno-semantic-interposition -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 -fno-common -Woverloaded-virtual -Wno-nested-anon-types -g  -fno-exceptions -funwind-tables -fno-rtti -gsplit-dwarf -std=c++17 -MD -MT tools/clang/lib/CIR/CodeGen/CMakeFiles/obj.clangCIR.dir/CIRGenExpr.cpp.o -MF tools/clang/lib/CIR/CodeGen/CMakeFiles/obj.clangCIR.dir/CIRGenExpr.cpp.o.d -o tools/clang/lib/CIR/CodeGen/CMakeFiles/obj.clangCIR.dir/CIRGenExpr.cpp.o -c /home/walterjtv/Escritorio/Q8/TFG/clangir/clang/lib/CIR/CodeGen/CIRGenExpr.cpp
/home/walterjtv/Escritorio/Q8/TFG/clangir/clang/lib/CIR/CodeGen/CIRGenExpr.cpp:232:14: error: no member named 'makeNaturalAddressForPointer' in 'cir::CIRGenFunction'
  return CGF.makeNaturalAddressForPointer(
         ~~~ ^
1 error generated.
ninja: build stopped: subcommand failed.

I truly appreciate the assistance!

@bcardosolopes
Copy link
Member

Interesting, I'm not getting that (nor the gituhub builders). Is this from a clean build?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants