-
Notifications
You must be signed in to change notification settings - Fork 4
Description
Please fix the compilation chain, or give more details of the dependencies tool's version. Thanks!!!
Here is the guide for someone who is not familiar with cmake like me, my experience of the compilation:
ENV:
From dist: latest SDK deb form upmem, gcc-8.3.0, python 3-7, ninja 1.8.2
From source: cmake 3.26
When building the arrow, have the problem of missing PTHREAD.
Solve by adding the following at the top of the build/_deps/arrow-src/cpp/CMakeList.txt
set(CMAKE_THREAD_LIBS_INIT "-lpthread")
set(CMAKE_HAVE_THREADS_LIBRARY 1)
set(CMAKE_USE_WIN32_THREADS_INIT 0)
set(CMAKE_USE_PTHREADS_INIT 1)
set(THREADS_PREFER_PTHREAD_FLAG ON)
Then there is an issue of unrecognizing the -Qunused-arguments, I think it is because the compiler version, in order to save the life, just sed and removed all the flags in the arrow-src,
$find . -type f -exec sed -i 's/-Wunused-arguments/ /g' {} ';'
Finally, it passed the compilation.