Skip to content
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

sci-mathematics/sage-4.7-r1 won't compile with sci-libs/fplll-3.1.1 #71

Closed
disi opened this issue Jun 26, 2011 · 8 comments
Closed

sci-mathematics/sage-4.7-r1 won't compile with sci-libs/fplll-3.1.1 #71

disi opened this issue Jun 26, 2011 · 8 comments

Comments

@disi
Copy link

disi commented Jun 26, 2011

build.log: http://ompldr.org/vOThrcg

masking =sci-libs/fplll-3.1.1 and building with sci-libs/fplll-3.0.12-r2 works as a workaround...

@kiwifb
Copy link
Collaborator

kiwifb commented Jun 26, 2011

thank you for the report, here and in the forum (including the private message) I'll look into it ASAP. I would think Christopher tested it first so we'll have to see what's wrong in your case.

@kiwifb
Copy link
Collaborator

kiwifb commented Jun 26, 2011

you are right, I think we don't have the right headers. sage runs fine if you change the .so for fplll but is failling to build, unless there is something missing in the fplll install.

@disi
Copy link
Author

disi commented Jun 26, 2011

So we have to mask it for install of sage and then unmask it and upgrade again...

I am going to test tomorrow to build sage with sci-libs/fplll-3.1.1 again
At the moment the machine runs an "emerge -e world", which I wanted to run anyway(fairly fresh installation)

@kiwifb
Copy link
Collaborator

kiwifb commented Jun 26, 2011

Upgrading is not necessary. I have masked it for now. It is useless if you cannot build against it even if it looks fine at run time.

@kiwifb
Copy link
Collaborator

kiwifb commented Jun 26, 2011

Tried a few simple things in the ebuild:

    # update to fplll-3.1.1
    sed -i "s:fplll/fplll.h:fplll.h:" \
        -e module_list.py \
        -e sage/libs/fplll/fplll.pxi

But it didn't work. Headers have changed a bit too much. So keeping it masked for now.

@kiwifb
Copy link
Collaborator

kiwifb commented Jun 26, 2011

For the record the juicy bits (even after above changes) is:

