Skip to content

[C++] LLVM deprecation errors when building Gandiva #33003

@asfimport

Description

@asfimport

This just appeared on an unrelated PR:

https://github.com/apache/arrow/actions/runs/3084066139/jobs/4985765033#step:9:1694

In file included from /Users/runner/work/arrow/arrow/cpp/src/gandiva/cast_time.cc:25:
In file included from /Users/runner/work/arrow/arrow/cpp/src/gandiva/exported_funcs.h:20:
In file included from /Users/runner/work/arrow/arrow/cpp/src/gandiva/exported_funcs_registry.h:23:
In file included from /Users/runner/work/arrow/arrow/cpp/src/gandiva/engine.h:29:
/Users/runner/work/arrow/arrow/cpp/src/gandiva/llvm_includes.h:49:62: error: 'getPointerElementType' is deprecated: Deprecated without replacement, see https://llvm.org/docs/OpaquePointers.html for context and migration instructions [-Werror,-Wdeprecated-declarations]
  return builder->CreateGEP(Ptr->getType()->getScalarType()->getPointerElementType(), Ptr,
                                                             ^
/usr/local/opt/llvm/include/llvm/IR/Type.h:377:5: note: 'getPointerElementType' has been explicitly marked deprecated here
  [[deprecated("Deprecated without replacement, see "
    ^

Reporter: Antoine Pitrou / @pitrou
Assignee: Jin Shang / @js8544

Related issues:

Note: This issue was originally created as ARROW-17775. Please see the migration documentation for further details.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions