Opened 5 years ago

Closed 14 months ago

#59144 closed defect (fixed)

wolfssl @3.15.3 +universal: inline assembly requires more registers than available

Reported by: ryandesign (Ryan Carsten Schmidt) Owned by: chris@…
Priority: Normal Milestone:
Component: ports Version: 2.6.0
Keywords: Cc:
Port: wolfssl

Description

wolfssl doesn't build with the +universal variant.

In file included from wolfcrypt/src/tfm.c:44:
./wolfcrypt/src/misc.c:150:61: warning: shift count >= width of type [-Wshift-count-overflow]
        return (word64)((word64)ByteReverseWord32((word32) value)) << 32 |
                                                                   ^  ~~
./wolfcrypt/src/misc.c:151:64: warning: shift count >= width of type [-Wshift-count-overflow]
                    (word64)ByteReverseWord32((word32)(value   >> 32));
                                                               ^  ~~
wolfcrypt/src/tfm.c:1544:11: error: inline assembly requires more registers than available
          SQRADD2(*tmpx++, *tmpy--);
          ^
./wolfcrypt/src/asm.c:710:6: note: expanded from macro 'SQRADD2'
     "movl  %6,%%eax     \n\t"                            \
     ^
wolfcrypt/src/tfm.c:1550:11: error: inline assembly requires more registers than available
          SQRADD(A->dp[ix>>1], A->dp[ix>>1]);
          ^
./wolfcrypt/src/asm.c:701:6: note: expanded from macro 'SQRADD'
     "movl  %6,%%eax     \n\t"                            \
     ^
2 warnings and 2 errors generated.

It does build without the +universal variant.

Attachments (1)

main.log (168.2 KB) - added by ryandesign (Ryan Carsten Schmidt) 5 years ago.

Download all attachments as: .zip

Change History (2)

Changed 5 years ago by ryandesign (Ryan Carsten Schmidt)

Attachment: main.log added

comment:1 Changed 14 months ago by kencu (Ken)

Resolution: fixed
Status: assignedclosed

wolfssl now installs +universal (i386/x86_64, which was the arch mix of this ticket):

$ port -v installed wolfssl
The following ports are currently installed:
  wolfssl @5.6.3_0 (active) requested_variants='' platform='darwin 18' archs='x86_64' date='2023-07-22T10:14:52-0700'
Note: See TracTickets for help on using tickets.