pcloudcom / console-client

439 stars 131 forks source link

Cannot build on RPi OS #183

Open paud0 opened 1 year ago

paud0 commented 1 year ago

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 commented 1 year ago

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 commented 1 year ago

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

OtisPresley commented 1 year ago

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 commented 10 months ago

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