All of lore.kernel.org
 help / color / mirror / Atom feed
* [Buildroot] RTAI math module compilation
@ 2016-09-15 16:50 servo gmrt
  2016-09-15 21:21 ` Arnout Vandecappelle
  0 siblings, 1 reply; 5+ messages in thread
From: servo gmrt @ 2016-09-15 16:50 UTC (permalink / raw)
  To: buildroot

Hi,

Anybody compiled rtai in buildroot-2016.02 version ?

Other than "rtai_math.ko" all the modules compiles without error. When I
include math module for compilation, I am getting the following error,

The part of the make error log I attached with that.

Help me to resolve the issue.


In file included from /usr/include/features.h:365:0,
                 from ../rtai-4.0.1/base/include/rtai_math.h:37,
                 from ../rtai-4.0.1/base/math/libm.c:24:
/usr/include/sys/cdefs.h:236:0: warning: "__attribute_const__" redefined
 # define __attribute_const__ __attribute__ ((__const__))
 ^
In file included from include/linux/compiler.h:54:0,
                 from include/linux/linkage.h:4,
                 from include/linux/kernel.h:6,
                 from ../rtai-4.0.1/base/math/libm.c:21:
include/linux/compiler-gcc.h:93:0: note: this is the location of the
previous definition
 #define __attribute_const__  __attribute__((__const__))
 ^
In file included from /usr/include/features.h:365:0,
                 from ../rtai-4.0.1/base/include/rtai_math.h:37,
                 from ../rtai-4.0.1/base/math/libm.c:24:
/usr/include/sys/cdefs.h:307:0: warning: "__always_inline" redefined
 # define __always_inline __inline __attribute__ ((__always_inline__))
 ^
In file included from include/linux/compiler.h:54:0,
                 from include/linux/linkage.h:4,
                 from include/linux/kernel.h:6,
                 from ../rtai-4.0.1/base/math/libm.c:21:
include/linux/compiler-gcc.h:112:0: note: this is the location of the
previous definition
 #define __always_inline  inline __attribute__((always_inline))
 ^
In file included from ../rtai-4.0.1/base/include/rtai_math.h:77:0,
                 from ../rtai-4.0.1/base/math/libm.c:24:
/usr/include/bits/mathcalls.h:63:21: error: expected ?)? before ?,? token
 __MATHCALL_VEC (cos,, (_Mdouble_ __x));
                     ^
/usr/include/bits/mathcalls.h:65:21: error: expected ?)? before ?,? token
 __MATHCALL_VEC (sin,, (_Mdouble_ __x));
                     ^
In file included from ../rtai-4.0.1/base/include/rtai_math.h:77:0,
                 from ../rtai-4.0.1/base/math/libm.c:24:
/usr/include/bits/mathcalls.h:100:21: error: expected ?)? before ?,? token
 __MATHCALL_VEC (exp,, (_Mdouble_ __x));
                     ^
/usr/include/bits/mathcalls.h:109:21: error: expected ?)? before ?,? token
 __MATHCALL_VEC (log,, (_Mdouble_ __x));
                     ^
In file included from ../rtai-4.0.1/base/include/rtai_math.h:77:0,
                 from ../rtai-4.0.1/base/math/libm.c:24:
/usr/include/bits/mathcalls.h:153:21: error: expected ?)? before ?,? token
 __MATHCALL_VEC (pow,, (_Mdouble_ __x, _Mdouble_ __y));
                     ^
In file included from ../rtai-4.0.1/base/include/rtai_math.h:104:0,
                 from ../rtai-4.0.1/base/math/libm.c:24:
/usr/include/bits/mathcalls.h:63:21: error: expected ?)? before ?,? token
 __MATHCALL_VEC (cos,, (_Mdouble_ __x));
                     ^
/usr/include/bits/mathcalls.h:65:21: error: expected ?)? before ?,? token
 __MATHCALL_VEC (sin,, (_Mdouble_ __x));
                     ^
In file included from ../rtai-4.0.1/base/include/rtai_math.h:104:0,
                 from ../rtai-4.0.1/base/math/libm.c:24:
/usr/include/bits/mathcalls.h:100:21: error: expected ?)? before ?,? token
 __MATHCALL_VEC (exp,, (_Mdouble_ __x));
                     ^
/usr/include/bits/mathcalls.h:109:21: error: expected ?)? before ?,? token
 __MATHCALL_VEC (log,, (_Mdouble_ __x));
                     ^
In file included from ../rtai-4.0.1/base/include/rtai_math.h:104:0,
                 from ../rtai-4.0.1/base/math/libm.c:24:
/usr/include/bits/mathcalls.h:153:21: error: expected ?)? before ?,? token
 __MATHCALL_VEC (pow,, (_Mdouble_ __x, _Mdouble_ __y));
                     ^
In file included from ../rtai-4.0.1/base/include/rtai_math.h:129:0,
                 from ../rtai-4.0.1/base/math/libm.c:24:
/usr/include/bits/mathcalls.h:63:21: error: expected ?)? before ?,? token
 __MATHCALL_VEC (cos,, (_Mdouble_ __x));
                     ^
/usr/include/bits/mathcalls.h:65:21: error: expected ?)? before ?,? token
 __MATHCALL_VEC (sin,, (_Mdouble_ __x));
                     ^
In file included from ../rtai-4.0.1/base/include/rtai_math.h:129:0,
                 from ../rtai-4.0.1/base/math/libm.c:24:
/usr/include/bits/mathcalls.h:100:21: error: expected ?)? before ?,? token
 __MATHCALL_VEC (exp,, (_Mdouble_ __x));
                     ^
/usr/include/bits/mathcalls.h:109:21: error: expected ?)? before ?,? token
 __MATHCALL_VEC (log,, (_Mdouble_ __x));
                     ^
In file included from ../rtai-4.0.1/base/include/rtai_math.h:129:0,
                 from ../rtai-4.0.1/base/math/libm.c:24:
/usr/include/bits/mathcalls.h:153:21: error: expected ?)? before ?,? token
 __MATHCALL_VEC (pow,, (_Mdouble_ __x, _Mdouble_ __y));
                     ^
../rtai-4.0.1/base/math/libm.c:59:15: error: ?cos? undeclared here (not in
a function)
 EXPORT_SYMBOL(cos);
               ^
../rtai-4.0.1/base/math/libm.c:61:15: error: ?exp? undeclared here (not in
a function)
 EXPORT_SYMBOL(exp);
               ^
../rtai-4.0.1/base/math/libm.c:67:15: error: ?log? undeclared here (not in
a function)
 EXPORT_SYMBOL(log);
               ^
../rtai-4.0.1/base/math/libm.c:70:15: error: ?pow? undeclared here (not in
a function)
 EXPORT_SYMBOL(pow);
               ^
../rtai-4.0.1/base/math/libm.c:72:15: error: ?sin? undeclared here (not in
a function)
 EXPORT_SYMBOL(sin);
               ^
scripts/Makefile.build:307: recipe for target
'/data/ICOP/buildroot-2016.02/output/build/rtai-4.0.1/base/math/libm.o'
failed
make[2]: ***
[/data/ICOP/buildroot-2016.02/output/build/rtai-4.0.1/base/math/libm.o]
Error 1
Makefile:1220: recipe for target
'_module_/data/ICOP/buildroot-2016.02/output/build/rtai-4.0.1/base/math'
failed
make[1]: ***
[_module_/data/ICOP/buildroot-2016.02/output/build/rtai-4.0.1/base/math]
Error 2
make[1]: Leaving directory
'/data/ICOP/buildroot-2016.02/output/build/linux-3.8.13'
GNUmakefile:877: recipe for target 'rtai_math.ko' failed



Regards,
Thiyagarajan.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.busybox.net/pipermail/buildroot/attachments/20160915/b8a161c5/attachment.html>

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

* [Buildroot] RTAI math module compilation
  2016-09-15 16:50 [Buildroot] RTAI math module compilation servo gmrt
@ 2016-09-15 21:21 ` Arnout Vandecappelle
  2016-09-26 20:10   ` Peter Korsgaard
  0 siblings, 1 reply; 5+ messages in thread
From: Arnout Vandecappelle @ 2016-09-15 21:21 UTC (permalink / raw)
  To: buildroot



On 15-09-16 18:50, servo gmrt wrote:
> Hi,
> 
> Anybody compiled rtai in buildroot-2016.02 version ?

 Unfortunately RTAI is a kernel extension so it doesn't get tested by the
autobuilders...


> Other than "rtai_math.ko" all the modules compiles without error. When I include
> math module for compilation, I am getting the following error,
> 
> The part of the make error log I attached with that.
> 
> Help me to resolve the issue.
> 
> 
> In file included from /usr/include/features.h:365:0,
>                  from ../rtai-4.0.1/base/include/rtai_math.h:37,
>                  from ../rtai-4.0.1/base/math/libm.c:24:
> /usr/include/sys/cdefs.h:236:0: warning: "__attribute_const__" redefined
  ^^^^^
 It is using headers from the host, which is very wrong.


 Perhaps we should remove RTAI. The most recent patch for x86 is 3.8, and the
most recent patch for ppc is 2.6.29... Oh, and there is a new version 5.0-test2
released in May that goes up to 4.1 for x86 (and drops ppc).


 Regards,
 Arnout

-- 
Arnout Vandecappelle                          arnout at mind be
Senior Embedded Software Architect            +32-16-286500
Essensium/Mind                                http://www.mind.be
G.Geenslaan 9, 3001 Leuven, Belgium           BE 872 984 063 RPR Leuven
LinkedIn profile: http://www.linkedin.com/in/arnoutvandecappelle
GPG fingerprint:  7493 020B C7E3 8618 8DEC 222C 82EB F404 F9AC 0DDF

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

* [Buildroot] RTAI math module compilation
  2016-09-15 21:21 ` Arnout Vandecappelle
