-
Notifications
You must be signed in to change notification settings - Fork 589
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
Can't compile in Ubunbu 22.04 #33
Comments
@sergio-com-ai I got the same error, have you addressed this issue? |
Please pull the latest code and try again. |
@SF-Zhou Hi, I have tried again but still compiled error, see error page |
It appears to be an Out-of-Memory (OOM) error. Your CI Runner may not have sufficient memory. You could consider reducing the compilation concurrency. |
Hello, thank you for the speedy patch. It was able to compile apache-arrow-cpp but got stuck now on the `test_mgmtd:
I'm using 100GB of memory to avoid OOM. The Arch Linux build still get's stuck with arrow -- but don't worry about this one just yet, let's first try to figure out the Ubuntu 22.04 issue.
I posted the OS info, just in case I might be missing something. I can also spin up an Ubuntu 20 version if needed. Thanks for the support! |
This is strange. You can try deleting the existing build directory and rerunning the compilation command: rm -rf build
sudo apt install -y cmake libuv1-dev liblz4-dev liblzma-dev libdouble-conversion-dev libprocps-dev libdwarf-dev libunwind-dev \
libaio-dev libgflags-dev libgoogle-glog-dev libgtest-dev libgmock-dev clang-format-14 clang-14 clang-tidy-14 lld-14 \
libgoogle-perftools-dev google-perftools libssl-dev gcc-12 g++-12 libboost-all-dev
cmake -S . -B build -DCMAKE_CXX_COMPILER=clang++-14 -DCMAKE_C_COMPILER=clang-14 -DCMAKE_BUILD_TYPE=RelWithDebInfo -DCMAKE_EXPORT_COMPILE_COMMANDS=ON
cmake --build build -j 32 |
Ok did the rm and compile again, and I think it went through. I'll report back tomorrow I'm falling asleep, thank for the support so far. I'll close this ticket for now as the compile went through, will open another ticket for further issues (and the one related to Arch Linux). Thanks for the support! |
It seems we build arrow with unlimited number of jobs. This is not friendly to those who want to try this on small machines with less RAM. Maybe we should apply this patch, to let the sub-make share the jobserver with outer make. --- a/cmake/ApacheArrow.cmake
+++ b/cmake/ApacheArrow.cmake
@@ -36,7 +36,8 @@ ExternalProject_Add(
-DARROW_BUILD_EXAMPLES=OFF \
-DARROW_PARQUET=ON -DARROW_CSV=ON \
-DARROW_WITH_ZSTD=ON -DARROW_WITH_LZ4=ON -DARROW_WITH_ZLIB=ON"
- BUILD_COMMAND bash -x -c "source thirdparty/export.sh && cmake --build . -j"
+ BUILD_COMMAND bash -x -c "source thirdparty/export.sh && cmake --build ."
+ BUILD_JOB_SERVER_AWARE 1
INSTALL_COMMAND cmake --install . --prefix "${PREFIX}"
BUILD_BYPRODUCTS
"${ARROW_RELEASE_BUILD_DIR}/libarrow.a" But Install new cmake in Ubuntu is pretty easy, just |
I’ve merged your patch. Thanks! |
Hi I tried compiling first in Arch Linux and Ubuntu 22.04 and both of them fail at the samepart which is apache-arrow-cpp:
[ 54%] Completed 'apache-arrow-cpp' [ 54%] Built target apache-arrow-cpp gmake: *** [Makefile:146: all] Error 2
I followed the instructions in the repo, and also looked at your build CI/CD for more insights but it just don't want to compile.
In Arch I tried with some package and deactivated apache-arrow-cpp from CMakeLists.txt and it failed at the folly compillation. I am currently installing folly manually to see if that fixes the issue.
Any clues?
The text was updated successfully, but these errors were encountered: