1

(6 replies, posted in wolfSSL)

I'm using wolfSSL 5.7.6 unzipped from the download on https://www.wolfssl.com/download/

% sha256 wolfssl-5.7.6.zip
SHA256 (wolfssl-5.7.6.zip) = cbb9da98a678156b1b294301ffd0139cfae19c60b46dff397418940690291a20


% gcc --version
Apple clang version 16.0.0 (clang-1600.0.26.6)
Target: arm64-apple-darwin24.2.0
Thread model: posix
InstalledDir: /Library/Developer/CommandLineTools/usr/bin

This is a pretty default C environment for this machine.  I have not installed gcc specifically so /usr/bin/cc and /usr/bin/gcc are both actually clang (as will be the case for most macOS machines).  Sequoia 15.2.

Any suggestions?

2

(6 replies, posted in wolfSSL)

I have the same (probably) issue.  I ran ./configure with no options and then make.

when I run ./configure I get

./configure flags:

at the end (yes, its empty after the colon)

then make outputs thousands of lines of warnings and errors.

fatal error: too many errors emitted, stopping now [-ferror-limit=]
3371 warnings and 20 errors generated.

the last 5

wolfcrypt/src/sp_int.c:1321:32: error: expected compatible register, symbol or integer in range [0, 4095]
1321 |         "add    %[r], %[r], %[r]\n\t"
      |                                   ^
<inline asm>:15:16: note: instantiated into assembly here
   15 |         sub     x12, x12, r8
      |                           ^
wolfcrypt/src/sp_int.c:1322:30: error: invalid operand for instruction
1322 |         "sub    %[r], %[r], r8\n\t"
      |                                 ^
<inline asm>:16:6: note: instantiated into assembly here
   16 |         and     r8, r8, r5
      |                 ^
wolfcrypt/src/sp_int.c:1323:26: error: invalid operand for instruction
1323 |         "and    r8, r8, r5\n\t"
      |                             ^
<inline asm>:17:7: note: instantiated into assembly here
   17 |         subs    r9, r9, r8
      |                 ^
wolfcrypt/src/sp_int.c:1324:27: error: invalid operand for instruction
1324 |         "subs   r9, r9, r8\n\t"
      |                             ^
<inline asm>:18:6: note: instantiated into assembly here
   18 |         mov     r4, #29
      |                 ^
wolfcrypt/src/sp_int.c:1327:16: error: invalid operand for instruction
1327 |         "\n1:\n\t"
      |                ^
<inline asm>:21:7: note: instantiated into assembly here
   21 |         movs    r6, r6, lsl #1


I'll answer any questions you may have about my build environment.