@ 2016-09-26 20:10   ` Peter Korsgaard
  2016-09-29 19:34     ` servo gmrt
  0 siblings, 1 reply; 5+ messages in thread
From: Peter Korsgaard @ 2016-09-26 20:10 UTC (permalink / raw)
  To: buildroot

>>>>> "Arnout" == Arnout Vandecappelle <arnout@mind.be> writes:

Hi,

 >  Perhaps we should remove RTAI. The most recent patch for x86 is 3.8, and the
 > most recent patch for ppc is 2.6.29... Oh, and there is a new version 5.0-test2
 > released in May that goes up to 4.1 for x86 (and drops ppc).

So x86 is the only supported arch? I see that test2 isn't even announced
on rtai.org :/

I personally don't have any issues removing RTAI if it doesn't get
updated / nobody uses it.

If you DO use it, please speak up.

-- 
Bye, Peter Korsgaard

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

* [Buildroot] RTAI math module compilation
  2016-09-26 20:10   ` Peter Korsgaard
@ 2016-09-29 19:34     ` servo gmrt
  2016-09-29 20:23       ` Arnout Vandecappelle
  0 siblings, 1 reply; 5+ messages in thread
From: servo gmrt @ 2016-09-29 19:34 UTC (permalink / raw)
  To: buildroot

Hi,

RTAI supports to ARM ,m68,  PPC and x86.

I am using it in my project.

Recently I compiled RTAI-4.0.1 with 3.8.13 kernel. It is working fine.

I found some changes and modifications are required for building
rtai_math.ko module.

I did the changes in generated makefile after that it started building. (I
followed http://mail.rtai.org/pipermail/rtai/2012-December/025250.html )

Rtai releases are not as fast as Linux Kernel and buildroot.Don't remove
the RTAI module from buildroot.





On Tue, Sep 27, 2016 at 1:40 AM, Peter Korsgaard <peter@korsgaard.com>
wrote:

> >>>>> "Arnout" == Arnout Vandecappelle <arnout@mind.be> writes:
>
> Hi,
>
>  >  Perhaps we should remove RTAI. The most recent patch for x86 is 3.8,
> and the
>  > most recent patch for ppc is 2.6.29... Oh, and there is a new version
> 5.0-test2
>  > released in May that goes up to 4.1 for x86 (and drops ppc).
>
> So x86 is the only supported arch? I see that test2 isn't even announced
> on rtai.org :/
>
> I personally don't have any issues removing RTAI if it doesn't get
> updated / nobody uses it.
>
> If you DO use it, please speak up.
>
> --
> Bye, Peter Korsgaard
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.busybox.net/pipermail/buildroot/attachments/20160930/fe0a34d4/attachment.html>

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

* [Buildroot] RTAI math module compilation
  2016-09-29 19:34     ` servo gmrt
