xeno_posix.ko cannot be built
Hi Philippe,
with latest head it is not possible to build the POSIX skin as module. It gives:
ERROR: "xnarch_divrem_billion" [kernel/xenomai/skins/posix/xeno_posix.ko] undefined!
Obviously an
EXPORT_SYMBOL(xnarch_divrem_billion);
is missing.
Signature · 1 line
Sebastian
Quoted 5 lines · Sebastian Smolorz
Hi Philippe,
with latest head it is not possible to build the POSIX skin as module. It gives:
Quoted 8 lines
ERROR: "
xnarch_divrem_billion" [kernel/xenomai/skins/posix/xeno_posix.ko] undefined!Obviously an
EXPORT_SYMBOL(xnarch_divrem_billion);is missing.
Well, no. The definition of xnarh_divrem_billion is in the timeconv.h header, which should be included in places where this function is needed. So, what is missing is probably a #include. But Ok, thanks for taking care of testing 2.5-rc2.
Signature · 1 line
Gilles
Quoted 11 lines · Gilles Chanteperdrix
Quoted 10 lines · Sebastian Smolorz
Hi Philippe,
with latest head it is not possible to build the POSIX skin as module. It gives:
ERROR: "
xnarch_divrem_billion" [kernel/xenomai/skins/posix/xeno_posix.ko] undefined!Obviously an
Quoted 7 lines
Quoted 3 lines
EXPORT_SYMBOL(xnarch_divrem_billion);is missing.
Well, no. The definition of
xnarh_divrem_billionis in thetimeconv.hheader, which should be included in places where this function is needed. So, what is missing is probably a #include.
Hm, I don't think so. The error only appears when building the POSIX skin as module. The attached patch fixes the problem.
Signature · 1 line
Sebastian
include/asm-generic/bits/timeconv.h +1 -0
@@ -93,6 +93,7 @@ static inline void xnarch_init_timeconv(unsigned long long freq)#ifdef __KERNEL__EXPORT_SYMBOL (xnarch_tsc_to_ns);EXPORT_SYMBOL (xnarch_ns_to_tsc); +EXPORT_SYMBOL (xnarch_divrem_billion);#endif /* __KERNEL__ */ #endif /* !_XENO_ASM_GENERIC_BITS_TIMECONV_H */
Quoted 11 lines · Gilles Chanteperdrix
Quoted 10 lines · Sebastian Smolorz
Hi Philippe,
with latest head it is not possible to build the POSIX skin as module. It gives:
ERROR: "
xnarch_divrem_billion" [kernel/xenomai/skins/posix/xeno_posix.ko] undefined!Obviously an
Quoted 7 lines
Quoted 3 lines
EXPORT_SYMBOL(xnarch_divrem_billion);is missing.
Well, no. The definition of
xnarh_divrem_billionis in thetimeconv.hheader, which should be included in places where this function is needed.
Actually, this is no inline stuff anymore, so we do need an export just like tsc_to_ns and converse op.
Quoted 3 lines
So, what is missing is probably a #include. But Ok, thanks for
taking care of testing 2.5-rc2.
Signature · 1 line
Philippe.
Quoted 14 lines · Philippe Gerum
Quoted 13 lines · Gilles Chanteperdrix
Quoted 12 lines · Sebastian Smolorz
Hi Philippe,
with latest head it is not possible to build the POSIX skin as module. It gives:
ERROR: "
xnarch_divrem_billion" [kernel/xenomai/skins/posix/xeno_posix.ko] undefined!Obviously an
EXPORT_SYMBOL(xnarch_divrem_billion);
Quoted 7 lines
Quoted 4 lines
Quoted 1 line
is missing.
Well, no. The definition of
xnarh_divrem_billionis in thetimeconv.hheader, which should be included in places where this function is needed.Actually, this is no inline stuff anymore, so we do need an export just like
tsc_to_nsand converse op.
Well, I still see its definition in timeconv.h, the only way I see to get an undefined symbol would be to use the function without including timeconv.h.
And indeed, ksrc/skins/posix/internal.h, which uses xnarch_divrem_billion does not include timeconv.h
Signature · 1 line
Gilles
Quoted 23 lines · Gilles Chanteperdrix
Quoted 14 lines · Philippe Gerum
Quoted 13 lines · Gilles Chanteperdrix
Quoted 12 lines · Sebastian Smolorz
Hi Philippe,
with latest head it is not possible to build the POSIX skin as module. It gives:
ERROR: "
xnarch_divrem_billion" [kernel/xenomai/skins/posix/xeno_posix.ko] undefined!Obviously an
EXPORT_SYMBOL(xnarch_divrem_billion);Quoted 7 lines
Quoted 4 lines
Quoted 1 line
is missing.
Well, no. The definition of
xnarh_divrem_billionis in thetimeconv.hheader, which should be included in places where this function is needed.Actually, this is no inline stuff anymore, so we do need an export just like
tsc_to_nsand converse op.
Quoted 7 lines
Well, I still see its definition in
timeconv.h, the only way I see to get an undefined symbol would be to use the function without includingtimeconv.h.And indeed,
ksrc/skins/posix/internal.h, which usesxnarch_divrem_billiondoes not includetimeconv.h
timeconv.h is not for direct inclusion, this is merely an instantiation file that works both for kernel space and userland. Callers should include asm/xenomai/system.h instead.
Signature · 1 line
Philippe.
Quoted 26 lines · Philippe Gerum
Quoted 25 lines · Gilles Chanteperdrix
Quoted 12 lines · Philippe Gerum
Quoted 11 lines · Gilles Chanteperdrix
Quoted 10 lines · Sebastian Smolorz
Hi Philippe,
with latest head it is not possible to build the POSIX skin as module. It gives:
ERROR: "
xnarch_divrem_billion" [kernel/xenomai/skins/posix/xeno_posix.ko] undefined!Obviously an
Quoted 8 lines
Quoted 6 lines
Quoted 3 lines
EXPORT_SYMBOL(xnarch_divrem_billion);is missing.
Well, no. The definition of
xnarh_divrem_billionis in thetimeconv.hheader, which should be included in places where this function is needed.Actually, this is no inline stuff anymore, so we do need an export just like
tsc_to_nsand converse op.Well, I still see its definition in
timeconv.h, the only way I see to get an undefined symbol would be to use the function without includingtimeconv.h.
Quoted 7 lines
Quoted 3 lines
And indeed,
ksrc/skins/posix/internal.h, which usesxnarch_divrem_billiondoes not includetimeconv.h
timeconv.his not for direct inclusion, this is merely an instantiation file that works both for kernel space and userland. Callers should includeasm/xenomai/system.hinstead.
posix skin is also borken in user-space then, since it includes timeconv.h.
Signature · 1 line
Gilles
Quoted 31 lines · Gilles Chanteperdrix
Quoted 30 lines · Philippe Gerum
Quoted 28 lines · Gilles Chanteperdrix
Quoted 12 lines · Philippe Gerum
Quoted 11 lines · Gilles Chanteperdrix
Quoted 10 lines · Sebastian Smolorz
Hi Philippe,
with latest head it is not possible to build the POSIX skin as module. It gives:
ERROR: "
xnarch_divrem_billion" [kernel/xenomai/skins/posix/xeno_posix.ko] undefined!Obviously an
Quoted 8 lines
Quoted 6 lines
Quoted 3 lines
EXPORT_SYMBOL(xnarch_divrem_billion);is missing.
Well, no. The definition of
xnarh_divrem_billionis in thetimeconv.hheader, which should be included in places where this function is needed.Actually, this is no inline stuff anymore, so we do need an export just like
tsc_to_nsand converse op.Well, I still see its definition in
timeconv.h, the only way I see to get an undefined symbol would be to use the function without includingtimeconv.h.And indeed,
ksrc/skins/posix/internal.h, which usesxnarch_divrem_billiondoes not includetimeconv.h
Quoted 6 lines
Quoted 3 lines
timeconv.his not for direct inclusion, this is merely an instantiation file that works both for kernel space and userland. Callers should includeasm/xenomai/system.hinstead.posix skin is also borken in user-space then, since it includes
timeconv.h.
No, since userland only includes timeconv.h once in the implementation file of time-related routines, which is mutually exclusive with asm-generic/system.h which is only for kernel-based code.
Signature · 1 line
Philippe.
Quoted 5 lines · Sebastian Smolorz
Hi Philippe,
with latest head it is not possible to build the POSIX skin as module. It gives:
Quoted 9 lines
ERROR: "
xnarch_divrem_billion" [kernel/xenomai/skins/posix/xeno_posix.ko] undefined!Obviously an
EXPORT_SYMBOL(xnarch_divrem_billion);is missing.
Indeed. Thanks,
http://git.xenomai.org/?p=xenomai-head.git;a=commit;h=7847120b2d84900941d2a40251e28636d9cbc682
Signature · 1 line
Philippe.