Re: Fwd: RTAI 3.9 math module unknown symbols - Ubuntu 12.04

Paolo Mantegazza <[email protected]>
Newsgroups gmane.linux.real-time.rtai
Message-ID <[email protected]>
On 07/05/2016 10:07 AM, Laurence TROUVE wrote:
>
> Hi.
>
> FYI, I finally found the solution of the missing symbols on this 
> page : http://mail.rtai.org/pipermail/rtai/2012-December/025250.html
>
> The problem was : when linking rtai_math.ko, there was a lot of warnings :
>
> WARNING: "acos" 
> [/home/bee/Tests_buildroot/buildroot-2016.02/output/build/rtai-4.0.1/base/math/rtai_math.ko] 
> undefined!
>
> WARNING: "asin" 
> [/home/bee/Tests_buildroot/buildroot-2016.02/output/build/rtai-4.0.1/base/math/rtai_math.ko] 
> undefined!
>
> WARNING: "exp" 
> [/home/bee/Tests_buildroot/buildroot-2016.02/output/build/rtai-4.0.1/base/math/rtai_math.ko] 
> undefined!
>
> WARNING: "log10" 
> [/home/bee/Tests_buildroot/buildroot-2016.02/output/build/rtai-4.0.1/base/math/rtai_math.ko] 
> undefined!
>
> WARNING: "sinh" 
> [/home/bee/Tests_buildroot/buildroot-2016.02/output/build/rtai-4.0.1/base/math/rtai_math.ko] 
> undefined!
>
> WARNING: "pow" 
> [/home/bee/Tests_buildroot/buildroot-2016.02/output/build/rtai-4.0.1/base/math/rtai_math.ko] 
> undefined!
>
> WARNING: "atan2" 
> [/home/bee/Tests_buildroot/buildroot-2016.02/output/build/rtai-4.0.1/base/math/rtai_math.ko] 
> undefined!
>
> WARNING: "fmod" 
> [/home/bee/Tests_buildroot/buildroot-2016.02/output/build/rtai-4.0.1/base/math/rtai_math.ko] 
> undefined!
>
> WARNING: "cosh" 
> [/home/bee/Tests_buildroot/buildroot-2016.02/output/build/rtai-4.0.1/base/math/rtai_math.ko] 
> undefined!
>
> WARNING: "sqrt" 
> [/home/bee/Tests_buildroot/buildroot-2016.02/output/build/rtai-4.0.1/base/math/rtai_math.ko] 
> undefined!
>
> WARNING: "log" 
> [/home/bee/Tests_buildroot/buildroot-2016.02/output/build/rtai-4.0.1/base/math/rtai_math.ko] 
> undefined!
>
> And when I try to insmod rtai_math.ko, I get the following error :
>
> “rtai_math : unknown symbol log (err 0)
>
> rtai_math : unknown symbol sqrt (err 0)
>
> rtai_math : unknown symbol cosh (err 0)
>
> rtai_math : unknown symbol fmod (err 0)
>
> rtai_math : unknown symbol atan2 (err 0)
>
> rtai_math : unknown symbol pow (err 0)
>
> rtai_math : unknown symbol sinh (err 0)
>
> rtai_math : unknown symbol log10 (err 0)
>
> rtai_math : unknown symbol exp (err 0)
>
> rtai_math : unknown symbol asin (err 0)
>
> rtai_math : unknown symbol acos (err 0)”
>
> The solution was : replacing the option–ffast-math by-fno-math-errno 
> -funsafe-math-optimizations -fno-rounding-math
>
> -fno-signaling-nans -fcx-limited-range in rtai-4.0.1/configure.in and 
> in rtai-4.0.1/base/math/GNUMakefile.
>
> Now it compiles and insmod withoud any problem.
>

Have you tested it with "showroom" CVS, as for the test found in 
"showroom/v3.x/kern/math/?
Paolo

> Laurence TROUVÉ.
>
>
>
> _______________________________________________
> Rtai mailing list
> [email protected]
> https://mail.rtai.org/cgi-bin/mailman/listinfo/rtai

_______________________________________________
Rtai mailing list
[email protected]
https://mail.rtai.org/cgi-bin/mailman/listinfo/rtai
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.