sage/libs/fplll/fplll.cpp:671:3: error: 'ZZ_mat' does not name a type
sage/libs/fplll/fplll.cpp:1902:60: error: 'ZZ_mat' was not declared in this scope
sage/libs/fplll/fplll.cpp:1902:72: error: expected primary-expression before '>' token
sage/libs/fplll/fplll.cpp:1902:75: error: expected primary-expression before ')' token
sage/libs/fplll/fplll.cpp: In function 'int __pyx_pf_4sage_4libs_5fplll_5fplll_6FP_LLL___cinit__(PyObject*, PyObject*, PyObject*)':
sage/libs/fplll/fplll.cpp:2020:3: error: 'Z_NR' was not declared in this scope
sage/libs/fplll/fplll.cpp:2020:13: error: expected primary-expression before '>' token
sage/libs/fplll/fplll.cpp:2020:16: error: '__pyx_v_t' was not declared in this scope
sage/libs/fplll/fplll.cpp:2066:72: error: 'struct __pyx_obj_4sage_4libs_5fplll_5fplll_FP_LLL' has no member named '_lattice'
sage/libs/fplll/fplll.cpp:2066:87: error: expected type-specifier before 'ZZ_mat'
sage/libs/fplll/fplll.cpp:2066:87: error: expected ';' before 'ZZ_mat'
sage/libs/fplll/fplll.cpp:2095:23: error: expected type-specifier before 'Z_NR'
sage/libs/fplll/fplll.cpp:2095:23: error: expected ';' before 'Z_NR'
sage/libs/fplll/fplll.cpp:2113:76: error: 'struct __pyx_obj_4sage_4libs_5fplll_5fplll_FP_LLL' has no member named '_lattice'
sage/libs/fplll/fplll.cpp:2122:24: error: type '' argument given to 'delete', expected pointer
sage/libs/fplll/fplll.cpp: In function 'void __pyx_pf_4sage_4libs_5fplll_5fplll_6FP_LLL_1__dealloc__(PyObject*)':
sage/libs/fplll/fplll.cpp:2155:80: error: 'struct __pyx_obj_4sage_4libs_5fplll_5fplll_FP_LLL' has no member named '_lattice'
sage/libs/fplll/fplll.cpp: In function 'PyObject* __pyx_pf_4sage_4libs_5fplll_5fplll_6FP_LLL_2__repr__(PyObject*)':
sage/libs/fplll/fplll.cpp:2186:99: error: 'struct __pyx_obj_4sage_4libs_5fplll_5fplll_FP_LLL' has no member named '_lattice'
sage/libs/fplll/fplll.cpp:2188:99: error: 'struct __pyx_obj_4sage_4libs_5fplll_5fplll_FP_LLL' has no member named '_lattice'
sage/libs/fplll/fplll.cpp: In function 'PyObject* __pyx_pf_4sage_4libs_5fplll_5fplll_6FP_LLL_3_sage_(PyObject*, PyObject*)':
sage/libs/fplll/fplll.cpp:2242:126: error: 'struct __pyx_obj_4sage_4libs_5fplll_5fplll_FP_LLL' has no member named '_lattice'
sage/libs/fplll/fplll.cpp:2242:134: error: '__pyx_f_4sage_4libs_5fplll_5fplll_to_sage' cannot be used as a function
sage/libs/fplll/fplll.cpp: In function 'PyObject* __pyx_pf_4sage_4libs_5fplll_5fplll_6FP_LLL_4wrapper(PyObject*, PyObject*, PyObject*)':
sage/libs/fplll/fplll.cpp:2436:3: error: 'wrapper' was not declared in this scope
sage/libs/fplll/fplll.cpp:2436:12: error: '__pyx_v_w' was not declared in this scope
sage/libs/fplll/fplll.cpp:2553:19: error: expected type-specifier before 'wrapper'
sage/libs/fplll/fplll.cpp:2553:19: error: expected ';' before 'wrapper'
sage/libs/fplll/fplll.cpp:2589:20: error: type '' argument given to 'delete', expected pointer
sage/libs/fplll/fplll.cpp: In function 'PyObject* __pyx_pf_4sage_4libs_5fplll_5fplll_6FP_LLL_5proved(PyObject*, PyObject*, PyObject*)':
sage/libs/fplll/fplll.cpp:2648:3: error: 'proved' was not declared in this scope
sage/libs/fplll/fplll.cpp:2648:15: error: expected primary-expression before ',' token
sage/libs/fplll/fplll.cpp:2648:16: error: expected primary-expression before 'double'
sage/libs/fplll/fplll.cpp:2648:16: error: expected ';' before 'double'
sage/libs/fplll/fplll.cpp:2649:15: error: expected primary-expression before ',' token
sage/libs/fplll/fplll.cpp:2649:22: error: expected primary-expression before '>' token
sage/libs/fplll/fplll.cpp:2649:25: error: '__pyx_v_pmpfr' was not declared in this scope
sage/libs/fplll/fplll.cpp:2650:15: error: expected primary-expression before ',' token
sage/libs/fplll/fplll.cpp:2650:21: error: expected primary-expression before '>' token
sage/libs/fplll/fplll.cpp:2650:24: error: '__pyx_v_pdpe' was not declared in this scope
sage/libs/fplll/fplll.cpp:2816:5: error: '__pyx_v_pdouble' was not declared in this scope
sage/libs/fplll/fplll.cpp:2816:27: error: expected type-specifier before 'proved'
sage/libs/fplll/fplll.cpp:2816:27: error: expected ';' before 'proved'
sage/libs/fplll/fplll.cpp:2852:28: error: type '' argument given to 'delete', expected pointer
sage/libs/fplll/fplll.cpp:2876:24: error: expected type-specifier before 'proved'
sage/libs/fplll/fplll.cpp:2876:24: error: expected ';' before 'proved'
sage/libs/fplll/fplll.cpp:2912:25: error: type '' argument given to 'delete', expected pointer
sage/libs/fplll/fplll.cpp:2936:25: error: expected type-specifier before 'proved'
sage/libs/fplll/fplll.cpp:2936:25: error: expected ';' before 'proved'
sage/libs/fplll/fplll.cpp:2972:26: error: type '' argument given to 'delete', expected pointer
sage/libs/fplll/fplll.cpp: In function 'PyObject* __pyx_pf_4sage_4libs_5fplll_5fplll_6FP_LLL_6fast(PyObject*, PyObject*, PyObject*)':
sage/libs/fplll/fplll.cpp:3035:3: error: 'fast' was not declared in this scope
sage/libs/fplll/fplll.cpp:3035:13: error: expected primary-expression before ',' token
sage/libs/fplll/fplll.cpp:3035:14: error: expected primary-expression before 'double'
sage/libs/fplll/fplll.cpp:3035:14: error: expected ';' before 'double'
sage/libs/fplll/fplll.cpp:3160:3: error: '__pyx_v_pdouble' was not declared in this scope
sage/libs/fplll/fplll.cpp:3160:25: error: expected type-specifier before 'fast'
sage/libs/fplll/fplll.cpp:3160:25: error: expected ';' before 'fast'
sage/libs/fplll/fplll.cpp:3196:26: error: type '' argument given to 'delete', expected pointer
sage/libs/fplll/fplll.cpp: In function 'PyObject* __pyx_pf_4sage_4libs_5fplll_5fplll_6FP_LLL_7fast_early_red(PyObject*, PyObject*, PyObject*)':
sage/libs/fplll/fplll.cpp:3225:3: error: 'fast_early_red' was not declared in this scope
sage/libs/fplll/fplll.cpp:3225:23: error: expected primary-expression before ',' token
sage/libs/fplll/fplll.cpp:3225:24: error: expected primary-expression before 'double'
sage/libs/fplll/fplll.cpp:3225:24: error: expected ';' before 'double'
sage/libs/fplll/fplll.cpp:3349:3: error: '__pyx_v_pdouble' was not declared in this scope
sage/libs/fplll/fplll.cpp:3349:25: error: expected type-specifier before 'fast_early_red'
sage/libs/fplll/fplll.cpp:3349:25: error: expected ';' before 'fast_early_red'
sage/libs/fplll/fplll.cpp:3385:26: error: type '' argument given to 'delete', expected pointer
sage/libs/fplll/fplll.cpp: In function 'PyObject* __pyx_pf_4sage_4libs_5fplll_5fplll_6FP_LLL_8heuristic(PyObject*, PyObject*, PyObject*)':
sage/libs/fplll/fplll.cpp:3413:3: error: 'heuristic' was not declared in this scope
sage/libs/fplll/fplll.cpp:3413:18: error: expected primary-expression before ',' token
sage/libs/fplll/fplll.cpp:3413:19: error: expected primary-expression before 'double'
sage/libs/fplll/fplll.cpp:3413:19: error: expected ';' before 'double'
sage/libs/fplll/fplll.cpp:3414:18: error: expected primary-expression before ',' token
sage/libs/fplll/fplll.cpp:3414:25: error: expected primary-expression before '>' token
sage/libs/fplll/fplll.cpp:3414:28: error: '__pyx_v_pmpfr' was not declared in this scope
sage/libs/fplll/fplll.cpp:3415:18: error: expected primary-expression before ',' token
sage/libs/fplll/fplll.cpp:3415:24: error: expected primary-expression before '>' token
sage/libs/fplll/fplll.cpp:3415:27: error: '__pyx_v_pdpe' was not declared in this scope
sage/libs/fplll/fplll.cpp:3580:5: error: '__pyx_v_pdouble' was not declared in this scope
sage/libs/fplll/fplll.cpp:3580:27: error: expected type-specifier before 'heuristic'
sage/libs/fplll/fplll.cpp:3580:27: error: expected ';' before 'heuristic'
sage/libs/fplll/fplll.cpp:3616:28: error: type '' argument given to 'delete', expected pointer
sage/libs/fplll/fplll.cpp:3640:24: error: expected type-specifier before 'heuristic'
sage/libs/fplll/fplll.cpp:3640:24: error: expected ';' before 'heuristic'
sage/libs/fplll/fplll.cpp:3676:25: error: type '' argument given to 'delete', expected pointer
sage/libs/fplll/fplll.cpp:3700:25: error: expected type-specifier before 'heuristic'
sage/libs/fplll/fplll.cpp:3700:25: error: expected ';' before 'heuristic'
sage/libs/fplll/fplll.cpp:3736:26: error: type '' argument given to 'delete', expected pointer
sage/libs/fplll/fplll.cpp: In function 'PyObject* __pyx_pf_4sage_4libs_5fplll_5fplll_6FP_LLL_9heuristic_early_red(PyObject*, PyObject*, PyObject*)':
sage/libs/fplll/fplll.cpp:3769:3: error: 'heuristic_early_red' was not declared in this scope
sage/libs/fplll/fplll.cpp:3769:28: error: expected primary-expression before ',' token
sage/libs/fplll/fplll.cpp:3769:29: error: expected primary-expression before 'double'
sage/libs/fplll/fplll.cpp:3769:29: error: expected ';' before 'double'
sage/libs/fplll/fplll.cpp:3770:28: error: expected primary-expression before ',' token
sage/libs/fplll/fplll.cpp:3770:35: error: expected primary-expression before '>' token
sage/libs/fplll/fplll.cpp:3770:38: error: '__pyx_v_pmpfr' was not declared in this scope
sage/libs/fplll/fplll.cpp:3771:28: error: expected primary-expression before ',' token
sage/libs/fplll/fplll.cpp:3771:34: error: expected primary-expression before '>' token
sage/libs/fplll/fplll.cpp:3771:37: error: '__pyx_v_pdpe' was not declared in this scope
sage/libs/fplll/fplll.cpp:3936:5: error: '__pyx_v_pdouble' was not declared in this scope
sage/libs/fplll/fplll.cpp:3936:27: error: expected type-specifier before 'heuristic_early_red'
sage/libs/fplll/fplll.cpp:3936:27: error: expected ';' before 'heuristic_early_red'
sage/libs/fplll/fplll.cpp:3972:28: error: type '' argument given to 'delete', expected pointer
sage/libs/fplll/fplll.cpp:3996:24: error: expected type-specifier before 'heuristic_early_red'
sage/libs/fplll/fplll.cpp:3996:24: error: expected ';' before 'heuristic_early_red'
sage/libs/fplll/fplll.cpp:4032:25: error: type '' argument given to 'delete', expected pointer
sage/libs/fplll/fplll.cpp:4056:25: error: expected type-specifier before 'heuristic_early_red'
sage/libs/fplll/fplll.cpp:4056:25: error: expected ';' before 'heuristic_early_red'
sage/libs/fplll/fplll.cpp:4092:26: error: type '' argument given to 'delete', expected pointer
sage/libs/fplll/fplll.cpp: In function 'PyObject* __pyx_pf_4sage_4libs_5fplll_5fplll_gen_intrel(PyObject*, PyObject*, PyObject*)':
sage/libs/fplll/fplll.cpp:4123:3: error: 'ZZ_mat' was not declared in this scope
sage/libs/fplll/fplll.cpp:4123:15: error: expected primary-expression before '>' token
sage/libs/fplll/fplll.cpp:4123:18: error: '__pyx_v_A' was not declared in this scope
sage/libs/fplll/fplll.cpp:4179:19: error: expected type-specifier before 'ZZ_mat'
sage/libs/fplll/fplll.cpp:4179:19: error: expected ';' before 'ZZ_mat'
sage/libs/fplll/fplll.cpp:4197:66: error: '__pyx_f_4sage_4libs_5fplll_5fplll_to_sage' cannot be used as a function
sage/libs/fplll/fplll.cpp:4210:20: error: type '' argument given to 'delete', expected pointer
sage/libs/fplll/fplll.cpp: In function 'PyObject* __pyx_pf_4sage_4libs_5fplll_5fplll_1gen_simdioph(PyObject*, PyObject*, PyObject*)':
sage/libs/fplll/fplll.cpp:4251:3: error: 'ZZ_mat' was not declared in this scope
sage/libs/fplll/fplll.cpp:4251:15: error: expected primary-expression before '>' token
sage/libs/fplll/fplll.cpp:4251:18: error: '__pyx_v_A' was not declared in this scope
sage/libs/fplll/fplll.cpp:4316:19: error: expected type-specifier before 'ZZ_mat'
sage/libs/fplll/fplll.cpp:4316:19: error: expected ';' before 'ZZ_mat'
sage/libs/fplll/fplll.cpp:4334:66: error: '__pyx_f_4sage_4libs_5fplll_5fplll_to_sage' cannot be used as a function
sage/libs/fplll/fplll.cpp:4347:20: error: type '' argument given to 'delete', expected pointer
sage/libs/fplll/fplll.cpp: In function 'PyObject* __pyx_pf_4sage_4libs_5fplll_5fplll_2gen_uniform(PyObject*, PyObject*, PyObject*)':
sage/libs/fplll/fplll.cpp:4388:3: error: 'ZZ_mat' was not declared in this scope
sage/libs/fplll/fplll.cpp:4388:15: error: expected primary-expression before '>' token
sage/libs/fplll/fplll.cpp:4388:18: error: '__pyx_v_A' was not declared in this scope
sage/libs/fplll/fplll.cpp:4453:19: error: expected type-specifier before 'ZZ_mat'
sage/libs/fplll/fplll.cpp:4453:19: error: expected ';' before 'ZZ_mat'
sage/libs/fplll/fplll.cpp:4471:66: error: '__pyx_f_4sage_4libs_5fplll_5fplll_to_sage' cannot be used as a function
sage/libs/fplll/fplll.cpp:4484:20: error: type '' argument given to 'delete', expected pointer
sage/libs/fplll/fplll.cpp: In function 'PyObject* __pyx_pf_4sage_4libs_5fplll_5fplll_3gen_ntrulike(PyObject*, PyObject*, PyObject*)':
sage/libs/fplll/fplll.cpp:4525:3: error: 'ZZ_mat' was not declared in this scope
sage/libs/fplll/fplll.cpp:4525:15: error: expected primary-expression before '>' token
sage/libs/fplll/fplll.cpp:4525:18: error: '__pyx_v_A' was not declared in this scope
sage/libs/fplll/fplll.cpp:4590:19: error: expected type-specifier before 'ZZ_mat'
sage/libs/fplll/fplll.cpp:4590:19: error: expected ';' before 'ZZ_mat'
sage/libs/fplll/fplll.cpp:4608:66: error: '__pyx_f_4sage_4libs_5fplll_5fplll_to_sage' cannot be used as a function
sage/libs/fplll/fplll.cpp:4621:20: error: type '' argument given to 'delete', expected pointer
sage/libs/fplll/fplll.cpp: In function 'PyObject* __pyx_pf_4sage_4libs_5fplll_5fplll_4gen_ntrulike2(PyObject*, PyObject*, PyObject*)':
sage/libs/fplll/fplll.cpp:4662:3: error: 'ZZ_mat' was not declared in this scope
sage/libs/fplll/fplll.cpp:4662:15: error: expected primary-expression before '>' token
sage/libs/fplll/fplll.cpp:4662:18: error: '__pyx_v_A' was not declared in this scope
sage/libs/fplll/fplll.cpp:4727:19: error: expected type-specifier before 'ZZ_mat'
sage/libs/fplll/fplll.cpp:4727:19: error: expected ';' before 'ZZ_mat'
sage/libs/fplll/fplll.cpp:4745:66: error: '__pyx_f_4sage_4libs_5fplll_5fplll_to_sage' cannot be used as a function
sage/libs/fplll/fplll.cpp:4758:20: error: type '' argument given to 'delete', expected pointer
sage/libs/fplll/fplll.cpp: In function 'PyObject* __pyx_pf_4sage_4libs_5fplll_5fplll_5gen_ajtai(PyObject*, PyObject*, PyObject*)':
sage/libs/fplll/fplll.cpp:4798:3: error: 'ZZ_mat' was not declared in this scope
sage/libs/fplll/fplll.cpp:4798:15: error: expected primary-expression before '>' token
sage/libs/fplll/fplll.cpp:4798:18: error: '__pyx_v_A' was not declared in this scope
sage/libs/fplll/fplll.cpp:4854:19: error: expected type-specifier before 'ZZ_mat'
sage/libs/fplll/fplll.cpp:4854:19: error: expected ';' before 'ZZ_mat'
sage/libs/fplll/fplll.cpp:4872:66: error: '__pyx_f_4sage_4libs_5fplll_5fplll_to_sage' cannot be used as a function
sage/libs/fplll/fplll.cpp:4885:20: error: type '' argument given to 'delete', expected pointer
sage/libs/fplll/fplll.cpp: At global scope:
sage/libs/fplll/fplll.cpp:4920:61: error: redefinition of 'PyObject* __pyx_f_4sage_4libs_5fplll_5fplll_to_sage'
sage/libs/fplll/fplll.cpp:1902:60: error: 'PyObject* __pyx_f_4sage_4libs_5fplll_5fplll_to_sage' previously defined here
sage/libs/fplll/fplll.cpp:4920:61: error: 'ZZ_mat' was not declared in this scope
sage/libs/fplll/fplll.cpp:4920:73: error: expected primary-expression before '>' token
sage/libs/fplll/fplll.cpp:4920:76: error: '__pyx_v_A' was not declared in this scope
sage/libs/fplll/fplll.cpp:1746:26: warning: inline function 'int __Pyx_PyInt_AsInt(PyObject*)' used but never defined
sage/libs/fplll/fplll.cpp:285:26: warning: inline function 'int __Pyx_PyObject_IsTrue(PyObject*)' used but never defined

@cschwan
Copy link
Owner

cschwan commented Jun 27, 2011

Thanks for the report, should have tested more carefully. I will leave the bug report open until I am able to make fplll backwards compatible.

@kiwifb
Copy link
Collaborator

kiwifb commented Jun 14, 2013

sage 5.11 will upgrade to fplll 4.0.4 and solve this issue.

@kiwifb kiwifb closed this as completed Sep 2, 2013
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants