-
Notifications
You must be signed in to change notification settings - Fork 43
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 in v0.12.0 #143
Comments
To reproduce on Ubuntu 22.04 (at least it works on my machine [famous last words]): set -eo pipefail
# install OpenFHE
git clone [email protected]:openfheorg/openfhe-development.git
cd openfhe-development
mkdir build && cd build
cmake .. -DCMAKE_INSTALL_PREFIX=../install \
-DBUILD_BENCHMARKS=OFF -DBUILD_UNITTESTS=OFF \
-DWITH_BE2=ON -DWITH_BE4=ON
make -j 4
make install
cd ../..
# install libcxxwrap-julia
git clone [email protected]:JuliaInterop/libcxxwrap-julia.git
cd libcxxwrap-julia
git checkout v0.12.0
mkdir build && cd build
cmake .. -DCMAKE_INSTALL_PREFIX=../install
make -j 4
make install
cd ../..
# install OpenFHE-julia
git clone [email protected]:sloede/openfhe-julia.git
cd openfhe-julia
mkdir build && cd build
prefix_path="$(pwd)/../../libcxxwrap-julia/install/;$(pwd)/../../openfhe-development/install/"
cmake .. -DCMAKE_INSTALL_PREFIX=../install -DCMAKE_PREFIX_PATH="$prefix_path"
make -j 4
make install
cd ../..
# install OpenFHE.jl
git clone [email protected]:sloede/OpenFHE.jl.git
cd OpenFHE.jl
mkdir run && cd run
libopenfhe_julia="$(dirname $(dirname $(pwd)))/openfhe-julia/build/lib/libopenfhe_julia.so"
cat << EOF >> LocalPreferences.toml
[OpenFHE]
libopenfhe_julia = "$libopenfhe_julia"
EOF
cd ../..
julia --project=OpenFHE.jl/run -e 'using Pkg; Pkg.develop(path="OpenFHE.jl"); Pkg.instantiate()' |
@barche Any idea what is going on here and/or what to do to fix it? Right now, we continue to build our JLLs against v0.11.2, but I don't believe that this is a good permanent solution... |
Sorry, I should make this more clear somewhere: when there is a breaking change in |
I am completely befuddled by this:
With libopenfhe_julia_jll.jl, which is used by OpenFHE.jl and which I just released a new version for, I now get the following error:
The weird thing is that it seems like a Heisenbug: If I build this locally and downgrade the version of the openfhe-julia library or of libcxxwrap-julia (I get the error withmain
), it seems to work again, even if I afterwards update both libraries to the latest respective versions again.EDIT: I can confirm that it occurs with libcxxwrap-julia v0.12.0 but not with v0.11.2.
@barche Have you seen such an error before and have maybe an inkling about where I should start looking for a bug?
The text was updated successfully, but these errors were encountered: