mratsim / constantine

Constantine: modular, high-performance, zero-dependency cryptography stack for verifiable computation, proof systems and blockchain protocols.
Other
413 stars 44 forks source link

Build failing on MacOS #404

Closed NickSneo closed 4 months ago

NickSneo commented 5 months ago

When I am trying to run commands - nimble make_lib or CC=clang nimble make_lib getting error -

nimble make_lib
  Verifying dependencies for constantine@0.0.1
  Executing task make_lib in /Users/nicks/Desktop/coding/ethereum/constantine-forked/constantine.nimble
Compiling static library:  lib/libconstantine.a.arm
/Users/nicks/Desktop/coding/ethereum/constantine-forked/nimcache/libconstantine_static/@m..@sconstantine@smath@sarithmetic@slimbs_exgcd.nim.c:138:76: error: redefinition of 'factor' with a different type: 'const tyObject_LimbsUnsaturated__IqonXAOTabqZBul1SV9aMOA' (aka 'const struct tyObject_LimbsUnsaturated__IqonXAOTabqZBul1SV9aMOA') vs 'const tyObject_LimbsUnsaturated__OSDfiXcZ49cBg39aSDQmfgMw' (aka 'const struct tyObject_LimbsUnsaturated__OSDfiXcZ49cBg39aSDQmfgMw')
N_LIB_PRIVATE NIM_CONST tyObject_LimbsUnsaturated__IqonXAOTabqZBul1SV9aMOA factor = {{3809798118450665286ULL,
                                                                           ^
/Users/nicks/Desktop/coding/ethereum/constantine-forked/nimcache/libconstantine_static/@m..@sconstantine@smath@sarithmetic@slimbs_exgcd.nim.c:124:77: note: previous definition is here
N_LIB_PRIVATE NIM_CONST tyObject_LimbsUnsaturated__OSDfiXcZ49cBg39aSDQmfgMw factor = {{691840826555407469ULL,
                                                                            ^
/Users/nicks/Desktop/coding/ethereum/constantine-forked/nimcache/libconstantine_static/@m..@sconstantine@smath@sarithmetic@slimbs_exgcd.nim.c:147:76: error: redefinition of 'm2' with a different type: 'const tyObject_LimbsUnsaturated__IqonXAOTabqZBul1SV9aMOA' (aka 'const struct tyObject_LimbsUnsaturated__IqonXAOTabqZBul1SV9aMOA') vs 'const tyObject_LimbsUnsaturated__OSDfiXcZ49cBg39aSDQmfgMw' (aka 'const struct tyObject_LimbsUnsaturated__OSDfiXcZ49cBg39aSDQmfgMw')
N_LIB_PRIVATE NIM_CONST tyObject_LimbsUnsaturated__IqonXAOTabqZBul1SV9aMOA m2 = {{4179058979223087787ULL,
                                                                           ^
/Users/nicks/Desktop/coding/ethereum/constantine-forked/nimcache/libconstantine_static/@m..@sconstantine@smath@sarithmetic@slimbs_exgcd.nim.c:131:77: note: previous definition is here
N_LIB_PRIVATE NIM_CONST tyObject_LimbsUnsaturated__OSDfiXcZ49cBg39aSDQmfgMw m2 = {{4611686014132420609ULL,
                                                                            ^
/Users/nicks/Desktop/coding/ethereum/constantine-forked/nimcache/libconstantine_static/@m..@sconstantine@smath@sarithmetic@slimbs_exgcd.nim.c:156:76: error: redefinition of 'm2' with a different type: 'const tyObject_LimbsUnsaturated__IqonXAOTabqZBul1SV9aMOA' (aka 'const struct tyObject_LimbsUnsaturated__IqonXAOTabqZBul1SV9aMOA') vs 'const tyObject_LimbsUnsaturated__OSDfiXcZ49cBg39aSDQmfgMw' (aka 'const struct tyObject_LimbsUnsaturated__OSDfiXcZ49cBg39aSDQmfgMw')
N_LIB_PRIVATE NIM_CONST tyObject_LimbsUnsaturated__IqonXAOTabqZBul1SV9aMOA m2 = {{4179058979223087787ULL,
                                                                           ^
/Users/nicks/Desktop/coding/ethereum/constantine-forked/nimcache/libconstantine_static/@m..@sconstantine@smath@sarithmetic@slimbs_exgcd.nim.c:131:77: note: previous definition is here
N_LIB_PRIVATE NIM_CONST tyObject_LimbsUnsaturated__OSDfiXcZ49cBg39aSDQmfgMw m2 = {{4611686014132420609ULL,
                                                                            ^
fatal error: too many errors emitted, stopping now [-ferror-limit=]
4 errors generated.
Error: execution of an external compiler program 'clang -c  -w -ferror-limit=3 -pthread -target arm64-apple-macos11 -fno-semantic-interposition -falign-functions=64 -fmerge-all-constants -O3   -I/opt/homebrew/Cellar/nim/2.0.6/nim/lib -I/Users/nicks/Desktop/coding/ethereum/constantine-forked/bindings -o /Users/nicks/Desktop/coding/ethereum/constantine-forked/nimcache/libconstantine_static/@m..@sconstantine@smath@sarithmetic@slimbs_exgcd.nim.c.o /Users/nicks/Desktop/coding/ethereum/constantine-forked/nimcache/libconstantine_static/@m..@sconstantine@smath@sarithmetic@slimbs_exgcd.nim.c' failed with exit code: 1

stack trace: (most recent call last)
/private/var/folders/0c/gprgl0vs4x3722q1fsw8qfdw0000gn/T/nimblecache-1720177987/nimscriptapi_4206983700.nim(211, 16)
/Users/nicks/Desktop/coding/ethereum/constantine-forked/constantine.nimble(269, 15) make_libTask
/Users/nicks/Desktop/coding/ethereum/constantine-forked/constantine.nimble(250, 5) genStaticLib
/Users/nicks/Desktop/coding/ethereum/constantine-forked/constantine.nimble(235, 5) compile
/opt/homebrew/Cellar/nim/2.0.6/nim/lib/system/nimscript.nim(265, 7) exec
/opt/homebrew/Cellar/nim/2.0.6/nim/lib/system/nimscript.nim(265, 7) Error: unhandled exception: FAILED: nim c --cpu:arm64 -l:'-target arm64-apple-macos11' -t:'-target arm64-apple-macos11' --tlsEmulation=off  -d:danger  --panics:on -d:noSignalHandler  --mm:arc -d:useMalloc  --verbosity:0 --hints:off --warnings:off  --passC:-fno-semantic-interposition  --passC:-falign-functions=64  --passC:-fmerge-all-constants --threads:on  --noMain --app:staticlib  --nimMainPrefix:ctt_init_  --out:libconstantine.a.arm --outdir:lib  --nimcache:nimcache/libconstantine_static bindings/lib_constantine.nim [OSError]
       Tip: 1 messages have been suppressed, use --verbose to show them.
nimscriptwrapper.nim(161) execScript

    Error:  Exception raised during nimble script execution
➜  constantine-forked git:(master) ✗ /Users/nicks/Desktop/coding/ethereum/constantine-forked/nimcache/libconstantine_static/@m..@sconstantine@smath@sarithmetic@sbigints.nim.c:232:11: error: expected ';' at end of declaration
        NU64 x_NZ`gensym734;
                 ^
                 ;
/Users/nicks/Desktop/coding/ethereum/constantine-forked/nimcache/libconstantine_static/@m..@sconstantine@smath@sarithmetic@sbigints.nim.c:248:6: error: expected ';' after expression
        x_NZ`gensym734 = accum;
            ^
            ;
/Users/nicks/Desktop/coding/ethereum/constantine-forked/nimcache/libconstantine_static/@m..@sconstantine@smath@sarithmetic@sbigints.nim.c:248:6: error: expected expression
fatal error: too many errors emitted, stopping now [-ferror-limit=]
4 errors generated.

MacOS 14, M2 chip Nimble version - Nim Compiler Version 2.0.6 [MacOSX: arm64]

NickSneo commented 5 months ago

With nim version 2.0.4 it proceeds a bit but then fails -

 nimble make_lib
  Verifying dependencies for constantine@0.0.1
  Executing task make_lib in /Users/nicks/Desktop/coding/ethereum/constantine-forked/constantine.nimble
Compiling static library:  lib/libconstantine.a.arm
Compiling static library:  lib/libconstantine.a.x64
Compiling dynamic library: lib/libconstantine.dylib.arm
ld: warning: ignoring duplicate libraries: '-lm'
ld: multiple errors: could not parse bitcode object file /Users/nicks/Desktop/coding/ethereum/constantine-forked/nimcache/libconstantine_dynamic/@m..@s..@s..@s..@s..@s.choosenim@stoolchains@snim-2.0.4@slib@sstd@stypedthreads.nim.c.o: 'Unknown attribute kind (86) (Producer: 'LLVM18.1.8' Reader: 'LLVM APPLE_1_1500.1.0.2.5_0')', using libLTO version 'LLVM version 15.0.0' in '/Users/nicks/Desktop/coding/ethereum/constantine-forked/nimcache/libconstantine_dynamic/@m..@s..@s..@s..@s..@s.choosenim@stoolchains@snim-2.0.4@slib@sstd@stypedthreads.nim.c.o'; could not parse bitcode object file /Users/nicks/Desktop/coding/ethereum/constantine-forked/nimcache/libconstantine_dynamic/@m..@s..@s..@s..@s..@s.choosenim@stoolchains@snim-2.0.4@slib@sstd@sprivate@sdigitsutils.nim.c.o: 'Unknown attribute kind (86) (Producer: 'LLVM18.1.8' Reader: 'LLVM APPLE_1_1500.1.0.2.5_0')', using libLTO version 'LLVM version 15.0.0' in '/Users/nicks/Desktop/coding/ethereum/constantine-forked/nimcache/libconstantine_dynamic/@m..@s..@s..@s..@s..@s.choosenim@stoolchains@snim-2.0.4@slib@sstd@sprivate@sdigitsutils.nim.c.o'; could not parse bitcode object file /Users/nicks/Desktop/coding/ethereum/constantine-forked/nimcache/libconstantine_dynamic/@m..@s..@s..@s..@s..@s.choosenim@stoolchains@snim-2.0.4@slib@sstd@sassertions.nim.c.o: 'Unknown attribute kind (86) (Producer: 'LLVM18.1.8' Reader: 'LLVM APPLE_1_1500.1.0.2.5_0')', using libLTO version 'LLVM version 15.0.0' in '/Users/nicks/Desktop/coding/ethereum/constantine-forked/nimcache/libconstantine_dynamic/@m..@s..@s..@s..@s..@s.choosenim@stoolchains@snim-2.0.4@slib@sstd@sassertions.nim.c.o'; could not parse bitcode object file /Users/nicks/Desktop/coding/ethereum/constantine-forked/nimcache/libconstantine_dynamic/@m..@sconstantine@sthreadpool@scrossthread@stasks_flowvars.nim.c.o: 'Unknown attribute kind (86) (Producer: 'LLVM18.1.8' Reader: 'LLVM APPLE_1_1500.1.0.2.5_0')', using libLTO version 'LLVM version 15.0.0' in '/Users/nicks/Desktop/coding/ethereum/constantine-forked/nimcache/libconstantine_dynamic/@m..@sconstantine@sthreadpool@scrossthread@stasks_flowvars.nim.c.o'; could not parse bitcode object file /Users/nicks/Desktop/coding/ethereum/constantine-forked/nimcache/libconstantine_dynamic/@m..@s..@s..@s..@s..@s.choosenim@stoolchains@snim-2.0.4@slib@ssystem.nim.c.o: 'Unknown attribute kind (86) (Producer: 'LLVM18.1.8' Reader: 'LLVM APPLE_1_1500.1.0.2.5_0')', using libLTO version 'LLVM version 15.0.0' in '/Users/nicks/Desktop/coding/ethereum/constantine-forked/nimcache/libconstantine_dynamic/@m..@s..@s..@s..@s..@s.choosenim@stoolchains@snim-2.0.4@slib@ssystem.nim.c.o'; could not parse bitcode object file /Users/nicks/Desktop/coding/ethereum/constantine-forked/nimcache/libconstantine_dynamic/@m..@sconstantine@shashes@ssha256@ssha256_generic.nim.c.o: 'Unknown attribute kind (86) (Producer: 'LLVM18.1.8' Reader: 'LLVM APPLE_1_1500.1.0.2.5_0')', using libLTO version 'LLVM version 15.0.0' in '/Users/nicks/Desktop/coding/ethereum/constantine-forked/nimcache/libconstantine_dynamic/@m..@sconstantine@shashes@ssha256@ssha256_generic.nim.c.o'; could not parse bitcode object file /Users/nicks/Desktop/coding/ethereum/constantine-forked/nimcache/libconstantine_dynamic/@m..@sconstantine@shashes@sh_sha256.nim.c.o: 'Unknown attribute kind (86) (Producer: 'LLVM18.1.8' Reader: 'LLVM APPLE_1_1500.1.0.2.5_0')', using libLTO version 'LLVM version 15.0.0' in '/Users/nicks/Desktop/coding/ethereum/constantine-forked/nimcache/libconstantine_dynamic/@m..@sconstantine@shashes@sh_sha256.nim.c.o'; could not parse bitcode object file /Users/nicks/Desktop/coding/ethereum/constantine-forked/nimcache/libconstantine_dynamic/@m..@sconstantine@shashes.nim.c.o: 'Unknown attribute kind (86) (Producer: 'LLVM18.1.8' Reader: 'LLVM APPLE_1_1500.1.0.2.5_0')', using libLTO version 'LLVM version 15.0.0' in '/Users/nicks/Desktop/coding/ethereum/constantine-forked/nimcache/libconstantine_dynamic/@m..@sconstantine@shashes.nim.c.o'; could not parse bitcode object file /Users/nicks/Desktop/coding/ethereum/constantine-forked/nimcache/libconstantine_dynamic/@m..@sconstantine@sserialization@scodecs.nim.c.o: 'Unknown attribute kind (86) (Producer: 'LLVM18.1.8' Reader: 'LLVM APPLE_1_1500.1.0.2.5_0')', using libLTO version 'LLVM version 15.0.0' in '/Users/nicks/Desktop/coding/ethereum/constantine-forked/nimcache/libconstantine_dynamic/@m..@sconstantine@sserialization@scodecs.nim.c.o'; could not parse bitcode object file /Users/nicks/Desktop/coding/ethereum/constantine-forked/nimcache/libconstantine_dynamic/@m..@sconstantine@sserialization@sio_limbs.nim.c.o: 'Unknown attribute kind (86) (Producer: 'LLVM18.1.8' Reader: 'LLVM APPLE_1_1500.1.0.2.5_0')', using libLTO version 'LLVM version 15.0.0' in '/Users/nicks/Desktop/coding/ethereum/constantine-forked/nimcache/libconstantine_dynamic/@m..@sconstantine@sserialization@sio_limbs.nim.c.o'; could not parse bitcode object file /Users/nicks/Desktop/coding/ethereum/constantine-forked/nimcache/libconstantine_dynamic/@m..@sconstantine@smath@sarithmetic@slimbs_extmul.nim.c.o: 'Unknown attribute kind (86) (Producer: 'LLVM18.1.8' Reader: 'LLVM APPLE_1_1500.1.0.2.5_0')', using libLTO version 'LLVM version 15.0.0' in '/Users/nicks/Desktop/coding/ethereum/constantine-forked/nimcache/libconstantine_dynamic/@m..@sconstantine@smath@sarithmetic@slimbs_extmul.nim.c.o'; could not parse bitcode object file /Users/nicks/Desktop/coding/ethereum/constantine-forked/nimcache/libconstantine_dynamic/@m..@sconstantine@smath@sarithmetic@slimbs_unsaturated.nim.c.o: 'Unknown attribute kind (86) (Producer: 'LLVM18.1.8' Reader: 'LLVM APPLE_1_1500.1.0.2.5_0')', using libLTO version 'LLVM version 15.0.0' in '/Users/nicks/Desktop/coding/ethereum/constantine-forked/nimcache/libconstantine_dynamic/@m..@sconstantine@smath@sarithmetic@slimbs_unsaturated.nim.c.o'; could not parse bitcode object file /Users/nicks/Desktop/coding/ethereum/constantine-forked/nimcache/libconstantine_dynamic/@m..@sconstantine@smath@sarithmetic@slimbs_exgcd.nim.c.o: 'Unknown attribute kind (86) (Producer: 'LLVM18.1.8' Reader: 'LLVM APPLE_1_1500.1.0.2.5_0')', using libLTO version 'LLVM version 15.0.0' in '/Users/nicks/Desktop/coding/ethereum/constantine-forked/nimcache/libconstantine_dynamic/@m..@sconstantine@smath@sarithmetic@slimbs_exgcd.nim.c.o'; could not parse bitcode object file /Users/nicks/Desktop/coding/ethereum/constantine-forked/nimcache/libconstantine_dynamic/@m..@sconstantine@smath_arbitrary_precision@sarithmetic@slimbs_views.nim.c.o: 'Unknown attribute kind (86) (Producer: 'LLVM18.1.8' Reader: 'LLVM APPLE_1_1500.1.0.2.5_0')', using libLTO version 'LLVM version 15.0.0' in '/Users/nicks/Desktop/coding/ethereum/constantine-forked/nimcache/libconstantine_dynamic/@m..@sconstantine@smath_arbitrary_precision@sarithmetic@slimbs_views.nim.c.o'; could not parse bitcode object file /Users/nicks/Desktop/coding/ethereum/constantine-forked/nimcache/libconstantine_dynamic/@m..@sconstantine@smath_arbitrary_precision@sarithmetic@slimbs_fixedprec.nim.c.o: 'Unknown attribute kind (86) (Producer: 'LLVM18.1.8' Reader: 'LLVM APPLE_1_1500.1.0.2.5_0')', using libLTO version 'LLVM version 15.0.0' in '/Users/nicks/Desktop/coding/ethereum/constantine-forked/nimcache/libconstantine_dynamic/@m..@sconstantine@smath_arbitrary_precision@sarithmetic@slimbs_fixedprec.nim.c.o'; could not parse bitcode object file /Users/nicks/Desktop/coding/ethereum/constantine-forked/nimcache/libconstantine_dynamic/@m..@sconstantine@smath_arbitrary_precision@sarithmetic@slimbs_divmod_vartime.nim.c.o: 'Unknown attribute kind (86) (Producer: 'LLVM18.1.8' Reader: 'LLVM APPLE_1_1500.1.0.2.5_0')', using libLTO version 'LLVM version 15.0.0' in '/Users/nicks/Desktop/coding/ethereum/constantine-forked/nimcache/libconstantine_dynamic/@m..@sconstantine@smath_arbitrary_precision@sarithmetic@slimbs_divmod_vartime.nim.c.o'; could not parse bitcode object file /Users/nicks/Desktop/coding/ethereum/constantine-forked/nimcache/libconstantine_dynamic/@m..@sconstantine@smath@sarithmetic@sbigints.nim.c.o: 'Unknown attribute kind (86) (Producer: 'LLVM18.1.8' Reader: 'LLVM APPLE_1_1500.1.0.2.5_0')', using libLTO version 'LLVM version 15.0.0' in '/Users/nicks/Desktop/coding/ethereum/constantine-forked/nimcache/libconstantine_dynamic/@m..@sconstantine@smath@sarithmetic@sbigints.nim.c.o'; could not parse bitcode object file /Users/nicks/Desktop/coding/ethereum/constantine-forked/nimcache/libconstantine_dynamic/@m..@sconstantine@smath@sarithmetic@slimbs_montgomery.nim.c.o: 'Unknown attribute kind (86) (Producer: 'LLVM18.1.8' Reader: 'LLVM APPLE_1_1500.1.0.2.5_0')', using libLTO version 'LLVM version 15.0.0' in '/Users/nicks/Desktop/coding/ethereum/constantine-forked/nimcache/libconstantine_dynamic/@m..@sconstantine@smath@sarithmetic@slimbs_montgomery.nim.c.o'; could not parse bitcode object file /Users/nicks/Desktop/coding/ethereum/constantine-forked/nimcache/libconstantine_dynamic/@m..@sconstantine@snamed@sconstants@sbls12_381_sqrt.nim.c.o: 'Unknown attribute kind (86) (Producer: 'LLVM18.1.8' Reader: 'LLVM APPLE_1_1500.1.0.2.5_0')', using libLTO version 'LLVM version 15.0.0' in '/Users/nicks/Desktop/coding/ethereum/constantine-forked/nimcache/libconstantine_dynamic/@m..@sconstantine@snamed@sconstants@sbls12_381_sqrt.nim.c.o'; could not parse bitcode object file /Users/nicks/Desktop/coding/ethereum/constantine-forked/nimcache/libconstantine_dynamic/@m..@sconstantine@snamed@sconstants@sbn254_snarks_sqrt.nim.c.o: 'Unknown attribute kind (86) (Producer: 'LLVM18.1.8' Reader: 'LLVM APPLE_1_1500.1.0.2.5_0')', using libLTO version 'LLVM version 15.0.0' in '/Users/nicks/Desktop/coding/ethereum/constantine-forked/nimcache/libconstantine_dynamic/@m..@sconstantine@snamed@sconstants@sbn254_snarks_sqrt.nim.c.o'; could not parse bitcode object file /Users/nicks/Desktop/coding/ethereum/constantine-forked/nimcache/libconstantine_dynamic/@m..@sconstantine@smath@sarithmetic@sfinite_fields_square_root.nim.c.o: 'Unknown attribute kind (86) (Producer: 'LLVM18.1.8' Reader: 'LLVM APPLE_1_1500.1.0.2.5_0')', using libLTO version 'LLVM version 15.0.0' in '/Users/nicks/Desktop/coding/ethereum/constantine-forked/nimcache/libconstantine_dynamic/@m..@sconstantine@smath@sarithmetic@sfinite_fields_square_root.nim.c.o'; could not parse bitcode object file /Users/nicks/Desktop/coding/ethereum/constantine-forked/nimcache/libconstantine_dynamic/@m..@sconstantine@smath@sextension_fields@stowers.nim.c.o: 'Unknown attribute kind (86) (Producer: 'LLVM18.1.8' Reader: 'LLVM APPLE_1_1500.1.0.2.5_0')', using libLTO version 'LLVM version 15.0.0' in '/Users/nicks/Desktop/coding/ethereum/constantine-forked/nimcache/libconstantine_dynamic/@m..@sconstantine@smath@sextension_fields@stowers.nim.c.o'; could not parse bitcode object file /Users/nicks/Desktop/coding/ethereum/constantine-forked/nimcache/libconstantine_dynamic/@m..@sconstantine@smath@sextension_fields@ssquare_root_fp2.nim.c.o: 'Unknown attribute kind (86) (Producer: 'LLVM18.1.8' Reader: 'LLVM APPLE_1_1500.1.0.2.5_0')', using libLTO version 'LLVM version 15.0.0' in '/Users/nicks/Desktop/coding/ethereum/constantine-forked/nimcache/libconstantine_dynamic/@m..@sconstantine@smath@sextension_fields@ssquare_root_fp2.nim.c.o'; could not parse bitcode object file /Users/nicks/Desktop/coding/ethereum/constantine-forked/nimcache/libconstantine_dynamic/@m..@sconstantine@smath@sisogenies@sfrobenius.nim.c.o: 'Unknown attribute kind (86) (Producer: 'LLVM18.1.8' Reader: 'LLVM APPLE_1_1500.1.0.2.5_0')', using libLTO version 'LLVM version 15.0.0' in '/Users/nicks/Desktop/coding/ethereum/constantine-forked/nimcache/libconstantine_dynamic/@m..@sconstantine@smath@sisogenies@sfrobenius.nim.c.o'; could not parse bitcode object file /Users/nicks/Desktop/coding/ethereum/constantine-forked/nimcache/libconstantine_dynamic/@m..@sconstantine@smath@selliptic@sec_shortweierstrass_affine.nim.c.o: 'Unknown attribute kind (86) (Producer: 'LLVM18.1.8' Reader: 'LLVM APPLE_1_1500.1.0.2.5_0')', using libLTO version 'LLVM version 15.0.0' in '/Users/nicks/Desktop/coding/ethereum/constantine-forked/nimcache/libconstantine_dynamic/@m..@sconstantine@smath@selliptic@sec_shortweierstrass_affine.nim.c.o'; could not parse bitcode object file /Users/nicks/Desktop/coding/ethereum/constantine-forked/nimcache/libconstantine_dynamic/@m..@sconstantine@smath@selliptic@sec_shortweierstrass_jacobian.nim.c.o: 'Unknown attribute kind (86) (Producer: 'LLVM18.1.8' Reader: 'LLVM APPLE_1_1500.1.0.2.5_0')', using libLTO version 'LLVM version 15.0.0' in '/Users/nicks/Desktop/coding/ethereum/constantine-forked/nimcache/libconstantine_dynamic/@m..@sconstantine@smath@selliptic@sec_shortweierstrass_jacobian.nim.c.o'; could not parse bitcode object file /Users/nicks/Desktop/coding/ethereum/constantine-forked/nimcache/libconstantine_dynamic/@m..@sconstantine@smath@selliptic@sec_shortweierstrass_projective.nim.c.o: 'Unknown attribute kind (86) (Producer: 'LLVM18.1.8' Reader: 'LLVM APPLE_1_1500.1.0.2.5_0')', using libLTO version 'LLVM version 15.0.0' in '/Users/nicks/Desktop/coding/ethereum/constantine-forked/nimcache/libconstantine_dynamic/@m..@sconstantine@smath@selliptic@sec_shortweierstrass_projective.nim.c.o'; could not parse bitcode object file /Users/nicks/Desktop/coding/ethereum/constantine-forked/nimcache/libconstantine_dynamic/@m..@sconstantine@smath@selliptic@sec_shortweierstrass_batch_ops.nim.c.o: 'Unknown attribute kind (86) (Producer: 'LLVM18.1.8' Reader: 'LLVM APPLE_1_1500.1.0.2.5_0')', using libLTO version 'LLVM version 15.0.0' in '/Users/nicks/Desktop/coding/ethereum/constantine-forked/nimcache/libconstantine_dynamic/@m..@sconstantine@smath@selliptic@sec_shortweierstrass_batch_ops.nim.c.o'; could not parse bitcode object file /Users/nicks/Desktop/coding/ethereum/constantine-forked/nimcache/libconstantine_dynamic/@m..@sconstantine@smath@selliptic@sec_endomorphism_accel.nim.c.o: 'Unknown attribute kind (86) (Producer: 'LLVM18.1.8' Reader: 'LLVM APPLE_1_1500.1.0.2.5_0')', using libLTO version 'LLVM version 15.0.0' in '/Users/nicks/Desktop/coding/ethereum/constantine-forked/nimcache/libconstantine_dynamic/@m..@sconstantine@smath@selliptic@sec_endomorphism_accel.nim.c.o'; could not parse bitcode object file /Users/nicks/Desktop/coding/ethereum/constantine-forked/nimcache/libconstantine_dynamic/@m..@sconstantine@smath@selliptic@sec_scalar_mul_vartime.nim.c.o: 'Unknown attribute kind (86) (Producer: 'LLVM18.1.8' Reader: 'LLVM APPLE_1_1500.1.0.2.5_0')', using libLTO version 'LLVM version 15.0.0' in '/Users/nicks/Desktop/coding/ethereum/constantine-forked/nimcache/libconstantine_dynamic/@m..@sconstantine@smath@selliptic@sec_scalar_mul_vartime.nim.c.o'; could not parse bitcode object file /Users/nicks/Desktop/coding/ethereum/constantine-forked/nimcache/libconstantine_dynamic/@m..@sconstantine@smath@selliptic@sec_multi_scalar_mul_scheduler.nim.c.o: 'Unknown attribute kind (86) (Producer: 'LLVM18.1.8' Reader: 'LLVM APPLE_1_1500.1.0.2.5_0')', using libLTO version 'LLVM version 15.0.0' in '/Users/nicks/Desktop/coding/ethereum/constantine-forked/nimcache/libconstantine_dynamic/@m..@sconstantine@smath@selliptic@sec_multi_scalar_mul_scheduler.nim.c.o'; could not parse bitcode object file /Users/nicks/Desktop/coding/ethereum/constantine-forked/nimcache/libconstantine_dynamic/@m..@sconstantine@smath@selliptic@sec_multi_scalar_mul.nim.c.o: 'Unknown attribute kind (91) (Producer: 'LLVM18.1.8' Reader: 'LLVM APPLE_1_1500.1.0.2.5_0')', using libLTO version 'LLVM version 15.0.0' in '/Users/nicks/Desktop/coding/ethereum/constantine-forked/nimcache/libconstantine_dynamic/@m..@sconstantine@smath@selliptic@sec_multi_scalar_mul.nim.c.o'; could not parse bitcode object file /Users/nicks/Desktop/coding/ethereum/constantine-forked/nimcache/libconstantine_dynamic/@m..@sconstantine@snamed@sconstants@sbls12_381_subgroups.nim.c.o: 'Unknown attribute kind (86) (Producer: 'LLVM18.1.8' Reader: 'LLVM APPLE_1_1500.1.0.2.5_0')', using libLTO version 'LLVM version 15.0.0' in '/Users/nicks/Desktop/coding/ethereum/constantine-forked/nimcache/libconstantine_dynamic/@m..@sconstantine@snamed@sconstants@sbls12_381_subgroups.nim.c.o'; could not parse bitcode object file /Users/nicks/Desktop/coding/ethereum/constantine-forked/nimcache/libconstantine_dynamic/@m..@sconstantine@snamed@sconstants@sbn254_snarks_subgroups.nim.c.o: 'Unknown attribute kind (86) (Producer: 'LLVM18.1.8' Reader: 'LLVM APPLE_1_1500.1.0.2.5_0')', using libLTO version 'LLVM version 15.0.0' in '/Users/nicks/Desktop/coding/ethereum/constantine-forked/nimcache/libconstantine_dynamic/@m..@sconstantine@snamed@sconstants@sbn254_snarks_subgroups.nim.c.o'; could not parse bitcode object file /Users/nicks/Desktop/coding/ethereum/constantine-forked/nimcache/libconstantine_dynamic/@m..@sconstantine@shash_to_curve@sh2c_hash_to_field.nim.c.o: 'Unknown attribute kind (86) (Producer: 'LLVM18.1.8' Reader: 'LLVM APPLE_1_1500.1.0.2.5_0')', using libLTO version 'LLVM version 15.0.0' in '/Users/nicks/Desktop/coding/ethereum/constantine-forked/nimcache/libconstantine_dynamic/@m..@sconstantine@shash_to_curve@sh2c_hash_to_field.nim.c.o'; could not parse bitcode object file /Users/nicks/Desktop/coding/ethereum/constantine-forked/nimcache/libconstantine_dynamic/@m..@sconstantine@shash_to_curve@sh2c_utilities.nim.c.o: 'Unknown attribute kind (86) (Producer: 'LLVM18.1.8' Reader: 'LLVM APPLE_1_1500.1.0.2.5_0')', using libLTO version 'LLVM version 15.0.0' in '/Users/nicks/Desktop/coding/ethereum/constantine-forked/nimcache/libconstantine_dynamic/@m..@sconstantine@shash_to_curve@sh2c_utilities.nim.c.o'; could not parse bitcode object file /Users/nicks/Desktop/coding/ethereum/constantine-forked/nimcache/libconstantine_dynamic/@m..@sconstantine@shash_to_curve@sh2c_map_to_isocurve_swu.nim.c.o: 'Unknown attribute kind (86) (Producer: 'LLVM18.1.8' Reader: 'LLVM APPLE_1_1500.1.0.2.5_0')', using libLTO version 'LLVM version 15.0.0' in '/Users/nicks/Desktop/coding/ethereum/constantine-forked/nimcache/libconstantine_dynamic/@m..@sconstantine@shash_to_curve@sh2c_map_to_isocurve_swu.nim.c.o'; could not parse bitcode object file /Users/nicks/Desktop/coding/ethereum/constantine-forked/nimcache/libconstantine_dynamic/@m..@sconstantine@shash_to_curve@sh2c_isogeny_maps.nim.c.o: 'Unknown attribute kind (86) (Producer: 'LLVM18.1.8' Reader: 'LLVM APPLE_1_1500.1.0.2.5_0')', using libLTO version 'LLVM version 15.0.0' in '/Users/nicks/Desktop/coding/ethereum/constantine-forked/nimcache/libconstantine_dynamic/@m..@sconstantine@shash_to_curve@sh2c_isogeny_maps.nim.c.o'; could not parse bitcode object file /Users/nicks/Desktop/coding/ethereum/constantine-forked/nimcache/libconstantine_dynamic/@m..@sconstantine@smath@selliptic@sec_multi_scalar_mul_parallel.nim.c.o: 'Unknown attribute kind (86) (Producer: 'LLVM18.1.8' Reader: 'LLVM APPLE_1_1500.1.0.2.5_0')', using libLTO version 'LLVM version 15.0.0' in '/Users/nicks/Desktop/coding/ethereum/constantine-forked/nimcache/libconstantine_dynamic/@m..@sconstantine@smath@selliptic@sec_multi_scalar_mul_parallel.nim.c.o'; could not parse bitcode object file /Users/nicks/Desktop/coding/ethereum/constantine-forked/nimcache/libconstantine_dynamic/@m..@sconstantine@sthreadpool@sthreadpool.nim.c.o: 'Unknown attribute kind (86) (Producer: 'LLVM18.1.8' Reader: 'LLVM APPLE_1_1500.1.0.2.5_0')', using libLTO version 'LLVM version 15.0.0' in '/Users/nicks/Desktop/coding/ethereum/constantine-forked/nimcache/libconstantine_dynamic/@m..@sconstantine@sthreadpool@sthreadpool.nim.c.o'; could not parse bitcode object file /Users/nicks/Desktop/coding/ethereum/constantine-forked/nimcache/libconstantine_dynamic/@m..@sconstantine@sthreadpool@sprimitives@stopology.nim.c.o: 'Unknown attribute kind (86) (Producer: 'LLVM18.1.8' Reader: 'LLVM APPLE_1_1500.1.0.2.5_0')', using libLTO version 'LLVM version 15.0.0' in '/Users/nicks/Desktop/coding/ethereum/constantine-forked/nimcache/libconstantine_dynamic/@m..@sconstantine@sthreadpool@sprimitives@stopology.nim.c.o'; could not parse bitcode object file /Users/nicks/Desktop/coding/ethereum/constantine-forked/nimcache/libconstantine_dynamic/@m..@sconstantine@sthreadpool@scrossthread@staskqueues.nim.c.o: 'Unknown attribute kind (86) (Producer: 'LLVM18.1.8' Reader: 'LLVM APPLE_1_1500.1.0.2.5_0')', using libLTO version 'LLVM version 15.0.0' in '/Users/nicks/Desktop/coding/ethereum/constantine-forked/nimcache/libconstantine_dynamic/@m..@sconstantine@sthreadpool@scrossthread@staskqueues.nim.c.o'; could not parse bitcode object file /Users/nicks/Desktop/coding/ethereum/constantine-forked/nimcache/libconstantine_dynamic/@m..@sconstantine@splatforms@sfileio.nim.c.o: 'Unknown attribute kind (86) (Producer: 'LLVM18.1.8' Reader: 'LLVM APPLE_1_1500.1.0.2.5_0')', using libLTO version 'LLVM version 15.0.0' in '/Users/nicks/Desktop/coding/ethereum/constantine-forked/nimcache/libconstantine_dynamic/@m..@sconstantine@splatforms@sfileio.nim.c.o'; could not parse bitcode object file /Users/nicks/Desktop/coding/ethereum/constantine-forked/nimcache/libconstantine_dynamic/@m..@sconstantine@smath@spairings@smiller_loops.nim.c.o: 'Unknown attribute kind (86) (Producer: 'LLVM18.1.8' Reader: 'LLVM APPLE_1_1500.1.0.2.5_0')', using libLTO version 'LLVM version 15.0.0' in '/Users/nicks/Desktop/coding/ethereum/constantine-forked/nimcache/libconstantine_dynamic/@m..@sconstantine@smath@spairings@smiller_loops.nim.c.o'; could not parse bitcode object file /Users/nicks/Desktop/coding/ethereum/constantine-forked/nimcache/libconstantine_dynamic/@m..@sconstantine@snamed@sconstants@sbls12_381_pairings.nim.c.o: 'Unknown attribute kind (86) (Producer: 'LLVM18.1.8' Reader: 'LLVM APPLE_1_1500.1.0.2.5_0')', using libLTO version 'LLVM version 15.0.0' in '/Users/nicks/Desktop/coding/ethereum/constantine-forked/nimcache/libconstantine_dynamic/@m..@sconstantine@snamed@sconstants@sbls12_381_pairings.nim.c.o'; could not parse bitcode object file /Users/nicks/Desktop/coding/ethereum/constantine-forked/nimcache/libconstantine_dynamic/@m..@sconstantine@snamed@sconstants@sbn254_snarks_pairings.nim.c.o: 'Unknown attribute kind (86) (Producer: 'LLVM18.1.8' Reader: 'LLVM APPLE_1_1500.1.0.2.5_0')', using libLTO version 'LLVM version 15.0.0' in '/Users/nicks/Desktop/coding/ethereum/constantine-forked/nimcache/libconstantine_dynamic/@m..@sconstantine@snamed@sconstants@sbn254_snarks_pairings.nim.c.o'; could not parse bitcode object file /Users/nicks/Desktop/coding/ethereum/constantine-forked/nimcache/libconstantine_dynamic/@m..@sconstantine@smath@spairings@spairings_bn.nim.c.o: 'Unknown attribute kind (86) (Producer: 'LLVM18.1.8' Reader: 'LLVM APPLE_1_1500.1.0.2.5_0')', using libLTO version 'LLVM version 15.0.0' in '/Users/nicks/Desktop/coding/ethereum/constantine-forked/nimcache/libconstantine_dynamic/@m..@sconstantine@smath@spairings@spairings_bn.nim.c.o'; could not parse bitcode object file /Users/nicks/Desktop/coding/ethereum/constantine-forked/nimcache/libconstantine_dynamic/@m..@sconstantine@smath@spairings@spairings_bls12.nim.c.o: 'Unknown attribute kind (86) (Producer: 'LLVM18.1.8' Reader: 'LLVM APPLE_1_1500.1.0.2.5_0')', using libLTO version 'LLVM version 15.0.0' in '/Users/nicks/Desktop/coding/ethereum/constantine-forked/nimcache/libconstantine_dynamic/@m..@sconstantine@smath@spairings@spairings_bls12.nim.c.o'; could not parse bitcode object file /Users/nicks/Desktop/coding/ethereum/constantine-forked/nimcache/libconstantine_dynamic/@m..@sconstantine@smath@spairings@smiller_accumulators.nim.c.o: 'Unknown attribute kind (86) (Producer: 'LLVM18.1.8' Reader: 'LLVM APPLE_1_1500.1.0.2.5_0')', using libLTO version 'LLVM version 15.0.0' in '/Users/nicks/Desktop/coding/ethereum/constantine-forked/nimcache/libconstantine_dynamic/@m..@sconstantine@smath@spairings@smiller_accumulators.nim.c.o'; could not parse bitcode object file /Users/nicks/Desktop/coding/ethereum/constantine-forked/nimcache/libconstantine_dynamic/@m..@sconstantine@ssignatures@sbls_signatures.nim.c.o: 'Unknown attribute kind (86) (Producer: 'LLVM18.1.8' Reader: 'LLVM APPLE_1_1500.1.0.2.5_0')', using libLTO version 'LLVM version 15.0.0' in '/Users/nicks/Desktop/coding/ethereum/constantine-forked/nimcache/libconstantine_dynamic/@m..@sconstantine@ssignatures@sbls_signatures.nim.c.o'; could not parse bitcode object file /Users/nicks/Desktop/coding/ethereum/constantine-forked/nimcache/libconstantine_dynamic/@m..@sconstantine@sserialization@scodecs_bls12_381.nim.c.o: 'Unknown attribute kind (86) (Producer: 'LLVM18.1.8' Reader: 'LLVM APPLE_1_1500.1.0.2.5_0')', using libLTO version 'LLVM version 15.0.0' in '/Users/nicks/Desktop/coding/ethereum/constantine-forked/nimcache/libconstantine_dynamic/@m..@sconstantine@sserialization@scodecs_bls12_381.nim.c.o'; could not parse bitcode object file /Users/nicks/Desktop/coding/ethereum/constantine-forked/nimcache/libconstantine_dynamic/@m..@sconstantine@sethereum_bls_signatures.nim.c.o: 'Unknown attribute kind (86) (Producer: 'LLVM18.1.8' Reader: 'LLVM APPLE_1_1500.1.0.2.5_0')', using libLTO version 'LLVM version 15.0.0' in '/Users/nicks/Desktop/coding/ethereum/constantine-forked/nimcache/libconstantine_dynamic/@m..@sconstantine@sethereum_bls_signatures.nim.c.o'; could not parse bitcode object file /Users/nicks/Desktop/coding/ethereum/constantine-forked/nimcache/libconstantine_dynamic/@m..@sconstantine@ssignatures@sbls_signatures_parallel.nim.c.o: 'Unknown attribute kind (86) (Producer: 'LLVM18.1.8' Reader: 'LLVM APPLE_1_1500.1.0.2.5_0')', using libLTO version 'LLVM version 15.0.0' in '/Users/nicks/Desktop/coding/ethereum/constantine-forked/nimcache/libconstantine_dynamic/@m..@sconstantine@ssignatures@sbls_signatures_parallel.nim.c.o'; could not parse bitcode object file /Users/nicks/Desktop/coding/ethereum/constantine-forked/nimcache/libconstantine_dynamic/@m..@sconstantine@smath@spolynomials@spolynomials.nim.c.o: 'Unknown attribute kind (86) (Producer: 'LLVM18.1.8' Reader: 'LLVM APPLE_1_1500.1.0.2.5_0')', using libLTO version 'LLVM version 15.0.0' in '/Users/nicks/Desktop/coding/ethereum/constantine-forked/nimcache/libconstantine_dynamic/@m..@sconstantine@smath@spolynomials@spolynomials.nim.c.o'; could not parse bitcode object file /Users/nicks/Desktop/coding/ethereum/constantine-forked/nimcache/libconstantine_dynamic/@m..@sconstantine@smath@spolynomials@sfft.nim.c.o: 'Unknown attribute kind (86) (Producer: 'LLVM18.1.8' Reader: 'LLVM APPLE_1_1500.1.0.2.5_0')', using libLTO version 'LLVM version 15.0.0' in '/Users/nicks/Desktop/coding/ethereum/constantine-forked/nimcache/libconstantine_dynamic/@m..@sconstantine@smath@spolynomials@sfft.nim.c.o'; could not parse bitcode object file /Users/nicks/Desktop/coding/ethereum/constantine-forked/nimcache/libconstantine_dynamic/@m..@sconstantine@scommitments_setups@sethereum_kzg_srs.nim.c.o: 'Unknown attribute kind (86) (Producer: 'LLVM18.1.8' Reader: 'LLVM APPLE_1_1500.1.0.2.5_0')', using libLTO version 'LLVM version 15.0.0' in '/Users/nicks/Desktop/coding/ethereum/constantine-forked/nimcache/libconstantine_dynamic/@m..@sconstantine@scommitments_setups@sethereum_kzg_srs.nim.c.o'; could not parse bitcode object file /Users/nicks/Desktop/coding/ethereum/constantine-forked/nimcache/libconstantine_dynamic/@m..@sconstantine@scommitments@sprotocol_quotient_check.nim.c.o: 'Unknown attribute kind (86) (Producer: 'LLVM18.1.8' Reader: 'LLVM APPLE_1_1500.1.0.2.5_0')', using libLTO version 'LLVM version 15.0.0' in '/Users/nicks/Desktop/coding/ethereum/constantine-forked/nimcache/libconstantine_dynamic/@m..@sconstantine@scommitments@sprotocol_quotient_check.nim.c.o'; could not parse bitcode object file /Users/nicks/Desktop/coding/ethereum/constantine-forked/nimcache/libconstantine_dynamic/@m..@sconstantine@scommitments@skzg.nim.c.o: 'Unknown attribute kind (86) (Producer: 'LLVM18.1.8' Reader: 'LLVM APPLE_1_1500.1.0.2.5_0')', using libLTO version 'LLVM version 15.0.0' in '/Users/nicks/Desktop/coding/ethereum/constantine-forked/nimcache/libconstantine_dynamic/@m..@sconstantine@scommitments@skzg.nim.c.o'; could not parse bitcode object file /Users/nicks/Desktop/coding/ethereum/constantine-forked/nimcache/libconstantine_dynamic/@m..@sconstantine@sethereum_eip4844_kzg.nim.c.o: 'Unknown attribute kind (86) (Producer: 'LLVM18.1.8' Reader: 'LLVM APPLE_1_1500.1.0.2.5_0')', using libLTO version 'LLVM version 15.0.0' in '/Users/nicks/Desktop/coding/ethereum/constantine-forked/nimcache/libconstantine_dynamic/@m..@sconstantine@sethereum_eip4844_kzg.nim.c.o'; could not parse bitcode object file /Users/nicks/Desktop/coding/ethereum/constantine-forked/nimcache/libconstantine_dynamic/@m..@sconstantine@smath@spolynomials@spolynomials_parallel.nim.c.o: 'Unknown attribute kind (86) (Producer: 'LLVM18.1.8' Reader: 'LLVM APPLE_1_1500.1.0.2.5_0')', using libLTO version 'LLVM version 15.0.0' in '/Users/nicks/Desktop/coding/ethereum/constantine-forked/nimcache/libconstantine_dynamic/@m..@sconstantine@smath@spolynomials@spolynomials_parallel.nim.c.o'; could not parse bitcode object file /Users/nicks/Desktop/coding/ethereum/constantine-forked/nimcache/libconstantine_dynamic/@m..@sconstantine@scommitments@sprotocol_quotient_check_parallel.nim.c.o: 'Unknown attribute kind (86) (Producer: 'LLVM18.1.8' Reader: 'LLVM APPLE_1_1500.1.0.2.5_0')', using libLTO version 'LLVM version 15.0.0' in '/Users/nicks/Desktop/coding/ethereum/constantine-forked/nimcache/libconstantine_dynamic/@m..@sconstantine@scommitments@sprotocol_quotient_check_parallel.nim.c.o'; could not parse bitcode object file /Users/nicks/Desktop/coding/ethereum/constantine-forked/nimcache/libconstantine_dynamic/@m..@sconstantine@scommitments@skzg_parallel.nim.c.o: 'Unknown attribute kind (86) (Producer: 'LLVM18.1.8' Reader: 'LLVM APPLE_1_1500.1.0.2.5_0')', using libLTO version 'LLVM version 15.0.0' in '/Users/nicks/Desktop/coding/ethereum/constantine-forked/nimcache/libconstantine_dynamic/@m..@sconstantine@scommitments@skzg_parallel.nim.c.o'; could not parse bitcode object file /Users/nicks/Desktop/coding/ethereum/constantine-forked/nimcache/libconstantine_dynamic/@m..@sconstantine@sethereum_eip4844_kzg_parallel.nim.c.o: 'Unknown attribute kind (86) (Producer: 'LLVM18.1.8' Reader: 'LLVM APPLE_1_1500.1.0.2.5_0')', using libLTO version 'LLVM version 15.0.0' in '/Users/nicks/Desktop/coding/ethereum/constantine-forked/nimcache/libconstantine_dynamic/@m..@sconstantine@sethereum_eip4844_kzg_parallel.nim.c.o'; could not parse bitcode object file /Users/nicks/Desktop/coding/ethereum/constantine-forked/nimcache/libconstantine_dynamic/@m..@sconstantine@smath_arbitrary_precision@sarithmetic@slimbs_multiprec.nim.c.o: 'Unknown attribute kind (86) (Producer: 'LLVM18.1.8' Reader: 'LLVM APPLE_1_1500.1.0.2.5_0')', using libLTO version 'LLVM version 15.0.0' in '/Users/nicks/Desktop/coding/ethereum/constantine-forked/nimcache/libconstantine_dynamic/@m..@sconstantine@smath_arbitrary_precision@sarithmetic@slimbs_multiprec.nim.c.o'; could not parse bitcode object file /Users/nicks/Desktop/coding/ethereum/constantine-forked/nimcache/libconstantine_dynamic/@m..@sconstantine@smath_arbitrary_precision@sarithmetic@slimbs_montgomery.nim.c.o: 'Unknown attribute kind (86) (Producer: 'LLVM18.1.8' Reader: 'LLVM APPLE_1_1500.1.0.2.5_0')', using libLTO version 'LLVM version 15.0.0' in '/Users/nicks/Desktop/coding/ethereum/constantine-forked/nimcache/libconstantine_dynamic/@m..@sconstantine@smath_arbitrary_precision@sarithmetic@slimbs_montgomery.nim.c.o'; could not parse bitcode object file /Users/nicks/Desktop/coding/ethereum/constantine-forked/nimcache/libconstantine_dynamic/@m..@sconstantine@smath_arbitrary_precision@sarithmetic@slimbs_extmul.nim.c.o: 'Unknown attribute kind (86) (Producer: 'LLVM18.1.8' Reader: 'LLVM APPLE_1_1500.1.0.2.5_0')', using libLTO version 'LLVM version 15.0.0' in '/Users/nicks/Desktop/coding/ethereum/constantine-forked/nimcache/libconstantine_dynamic/@m..@sconstantine@smath_arbitrary_precision@sarithmetic@slimbs_extmul.nim.c.o'; could not parse bitcode object file /Users/nicks/Desktop/coding/ethereum/constantine-forked/nimcache/libconstantine_dynamic/@m..@sconstantine@smath_arbitrary_precision@sarithmetic@slimbs_mod2k.nim.c.o: 'Unknown attribute kind (86) (Producer: 'LLVM18.1.8' Reader: 'LLVM APPLE_1_1500.1.0.2.5_0')', using libLTO version 'LLVM version 15.0.0' in '/Users/nicks/Desktop/coding/ethereum/constantine-forked/nimcache/libconstantine_dynamic/@m..@sconstantine@smath_arbitrary_precision@sarithmetic@slimbs_mod2k.nim.c.o'; could not parse bitcode object file /Users/nicks/Desktop/coding/ethereum/constantine-forked/nimcache/libconstantine_dynamic/@m..@sconstantine@smath_arbitrary_precision@sarithmetic@sbigints_views.nim.c.o: 'Unknown attribute kind (86) (Producer: 'LLVM18.1.8' Reader: 'LLVM APPLE_1_1500.1.0.2.5_0')', using libLTO version 'LLVM version 15.0.0' in '/Users/nicks/Desktop/coding/ethereum/constantine-forked/nimcache/libconstantine_dynamic/@m..@sconstantine@smath_arbitrary_precision@sarithmetic@sbigints_views.nim.c.o'; could not parse bitcode object file /Users/nicks/Desktop/coding/ethereum/constantine-forked/nimcache/libconstantine_dynamic/@m..@sconstantine@sethereum_evm_precompiles.nim.c.o: 'Unknown attribute kind (86) (Producer: 'LLVM18.1.8' Reader: 'LLVM APPLE_1_1500.1.0.2.5_0')', using libLTO version 'LLVM version 15.0.0' in '/Users/nicks/Desktop/coding/ethereum/constantine-forked/nimcache/libconstantine_dynamic/@m..@sconstantine@sethereum_evm_precompiles.nim.c.o'; could not parse bitcode object file /Users/nicks/Desktop/coding/ethereum/constantine-forked/nimcache/libconstantine_dynamic/@mlib_constantine.nim.c.o: 'Unknown attribute kind (86) (Producer: 'LLVM18.1.8' Reader: 'LLVM APPLE_1_1500.1.0.2.5_0')', using libLTO version 'LLVM version 15.0.0' in '/Users/nicks/Desktop/coding/ethereum/constantine-forked/nimcache/libconstantine_dynamic/@mlib_constantine.nim.c.o'; could not parse bitcode object file /Users/nicks/Desktop/coding/ethereum/constantine-forked/nimcache/libconstantine_dynamic/@m..@sconstantine@smath@spairings@slines_eval.nim.c.o: 'Unknown attribute kind (86) (Producer: 'LLVM18.1.8' Reader: 'LLVM APPLE_1_1500.1.0.2.5_0')', using libLTO version 'LLVM version 15.0.0' in '/Users/nicks/Desktop/coding/ethereum/constantine-forked/nimcache/libconstantine_dynamic/@m..@sconstantine@smath@spairings@slines_eval.nim.c.o'; could not parse bitcode object file /Users/nicks/Desktop/coding/ethereum/constantine-forked/nimcache/libconstantine_dynamic/@m..@sconstantine@smath@spairings@scyclotomic_subgroups.nim.c.o: 'Unknown attribute kind (86) (Producer: 'LLVM18.1.8' Reader: 'LLVM APPLE_1_1500.1.0.2.5_0')', using libLTO version 'LLVM version 15.0.0' in '/Users/nicks/Desktop/coding/ethereum/constantine-forked/nimcache/libconstantine_dynamic/@m..@sconstantine@smath@spairings@scyclotomic_subgroups.nim.c.o'; could not parse bitcode object file /Users/nicks/Desktop/coding/ethereum/constantine-forked/nimcache/libconstantine_dynamic/@mlib_curves.nim.c.o: 'Unknown attribute kind (86) (Producer: 'LLVM18.1.8' Reader: 'LLVM APPLE_1_1500.1.0.2.5_0')', using libLTO version 'LLVM version 15.0.0' in '/Users/nicks/Desktop/coding/ethereum/constantine-forked/nimcache/libconstantine_dynamic/@mlib_curves.nim.c.o'; could not parse bitcode object file /Users/nicks/Desktop/coding/ethereum/constantine-forked/nimcache/libconstantine_dynamic/@m..@sconstantine@shash_to_curve@shash_to_curve.nim.c.o: 'Unknown attribute kind (86) (Producer: 'LLVM18.1.8' Reader: 'LLVM APPLE_1_1500.1.0.2.5_0')', using libLTO version 'LLVM version 15.0.0' in '/Users/nicks/Desktop/coding/ethereum/constantine-forked/nimcache/libconstantine_dynamic/@m..@sconstantine@shash_to_curve@shash_to_curve.nim.c.o'
clang: error: linker command failed with exit code 1 (use -v to see invocation)
Error: execution of an external program failed: 'clang   -shared -o /Users/nicks/Desktop/coding/ethereum/constantine-forked/lib/libconstantine.dylib.arm  /Users/nicks/Desktop/coding/ethereum/constantine-forked/nimcache/libconstantine_dynamic/@m..@s..@s..@s..@s..@s.choosenim@stoolchains@snim-2.0.4@slib@ssystem@sexceptions.nim.c.o /Users/nicks/Desktop/coding/ethereum/constantine-forked/nimcache/libconstantine_dynamic/@m..@s..@s..@s..@s..@s.choosenim@stoolchains@snim-2.0.4@slib@sstd@sprivate@sdigitsutils.nim.c.o /Users/nicks/Desktop/coding/ethereum/constantine-forked/nimcache/libconstantine_dynamic/@m..@s..@s..@s..@s..@s.choosenim@stoolchains@snim-2.0.4@slib@sstd@sassertions.nim.c.o /Users/nicks/Desktop/coding/ethereum/constantine-forked/nimcache/libconstantine_dynamic/@m..@s..@s..@s..@s..@s.choosenim@stoolchains@snim-2.0.4@slib@sstd@stypedthreads.nim.c.o /Users/nicks/Desktop/coding/ethereum/constantine-forked/nimcache/libconstantine_dynamic/@m..@s..@s..@s..@s..@s.choosenim@stoolchains@snim-2.0.4@slib@ssystem.nim.c.o /Users/nicks/Desktop/coding/ethereum/constantine-forked/nimcache/libconstantine_dynamic/@m..@sconstantine@splatforms@sfileio.nim.c.o /Users/nicks/Desktop/coding/ethereum/constantine-forked/nimcache/libconstantine_dynamic/@m..@sconstantine@sthreadpool@scrossthread@stasks_flowvars.nim.c.o /Users/nicks/Desktop/coding/ethereum/constantine-forked/nimcache/libconstantine_dynamic/@m..@sconstantine@sthreadpool@scrossthread@staskqueues.nim.c.o /Users/nicks/Desktop/coding/ethereum/constantine-forked/nimcache/libconstantine_dynamic/@m..@sconstantine@sthreadpool@sprimitives@sbarriers_macos.nim.c.o /Users/nicks/Desktop/coding/ethereum/constantine-forked/nimcache/libconstantine_dynamic/@m..@sconstantine@sthreadpool@sprimitives@stopology.nim.c.o /Users/nicks/Desktop/coding/ethereum/constantine-forked/nimcache/libconstantine_dynamic/@m..@sconstantine@sthreadpool@sthreadpool.nim.c.o /Users/nicks/Desktop/coding/ethereum/constantine-forked/nimcache/libconstantine_dynamic/@m..@sconstantine@shashes@ssha256@ssha256_generic.nim.c.o /Users/nicks/Desktop/coding/ethereum/constantine-forked/nimcache/libconstantine_dynamic/@m..@sconstantine@shashes@sh_sha256.nim.c.o /Users/nicks/Desktop/coding/ethereum/constantine-forked/nimcache/libconstantine_dynamic/@m..@sconstantine@shashes.nim.c.o /Users/nicks/Desktop/coding/ethereum/constantine-forked/nimcache/libconstantine_dynamic/@mlib_hashes.nim.c.o /Users/nicks/Desktop/coding/ethereum/constantine-forked/nimcache/libconstantine_dynamic/@m..@sconstantine@sserialization@scodecs.nim.c.o /Users/nicks/Desktop/coding/ethereum/constantine-forked/nimcache/libconstantine_dynamic/@m..@sconstantine@sserialization@sio_limbs.nim.c.o /Users/nicks/Desktop/coding/ethereum/constantine-forked/nimcache/libconstantine_dynamic/@m..@sconstantine@smath@sarithmetic@slimbs_extmul.nim.c.o /Users/nicks/Desktop/coding/ethereum/constantine-forked/nimcache/libconstantine_dynamic/@m..@sconstantine@smath@sarithmetic@slimbs_unsaturated.nim.c.o /Users/nicks/Desktop/coding/ethereum/constantine-forked/nimcache/libconstantine_dynamic/@m..@sconstantine@smath@sarithmetic@slimbs_exgcd.nim.c.o /Users/nicks/Desktop/coding/ethereum/constantine-forked/nimcache/libconstantine_dynamic/@m..@sconstantine@smath_arbitrary_precision@sarithmetic@slimbs_views.nim.c.o /Users/nicks/Desktop/coding/ethereum/constantine-forked/nimcache/libconstantine_dynamic/@m..@sconstantine@smath_arbitrary_precision@sarithmetic@slimbs_fixedprec.nim.c.o /Users/nicks/Desktop/coding/ethereum/constantine-forked/nimcache/libconstantine_dynamic/@m..@sconstantine@smath_arbitrary_precision@sarithmetic@slimbs_divmod_vartime.nim.c.o /Users/nicks/Desktop/coding/ethereum/constantine-forked/nimcache/libconstantine_dynamic/@m..@sconstantine@smath@sarithmetic@sbigints.nim.c.o /Users/nicks/Desktop/coding/ethereum/constantine-forked/nimcache/libconstantine_dynamic/@m..@sconstantine@snamed@sconfig_fields_and_curves.nim.c.o /Users/nicks/Desktop/coding/ethereum/constantine-forked/nimcache/libconstantine_dynamic/@m..@sconstantine@snamed@sderiv@sprecompute.nim.c.o /Users/nicks/Desktop/coding/ethereum/constantine-forked/nimcache/libconstantine_dynamic/@m..@sconstantine@snamed@sproperties_fields.nim.c.o /Users/nicks/Desktop/coding/ethereum/constantine-forked/nimcache/libconstantine_dynamic/@m..@sconstantine@smath@sarithmetic@slimbs_montgomery.nim.c.o /Users/nicks/Desktop/coding/ethereum/constantine-forked/nimcache/libconstantine_dynamic/@m..@sconstantine@snamed@sconstants@sbls12_381_sqrt.nim.c.o /Users/nicks/Desktop/coding/ethereum/constantine-forked/nimcache/libconstantine_dynamic/@m..@sconstantine@snamed@sconstants@sbn254_snarks_sqrt.nim.c.o /Users/nicks/Desktop/coding/ethereum/constantine-forked/nimcache/libconstantine_dynamic/@m..@sconstantine@snamed@sconstants@spallas_sqrt.nim.c.o /Users/nicks/Desktop/coding/ethereum/constantine-forked/nimcache/libconstantine_dynamic/@m..@sconstantine@snamed@sconstants@svesta_sqrt.nim.c.o /Users/nicks/Desktop/coding/ethereum/constantine-forked/nimcache/libconstantine_dynamic/@m..@sconstantine@smath@sarithmetic@sfinite_fields_square_root.nim.c.o /Users/nicks/Desktop/coding/ethereum/constantine-forked/nimcache/libconstantine_dynamic/@m..@sconstantine@smath@sextension_fields@stowers.nim.c.o /Users/nicks/Desktop/coding/ethereum/constantine-forked/nimcache/libconstantine_dynamic/@m..@sconstantine@snamed@sconstants@sbls12_381_sqrt_fp2.nim.c.o /Users/nicks/Desktop/coding/ethereum/constantine-forked/nimcache/libconstantine_dynamic/@m..@sconstantine@snamed@sconstants@sbn254_snarks_sqrt_fp2.nim.c.o /Users/nicks/Desktop/coding/ethereum/constantine-forked/nimcache/libconstantine_dynamic/@m..@sconstantine@smath@sextension_fields@ssquare_root_fp2.nim.c.o /Users/nicks/Desktop/coding/ethereum/constantine-forked/nimcache/libconstantine_dynamic/@m..@sconstantine@smath@sisogenies@sfrobenius.nim.c.o /Users/nicks/Desktop/coding/ethereum/constantine-forked/nimcache/libconstantine_dynamic/@m..@sconstantine@snamed@sconstants@sbls12_381_constants.nim.c.o /Users/nicks/Desktop/coding/ethereum/constantine-forked/nimcache/libconstantine_dynamic/@m..@sconstantine@snamed@sconstants@sbn254_snarks_constants.nim.c.o /Users/nicks/Desktop/coding/ethereum/constantine-forked/nimcache/libconstantine_dynamic/@m..@sconstantine@smath@selliptic@sec_shortweierstrass_affine.nim.c.o /Users/nicks/Desktop/coding/ethereum/constantine-forked/nimcache/libconstantine_dynamic/@m..@sconstantine@smath@selliptic@sec_shortweierstrass_jacobian.nim.c.o /Users/nicks/Desktop/coding/ethereum/constantine-forked/nimcache/libconstantine_dynamic/@m..@sconstantine@smath@selliptic@sec_shortweierstrass_projective.nim.c.o /Users/nicks/Desktop/coding/ethereum/constantine-forked/nimcache/libconstantine_dynamic/@m..@sconstantine@smath@selliptic@sec_shortweierstrass_batch_ops.nim.c.o /Users/nicks/Desktop/coding/ethereum/constantine-forked/nimcache/libconstantine_dynamic/@m..@sconstantine@snamed@sconstants@sbls12_381_endomorphisms.nim.c.o /Users/nicks/Desktop/coding/ethereum/constantine-forked/nimcache/libconstantine_dynamic/@m..@sconstantine@snamed@sconstants@sbn254_snarks_endomorphisms.nim.c.o /Users/nicks/Desktop/coding/ethereum/constantine-forked/nimcache/libconstantine_dynamic/@m..@sconstantine@snamed@sconstants@spallas_endomorphisms.nim.c.o /Users/nicks/Desktop/coding/ethereum/constantine-forked/nimcache/libconstantine_dynamic/@m..@sconstantine@snamed@sconstants@svesta_endomorphisms.nim.c.o /Users/nicks/Desktop/coding/ethereum/constantine-forked/nimcache/libconstantine_dynamic/@m..@sconstantine@smath@selliptic@sec_endomorphism_accel.nim.c.o /Users/nicks/Desktop/coding/ethereum/constantine-forked/nimcache/libconstantine_dynamic/@m..@sconstantine@smath@selliptic@sec_scalar_mul_vartime.nim.c.o /Users/nicks/Desktop/coding/ethereum/constantine-forked/nimcache/libconstantine_dynamic/@m..@sconstantine@smath@selliptic@sec_multi_scalar_mul_scheduler.nim.c.o /Users/nicks/Desktop/coding/ethereum/constantine-forked/nimcache/libconstantine_dynamic/@m..@sconstantine@smath@selliptic@sec_multi_scalar_mul.nim.c.o /Users/nicks/Desktop/coding/ethereum/constantine-forked/nimcache/libconstantine_dynamic/@m..@sconstantine@snamed@sconstants@sbls12_381_generators.nim.c.o /Users/nicks/Desktop/coding/ethereum/constantine-forked/nimcache/libconstantine_dynamic/@m..@sconstantine@snamed@sconstants@sbls12_381_subgroups.nim.c.o /Users/nicks/Desktop/coding/ethereum/constantine-forked/nimcache/libconstantine_dynamic/@m..@sconstantine@snamed@sconstants@sbn254_snarks_subgroups.nim.c.o /Users/nicks/Desktop/coding/ethereum/constantine-forked/nimcache/libconstantine_dynamic/@m..@sconstantine@snamed@sconstants@sbls12_381_hash_to_curve_g1.nim.c.o /Users/nicks/Desktop/coding/ethereum/constantine-forked/nimcache/libconstantine_dynamic/@m..@sconstantine@snamed@sconstants@sbls12_381_hash_to_curve_g2.nim.c.o /Users/nicks/Desktop/coding/ethereum/constantine-forked/nimcache/libconstantine_dynamic/@m..@sconstantine@shash_to_curve@sh2c_hash_to_field.nim.c.o /Users/nicks/Desktop/coding/ethereum/constantine-forked/nimcache/libconstantine_dynamic/@m..@sconstantine@shash_to_curve@sh2c_utilities.nim.c.o /Users/nicks/Desktop/coding/ethereum/constantine-forked/nimcache/libconstantine_dynamic/@m..@sconstantine@shash_to_curve@sh2c_map_to_isocurve_swu.nim.c.o /Users/nicks/Desktop/coding/ethereum/constantine-forked/nimcache/libconstantine_dynamic/@m..@sconstantine@shash_to_curve@sh2c_isogeny_maps.nim.c.o /Users/nicks/Desktop/coding/ethereum/constantine-forked/nimcache/libconstantine_dynamic/@m..@sconstantine@shash_to_curve@shash_to_curve.nim.c.o /Users/nicks/Desktop/coding/ethereum/constantine-forked/nimcache/libconstantine_dynamic/@m..@sconstantine@smath@selliptic@sec_multi_scalar_mul_parallel.nim.c.o /Users/nicks/Desktop/coding/ethereum/constantine-forked/nimcache/libconstantine_dynamic/@mlib_curves.nim.c.o /Users/nicks/Desktop/coding/ethereum/constantine-forked/nimcache/libconstantine_dynamic/@m..@sconstantine@scsprngs@ssysrand.nim.c.o /Users/nicks/Desktop/coding/ethereum/constantine-forked/nimcache/libconstantine_dynamic/@m..@sconstantine@smath@spairings@scyclotomic_subgroups.nim.c.o /Users/nicks/Desktop/coding/ethereum/constantine-forked/nimcache/libconstantine_dynamic/@m..@sconstantine@smath@spairings@slines_eval.nim.c.o /Users/nicks/Desktop/coding/ethereum/constantine-forked/nimcache/libconstantine_dynamic/@m..@sconstantine@smath@spairings@smiller_loops.nim.c.o /Users/nicks/Desktop/coding/ethereum/constantine-forked/nimcache/libconstantine_dynamic/@m..@sconstantine@snamed@sconstants@sbls12_381_pairings.nim.c.o /Users/nicks/Desktop/coding/ethereum/constantine-forked/nimcache/libconstantine_dynamic/@m..@sconstantine@snamed@sconstants@sbn254_snarks_pairings.nim.c.o /Users/nicks/Desktop/coding/ethereum/constantine-forked/nimcache/libconstantine_dynamic/@m..@sconstantine@smath@spairings@spairings_bn.nim.c.o /Users/nicks/Desktop/coding/ethereum/constantine-forked/nimcache/libconstantine_dynamic/@m..@sconstantine@smath@spairings@spairings_bls12.nim.c.o /Users/nicks/Desktop/coding/ethereum/constantine-forked/nimcache/libconstantine_dynamic/@m..@sconstantine@smath@spairings@smiller_accumulators.nim.c.o /Users/nicks/Desktop/coding/ethereum/constantine-forked/nimcache/libconstantine_dynamic/@m..@sconstantine@ssignatures@sbls_signatures.nim.c.o /Users/nicks/Desktop/coding/ethereum/constantine-forked/nimcache/libconstantine_dynamic/@m..@sconstantine@sserialization@scodecs_bls12_381.nim.c.o /Users/nicks/Desktop/coding/ethereum/constantine-forked/nimcache/libconstantine_dynamic/@m..@sconstantine@sethereum_bls_signatures.nim.c.o /Users/nicks/Desktop/coding/ethereum/constantine-forked/nimcache/libconstantine_dynamic/@m..@sconstantine@ssignatures@sbls_signatures_parallel.nim.c.o /Users/nicks/Desktop/coding/ethereum/constantine-forked/nimcache/libconstantine_dynamic/@m..@sconstantine@sethereum_bls_signatures_parallel.nim.c.o /Users/nicks/Desktop/coding/ethereum/constantine-forked/nimcache/libconstantine_dynamic/@m..@sconstantine@smath@spolynomials@spolynomials.nim.c.o /Users/nicks/Desktop/coding/ethereum/constantine-forked/nimcache/libconstantine_dynamic/@m..@sconstantine@smath@spolynomials@sfft.nim.c.o /Users/nicks/Desktop/coding/ethereum/constantine-forked/nimcache/libconstantine_dynamic/@m..@sconstantine@scommitments_setups@sethereum_kzg_srs.nim.c.o /Users/nicks/Desktop/coding/ethereum/constantine-forked/nimcache/libconstantine_dynamic/@m..@sconstantine@scommitments@sprotocol_quotient_check.nim.c.o /Users/nicks/Desktop/coding/ethereum/constantine-forked/nimcache/libconstantine_dynamic/@m..@sconstantine@scommitments@skzg.nim.c.o /Users/nicks/Desktop/coding/ethereum/constantine-forked/nimcache/libconstantine_dynamic/@m..@sconstantine@sethereum_eip4844_kzg.nim.c.o /Users/nicks/Desktop/coding/ethereum/constantine-forked/nimcache/libconstantine_dynamic/@m..@sconstantine@smath@spolynomials@spolynomials_parallel.nim.c.o /Users/nicks/Desktop/coding/ethereum/constantine-forked/nimcache/libconstantine_dynamic/@m..@sconstantine@scommitments@sprotocol_quotient_check_parallel.nim.c.o /Users/nicks/Desktop/coding/ethereum/constantine-forked/nimcache/libconstantine_dynamic/@m..@sconstantine@scommitments@skzg_parallel.nim.c.o /Users/nicks/Desktop/coding/ethereum/constantine-forked/nimcache/libconstantine_dynamic/@m..@sconstantine@sethereum_eip4844_kzg_parallel.nim.c.o /Users/nicks/Desktop/coding/ethereum/constantine-forked/nimcache/libconstantine_dynamic/@m..@sconstantine@smath_arbitrary_precision@sarithmetic@slimbs_multiprec.nim.c.o /Users/nicks/Desktop/coding/ethereum/constantine-forked/nimcache/libconstantine_dynamic/@m..@sconstantine@smath_arbitrary_precision@sarithmetic@slimbs_montgomery.nim.c.o /Users/nicks/Desktop/coding/ethereum/constantine-forked/nimcache/libconstantine_dynamic/@m..@sconstantine@smath_arbitrary_precision@sarithmetic@slimbs_extmul.nim.c.o /Users/nicks/Desktop/coding/ethereum/constantine-forked/nimcache/libconstantine_dynamic/@m..@sconstantine@smath_arbitrary_precision@sarithmetic@slimbs_mod2k.nim.c.o /Users/nicks/Desktop/coding/ethereum/constantine-forked/nimcache/libconstantine_dynamic/@m..@sconstantine@smath_arbitrary_precision@sarithmetic@sbigints_views.nim.c.o /Users/nicks/Desktop/coding/ethereum/constantine-forked/nimcache/libconstantine_dynamic/@m..@sconstantine@sethereum_evm_precompiles.nim.c.o /Users/nicks/Desktop/coding/ethereum/constantine-forked/nimcache/libconstantine_dynamic/@mlib_constantine.nim.c.o  -lm -lm  -target arm64-apple-macos11 -Wno-stringop-overflow -Wno-alloc-size-larger-than  -ldl -flto'
stack trace: (most recent call last)
/private/var/folders/0c/gprgl0vs4x3722q1fsw8qfdw0000gn/T/nimblecache-1720177987/nimscriptapi_492484323.nim(210, 16)
/Users/nicks/Desktop/coding/ethereum/constantine-forked/constantine.nimble(270, 16) make_libTask
/Users/nicks/Desktop/coding/ethereum/constantine-forked/constantine.nimble(222, 5) genDynamicLib
/Users/nicks/Desktop/coding/ethereum/constantine-forked/constantine.nimble(208, 5) compile
/Users/nicks/.choosenim/toolchains/nim-2.0.4/lib/system/nimscript.nim(265, 7) exec
/Users/nicks/.choosenim/toolchains/nim-2.0.4/lib/system/nimscript.nim(265, 7) Error: unhandled exception: FAILED: nim c --cpu:arm64 -l:'-target arm64-apple-macos11' -t:'-target arm64-apple-macos11' -d:lto  --passC:-Wno-stringop-overflow --passL:-Wno-stringop-overflow  --passC:-Wno-alloc-size-larger-than --passL:-Wno-alloc-size-larger-than  --tlsEmulation=off  -d:danger  --panics:on -d:noSignalHandler  --mm:arc -d:useMalloc  --verbosity:0 --hints:off --warnings:off  --passC:-fno-semantic-interposition  --passC:-falign-functions=64  --passC:-fmerge-all-constants --threads:on  --noMain --app:lib  --nimMainPrefix:ctt_init_  --out:libconstantine.dylib.arm --outdir:lib  --nimcache:nimcache/libconstantine_dynamic bindings/lib_constantine.nim [OSError]
       Tip: 1 messages have been suppressed, use --verbose to show them.
nimscriptwrapper.nim(160) execScript

    Error:  Exception raised during nimble script execution
NickSneo commented 5 months ago

I have added this lib as submodule in https://github.com/hyperledger/besu-native repo

I have to create nim bindings for besu-native. But when I am trying to run -

task compileNim(type: Exec) {
    commandLine '/Users/nicks/.nimble/bin/nim', 'c', '--noMain', '-d:release', '--app:lib', '--out:build/libs/libconstantine_eip196.so', './constantine_eip196_bindings.nim'
}

I am getting error -

Hint: used config file '/Users/nicks/.choosenim/toolchains/nim-2.0.4/config/nim.cfg' [Conf]
Hint: used config file '/Users/nicks/.choosenim/toolchains/nim-2.0.4/config/config.nims' [Conf]
.....................................................................................................................................................................................................................................................................................
/Users/nicks/Desktop/coding/besu/besu-native-forked/constantine/constantine/constantine/named/deriv/parser_curves.nim(125, 12) template/generic instantiation of `setupCurves` from here
/Users/nicks/Desktop/coding/besu/besu-native-forked/constantine/constantine/constantine/named/deriv/parser_curves.nim(35, 37) Error: identifier expected
mratsim commented 5 months ago

From your error lines it seems like you are mixing Apple Clang with LLVM upstream:

'Unknown attribute kind (86) (Producer: 'LLVM18.1.8' Reader: 'LLVM APPLE_1_1500.1.0.2.5_0')', using libLTO version 'LLVM version 15.0.0'

It should work if you disable LTO with CTT_LTO=false as under LLVM, LTO uses LLVM bitcode. Alternatively you can ensure that Clang+your linker are the same version, either Apple's or upstream LLVM.

Unfortunately I don't have an Apple M1~3 computer to test that. Apple decided to NOT release a Mac Studio M3 :/

NickSneo commented 4 months ago

From your error lines it seems like you are mixing Apple Clang with LLVM upstream:

'Unknown attribute kind (86) (Producer: 'LLVM18.1.8' Reader: 'LLVM APPLE_1_1500.1.0.2.5_0')', using libLTO version 'LLVM version 15.0.0'

It should work if you disable LTO with CTT_LTO=false as under LLVM, LTO uses LLVM bitcode. Alternatively you can ensure that Clang+your linker are the same version, either Apple's or upstream LLVM.

Unfortunately I don't have an Apple M1~3 computer to test that. Apple decided to NOT release a Mac Studio M3 :/

Thank you, It is working with CTT_LTO=false