Open bufrr opened 3 months ago
Same thing happen to me when trying to compile on my laptop. Did not investigate yet.
That error doesn't happen to me:
$ lsb_release -a
No LSB modules are available.
Distributor ID: Ubuntu
Description: Ubuntu 22.04.4 LTS
Release: 22.04
Codename: jammy
$ gcc --version
gcc (Ubuntu 11.4.0-1ubuntu1~22.04) 11.4.0
I guess it may be an architecture issue. @SionoiS , @bufrr - may share more details about the machine where you have this issue? Thanks!
In my case:
$ cmake --version
cmake version 3.22.1
$ uname -m
x86_64
$ gcc -march=native -Q --help=target|grep march
-march= alderlake
Another thing to try is to remove the following line:
https://github.com/bitcoin-core/secp256k1/blob/1ad5185cd42c0636104129fcc9f6a4bf9c67cc40/CMakeLists.txt#L127
from the following file, within nwaku
code: vendor/nim-secp256k1/vendor/secp256k1/CMakeLists.txt
$ lsb_release -a No LSB modules are available. Distributor ID: Ubuntu Description: Ubuntu 22.04.4 LTS Release: 22.04 Codename: jammy
Same
$ gcc --version gcc (Ubuntu 11.4.0-1ubuntu1~22.04) 11.4.0
Same
$ cmake --version cmake version 3.22.1
Same
$ uname -m x86_64
Same
$ gcc -march=native -Q --help=target|grep march -march= alderlake
I'm on a recent AMD
Architecture: x86_64
CPU op-mode(s): 32-bit, 64-bit
Address sizes: 48 bits physical, 48 bits virtual
Byte Order: Little Endian
CPU(s): 16
On-line CPU(s) list: 0-15
Vendor ID: AuthenticAMD
Model name: AMD Ryzen 7 PRO 7840U w/ Radeon 780M Graphics
CPU family: 25
Model: 116
Thread(s) per core: 2
Core(s) per socket: 8
Socket(s): 1
Stepping: 1
CPU max MHz: 6076.0000
CPU min MHz: 400.0000
BogoMIPS: 6587.63
Flags: fpu vme de pse tsc msr pae mce cx8 apic sep mtrr pge mc
a cmov pat pse36 clflush mmx fxsr sse sse2 ht syscall n
x mmxext fxsr_opt pdpe1gb rdtscp lm constant_tsc rep_go
od amd_lbr_v2 nopl nonstop_tsc cpuid extd_apicid aperfm
perf rapl pni pclmulqdq monitor ssse3 fma cx16 sse4_1 s
se4_2 x2apic movbe popcnt aes xsave avx f16c rdrand lah
f_lm cmp_legacy svm extapic cr8_legacy abm sse4a misali
gnsse 3dnowprefetch osvw ibs skinit wdt tce topoext per
fctr_core perfctr_nb bpext perfctr_llc mwaitx cpb cat_l
3 cdp_l3 hw_pstate ssbd mba perfmon_v2 ibrs ibpb stibp
ibrs_enhanced vmmcall fsgsbase bmi1 avx2 smep bmi2 erms
invpcid cqm rdt_a avx512f avx512dq rdseed adx smap avx
512ifma clflushopt clwb avx512cd sha_ni avx512bw avx512
vl xsaveopt xsavec xgetbv1 xsaves cqm_llc cqm_occup_llc
cqm_mbm_total cqm_mbm_local avx512_bf16 clzero irperf
xsaveerptr rdpru wbnoinvd cppc arat npt lbrv svm_lock n
rip_save tsc_scale vmcb_clean flushbyasid decodeassists
pausefilter pfthreshold v_vmsave_vmload vgif x2avic v_
spec_ctrl vnmi avx512vbmi umip pku ospke avx512_vbmi2 g
fni vaes vpclmulqdq avx512_vnni avx512_bitalg avx512_vp
opcntdq rdpid overflow_recov succor smca fsrm flush_l1d
Virtualization features:
Virtualization: AMD-V
Caches (sum of all):
L1d: 256 KiB (8 instances)
L1i: 256 KiB (8 instances)
L2: 8 MiB (8 instances)
L3: 16 MiB (1 instance)
NUMA:
NUMA node(s): 1
NUMA node0 CPU(s): 0-15
Vulnerabilities:
Gather data sampling: Not affected
Itlb multihit: Not affected
L1tf: Not affected
Mds: Not affected
Meltdown: Not affected
Mmio stale data: Not affected
Retbleed: Not affected
Spec rstack overflow: Mitigation; Safe RET
Spec store bypass: Mitigation; Speculative Store Bypass disabled via prctl
Spectre v1: Mitigation; usercopy/swapgs barriers and __user pointer
sanitization
Spectre v2: Mitigation; Enhanced / Automatic IBRS, IBPB conditional
, STIBP always-on, RSB filling, PBRSB-eIBRS Not affecte
d
Srbds: Not affected
Tsx async abort: Not affected
CC: @arnetheduck Yeah, we found that inlined asm is only for AMD platforms but seems having issue with the latest CPUs of AMD. https://github.com/status-im/nim-secp256k1/blob/2bc945cc9ebfae1b688f72ea59f78fd23873d1d4/secp256k1/abi.nim#L11
Quick workaround, not to use the USE_ASM_X86_64 flag and let just depend on C code.
Will propose workaround for our dependent library: nim-secp256k1
Follow up issue on vendor lib: https://github.com/status-im/nim-secp256k1/issues/56
Problem
build error
Impact
build error
To reproduce
make wakunode2
Expected behavior
A clear and concise description of what you expected to happen.
Screenshots/logs
nwaku version/commit hash
State the version of
nwaku
where you've encountered the bug or, if built off a specific commit, the relevant commit hash. You can check the version by running./wakunode2 --version
.v0.9
ored53bcd
2aa835e3bfd54eba7311cff0afad60553c4bf121
Additional context
Add any other context about the problem here.