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

compalation error on raspi 0w #170

Open
user421921 opened this issue Aug 5, 2021 · 2 comments
Open

compalation error on raspi 0w #170

user421921 opened this issue Aug 5, 2021 · 2 comments
Labels

Comments

@user421921
Copy link

after I changed into the directory of /PiFmRds/src i did make clean and then make, but when I executed make I got this error:

gcc -Wall -std=gnu99 -c -g -march=armv6 -O3 -mtune=arm1176jzf-s -mfloat-abi=hard -mfpu=vfp -ffast-math -DRASPI=1 rds.c
In file included from /usr/include/features.h:485,
from /usr/include/arm-linux-gnueabi/bits/libc-header-start.h:33,
from /usr/include/stdint.h:26,
from /usr/lib/gcc/arm-linux-gnueabi/10/include/stdint.h:9,
from rds.c:21:
/usr/include/arm-linux-gnueabi/gnu/stubs.h:10:11: fatal error: gnu/stubs-hard.h: No such file or directory
10 | # include <gnu/stubs-hard.h>
| ^~~~~~~~~~~~~~~~~~
compilation terminated.
make: *** [Makefile:43: rds.o] Error 1

@sijanec
Copy link

sijanec commented Oct 3, 2021

I have the same problem on Debian Bullseye. You also need package libsndfile1-dev, but that's not related to this bug.

Try this:

cd src/
rm *.o
sed -e s/=hard/=soft/g < Makefile > Makefile2
make -f Makefile2

It compiles, but I get runtime errors then:

root@rpi1-20210823:~/sw/PiFmRds-master/src# ./pi_fm_rds 
Failed to map peripheral at 0x20007000: Operation not permitted.
Terminating: cleanly deactivated the DMA engine and killed the carrier.

Fixing this error by adding iomem=relaxed to cmdline.txt, I get another runtime error:

Using local mbox device file with major 249.
Allocating physical memory: size = 3403776     ioctl_set_msg failed:-1
Could not allocate memory.
Terminating: cleanly deactivated the DMA engine and killed the carrier.

@Remanent
Copy link

have you tried running it using sudo (command)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

4 participants