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

Unable to execute make in RPi-3 #4

Open
juzar417 opened this issue Jul 9, 2019 · 1 comment
Open

Unable to execute make in RPi-3 #4

juzar417 opened this issue Jul 9, 2019 · 1 comment

Comments

@juzar417
Copy link

juzar417 commented Jul 9, 2019

pi@raspberrypi:~/pi-gemm $ sudo make
g++ -Ofast -DTARGET_PI -march=armv6 -mfloat-abi=hard -ftree-vectorize -funroll-all-loops -mfpu=vfp -fPIC -c mailbox.cpp -o mailbox.o
mailbox.cpp: In function ‘int mbox_open()’:
mailbox.cpp:271:46: error: ‘makedev’ was not declared in this scope
if (mknod(DEVICE_PATH, (0777 | S_IFCHR), makedev(MAJOR_NUM, 0)) == -1) {
^~~~~~~
mailbox.cpp: In function ‘void* unmapmem(void*, unsigned int)’:
mailbox.cpp:85:1: warning: control reaches end of non-void function [-Wreturn-type]
}
^
make: *** [Makefile:23: mailbox.o] Error 1

@hyunwen
Copy link

hyunwen commented Jul 18, 2022

Add
#include <sys/sysmacros.h>
to the file.

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

2 participants