-
Notifications
You must be signed in to change notification settings - Fork 5
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
bug: Compilation error on new AMD platform #56
Comments
Can you check with Clang? Also can you ensure that LTO is not used for crypto: https://github.com/status-im/nimbus-eth2/blob/dc19b08/config.nims#L220-L221, as if there is inlining, the compiler might run out of registers. You might also want to ensure you have enough register by passing |
Certainly, but it may not help find out the issue. |
Oppose this "quick workaround" from landing in this library. It would come with visible perf regressions for |
This should be reproducible by specifying the correct |
Thanks for the tips. I accept the perf concerns. |
The issue is about "error: ‘asm’ operand has impossible constraints" which means that GCC fails to find enough registers. If you compile with Clang and it fails you will have a better error message. Every step, I outline will help you pinpoint the issue, this is something I dealt with on a regular basis: Also the issue is not AMD specific, there is no AMD vs Intel, all x86-64 CPUs have the same compilation path. You need the same Ubuntu version, Ubuntu changed the defaults of GCC on 24.04. If your colleague is using a preview version, it's normal they have the issue and not you. If you want to test on your machine, use |
@mratsim # omitting frame pointers in nim breaks the GC
# https://github.com/nim-lang/Nim/issues/10625
switch("passC", "-fno-omit-frame-pointer")
switch("passL", "-fno-omit-frame-pointer") to work around another Nim issue. |
For anyone experiencing this from
by explicitly selecting either
|
Confirmed upstream, the library should be compiled with |
While building nim-waku we faced an issue compiling secp256k1 on a new AMD Ryzen 7 PRO 7840U system (on UBUNTU 22.04 LTS)
waku-org/nwaku#2560
originally reported from outside
I would like to propose a quick workaround until it maybe fixed in the upstream library, otherwise please advise.
patch: amd-asm-compilation-fix
The text was updated successfully, but these errors were encountered: