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

Error building the porject #12

Open
owenthereal opened this issue Nov 10, 2022 · 3 comments
Open

Error building the porject #12

owenthereal opened this issue Nov 10, 2022 · 3 comments

Comments

@owenthereal
Copy link

owenthereal commented Nov 10, 2022

Hello,

I got the following error when building your project with arrow 10.0.0. I followed https://github.com/apache/arrow/blob/apache-arrow-10.0.0/docs/source/developers/cpp/building.rst#manual-configuration to manually build arrow. Here are the errors: https://gist.github.com/owenthereal/0ee2d6ed6d49d3a7b34e06012732724a

I would appreciate any help!

@hrkuma
Copy link

hrkuma commented Nov 11, 2022

Thank you for reporting.

Currently I did not try this version with arrow 10.0.0.

I see the version does not support c++11, so it maybe the cause of your errors.
https://arrow.apache.org/blog/2022/10/31/10.0.0-release/

C++11 is no longer supported
The Arrow C++ codebase has moved to C++17 as its language compatibility standard (ARROW-17545). This means Arrow C++, including its header files, now requires a C++17-compliant compiler and standard library to be used. Such compilers are widely available on most platforms.

Compatibility backports of C++14 and C++17 features, such as std::string_view or std::variant, have been removed in favor of the standard library version of these APIs (ARROW-17546). This will also make integration of Arrow C++ with other codebases easier.

It is expected that the Arrow C++ codebase will be gradually modernized to use C++17 features in subsequent releases, when the need arises.

If your compiler supports c++14 or above, I think you can try the build with modifying Makefile.

From

override PG_CXXFLAGS += -std=c++11 -O3

To (ex. c++14)

override PG_CXXFLAGS += -std=c++14 -O3

@ilmaruk
Copy link

ilmaruk commented Feb 23, 2023

What @hrkuma suggests can also be achieved without modifying Makefile:

make install CCFLAGS=-std=c++14

c++14 still didn't work for me, though, as the version of libarrow I am using was compiled with c++17, so I'm using

make install CCFLAGS=-std=c++17

which works, at least up to a certain point; I haven't yet managed to fully build, though, but this is another story.

@jorsol
Copy link

jorsol commented Aug 23, 2023

Is there a way to know which version of Arrow is supported?

Arrow has frequent releases every few months, so unless a specific version is used the project won't build correctly, is frustrating trying to guess which version will work.

At least AWS SDK for C++ has a "Confirmed version is 1.9.263" note.

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

4 participants