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

Error compiling on Pi4 #36

Open
tariusagi opened this issue Jun 16, 2021 · 3 comments
Open

Error compiling on Pi4 #36

tariusagi opened this issue Jun 16, 2021 · 3 comments

Comments

@tariusagi
Copy link

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?

@roxleopardo
Copy link
Contributor

roxleopardo commented Jun 24, 2021

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

@DevPGSV
Copy link

DevPGSV commented Aug 9, 2022

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

@stolk
Copy link
Owner

stolk commented Aug 9, 2022 via email

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