Is there an existing issue for this?
- I have searched the existing issues
Current behaviour
Configure with
0./configure --enable-fuzz --enable-debug --with-sanitizers=address,fuzzer,undefined,integer CC=clang CXX=clang++
Compile fails:
0crypto/sha256_sse4.cpp:44:9: error: expected relocatable expression
1 44 | "shl $0x6,%2;"
2 | ^
3<inline asm>:1:1882: note: instantiated into assembly here
4crypto/sha256_sse4.cpp:44:9: error: expected relocatable expression
5 44 | "shl $0x6,%2;"
6 | ^
7<inline asm>:1:2591: note: instantiated into assembly here
8crypto/sha256_sse4.cpp:44:9: error: expected relocatable expression
9 44 | "shl $0x6,%2;"
10 | ^
11<inline asm>:1:3284: note: instantiated into assembly here
12crypto/sha256_sse4.cpp:44:9: error: expected relocatable expression
13 44 | "shl $0x6,%2;"
14 | ^
15<inline asm>:1:4686: note: instantiated into assembly here
16crypto/sha256_sse4.cpp:44:9: error: expected relocatable expression
17 44 | "shl $0x6,%2;"
18 | ^
19<inline asm>:1:5395: note: instantiated into assembly here
20crypto/sha256_sse4.cpp:44:9: error: expected relocatable expression
21 44 | "shl $0x6,%2;"
22 | ^
23<inline asm>:1:6088: note: instantiated into assembly here
24crypto/sha256_sse4.cpp:44:9: error: expected relocatable expression
25 44 | "shl $0x6,%2;"
26 | ^
27<inline asm>:1:7490: note: instantiated into assembly here
28crypto/sha256_sse4.cpp:44:9: error: expected relocatable expression
29 44 | "shl $0x6,%2;"
30 | ^
31<inline asm>:1:8199: note: instantiated into assembly here
32crypto/sha256_sse4.cpp:44:9: error: expected relocatable expression
33 44 | "shl $0x6,%2;"
34 | ^
35<inline asm>:1:8892: note: instantiated into assembly here
36crypto/sha256_sse4.cpp:44:9: error: expected relocatable expression
37 44 | "shl $0x6,%2;"
38 | ^
39<inline asm>:1:10312: note: instantiated into assembly here
40crypto/sha256_sse4.cpp:44:9: error: expected relocatable expression
41 44 | "shl $0x6,%2;"
42 | ^
43<inline asm>:1:11021: note: instantiated into assembly here
44crypto/sha256_sse4.cpp:44:9: error: expected relocatable expression
45 44 | "shl $0x6,%2;"
46 | ^
47<inline asm>:1:11714: note: instantiated into assembly here
48crypto/sha256_sse4.cpp:44:9: error: expected relocatable expression
49 44 | "shl $0x6,%2;"
50 | ^
51<inline asm>:1:12859: note: instantiated into assembly here
52crypto/sha256_sse4.cpp:44:9: error: expected relocatable expression
53 44 | "shl $0x6,%2;"
54 | ^
55<inline asm>:1:13356: note: instantiated into assembly here
56crypto/sha256_sse4.cpp:44:9: error: expected relocatable expression
57 44 | "shl $0x6,%2;"
58 | ^
59<inline asm>:1:13853: note: instantiated into assembly here
60crypto/sha256_sse4.cpp:44:9: error: expected relocatable expression
61 44 | "shl $0x6,%2;"
62 | ^
63<inline asm>:1:14900: note: instantiated into assembly here
64crypto/sha256_sse4.cpp:44:9: error: expected relocatable expression
65 44 | "shl $0x6,%2;"
66 | ^
67<inline asm>:1:15397: note: instantiated into assembly here
68crypto/sha256_sse4.cpp:44:9: error: expected relocatable expression
69 44 | "shl $0x6,%2;"
70 | ^
71<inline asm>:1:15894: note: instantiated into assembly here
7218 errors generated.
73make[2]: *** [Makefile:14531: crypto/libbitcoin_crypto_base_la-sha256_sse4.lo] Error 1
Expected behaviour
It should successfully compile with the debug symbols so that fuzz crashes can be debugged.
Previously, it was possible to work around this issue by using --disable-asm
however that was removed in #29407
Steps to reproduce
See above configure .
--enable-debug
and --enable-fuzz
individually do not result in compilation failure. I am only seeing this when using them together.
Relevant log output
How did you obtain Bitcoin Core
Compiled from source
What version of Bitcoin Core are you using?
master@0d509bab45d292caeaf34600e57b5928757c6005
Operating system and version
Arch w/ linux kernel 6.8.2
Machine specifications
No response