-
Notifications
You must be signed in to change notification settings - Fork 141
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
Update secp, build fixes, add M1 and universal2 support #321
Conversation
f851b46
to
10a7ed5
Compare
5aa81a4
to
474c16d
Compare
d34425f
to
ea9c54e
Compare
ceda0a5
to
1eb66b5
Compare
I'm running on: Darwin 21.4.0 Darwin Kernel Version 21.4.0: Fri Mar 18 00:45:05 PDT 2022; root:xnu-8020.101.4~15/RELEASE_X86_64 x86_64 From my lightning clone, I went into external/libwally-core and checked out this branch, when I attempt a poetry run make, it is now erroring with: cc hsmd/hsmd.c define SECP256K1_DEPRECATED(_msg) attribute ((deprecated(_msg)))
hsmd/libhsmd.c:641:18: error: too many arguments to function call, expected 5, have 6 |
Hi @mdance That is a c-lightning issue with the updated secp that comes with wally, and will need to be corrected there. Once I have merged the build fixes in #321, I plan to make a release at which point c-lightning can update their wally version and move their direct secp calls to the non deprecated interface. In the meantime if you are building with the above PR, you can simply rename cc: @cdecker |
Yeah I've been working my way through the deprecations with the attached patch so far, am running into this now, not quite sure what to do, according to external/libwally-core/src/secp256k1/src/modules/schnorrsig/main_impl.h +219 it looks like its missing the msglen parameter?
The failing code is:
cc lightningd/offer.c |
I think I've managed to get it working lol obviously I am way out of my depth here so I've forked the project, and am going to put up a PR, would someone be able to code review it? Probably will get ditched, but mays well go through the motions hehe |
@mdance, I suggest you raise an issue on c-lightning, linking to this PR and issue #320, along with your PR (which you should prefix as "Tracking issue to update wally and libsecp256k1 to next release" or so should do it, so that the changes required aren't lost (and you may get some review, wally doesn't expose the new schnorr sig functions yet, which is why c-lightning is calling them directly). |
@mdance, I think you need |
I have updated https://github.com/ElementsProject/lightning/pull/5172/files with the sizeof change |
4218558
to
69c6dee
Compare
archive-within-archive appears to be unsupported in later libtools/on apple systems.
secp's asm detection doesn't handle universal2 builds where multiple -arch flags are passed; this can be used to disable asm and allow things to compile.
…i/cross arch wheels Also pass Pythons build and link flags in this mode and disable asm if required.
69c6dee
to
59652b5
Compare
Hi @mdance you may want to update your PR to use the latest changes from here which include universal2 support. |
Waiting for this to merge so I can release rc3.... |
@jgriffiths @rustyrussell thinks your sizeof suggestion is incorrect at ElementsProject/lightning#5172 (comment) should I revert that commit out? I will try to compile with the latest changes as well |
@mdance my master version of c-lightning has this:
So for this error:
My suggestion was:
|
utack 59652b5 |
No description provided.