Error executing 'make raspi'

Hi
I encountered the following error while executing “make raspi”. How should I resolve it

[1/36] Compiling liblegato source file
FAILED: /home/shaw/share/devWorkspace/legatoAF/legato-19.11.2/build/raspi/framework/obj/linux/linux/eventLoop.c.o
/home/shaw/rpi/tools/arm-bcm2708/gcc-linaro-arm-linux-gnueabihf-raspbian-x64/bin//arm-linux-gnueabihf-gcc -MMD -MF /home/shaw/share/devWorkspace/legatoAF/legato-19.11.2/build/raspi/framework/obj/linux/linux/eventLoop.c.o.d -c /home/shaw/share/devWorkspace/legatoAF/legato-19.11.2/framework/liblegato/linux/eventLoop.c -o /home/shaw/share/devWorkspace/legatoAF/legato-19.11.2/build/raspi/framework/obj/linux/linux/eventLoop.c.o -DLEGATO_EMBEDDED -Wall -Werror -fPIC -I/home/shaw/share/devWorkspace/legatoAF/legato-19.11.2/framework/daemons/linux -g -O2 -fno-omit-frame-pointer -I/home/shaw/share/devWorkspace/legatoAF/legato-19.11.2/framework/liblegato/linux -I/home/shaw/share/devWorkspace/legatoAF/legato-19.11.2/build/raspi/framework/include -DLE_COMPONENT_NAME=framework -DLE_FILENAME=`basename /home/shaw/share/devWorkspace/legatoAF/legato-19.11.2/framework/liblegato/linux/eventLoop.c` -I/home/shaw/share/devWorkspace/legatoAF/legato-19.11.2/framework/include -I/home/shaw/share/devWorkspace/legatoAF/legato-19.11.2/framework/liblegato
/home/shaw/share/devWorkspace/legatoAF/legato-19.11.2/framework/liblegato/linux/eventLoop.c: In function ‘fa_event_CreatePerThreadInfo’:
/home/shaw/share/devWorkspace/legatoAF/legato-19.11.2/framework/liblegato/linux/eventLoop.c:163:27: error: ‘EPOLLWAKEUP’ undeclared (first use in this function)
     ev.events = EPOLLIN | EPOLLWAKEUP;
                           ^
/home/shaw/share/devWorkspace/legatoAF/legato-19.11.2/framework/liblegato/linux/eventLoop.c:163:27: note: each undeclared identifier is reported only once for each function it appears in
[12/36] Compiling liblegato source file
ninja: build stopped: subcommand failed.
make[1]: *** [Makefile.framework:256: liblegato] Error 1
make[1]: Leaving directory '/home/shaw/share/devWorkspace/legatoAF/legato-19.11.2'
make: *** [Makefile:536: framework] Error 2

see if this helps

you can try the same version as that user

Hi
How to include OpenSSL in the toolchain?

you can see this document:

Can you send me a compressed file of Legato AF 19.04?
Perhaps due to some network issues, running “repo sync” on my computer always crashes. :woozy_face:

try this link:

Isn’t this lacking a lot of resources?

The document suggests using GitHub repo.

you can first verify this version and check if it can compiled
after that you can try other newer version

Still can’t do it.
My Raspberry Pi toolchain comes from: GitHub - raspberrypi/tools
Everything else is the same as what you mentioned.
I don’t know how to solve it

FAILED: /home/shaw/legato/legato-19.04/legato/build/raspi/framework/obj/fa_eventLoop.c.o
/home/shaw/rpi/tools/arm-bcm2708/gcc-linaro-arm-linux-gnueabihf-raspbian-x64/bin//arm-linux-gnueabihf-gcc -MMD -MF /home/shaw/legato/legato-19.04/legato/build/raspi/framework/obj/fa_eventLoop.c.o.d -c /home/shaw/legato/legato-19.04/legato/framework/liblegato/linux/fa_eventLoop.c -o /home/shaw/legato/legato-19.04/legato/build/raspi/framework/obj/fa_eventLoop.c.o -Wall -Werror -DLEGATO_EMBEDDED -fPIC -I/home/shaw/legato/legato-19.04/legato/framework/daemons/linux -g -O2 -fno-omit-frame-pointer -I/home/shaw/legato/legato-19.04/legato/framework/liblegato/linux -I/home/shaw/legato/legato-19.04/legato/build/raspi/framework/include -DLE_COMPONENT_NAME=framework -DLE_FILENAME=`basename /home/shaw/legato/legato-19.04/legato/framework/liblegato/linux/fa_eventLoop.c` -I/home/shaw/legato/legato-19.04/legato/framework/include -I/home/shaw/legato/legato-19.04/legato/framework/liblegato
/home/shaw/legato/legato-19.04/legato/framework/liblegato/linux/fa_eventLoop.c: 在函数‘fa_event_CreatePerThreadInfo’中:
/home/shaw/legato/legato-19.04/legato/framework/liblegato/linux/fa_eventLoop.c:112:27: 错误: ‘EPOLLWAKEUP’未声明(在此函数内第一次使用)
     ev.events = EPOLLIN | EPOLLWAKEUP;
                           ^
/home/shaw/legato/legato-19.04/legato/framework/liblegato/linux/fa_eventLoop.c:112:27: 附注: 每个未声明的标识符在其出现的函数内只报告一次
[36/62] Compiling liblegato source file
/home/shaw/legato/legato-19.04/legato/framework/liblegato/linux/fdMonitor.c:96:9: 附注: #pragma message:EPOLLWAKEUP unsupported. Power management features may fail.
 #pragma message "EPOLLWAKEUP unsupported. Power management features may fail."
         ^
[37/62] Compiling liblegato source file
ninja: build stopped: subcommand failed.
Makefile.framework:199: recipe for target 'liblegato' failed
make[1]: *** [liblegato] Error 1
make[1]: 离开目录“/home/shaw/legato/legato-19.04/legato”
Makefile:610: recipe for target 'framework' failed
make: *** [framework] Error 2

But why the user in the link using the toolchain tools/arm-bcm2708 can compile it?
i am not expert on Raspberry board, but it seems you need to ask in Raspberry forum to see where is the include .h file.

Okay, thanks for your help