D13410N3 / MTProxyARMPatch

Patch for running MTProto on ARMv7
26 stars 1 forks source link

Does not work for Oracle's ARM64 #2

Open talesam opened 2 years ago

talesam commented 2 years ago

I applied the patch, tried to compile and gave the following error..

ubuntu@paya:~/MTProxy$ make
cc  -O3 -std=gnu11 -Wall -march=native  -fno-strict-aliasing -fno-strict-overflow -fwrapv -DAES=1 -DCOMMIT=\"dc0c7f3de40530053189c572936ae4fd1567269b\" -D_GNU_SOURCE=1 -D_FILE_OFFSET_BITS=64 -iquote common -iquote . -c -MP -MD -MF dep/mtproto/mtproto-proxy.d -MQ objs/mtproto/mtproto-proxy.o -o objs/mtproto/mtproto-proxy.o mtproto/mtproto-proxy.c
cc  -O3 -std=gnu11 -Wall -march=native  -fno-strict-aliasing -fno-strict-overflow -fwrapv -DAES=1 -DCOMMIT=\"dc0c7f3de40530053189c572936ae4fd1567269b\" -D_GNU_SOURCE=1 -D_FILE_OFFSET_BITS=64 -iquote common -iquote . -c -MP -MD -MF dep/mtproto/mtproto-config.d -MQ objs/mtproto/mtproto-config.o -o objs/mtproto/mtproto-config.o mtproto/mtproto-config.c
cc  -O3 -std=gnu11 -Wall -march=native  -fno-strict-aliasing -fno-strict-overflow -fwrapv -DAES=1 -DCOMMIT=\"dc0c7f3de40530053189c572936ae4fd1567269b\" -D_GNU_SOURCE=1 -D_FILE_OFFSET_BITS=64 -iquote common -iquote . -c -MP -MD -MF dep/net/net-tcp-rpc-ext-server.d -MQ objs/net/net-tcp-rpc-ext-server.o -o objs/net/net-tcp-rpc-ext-server.o net/net-tcp-rpc-ext-server.c
cc  -O3 -std=gnu11 -Wall -march=native  -fno-strict-aliasing -fno-strict-overflow -fwrapv -DAES=1 -DCOMMIT=\"dc0c7f3de40530053189c572936ae4fd1567269b\" -D_GNU_SOURCE=1 -D_FILE_OFFSET_BITS=64 -fpic -iquote common -iquote . -c -MP -MD -MF dep/common/crc32c.d -MQ objs/common/crc32c.o -o objs/common/crc32c.o common/crc32c.c
common/crc32c.c: In function ‘crc32c_partial_sse42_clmul’:
common/crc32c.c:406:14: warning: implicit declaration of function ‘__builtin_ia32_pclmulqdq128’ [-Wimplicit-function-declaration]
  406 |     v2di F = __builtin_ia32_pclmulqdq128 (D, K, 0x00) ^ __builtin_ia32_pclmulqdq128 (E, K, 0x10);
      |              ^~~~~~~~~~~~~~~~~~~~~~~~~~~
common/crc32c.c:406:14: error: incompatible types when initializing type ‘v2di’ {aka ‘__vector(2) long long int’} using type ‘int’
common/crc32c.c:471:14: error: incompatible types when initializing type ‘v2di’ {aka ‘__vector(2) long long int’} using type ‘int’
  471 |     v2di F = __builtin_ia32_pclmulqdq128 (D, K, 0x00) ^ __builtin_ia32_pclmulqdq128 (E, K, 0x10);
      |              ^~~~~~~~~~~~~~~~~~~~~~~~~~~
At top level:
common/crc32c.c:340:17: warning: ‘crc32c_partial_sse42_clmul’ defined but not used [-Wunused-function]
  340 | static unsigned crc32c_partial_sse42_clmul (const void *data, long len, unsigned crc) {
      |                 ^~~~~~~~~~~~~~~~~~~~~~~~~~
common/crc32c.c:307:17: warning: ‘crc32c_partial_sse42’ defined but not used [-Wunused-function]
  307 | static unsigned crc32c_partial_sse42 (const void *data, long len, unsigned crc) {
      |                 ^~~~~~~~~~~~~~~~~~~~
make: *** [Makefile:95: objs/common/crc32c.o] Error 1
D13410N3 commented 2 years ago

Hello. @Azq2 - maybe you can help with this issue?

NotMe commented 1 year ago

same problem on oracle cloud arm64 5.15.0-1016-oracle #20~20.04.1-Ubuntu SMP Mon Aug 8 07:30:37 UTC 2022 aarch64 aarch64 aarch64 GNU/Linux

bzdk commented 1 year ago

Same

ClimberBear commented 5 months ago

Same here. Any suggestion?