clangir icon indicating copy to clipboard operation
clangir copied to clipboard

Unable to compile due to missing "MakeNaturalAddressForPointer" in CIRGenFunction

Open eZWALT opened this issue 10 months ago • 1 comments

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 aa6e197bd85f7c9309a868cf36131963f61a86cb. 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!

eZWALT avatar Apr 21 '24 17:04 eZWALT

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

bcardosolopes avatar Apr 22 '24 18:04 bcardosolopes