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

[GLib] Build failed #39230

Closed
llama90 opened this issue Dec 14, 2023 · 2 comments
Closed

[GLib] Build failed #39230

llama90 opened this issue Dec 14, 2023 · 2 comments

Comments

@llama90
Copy link
Contributor

llama90 commented Dec 14, 2023

Describe the bug, including details regarding any error messages, version, and platform.

When building glib, an error related to Gandiva is occurring.

auto gandiva_function_registry = gandiva::default_function_registry();

$ meson compile -C c_glib.build
INFO: autodetecting backend as ninja
INFO: calculating backend command to run: /opt/homebrew/bin/ninja -C /Users/lama/workspace/arrow-latest/c_glib.build
ninja: Entering directory `/Users/lama/workspace/arrow-latest/c_glib.build'
[1/27] Linking target arrow-glib/libarrow-glib.1500.dylib
ld: warning: dylib (/opt/homebrew/Cellar/apache-arrow/14.0.1_2/lib/libarrow.dylib) was built for newer macOS version (14.0) than being linked (13.3)
ld: warning: dylib (/opt/homebrew/Cellar/apache-arrow/14.0.1_2/lib/libarrow_acero.dylib) was built for newer macOS version (14.0) than being linked (13.3)
[2/27] Compiling C++ object gandiva-glib/libgandiva-glib.1500.dylib.p/function-registry.cpp.o
FAILED: gandiva-glib/libgandiva-glib.1500.dylib.p/function-registry.cpp.o
ccache c++ -Igandiva-glib/libgandiva-glib.1500.dylib.p -I. -I../c_glib -I/opt/homebrew/Cellar/apache-arrow/14.0.1_2/include -I/opt/homebrew/Cellar/glib/2.78.3/include -I/opt/homebrew/Cellar/glib/2.78.3/include/glib-2.0 -I/opt/homebrew/Cellar/glib/2.78.3/lib/glib-2.0/include -I/opt/homebrew/opt/gettext/include -I/opt/homebrew/Cellar/pcre2/10.42/include -I/Library/Developer/CommandLineTools/SDKs/MacOSX13.sdk/usr/include/ffi -fdiagnostics-color=always -Wall -Winvalid-pch -std=c++17 -O3 -Wmissing-declarations -MD -MQ gandiva-glib/libgandiva-glib.1500.dylib.p/function-registry.cpp.o -MF gandiva-glib/libgandiva-glib.1500.dylib.p/function-registry.cpp.o.d -o gandiva-glib/libgandiva-glib.1500.dylib.p/function-registry.cpp.o -c ../c_glib/gandiva-glib/function-registry.cpp
../c_glib/gandiva-glib/function-registry.cpp:115:45: error: no member named 'default_function_registry' in namespace 'gandiva'
  auto gandiva_function_registry = gandiva::default_function_registry();
                                   ~~~~~~~~~^
1 error generated.
[4/27] Generating arrow-glib/Arrow-1.0.gir with a custom command (wrapped by meson to set env)
ld: warning: dylib (/opt/homebrew/Cellar/apache-arrow/14.0.1_2/lib/libarrow_acero.dylib) was built for newer macOS version (14.0) than being linked (13.3)
ld: warning: dylib (/opt/homebrew/Cellar/apache-arrow/14.0.1_2/lib/libarrow.dylib) was built for newer macOS version (14.0) than being linked (13.3)
ninja: build stopped: subcommand failed.

Component(s)

C++ - Gandiva

@raulcd
Copy link
Member

raulcd commented Dec 14, 2023

You seem to be using Apache Arrow 14.0.1 (14.0.1_2 based on the logs) but the support for external function registry on gandiva was added on main targeting 15.0.0 from what I can see on the following issue: #37753

Could this be the issue?

@llama90
Copy link
Contributor Author

llama90 commented Dec 14, 2023

@raulcd Oh... You are right.

I am currently working on removing the legacy CastTo function.

While building glib locally, I encountered the error c_glib/meson.build:80:10: ERROR: Dependency "arrow" not found, tried pkgconfig, framework and cmake. To resolve this issue in my Mac environment, I installed Apache Arrow using the command brew install apache-arrow.

Upon examining the failing workflow in PR, it seems that the existing tests are failing due to the new Cast operation.

I didn't check carefully enough. Thank you for pointing that out.

@llama90 llama90 closed this as completed Dec 14, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants