Menu

#319 gcc: error: scan.c: No such file or directory

None
open
nobody
compiling (1)
1
2022-02-07
2022-02-07
No

Following this question, I am trying to compile gputils on Raspberry Pi OS

Linux raspberrypi 5.10.63-v7+ #1496 SMP Wed Dec 1 15:58:11 GMT 2021 armv7l GNU/Linux

but I get the below error:

gcc -DHAVE_CONFIG_H -I. -I..  -I../libgputils -I../include  -DGPUTILS_SVN_VERSION=1325 -pedantic -Wall -Warray-bounds -Wimplicit-function-declaration -Wformat -Wformat-security -Wparentheses -Wpointer-arith -Wreturn-local-addr -Wshadow -Wshift-overflow -Wtautological-compare -g -O2 -MT scan.o -MD -MP -MF .deps/scan.Tpo -c -o scan.o scan.c
gcc: error: scan.c: No such file or directory
gcc: fatal error: no input files
compilation terminated.
make[3]: *** [Makefile:484: scan.o] Error 1
make[3]: Leaving directory '/path/to/gputils/gpasm'
make[2]: *** [Makefile:363: all] Error 2
make[2]: Leaving directory '/path/to/gputils/gpasm'
make[1]: *** [Makefile:396: all-recursive] Error 1
make[1]: Leaving directory '/path/to/gputils'
make: *** [Makefile:335: all] Error 2

Also I had to install some packages:

sudo apt install bison byacc flex -y

Discussion

Anonymous
Anonymous

Add attachments
Cancel