[Bug 13716] New: Broken Android NDK x86 builds with TLS due to triggered ASM code

bugzilla at busybox.net bugzilla at busybox.net
Thu Apr 1 00:25:35 UTC 2021


https://bugs.busybox.net/show_bug.cgi?id=13716

            Bug ID: 13716
           Summary: Broken Android NDK x86 builds with TLS due to
                    triggered ASM code
           Product: Busybox
           Version: unspecified
          Hardware: All
                OS: Linux
            Status: NEW
          Severity: major
          Priority: P5
         Component: Networking
          Assignee: unassigned at busybox.net
          Reporter: osm0sis at outlook.com
                CC: busybox-cvs at busybox.net
  Target Milestone: ---

Created attachment 8881
  --> https://bugs.busybox.net/attachment.cgi?id=8881&action=edit
tls.h patch for the reported issue

This error only shows up on x86 Android compiles:

  CC      networking/tls_pstm_montgomery_reduce.o
networking/tls_pstm_montgomery_reduce.c: In function 'pstm_montgomery_reduce':
networking/tls_pstm_montgomery_reduce.c:66:1: error: 'asm' operand has
impossible constraints
 asm(                                                      \
 ^
networking/tls_pstm_montgomery_reduce.c:385:4: note: in expansion of macro
'INNERMUL'
    INNERMUL;
    ^
make[1]: *** [scripts/Makefile.build:198:
networking/tls_pstm_montgomery_reduce.o] Error 1
make: *** [Makefile:744: networking] Error 2

But can be resolved by patching around the ASM code in question, which was
intended for Linux i386, not Android x86. Patch attached.

-- 
You are receiving this mail because:
You are on the CC list for the bug.


More information about the busybox-cvs mailing list