chiaharvestgraph icon indicating copy to clipboard operation
chiaharvestgraph copied to clipboard

Error compiling on Pi4

Open tariusagi opened this issue 3 years ago • 3 comments

Mine is Pi4 running on Raspberry Pi OS (Debian based, x64, gcc (Debian 8.3.0-6) 8.3.0). Output of the compile: cc -D_POSIX_C_SOURCE=200809L -std=c99 -Wall -Wno-missing-braces -g -c chiaharvestgraph.c -o chiaharvestgraph.o /usr/lib/gcc/aarch64-linux-gnu/8/cc1: /lib/aarch64-linux-gnu/libdl.so.2: version ' not found (required by /usr/lib/gcc/aarch64-linux-gnu/8/cc1) /usr/lib/gcc/aarch64-linux-gnu/8/cc1: /lib/aarch64-linux-gnu/libm.so.6: version ' not found (required by /usr/lib/gcc/aarch64-linux-gnu/8/cc1) /usr/lib/gcc/aarch64-linux-gnu/8/cc1: /lib/aarch64-linux-gnu/libc.so.6: version `' not found (required by /usr/lib/gcc/aarch64-linux-gnu/8/cc1) make: *** [Makefile:15: chiaharvestgraph.o] Error 1

How can this be fixed?

tariusagi avatar Jun 16 '21 03:06 tariusagi

That seems a missing library, try running the following commands to fix this: sudo apt-get update && sudo apt-get install libc6

roxleopardo avatar Jun 24 '21 20:06 roxleopardo

With that library installed, it's still not possible to compile on Raspberry Pi 4:

~/chiaharvestgraph$ make
cc -D_POSIX_C_SOURCE=200809L -std=c99 -Wall -Wno-missing-braces -g -O  -c chiaharvestgraph.c -o chiaharvestgraph.o
make: cc: No such file or directory
make: *** [Makefile:17: chiaharvestgraph.o] Error 127

DevPGSV avatar Aug 09 '22 17:08 DevPGSV

Check which c compiler is installed.

$ CC=clang make

Could work, or else:

$ CC=gcc make

Provided that either clang or gcc is installed. If not, try:

$ sudo apt install gcc

On Tue, Aug 9, 2022 at 10:26 AM Pablo García de los Salmones < @.***> wrote:

With that library installed, it's still not possible to compile on Raspberry Pi 4:

~/chiaharvestgraph$ make cc -D_POSIX_C_SOURCE=200809L -std=c99 -Wall -Wno-missing-braces -g -O -c chiaharvestgraph.c -o chiaharvestgraph.o make: cc: No such file or directory make: *** [Makefile:17: chiaharvestgraph.o] Error 127

— Reply to this email directly, view it on GitHub https://github.com/stolk/chiaharvestgraph/issues/36#issuecomment-1209661822, or unsubscribe https://github.com/notifications/unsubscribe-auth/AADPE4CL7SXWETOS6ICZWKDVYKIGFANCNFSM46YQMGWA . You are receiving this because you are subscribed to this thread.Message ID: @.***>

-- Owner/Director of Game Studio Abraham Stolk Inc. Vancouver BC, Canada @.***

stolk avatar Aug 09 '22 19:08 stolk