Closed bjodah closed 4 months ago
Since the the undefined variables only appear in FLINT_ASSERT
macros, I simply patch mod_p_harvey.c
using sed
:
$ sed -i '/ FLINT_ASSERT/d' /build/arb-2.22.1/bernoulli/mod_p_harvey.c
so no rush to fix this. I did see quite a few warnings during compilation (as seen in the log), but I obviously don't have the expertise to judge if any of those are worrisome or not.
Thanks for reporting.
You're right, it's just the asserts that are broken (I have not tested with asserts enabled). This should be easy to fix.
The other warnings should be harmless, but would be good to fix to keep things clean.
The asserts should be fixed now.
Hi, and thank you for your continued work on arb and flint!
I do get some compile errors (use of undeclared identifier) in
bernoulli/mod_p_harvey.c
.I tried to compile arb 2.22.1 and flint 2.8.4 using clang-13 on Ubuntu 20.04, here's the script:
build-flint-arb.sh
```bash #!/bin/bash set -euxo pipefail curl -Ls https://github.com/wbhart/flint2/archive/refs/tags/v2.8.4.tar.gz | tar xz -C /build/ cmake \ -DCMAKE_BUILD_TYPE=Debug \ -DCMAKE_INSTALL_PREFIX=/opt/flint2-2.8.4-debug \ -DCMAKE_EXPORT_COMPILE_COMMANDS=ON \ -DCMAKE_GENERATOR=Ninja \ -S /build/flint2-2.8.4 \ -B /build/flint2-2.8.4-debug cmake --build /build/flint2-2.8.4-debug cmake --install /build/flint2-2.8.4-debug ln -s /build/flint2-2.8.4-debug/compile_commands.json /opt/flint2-2.8.4-debug curl -Ls https://github.com/fredrik-johansson/arb/archive/refs/tags/2.22.1.tar.gz | tar xz -C /build/ CMAKE_PREFIX_PATH=/opt/flint2-2.8.4-debug/ cmake \ -DCMAKE_BUILD_TYPE=Debug \ -DCMAKE_INSTALL_PREFIX=/opt/arb-2.22.1-debug \ -DCMAKE_EXPORT_COMPILE_COMMANDS=ON \ -DCMAKE_GENERATOR=Ninja \ -S /build/arb-2.22.1 \ -B /build/arb-2.22.1-debug cmake --build /build/arb-2.22.1-debug cmake --install /build/arb-2.22.1-debug ln -s /build/arb-2.22.1-debug/compile_commands.json /opt/arb-2.22.1-debug ```Output log (/.../ indicates where I've cut out lines with no warnings between them)