AllJoyn compile errors on ARM embedded system

asked 2015-03-25 04:44:19 -0700

anonymous user


I am trying to compile AllJoyn for ARM embedded system. Would you let me know how to fix the following compile error?

scons BINDINGS=cpp OS=linux CPU=arm VARIANT=debug BUILD_SERVICES_SAMPLES=off POLICYDB=on CROSS_COMPILE=/opt/toolchains/crosstools-arm-gcc-4.6-linux-3.4-uclibc-0.9.32-binutils-2.21-NPTL/usr/bin/arm-linux- ALLJOYN_DISTDIR=/home/michael/ARM_Cortex_A9/userspace/public/apps/core/alljoyn/build/linux/arm/debug/dist

/home/michael/ARM_Cortex_A9/userspace/public/apps/core/alljoyn/common/os/posix/Event.cc:44:25: fatal error: sys/eventfd.h: No such file or directory compilation terminated. scons: * [build/linux/arm/debug/obj/common/os/Event.o] Error 1 scons: building terminated because of errors.

edit retag flag offensive close merge delete

1 answer

Sort by ยป oldest newest most voted

answered 2015-03-25 09:38:55 -0700

stevek gravatar image

uCLibc seems to be a bit behind the times in supporting eventfd. The eventfd feature has been part of Linux for several years now. A quick google search shows that there have been some patches made to add eventfd to uCLibc. You may want to contact the developers of uCLibc about support for eventfd.

If those are not an option for you, you can modify alljoyn/common/inc/posix/Eventfd.h to uncomment out the line defining MECHANISM_PIPE and comment out the line defining MECHANISM_EVENTFD. That will use a pipe for event signaling rather than eventfd. The downside is that using pipes will effectively double the number of file descriptors used by AllJoyn.

edit flag offensive delete publish link more


Thanks for your reply. May I know what kind of cross compile do you suggest to use for ARM/MIPS embedded system? By the way, do you know what types or versions of ARM/MIPS have been used and tested on AllJoyn?

michaelchen ( 2015-03-27 00:54:08 -0700 )edit

This is not a discussion forum. It is a question and answer forum. If you wish to ask a new question, then submit a new question. If you need to clarify your question, then update your question. If you need clarification for an answer, then leave a comment with that specific answer.

stevek ( 2015-03-27 08:38:18 -0700 )edit
Login/Signup to Answer

Question Tools

1 follower


Asked: 2015-03-25 04:44:19 -0700

Seen: 354 times

Last updated: Mar 27 '15