-
-
Notifications
You must be signed in to change notification settings - Fork 47
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: Disabling intel assembly causes undefined symbols #301
Comments
I can't reproduce in branch gcc-asm which default for testing to LTO = false and AT&T assembly: constantine/constantine.nimble Lines 117 to 132 in de927e3
CI job: https://github.com/mratsim/constantine/actions/runs/6990069731/job/19019218914 Furthermore your screenshot mentions line 303 of limbs_asm_modular_x86 but that file only has 282 lines: constantine/constantine/math/arithmetic/assembly/limbs_asm_modular_x86.nim Lines 280 to 282 in d77bb79
Even going back to when this file was created in April 2022, line 303 was behind constantine/constantine/math/arithmetic/assembly/limbs_asm_modular_x86.nim Lines 284 to 303 in ffacf61
|
* use local ASM to avoid incompat with other lib https://github.com/codex-storage/nim-codex/pull/625\#discussion_r1397594279 Implement workaround for Nim v2 * rework LTO usage in .nimble * allow investigating #301 * disable library LTO as well for reproducing #301 * reactivate upstream LLVM instead of Apple in MacOS CI to solve missing symbol _hasAdxImpl__OOZconstantineZplatformsZisaZcpuinfo95x5654_70 * LTO & ASM: local intel syntax doesn't work + disable LTO for static libraries * LTO & ASM: improve comments * LTO & ASM: -flto=thin with LLVM15 does not find enough register in MacOS CI
Seen in project codex-storage/nim-codex.
We set
use_asm_syntax_intel=false
for compatibility with secp256k1. This causes undefined symbols 'u' and 'x'. We are working around it by disabling assembly entirely.The text was updated successfully, but these errors were encountered: