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

pCloud CLI for ARM #175

Open
guillelb opened this issue Oct 7, 2022 · 4 comments
Open

pCloud CLI for ARM #175

guillelb opened this issue Oct 7, 2022 · 4 comments

Comments

@guillelb
Copy link

guillelb commented Oct 7, 2022

I am trying to compile and install pCloud CLI in a RaspberryPI, but it throws a compilation error:
cci: error : unrecognized -mtune target: core2

When I change mtune parameter in the Makefiles to set something like: arm7, arm8 or arm9, it throws many other compilation warnings and errors like:

pcloudcrypto.c: In function ‘crypto_keys_match’:
pcloudcrypto.c:448:47: warning: passing argument 1 of ‘psync_ssl_rsa_decrypt_symm_key_lock’ from incompatible pointer type [-Wincompatible-pointer-types]
  448 |   deckey= psync_ssl_rsa_decrypt_symm_key_lock(crypto_privkey, enckey);

or

[ 10%] Building C object library/CMakeFiles/mbedtls.dir/bignum.c.o
/usr/src/console-client/pCloudCC/lib/mbedtls/library/bignum.c: In function ‘mpi_mul_hlp’:
/usr/src/console-client/pCloudCC/lib/mbedtls/library/bignum.c:1129:1: error: r7 cannot be used in ‘asm’ here
 1129 | }
      | ^
make[6]: *** [library/CMakeFiles/mbedtls.dir/build.make:160: library/CMakeFiles/mbedtls.dir/bignum.c.o] Error 1
make[5]: *** [CMakeFiles/Makefile2:246: library/CMakeFiles/mbedtls.dir/all] Error 2
make[4]: *** [Makefile:149: all] Error 2
make[3]: *** [CMakeFiles/mbedtls.dir/build.make:76: CMakeFiles/mbedtls] Error 2
make[2]: *** [CMakeFiles/Makefile2:183: CMakeFiles/mbedtls.dir/all] Error 2
make[1]: *** [CMakeFiles/Makefile2:190: CMakeFiles/mbedtls.dir/rule] Error 2
make: *** [Makefile:222: mbedtls] Error 2

Do someone try that?
pCloud developers, Do you plan a usable cli for ARM?

@tamboekie
Copy link

tamboekie commented Oct 23, 2022

I have simply removed the -mtune parameter and it compiles OK. Lots of warnings, but running fine on a Raspberry Pi 3 (32-bit, armv7l, Raspbian 11 bullseye, kernel 5.15)

@michK
Copy link

michK commented Oct 24, 2022

For my RP 4b -mtune=cortex-a72 seems to work. Maybe being more specific with with the processor your Pi has might help?

@afteroot
Copy link

afteroot commented Nov 26, 2022

Yes its works at arm based

uname -a
Linux arm2 5.15.0-1022-oracle #28-Ubuntu SMP Wed Oct 26 09:38:30 UTC 2022 aarch64 aarch64 aarch64 GNU/Linux

sed 's/-mtune=.*//g' -i ./console-client/pCloudCC/lib/pclsync/Makefile

And after that you can compile without any problem

@giedriusb86
Copy link

For my RPi 4 this one worked: -mtune=native

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

5 participants