On Mon, 2020-12-28 at 16:52 -0500, Greg Gallagher via Xenomai wrote:
> On Mon, Dec 28, 2020 at 4:46 PM Gabriel Dinse via Xenomai <
> [email protected]> wrote:
>
> > I am trying to use mainline Kernel. I think xenomai has a fork for RPI
> > kernel 4.1 but it is not up to date, right? Also, the right paper is
> > https://eur01.safelinks.protection.outlook.com/?url=http%3A%2F%2Fkth.diva-portal.org%2Fsmash%2Fget%2Fdiva2%3A1251188%2FFULLTEXT01.pdf&data=04%7C01%7Cflorian.bezdeka%40siemens.com%7Cf34b3c715a12404291aa08d8ab7af725%7C38ae3bcd95794fd4addab42e1495d55a%7C1%7C0%7C637447891910540393%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C2000&sdata=hqbGsIBA9z%2Fqid%2B6AzYWPYyRljhVnQDqelRYygJWjPo%3D&reserved=0,
> > not
> > the other one I sent. The author managed to use kernel 4.9.51 disabling
> > support for systems besides Broadcom BCM2835.
Bringing back the build error:
[… MORE OUTPUT ...]
make[3]: Entering directory '/home/gabriel/xenomai-3/build/lib/cobalt'
CC libcobalt_la-rtdm.lo
../../../lib/cobalt/rtdm.c: In function ‘__cobalt___open_2’:
../../../lib/cobalt/rtdm.c:104:2: error: implicit declaration of function
‘__OPEN_NEEDS_MODE’
[-Werror=implicit-function-declaration]
if (__OPEN_NEEDS_MODE(oflag)) {
^
You are trying to compile libcobalt, so the userspace part of Xenomai.
So I assume the kernel version should not matter here. Could you please
try to provide the glibc version of your build environment again?
Building for the RPI requires a cross-compiler toolchain, so make sure
you check the glibc version of your toolchain and not the native one
from your build system.
> >
> > I’ve tested 4.19 and it works. I haven’t tested it on the 2835 in a while
> but I’ll try to reproduce your issue tonight.
>
> Greg