Topic: Building for OSX 14.4

Hey,

I am trying to build wolfSSL 5.7.0 for OSX 14.4 but running into errors at the make step.

Here is a snippet of my errors:

wolfcrypt/src/sp_int.c:6299:9: error: invalid operand for instruction
        SP_ASM_MUL_ADD_NO(l, h, a->dp[i], d);
        ^
wolfcrypt/src/sp_int.c:1164:9: note: expanded from macro 'SP_ASM_MUL_ADD_NO'
        "umlal  %[l], %[h], %[a], %[b]  \n\t"            \
        ^
<inline asm>:1:8: note: instantiated into assembly here
        umlal   x11, x10, x13, x1   

If anyone can help me out with what could potentially be causing this and if there are any config flags that could help, it would be a huge help!

Running on:
Apple clang version 15.0.0 (clang-1500.3.9.4)
Target: arm64-apple-darwin23.4.0
Thread model: posix

Share

2 (edited by manya 2024-06-17 10:09:14)

Re: Building for OSX 14.4

If someone finds themselves here with a similar problem, these configuration flags fixed it for me:

./configure CFLAGS="-march=armv8-a" --disable-asm

Share

Re: Building for OSX 14.4

Hi manya,

Please share your build config for wolfSSL (./configure line or user_settings.h).  I will have our assembly expert review this.
It would be helpful to know if you see the same issue on wolfSSL master.

Thanks,
Kareem

Share

Re: Building for OSX 14.4

Hi manya,

I just saw your updated post.  Disabling asm will work around the issue, but ideally I would like to get this fixed so you can benefit from our assembly optimizations as well.

Share