@ 2016-09-29 20:23       ` Arnout Vandecappelle
  0 siblings, 0 replies; 5+ messages in thread
From: Arnout Vandecappelle @ 2016-09-29 20:23 UTC (permalink / raw)
  To: buildroot

 [Please don't top-post, but reply in-line like so.]


On 29-09-16 21:34, servo gmrt wrote:
> Hi,
> 
> RTAI supports to ARM ,m68,  PPC and x86.
> 
> I am using it in my project.
> 
> Recently I compiled RTAI-4.0.1 with 3.8.13 kernel. It is working fine.

 I guess for x86 then? Because I don't see a usable patch for 3.8 ARM or
PowerPC, as I wrote below.


> I found some changes and modifications are required for building rtai_math.ko
> module.
> 
> I did the changes in generated makefile after that it started building. (I
> followed http://mail.rtai.org/pipermail/rtai/2012-December/025250.html )
> 
> Rtai releases are not as fast as Linux Kernel and buildroot.Don't remove the
> RTAI module from buildroot.

 It doesn't make sense to keep RTAI if it is not possible to actually use it.
Your problem shows that it is not usable at the moment. So unless you or someone
else are willing to send patches to fix the issues with it, it makes no sense
for us to keep it around. People who do need it can always recover it from git
history and try to fix the failures.

 Regards,
 Arnout

[Quoted text kept because I refer to it above.]


> On Tue, Sep 27, 2016 at 1:40 AM, Peter Korsgaard <peter@korsgaard.com
> <mailto:peter@korsgaard.com>> wrote:
> 
>     >>>>> "Arnout" == Arnout Vandecappelle <arnout@mind.be
>     <mailto:arnout@mind.be>> writes:
> 
>     Hi,
> 
>      >  Perhaps we should remove RTAI. The most recent patch for x86 is 3.8, and the
>      > most recent patch for ppc is 2.6.29... Oh, and there is a new version
>     5.0-test2
>      > released in May that goes up to 4.1 for x86 (and drops ppc).
> 
>     So x86 is the only supported arch? I see that test2 isn't even announced
>     on rtai.org <http://rtai.org> :/
> 
>     I personally don't have any issues removing RTAI if it doesn't get
>     updated / nobody uses it.
> 
>     If you DO use it, please speak up.
> 
>     --
>     Bye, Peter Korsgaard
> 
> 

-- 
Arnout Vandecappelle                          arnout at mind be
Senior Embedded Software Architect            +32-16-286500
Essensium/Mind                                http://www.mind.be
G.Geenslaan 9, 3001 Leuven, Belgium           BE 872 984 063 RPR Leuven
LinkedIn profile: http://www.linkedin.com/in/arnoutvandecappelle
GPG fingerprint:  7493 020B C7E3 8618 8DEC 222C 82EB F404 F9AC 0DDF

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

end of thread, other threads:[~2016-09-29 20:23 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2016-09-15 16:50 [Buildroot] RTAI math module compilation servo gmrt
2016-09-15 21:21 ` Arnout Vandecappelle
2016-09-26 20:10   ` Peter Korsgaard
2016-09-29 19:34     ` servo gmrt
2016-09-29 20:23       ` Arnout Vandecappelle

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.