Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[BUG]: NDK r28 rc1/beta2 header asm issue #2107

Open
1 task done
mcagabe19 opened this issue Nov 23, 2024 · 0 comments
Open
1 task done

[BUG]: NDK r28 rc1/beta2 header asm issue #2107

mcagabe19 opened this issue Nov 23, 2024 · 0 comments
Labels

Comments

@mcagabe19
Copy link

Description

whenever I try build mbedtls for armv7, x86 and x86_64 these happen

armv7:

In file included from C:\Users\Lily\AppData\Local\Android\Sdk\ndk\28.0.12674087/toolchains/llvm/prebuilt/windows-x86_64/sysroot/usr/include/netinet/in.h:37:
In file included from C:\Users\Lily\AppData\Local\Android\Sdk\ndk\28.0.12674087/toolchains/llvm/prebuilt/windows-x86_64/sysroot/usr/include/linux/in.h:233:
In file included from C:\Users\Lily\AppData\Local\Android\Sdk\ndk\28.0.12674087/toolchains/llvm/prebuilt/windows-x86_64/sysroot/usr/include/arm-linux-androideabi/asm/byteorder.h:9:
In file included from C:\Users\Lily\AppData\Local\Android\Sdk\ndk\28.0.12674087/toolchains/llvm/prebuilt/windows-x86_64/sysroot/usr/include/linux/byteorder/little_endian.h:17:
In file included from C:\Users\Lily\AppData\Local\Android\Sdk\ndk\28.0.12674087/toolchains/llvm/prebuilt/windows-x86_64/sysroot/usr/include/linux/swab.h:12:
C:\Users\Lily\AppData\Local\Android\Sdk\ndk\28.0.12674087/toolchains/llvm/prebuilt/windows-x86_64/sysroot/usr/include/arm-linux-androideabi/asm/swab.h:18:36: error: expected ')'
   18 |     asm("eor\t%0, %1, %1, ror #16" : "=r" (t) : "r" (x));
      |                                    ^
C:\Users\Lily\AppData\Local\Android\Sdk\ndk\28.0.12674087/toolchains/llvm/prebuilt/windows-x86_64/sysroot/usr/include/arm-linux-androideabi/asm/swab.h:18:8: note: to match this '('
   18 |     asm("eor\t%0, %1, %1, ror #16" : "=r" (t) : "r" (x));
      |        ^
1 error generated.

x86:

In file included from C:\Users\Lily\AppData\Local\Android\Sdk\ndk\28.0.12674087/toolchains/llvm/prebuilt/windows-x86_64/sysroot/usr/include/netinet/in.h:37:
In file included from C:\Users\Lily\AppData\Local\Android\Sdk\ndk\28.0.12674087/toolchains/llvm/prebuilt/windows-x86_64/sysroot/usr/include/linux/in.h:233:
In file included from C:\Users\Lily\AppData\Local\Android\Sdk\ndk\28.0.12674087/toolchains/llvm/prebuilt/windows-x86_64/sysroot/usr/include/i686-linux-android/asm/byteorder.h:9:
In file included from C:\Users\Lily\AppData\Local\Android\Sdk\ndk\28.0.12674087/toolchains/llvm/prebuilt/windows-x86_64/sysroot/usr/include/linux/byteorder/little_endian.h:17:
In file included from C:\Users\Lily\AppData\Local\Android\Sdk\ndk\28.0.12674087/toolchains/llvm/prebuilt/windows-x86_64/sysroot/usr/include/linux/swab.h:12:
C:\Users\Lily\AppData\Local\Android\Sdk\ndk\28.0.12674087/toolchains/llvm/prebuilt/windows-x86_64/sysroot/usr/include/i686-linux-android/asm/swab.h:12:19: error: expected ')'
   12 |   asm("bswapl %0" : "=r" (val) : "0" (val));
      |                   ^
