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

Cannot build on RPi OS #183

Open
paud0 opened this issue Apr 10, 2023 · 4 comments
Open

Cannot build on RPi OS #183

paud0 opened this issue Apr 10, 2023 · 4 comments

Comments

@paud0
Copy link

paud0 commented Apr 10, 2023

I was following the build steps from README to create pCloud drive on RPiOS.
The first steps all work fine for me:

sudo apt-get install cmake zlib1g-dev libboost-system-dev libboost-program-options-dev libpthread-stubs0-dev libfuse-dev libudev-dev fuse build-essential git mkdir console-client
git clone https://github.com/pcloudcom/console-client.git ./console-client/
cd ./console-client/pCloudCC/
cd lib/pclsync/
make clean

Now when I run the next command "make fs" I get the error:

pd@raspberrypi:~/console-client/pCloudCC/lib/pclsync $ make fs
gcc -Wall -Wpointer-arith -O2 -g -fno-stack-protector -fomit-frame-pointer -mtune=core2 -I../sqlite -DP_ELECTRON -fPIC -DP_OS_LINUX -D_FILE_OFFSET_BITS=64 -DP_SSL_MBEDTLS -I../mbedtls/include -c -o psynclib.o psynclib.c
cc1: error: unknown value ‘core2’ for ‘-mtune’
cc1: note: valid arguments are: cortex-a34 cortex-a35 cortex-a53 cortex-a57 cortex-a72 cortex-a73 thunderx thunderxt88p1 thunderxt88 octeontx octeontx81 octeontx83 thunderxt81 thunderxt83 emag xgene1 falkor qdf24xx exynos-m1 phecda thunderx2t99p1 vulcan thunderx2t99 cortex-a55 cortex-a75 cortex-a76 cortex-a76ae cortex-a77 cortex-a65 cortex-a65ae ares neoverse-n1 neoverse-e1 octeontx2 octeontx2t98 octeontx2t96 octeontx2t93 octeontx2f95 octeontx2f95n octeontx2f95mm a64fx tsv110 thunderx3t110 zeus neoverse-v1 saphira neoverse-n2 cortex-a57.cortex-a53 cortex-a72.cortex-a53 cortex-a73.cortex-a35 cortex-a73.cortex-a53 cortex-a75.cortex-a55 cortex-a76.cortex-a55 generic
make: *** [: psynclib.o] Error 1

Is this problem known/does anyone know a fix for it?
I am happy to provide more information if needed!

Thanks in advance, Paul

@paud0
Copy link
Author

paud0 commented Apr 10, 2023

When I run the command with different mtune option it builds the code with some warnings but seems fine.

When I run the rest of the commands everything works, but I cannot run the pcloudcc command, it says "pcloudcc: command not found". Is there a known fix for this?

@dlevacher
Copy link

I removed the entire flag -mtune=core2 from Makefile and it worked for me on Ubuntu for Raspberry

@OtisPresley
Copy link

OtisPresley commented Aug 9, 2023

It works fine on RPi OS running on a Pi 4 Model B when you change the mtune to this in Makefile:
-mtune=cortex-a72

On the official Debian ports, you can use the following command to get your CPU model:
raspinfo | grep perfevents

@milsanore
Copy link

perhaps this dockerfile may help:
https://github.com/jlloyola/pcloudcc_docker/blob/main/Dockerfile#L37-L42

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

4 participants