* [Xenomai-core] [bug-reminder] user/kernel space header deps
@ 2005-10-17 9:27 Jan Kiszka
2005-10-17 11:34 ` Philippe Gerum
2005-10-17 19:23 ` Gilles Chanteperdrix
0 siblings, 2 replies; 9+ messages in thread
From: Jan Kiszka @ 2005-10-17 9:27 UTC (permalink / raw)
To: xenomai-core
[-- Attachment #1: Type: text/plain, Size: 555 bytes --]
Hi,
just to avoid that this issue got lost during the migration to Xenomai:
It's still not possible to compile a C++ POSIX program with CFLAGS
obtained via "xeno-config --posix-ldflags". This is due to the fact that
low-level, C++-incompatible headers get included in that case. Moreover,
the same scenarion works for native skin programs only by chance at the
moment.
On the long term, a clear separation between types, defines, function
prototypes, etc. needed for the user API on the one and for core
compilation on the other side is required.
Jan
[-- Attachment #2: OpenPGP digital signature --]
[-- Type: application/pgp-signature, Size: 254 bytes --]
^ permalink raw reply [flat|nested] 9+ messages in thread
* Re: [Xenomai-core] [bug-reminder] user/kernel space header deps
2005-10-17 9:27 [Xenomai-core] [bug-reminder] user/kernel space header deps Jan Kiszka
@ 2005-10-17 11:34 ` Philippe Gerum
2005-10-24 11:15 ` Jan Kiszka
2005-10-17 19:23 ` Gilles Chanteperdrix
1 sibling, 1 reply; 9+ messages in thread
From: Philippe Gerum @ 2005-10-17 11:34 UTC (permalink / raw)
To: Jan Kiszka; +Cc: xenomai-core
Jan Kiszka wrote:
> Hi,
>
> just to avoid that this issue got lost during the migration to Xenomai:
>
> It's still not possible to compile a C++ POSIX program with CFLAGS
> obtained via "xeno-config --posix-ldflags". This is due to the fact that
> low-level, C++-incompatible headers get included in that case. Moreover,
> the same scenarion works for native skin programs only by chance at the
> moment.
>
> On the long term, a clear separation between types, defines, function
> prototypes, etc. needed for the user API on the one and for core
> compilation on the other side is required.
>
Without duplicating definitions and ABI information, otherwise this would be an
absolute nightmare. Suggestions welcome.
--
Philippe.
^ permalink raw reply [flat|nested] 9+ messages in thread
* Re: [Xenomai-core] [bug-reminder] user/kernel space header deps
2005-10-17 9:27 [Xenomai-core] [bug-reminder] user/kernel space header deps Jan Kiszka
2005-10-17 11:34 ` Philippe Gerum
@ 2005-10-17 19:23 ` Gilles Chanteperdrix
2005-10-17 19:42 ` Philippe Gerum
1 sibling, 1 reply; 9+ messages in thread
From: Gilles Chanteperdrix @ 2005-10-17 19:23 UTC (permalink / raw)
To: Jan Kiszka; +Cc: xenomai-core
Jan Kiszka wrote:
> Hi,
>
> just to avoid that this issue got lost during the migration to Xenomai:
Before it get lost again, maybe you would like to use our brand-new bug
tracker ?
https://gna.org/bugs/?func=additem&group=xenomai
--
Gilles Chanteperdrix.
^ permalink raw reply [flat|nested] 9+ messages in thread
* Re: [Xenomai-core] [bug-reminder] user/kernel space header deps
2005-10-17 19:23 ` Gilles Chanteperdrix
@ 2005-10-17 19:42 ` Philippe Gerum
2005-10-18 11:17 ` Jan Kiszka
0 siblings, 1 reply; 9+ messages in thread
From: Philippe Gerum @ 2005-10-17 19:42 UTC (permalink / raw)
To: Gilles Chanteperdrix; +Cc: xenomai-core
Gilles Chanteperdrix wrote:
> Jan Kiszka wrote:
> > Hi,
> >
> > just to avoid that this issue got lost during the migration to Xenomai:
>
> Before it get lost again, maybe you would like to use our brand-new bug
> tracker ?
>
> https://gna.org/bugs/?func=additem&group=xenomai
>
Please add the kernel module compilation flags issue you once raised too. This
one will be solved when the build system is fully refactored though.
--
Philippe.
^ permalink raw reply [flat|nested] 9+ messages in thread
* Re: [Xenomai-core] [bug-reminder] user/kernel space header deps
2005-10-17 19:42 ` Philippe Gerum
@ 2005-10-18 11:17 ` Jan Kiszka
0 siblings, 0 replies; 9+ messages in thread
From: Jan Kiszka @ 2005-10-18 11:17 UTC (permalink / raw)
To: Philippe Gerum; +Cc: xenomai-core
[-- Attachment #1: Type: text/plain, Size: 673 bytes --]
Philippe Gerum wrote:
> Gilles Chanteperdrix wrote:
>
>> Jan Kiszka wrote:
>> > Hi,
>> > > just to avoid that this issue got lost during the migration to
>> Xenomai:
>>
>> Before it get lost again, maybe you would like to use our brand-new bug
>> tracker ?
>>
>> https://gna.org/bugs/?func=additem&group=xenomai
>>
https://gna.org/bugs/index.php?func=detailitem&item_id=4545
>
> Please add the kernel module compilation flags issue you once raised
> too. This one will be solved when the build system is fully refactored
> though.
>
https://gna.org/bugs/index.php?func=detailitem&item_id=4546
(nice to know that this one also causes some of my x86_64 issues)
Jan
[-- Attachment #2: OpenPGP digital signature --]
[-- Type: application/pgp-signature, Size: 254 bytes --]
^ permalink raw reply [flat|nested] 9+ messages in thread
* Re: [Xenomai-core] [bug-reminder] user/kernel space header deps
2005-10-17 11:34 ` Philippe Gerum
@ 2005-10-24 11:15 ` Jan Kiszka
2005-10-24 20:46 ` Philippe Gerum
0 siblings, 1 reply; 9+ messages in thread
From: Jan Kiszka @ 2005-10-24 11:15 UTC (permalink / raw)
To: xenomai-core
[-- Attachment #1: Type: text/plain, Size: 1378 bytes --]
Philippe Gerum wrote:
> Jan Kiszka wrote:
>
>> Hi,
>>
>> just to avoid that this issue got lost during the migration to Xenomai:
>>
>> It's still not possible to compile a C++ POSIX program with CFLAGS
>> obtained via "xeno-config --posix-ldflags". This is due to the fact that
>> low-level, C++-incompatible headers get included in that case. Moreover,
>> the same scenarion works for native skin programs only by chance at the
>> moment.
>>
>> On the long term, a clear separation between types, defines, function
>> prototypes, etc. needed for the user API on the one and for core
>> compilation on the other side is required.
>>
>
> Without duplicating definitions and ABI information, otherwise this
> would be an absolute nightmare. Suggestions welcome.
>
To pick up this issue again (as it's biting me more and more...):
What precisely prevents us at the moment from removing the
-I<kernel-headers> from all userspace build steps, both Xenomai's own
libraries as well as external rt-applications?
Gilles explained to me that at least asm/atomic.h is used by certain
parts like UVM (or only UVM?), and that including this header directly
from /usr/include fails on Red Hat/Fedora boxes. Are there any further
problems? At least on my SuSE 10 everything still compiles fine
(including UVM) when I remove the kernel headers from XENO_USER_CFLAGS
in configure.in.
Jan
[-- Attachment #2: OpenPGP digital signature --]
[-- Type: application/pgp-signature, Size: 254 bytes --]
^ permalink raw reply [flat|nested] 9+ messages in thread
* Re: [Xenomai-core] [bug-reminder] user/kernel space header deps
2005-10-24 11:15 ` Jan Kiszka
@ 2005-10-24 20:46 ` Philippe Gerum
2005-10-24 20:59 ` Jan Kiszka
0 siblings, 1 reply; 9+ messages in thread
From: Philippe Gerum @ 2005-10-24 20:46 UTC (permalink / raw)
To: Jan Kiszka; +Cc: xenomai-core
Jan Kiszka wrote:
> Philippe Gerum wrote:
>
>>Jan Kiszka wrote:
>>
>>
>>>Hi,
>>>
>>>just to avoid that this issue got lost during the migration to Xenomai:
>>>
>>>It's still not possible to compile a C++ POSIX program with CFLAGS
>>>obtained via "xeno-config --posix-ldflags". This is due to the fact that
>>>low-level, C++-incompatible headers get included in that case. Moreover,
>>>the same scenarion works for native skin programs only by chance at the
>>>moment.
>>>
>>>On the long term, a clear separation between types, defines, function
>>>prototypes, etc. needed for the user API on the one and for core
>>>compilation on the other side is required.
>>>
>>
>>Without duplicating definitions and ABI information, otherwise this
>>would be an absolute nightmare. Suggestions welcome.
>>
>
>
> To pick up this issue again (as it's biting me more and more...):
>
> What precisely prevents us at the moment from removing the
> -I<kernel-headers> from all userspace build steps, both Xenomai's own
> libraries as well as external rt-applications?
>
Because a few things like asm/atomic.h and linux/bitops.h are wanted from the
target header base for compiling some bits of user-space stuff. Not pretty, but
currently needed. This is probably what needs to be fixed, in which case the -I
directive would become useless in the same move.
> Gilles explained to me that at least asm/atomic.h is used by certain
> parts like UVM (or only UVM?), and that including this header directly
> from /usr/include fails on Red Hat/Fedora boxes. Are there any further
> problems? At least on my SuSE 10 everything still compiles fine
> (including UVM) when I remove the kernel headers from XENO_USER_CFLAGS
> in configure.in.
>
It's not an issue with such inclusion failing/passing, it's just that it would
be incorrect to include your host distro's headers for that purpose, since what
we need here is the _target_ stuff. The fact that it works on your box is just
because 1) your host == your target arch, and 2) your host header base does not
seem to implement guards preventing the use of kernel headers in user-space
context. In cross compilation context, such inclusion would simply break the
build, since it expects the target architecture headers to be used, not the
host's ones.
> Jan
>
>
> ------------------------------------------------------------------------
>
> _______________________________________________
> Xenomai-core mailing list
> Xenomai-core@domain.hid
> https://mail.gna.org/listinfo/xenomai-core
--
Philippe.
^ permalink raw reply [flat|nested] 9+ messages in thread
* Re: [Xenomai-core] [bug-reminder] user/kernel space header deps
2005-10-24 20:46 ` Philippe Gerum
@ 2005-10-24 20:59 ` Jan Kiszka
2005-10-24 21:03 ` Philippe Gerum
0 siblings, 1 reply; 9+ messages in thread
From: Jan Kiszka @ 2005-10-24 20:59 UTC (permalink / raw)
To: Philippe Gerum; +Cc: xenomai-core
[-- Attachment #1: Type: text/plain, Size: 2701 bytes --]
Philippe Gerum wrote:
> Jan Kiszka wrote:
>
>> Philippe Gerum wrote:
>>
>>> Jan Kiszka wrote:
>>>
>>>
>>>> Hi,
>>>>
>>>> just to avoid that this issue got lost during the migration to Xenomai:
>>>>
>>>> It's still not possible to compile a C++ POSIX program with CFLAGS
>>>> obtained via "xeno-config --posix-ldflags". This is due to the fact
>>>> that
>>>> low-level, C++-incompatible headers get included in that case.
>>>> Moreover,
>>>> the same scenarion works for native skin programs only by chance at the
>>>> moment.
>>>>
>>>> On the long term, a clear separation between types, defines, function
>>>> prototypes, etc. needed for the user API on the one and for core
>>>> compilation on the other side is required.
>>>>
>>>
>>> Without duplicating definitions and ABI information, otherwise this
>>> would be an absolute nightmare. Suggestions welcome.
>>>
>>
>>
>> To pick up this issue again (as it's biting me more and more...):
>>
>> What precisely prevents us at the moment from removing the
>> -I<kernel-headers> from all userspace build steps, both Xenomai's own
>> libraries as well as external rt-applications?
>>
>
> Because a few things like asm/atomic.h and linux/bitops.h are wanted
> from the target header base for compiling some bits of user-space stuff.
> Not pretty, but currently needed. This is probably what needs to be
> fixed, in which case the -I directive would become useless in the same
> move.
>
>> Gilles explained to me that at least asm/atomic.h is used by certain
>> parts like UVM (or only UVM?), and that including this header directly
>> from /usr/include fails on Red Hat/Fedora boxes. Are there any further
>> problems? At least on my SuSE 10 everything still compiles fine
>> (including UVM) when I remove the kernel headers from XENO_USER_CFLAGS
>> in configure.in.
>>
>
> It's not an issue with such inclusion failing/passing, it's just that it
> would be incorrect to include your host distro's headers for that
> purpose, since what we need here is the _target_ stuff. The fact that it
> works on your box is just because 1) your host == your target arch, and
> 2) your host header base does not seem to implement guards preventing
> the use of kernel headers in user-space context. In cross compilation
> context, such inclusion would simply break the build, since it expects
> the target architecture headers to be used, not the host's ones.
>
I see, so the problem is the pre-set link of /usr/include/asm to
/usr/include/asm-i386 in my case.
Anyway, it seems that really few code is involved so that it should be
possible to find either related headers in the standard libc or copy
that few atomic ops to Xenomai's arch-dependent includes.
Jan
[-- Attachment #2: OpenPGP digital signature --]
[-- Type: application/pgp-signature, Size: 256 bytes --]
^ permalink raw reply [flat|nested] 9+ messages in thread
* Re: [Xenomai-core] [bug-reminder] user/kernel space header deps
2005-10-24 20:59 ` Jan Kiszka
@ 2005-10-24 21:03 ` Philippe Gerum
0 siblings, 0 replies; 9+ messages in thread
From: Philippe Gerum @ 2005-10-24 21:03 UTC (permalink / raw)
To: Jan Kiszka; +Cc: xenomai-core
Jan Kiszka wrote:
> Philippe Gerum wrote:
>
>>Jan Kiszka wrote:
>>
>>
>>>Philippe Gerum wrote:
>>>
>>>
>>>>Jan Kiszka wrote:
>>>>
>>>>
>>>>
>>>>>Hi,
>>>>>
>>>>>just to avoid that this issue got lost during the migration to Xenomai:
>>>>>
>>>>>It's still not possible to compile a C++ POSIX program with CFLAGS
>>>>>obtained via "xeno-config --posix-ldflags". This is due to the fact
>>>>>that
>>>>>low-level, C++-incompatible headers get included in that case.
>>>>>Moreover,
>>>>>the same scenarion works for native skin programs only by chance at the
>>>>>moment.
>>>>>
>>>>>On the long term, a clear separation between types, defines, function
>>>>>prototypes, etc. needed for the user API on the one and for core
>>>>>compilation on the other side is required.
>>>>>
>>>>
>>>>Without duplicating definitions and ABI information, otherwise this
>>>>would be an absolute nightmare. Suggestions welcome.
>>>>
>>>
>>>
>>>To pick up this issue again (as it's biting me more and more...):
>>>
>>>What precisely prevents us at the moment from removing the
>>>-I<kernel-headers> from all userspace build steps, both Xenomai's own
>>>libraries as well as external rt-applications?
>>>
>>
>>Because a few things like asm/atomic.h and linux/bitops.h are wanted
>>from the target header base for compiling some bits of user-space stuff.
>>Not pretty, but currently needed. This is probably what needs to be
>>fixed, in which case the -I directive would become useless in the same
>>move.
>>
>>
>>>Gilles explained to me that at least asm/atomic.h is used by certain
>>>parts like UVM (or only UVM?), and that including this header directly
>>>from /usr/include fails on Red Hat/Fedora boxes. Are there any further
>>>problems? At least on my SuSE 10 everything still compiles fine
>>>(including UVM) when I remove the kernel headers from XENO_USER_CFLAGS
>>>in configure.in.
>>>
>>
>>It's not an issue with such inclusion failing/passing, it's just that it
>>would be incorrect to include your host distro's headers for that
>>purpose, since what we need here is the _target_ stuff. The fact that it
>>works on your box is just because 1) your host == your target arch, and
>>2) your host header base does not seem to implement guards preventing
>>the use of kernel headers in user-space context. In cross compilation
>>context, such inclusion would simply break the build, since it expects
>>the target architecture headers to be used, not the host's ones.
>>
>
>
> I see, so the problem is the pre-set link of /usr/include/asm to
> /usr/include/asm-i386 in my case.
>
> Anyway, it seems that really few code is involved so that it should be
> possible to find either related headers in the standard libc or copy
> that few atomic ops to Xenomai's arch-dependent includes.
Yes, fixing that need is the way to go.
--
Philippe.
^ permalink raw reply [flat|nested] 9+ messages in thread
end of thread, other threads:[~2005-10-24 21:03 UTC | newest]
Thread overview: 9+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2005-10-17 9:27 [Xenomai-core] [bug-reminder] user/kernel space header deps Jan Kiszka
2005-10-17 11:34 ` Philippe Gerum
2005-10-24 11:15 ` Jan Kiszka
2005-10-24 20:46 ` Philippe Gerum
2005-10-24 20:59 ` Jan Kiszka
2005-10-24 21:03 ` Philippe Gerum
2005-10-17 19:23 ` Gilles Chanteperdrix
2005-10-17 19:42 ` Philippe Gerum
2005-10-18 11:17 ` Jan Kiszka
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.