C:\Users\Lily\AppData\Local\Android\Sdk\ndk\28.0.12674087/toolchains/llvm/prebuilt/windows-x86_64/sysroot/usr/include/i686-linux-android/asm/swab.h:12:6: note: to match this '('
   12 |   asm("bswapl %0" : "=r" (val) : "0" (val));
      |      ^
C:\Users\Lily\AppData\Local\Android\Sdk\ndk\28.0.12674087/toolchains/llvm/prebuilt/windows-x86_64/sysroot/usr/include/i686-linux-android/asm/swab.h:26:43: error: expected ')'
   26 |   asm("bswapl %0; bswapl %1; xchgl %0,%1" : "=r" (v.s.a), "=r" (v.s.b) : "0" (v.s.a), "1" (v.s.b));
      |                                           ^
C:\Users\Lily\AppData\Local\Android\Sdk\ndk\28.0.12674087/toolchains/llvm/prebuilt/windows-x86_64/sysroot/usr/include/i686-linux-android/asm/swab.h:26:6: note: to match this '('
   26 |   asm("bswapl %0; bswapl %1; xchgl %0,%1" : "=r" (v.s.a), "=r" (v.s.b) : "0" (v.s.a), "1" (v.s.b));
      |      ^
2 errors generated.

x86_64:

In file included from C:\Users\Lily\AppData\Local\Android\Sdk\ndk\28.0.12674087/toolchains/llvm/prebuilt/windows-x86_64/sysroot/usr/include/netinet/in.h:37:
In file included from C:\Users\Lily\AppData\Local\Android\Sdk\ndk\28.0.12674087/toolchains/llvm/prebuilt/windows-x86_64/sysroot/usr/include/linux/in.h:233:
In file included from C:\Users\Lily\AppData\Local\Android\Sdk\ndk\28.0.12674087/toolchains/llvm/prebuilt/windows-x86_64/sysroot/usr/include/x86_64-linux-android/asm/byteorder.h:9:
In file included from C:\Users\Lily\AppData\Local\Android\Sdk\ndk\28.0.12674087/toolchains/llvm/prebuilt/windows-x86_64/sysroot/usr/include/linux/byteorder/little_endian.h:17:
In file included from C:\Users\Lily\AppData\Local\Android\Sdk\ndk\28.0.12674087/toolchains/llvm/prebuilt/windows-x86_64/sysroot/usr/include/linux/swab.h:12:
C:\Users\Lily\AppData\Local\Android\Sdk\ndk\28.0.12674087/toolchains/llvm/prebuilt/windows-x86_64/sysroot/usr/include/x86_64-linux-android/asm/swab.h:12:19: error: expected ')'
   12 |   asm("bswapl %0" : "=r" (val) : "0" (val));
      |                   ^
C:\Users\Lily\AppData\Local\Android\Sdk\ndk\28.0.12674087/toolchains/llvm/prebuilt/windows-x86_64/sysroot/usr/include/x86_64-linux-android/asm/swab.h:12:6: note: to match this '('
   12 |   asm("bswapl %0" : "=r" (val) : "0" (val));
      |      ^
C:\Users\Lily\AppData\Local\Android\Sdk\ndk\28.0.12674087/toolchains/llvm/prebuilt/windows-x86_64/sysroot/usr/include/x86_64-linux-android/asm/swab.h:29:19: error: expected ')'
   29 |   asm("bswapq %0" : "=r" (val) : "0" (val));
      |                   ^
C:\Users\Lily\AppData\Local\Android\Sdk\ndk\28.0.12674087/toolchains/llvm/prebuilt/windows-x86_64/sysroot/usr/include/x86_64-linux-android/asm/swab.h:29:6: note: to match this '('
   29 |   asm("bswapq %0" : "=r" (val) : "0" (val));
      |      ^
2 errors generated.

also my target is android24 if you're wondering

I am using a supported NDK

  • I have checked and the NDK I'm using is currently supported

Affected versions

r28

@mcagabe19 mcagabe19 added the bug label Nov 23, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant