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
FPyLLL Strategies inside SageMath binaries #28664
Comments
comment:1
Seems a precompiled Sage binary also cannot load strategy files stored elsewhere, so something is really broken there: ┌────────────────────────────────────────────────────────────────────┐
│ SageMath version 8.9, Release Date: 2019-09-29 │
│ Using Python 2.7.15. Type "help()" for help. │
└────────────────────────────────────────────────────────────────────┘
sage: from fpylll import *
sage: BKZ.DEFAULT_STRATEGY_PATH
'/bulk/home/malb/software/SageMath/local/share/fplll/strategieparse error - unpreprocessing_blpruning_parameteError: gptr == nulls'
sage: BKZ.DEFAULT_STRATEGY
'/bulk/home/malb/software/SageMath/local/share/fplll/strategieparse error - unpreprocessing_blpruning_parameteError: gptr == nulls/default.json'
sage: print load_strategies_json("/home/malb/projects/lattices/fplll/strategies/default.json")[60]
Strategy< 60, (), 1.00-1.00> The above should print See fplll/fpylll#159 Any ideas? |
comment:2
This looks like a bug in binary-pkg which looks for |
comment:3
Adding -std=c++11 to CXXFLAGS forces the C++ compiler to enforce C++11 which enforces that std::string terminate with From my limited testing, this fixes the issue. |
comment:4
Oh, thanks! I'm not clear though on where
which should set |
comment:5
File |
comment:6
@malb, the updated macro at https://github.com/fplll/fplll/pull/394/files forces the |
Changed upstream from Reported upstream. Developers deny it's a bug. to Reported upstream. Developers acknowledge bug. |
comment:7
Thank you! I'll wait for the fallout of the 5.3.0 release for a bit and then will cut a new release 5.3.1 with that fix in. |
Changed upstream from Reported upstream. Developers acknowledge bug. to Fixed upstream, but not in a stable release. |
comment:9
Fixed in FPLLL 5.3.1 |
Changed upstream from Fixed upstream, but not in a stable release. to Fixed upstream, in a later stable release. |
comment:10
See #28886 for updates of FP(y)LLL which should fix this issue. |
comment:11
Ticket retargeted after milestone closed |
comment:12
Moving tickets to milestone sage-9.2 based on a review of last modification date, branch status, and severity. |
This comment has been minimized.
This comment has been minimized.
comment:13
On Debian 10 buster, after downloading Sage 9.1 as follows:
and launching Sage as follows:
running the following two commands:
still gives the same incorrect result:
while with Sage built from source on the same machine:
So even after #28886 Sage built from source gets this right |
comment:14
What causes this difference between the buildbot-produced binaries |
comment:15
Is fplll built with C++11 in the Sage 9.1 binaries? |
comment:17
Moving to 9.4, as 9.3 has been released. |
Reviewer: Dima Pasechnik |
On Debian 8, after downloading Sage 8.8 as follows:
and launching Sage as follows:
running the following commands:
gives an incorrect result:
The output should be a filename but it's not.
A build from source doesn't have that problem.
Reported upstream:
Upstream: Fixed upstream, in a later stable release.
CC: @isuruf @malb @slel @vbraun @dimpase
Component: packages: standard
Reviewer: Dima Pasechnik
Issue created by migration from https://trac.sagemath.org/ticket/28664
The text was updated successfully, but these errors were encountered: