All of lore.kernel.org
 help / color / mirror / Atom feed
* Re: Re: Re: Re: error: implicit declaration of function ‘__OPEN_NEEDS_MODE’
@ 2020-12-28 21:45 Gabriel Dinse
  2020-12-28 21:52 ` Greg Gallagher
  0 siblings, 1 reply; 3+ messages in thread
From: Gabriel Dinse @ 2020-12-28 21:45 UTC (permalink / raw)
  To: xenomai

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 http://kth.diva-portal.org/smash/get/diva2:1251188/FULLTEXT01.pdf, not the other one I sent. The author managed to use kernel 4.9.51 disabling support for systems besides Broadcom BCM2835.


^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: Re: Re: Re: error: implicit declaration of function ‘__OPEN_NEEDS_MODE’
  2020-12-28 21:45 Re: Re: Re: error: implicit declaration of function ‘__OPEN_NEEDS_MODE’ Gabriel Dinse
@ 2020-12-28 21:52 ` Greg Gallagher
  2020-12-29  8:28   ` florian.bezdeka
  0 siblings, 1 reply; 3+ messages in thread
From: Greg Gallagher @ 2020-12-28 21:52 UTC (permalink / raw)
  To: Gabriel Dinse; +Cc: xenomai

On Mon, Dec 28, 2020 at 4:46 PM Gabriel Dinse via Xenomai <
xenomai@xenomai.org> 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
> http://kth.diva-portal.org/smash/get/diva2:1251188/FULLTEXT01.pdf, not
> the other one I sent. The author managed to use kernel 4.9.51 disabling
> support for systems besides Broadcom BCM2835.
>
> 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

^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: Re: Re: Re: error: implicit declaration of function ‘__OPEN_NEEDS_MODE’
  2020-12-28 21:52 ` Greg Gallagher
@ 2020-12-29  8:28   ` florian.bezdeka
  0 siblings, 0 replies; 3+ messages in thread
From: florian.bezdeka @ 2020-12-29  8:28 UTC (permalink / raw)
  To: greg, gabriel_dinse; +Cc: xenomai

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 <
> xenomai@xenomai.org> 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&amp;data=04%7C01%7Cflorian.bezdeka%40siemens.com%7Cf34b3c715a12404291aa08d8ab7af725%7C38ae3bcd95794fd4addab42e1495d55a%7C1%7C0%7C637447891910540393%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C2000&amp;sdata=hqbGsIBA9z%2Fqid%2B6AzYWPYyRljhVnQDqelRYygJWjPo%3D&amp;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


^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2020-12-29  8:28 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2020-12-28 21:45 Re: Re: Re: error: implicit declaration of function ‘__OPEN_NEEDS_MODE’ Gabriel Dinse
2020-12-28 21:52 ` Greg Gallagher
2020-12-29  8:28   ` florian.bezdeka

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.