clover
January 16, 2024, 2:14am
1
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
jyijyi
January 16, 2024, 2:21am
2
see if this helps
Hi,
I am trying to build and run Legato AF 19.04 to run on a Raspberry Pi 3 running Raspbian Stretch. This is done by cross-compiling on a virtual machine running Ubuntu 18.04 LTS.
I have followed the build process as outlined at Configure Raspberry Pi - Legato Docs , and the Legato framework appears to build without any stopping errors. I have attached the build output from make raspi.
make raspi.txt (80.1 KB)
When trying to start Legato, using the following commands as root user on the Pi:
…
you can try the same version as that user
clover
January 16, 2024, 2:33am
3
Hi
How to include OpenSSL in the toolchain?
jyijyi
January 16, 2024, 2:36am
4
you can see this document:
clover
January 16, 2024, 3:07am
5
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.
clover
January 16, 2024, 3:17am
7
Isn’t this lacking a lot of resources?
The document suggests using GitHub repo.
jyijyi
January 16, 2024, 3:37am
8
you can first verify this version and check if it can compiled
after that you can try other newer version
clover
January 16, 2024, 8:21am
9
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
jyijyi
January 16, 2024, 8:26am
10
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.
clover
January 16, 2024, 8:30am
11
Okay, thanks for your help