-
Notifications
You must be signed in to change notification settings - Fork 12
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
Build of Souffle 2.1 fails on macOS 11.5.2 #7
Comments
This is very strange. Which compiler do you use for the compilation? Is it a new MAC OS X / processor? |
It is on a MBP'16 2019 Intel model. |
Try to install manually and check whether this works. |
I tried above and it fails in another place:
|
Oh - you haven't installed gcc. Could you install gcc and openMP? |
I have |
Any updates on this issue? I am facing the same issue on the lastest macOS |
Would you like to help? |
Absolutely, please let me know how I can help. |
Ok, I was able to get this to work by looking at the old build instructions from v2.0.2. The issue is most likely with Apple's clang gcc/g++ and with brew's version. Try this:
brew reinstall gcc
brew link bison --force
brew link libffi --force
export PKG_CONFIG_PATH=/usr/local/opt/libffi/lib/pkgconfig/ You may get an error here saying
git clone --branch 2.1 https://github.com/souffle-lang/souffle
cd souffle If you have previously cloned the repo,
export CC=gcc-11
export CXX=g++-11
cmake -S . -B build -DCMAKE_INSTALL_PREFIX=<path/to/install/dir>
cmake --build build --target install -j8 |
That is great! Basically, we need to rewire the cmake scripts to pick up gcc rather clang. |
We could also set the flags as with
|
We would need to add these flags here: homebrew-souffle/Formula/souffle.rb Line 21 in ce73f57
And add the gcc/g++ dependency. Would you like to create a pull-request for this? |
The GCC dependencies needs to be added here: homebrew-souffle/Formula/souffle.rb Line 10 in ce73f57
|
Thanks! Let me send you a PR with this. |
Hi @b-scholz, I have updated the formula. However, I am having some issue which copying over bash completion: ...
-- Installing: /etc/bash_completion.d/souffle
CMake Error at cmake_install.cmake:64 (file):
file INSTALL cannot copy file
"/tmp/souffle-20211206-11911-13e0thm/souffle-2.1/debian/souffle.bash-completion"
to "/etc/bash_completion.d/souffle": Operation not permitted. The problem seems to lie in the We can update the HEAD version of souffle-lang/souffle to update the CMakeLists.txt (Line 100) with Let me how you want me proceed next? |
Let's merge what you have and let's continue. Completion seems to have a problem. |
Great, I have submitted a PR (#2146) at souffle-lang/souffle turning off the bash completion there. This will work as soon as that has also been updated. |
The text was updated successfully, but these errors were encountered: