Re: Unknown symbol in rtai_math.ko in rtai-5.0
Paolo Mantegazza <[email protected]> Fri, 9 Feb 2018 13:47:26 +0100
| Newsgroups | gmane.linux.real-time.rtai |
|---|---|
| Message-ID | <[email protected]> |
This is a multi-part message in MIME format. --===============4797672919037652619== Content-Type: multipart/alternative; boundary="------------9882C5C3ABB7F81B8F48BA8E" Content-Language: en-US This is a multi-part message in MIME format. --------------9882C5C3ABB7F81B8F48BA8E Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: quoted-printable First of you should use the just released RTAI-5.1. It it does not work either, the recall that you can use also NEWLIB,=20 MUSL and uCLIB. On my side I cared most using 64 bits NEWLIB and MUSL. Paolo On 02/09/2018 11:58 AM, Guo Yunfei wrote: > Dear Paolo: > > I had tried the all the glibc and newlib =C2=A0and =C2=A0uclibc =C2=A0a= nd musl, want=20 > to build a available libm.a for the rtai_math.ko using. > I struggling on this many days, but never success till now. > > I'm using Debian 8. =C2=A0kernel-3.16.7, rtai-5.1. > It is almost same error message pop out with rtai-4.1 or above. > > I had try to using Debian 5. but failed to install it into my PC. it=20 > may because of my PC is a little too new. > Or , might I didn't download a suitable Debian 5 cd image . > > Could =C2=A0you give me some suggestion for the rtai_math.ko =C2=A0buli= d=20 > successful on Debian 7 or above version? > Or, Could you share your Debian 5 download address with me? > > Many Thanks > > Best Regards > Guo Yunfei > > > > On Wed, Feb 7, 2018 at 8:52 PM, Paolo Mantegazza=20 > <[email protected] <mailto:[email protected]>> wrote: > > I retested the math kernel test with the only (old) 32 bits system > I've and it worked for me. > The installation I used is a bit outdated: Debian 5.0, gcc=C2=A0 4.= 3.2, > libxxx 2.7, with libm.a found in /usr/lib/libm.a. > In any case I used Linux 4.1.18. > At the moment I can only suggest to try with newlib or musl. > Alternatively try a more recent RTAI-version. > Paolo > > > > On 02/07/2018 01:24 PM, Guo Yunfei wrote: >> I set =C2=A0the Mathfuns support in Kernel to enable >> using item 3, it is GLIBC. >> then I give the libm.a path to /usr/lib/i386-linux-gnu. >> for I find the libm.a in that path exactly. >> >> Many thanks to Paolo. >> >> On Wed, Feb 7, 2018 at 7:04 PM, Paolo Mantegazza >> <[email protected] <mailto:[email protected]>> >> wrote: >> >> How did you configure the RTAI math lib to use? >> Paolo >> >> >> On 02/07/2018 11:54 AM, Guo Yunfei wrote: >>> >>> Hi. Everybody. >>> >>> I get trouble with rtai_math.ko for a long time. >>> I'm using 32bit Debian 8.9.0 with kernel-4.1.18 with rtai-5.0= . >>> I setup the math funtion in kernel item enable. >>> The libm.a path was setting to /usr/lib/i386-linux-gnu. set >>> as 3, using glibc-libm.a >>> >>> >>> >>> When I make the rtai-5.0, some warning message always pop >>> out like below: >>> >>> //--------------------------------------------------------- >>> Making all in math >>> make[3]: Entering directory >>> '/media/guoissac/13GDATA/rtai-5.0/base/math' >>> make[4]: Entering directory >>> '/media/guoissac/13GDATA/linux-4.1.18' >>> =C2=A0 CC [M] =C2=A0/media/guoissac/13GDATA/rtai-5.0/base/mat= h/libm.o >>> =C2=A0 LD [M] =C2=A0/media/guoissac/13GDATA/rtai-5.0/base/mat= h/rtai_math.o >>> =C2=A0 Building modules, stage 2. >>> =C2=A0 MODPOST 1 modules >>> WARNING: "remquo" >>> [/media/guoissac/13GDATA/rtai-5.0/base/math/rtai_math.ko] >>> undefined! >>> WARNING: "erfcf" >>> [/media/guoissac/13GDATA/rtai-5.0/base/math/rtai_math.ko] >>> undefined! >>> WARNING: "ynf" >>> [/media/guoissac/13GDATA/rtai-5.0/base/math/rtai_math.ko] >>> undefined! >>> WARNING: "erfc" >>> [/media/guoissac/13GDATA/rtai-5.0/base/math/rtai_math.ko] >>> undefined! >>> WARNING: "frexp" >>> [/media/guoissac/13GDATA/rtai-5.0/base/math/rtai_math.ko] >>> undefined! >>> WARNING: "logbf" >>> [/media/guoissac/13GDATA/rtai-5.0/base/math/rtai_math.ko] >>> undefined! >>> WARNING: "y1" >>> [/media/guoissac/13GDATA/rtai-5.0/base/math/rtai_math.ko] >>> undefined! >>> WARNING: "expm1f" >>> [/media/guoissac/13GDATA/rtai-5.0/base/math/rtai_math.ko] >>> undefined! >>> WARNING: "__signbitd" >>> [/media/guoissac/13GDATA/rtai-5.0/base/math/rtai_math.ko] >>> undefined! >>> WARNING: "trunc" >>> [/media/guoissac/13GDATA/rtai-5.0/base/math/rtai_math.ko] >>> undefined! >>> >>> .... >>> .... >>> .... >>> >>> >>> WARNING: "exp2f" >>> [/media/guoissac/13GDATA/rtai-5.0/base/math/rtai_math.ko] >>> undefined! >>> WARNING: "lroundf" >>> [/media/guoissac/13GDATA/rtai-5.0/base/math/rtai_math.ko] >>> undefined! >>> WARNING: "asinh" >>> [/media/guoissac/13GDATA/rtai-5.0/base/math/rtai_math.ko] >>> undefined! >>> WARNING: "cosh" >>> [/media/guoissac/13GDATA/rtai-5.0/base/math/rtai_math.ko] >>> undefined! >>> WARNING: "sqrt" >>> [/media/guoissac/13GDATA/rtai-5.0/base/math/rtai_math.ko] >>> undefined! >>> WARNING: "log" >>> [/media/guoissac/13GDATA/rtai-5.0/base/math/rtai_math.ko] >>> undefined! >>> WARNING: "fabs" >>> [/media/guoissac/13GDATA/rtai-5.0/base/math/rtai_math.ko] >>> undefined! >>> WARNING: "fmodf" >>> [/media/guoissac/13GDATA/rtai-5.0/base/math/rtai_math.ko] >>> undefined! >>> WARNING: "expm1" >>> [/media/guoissac/13GDATA/rtai-5.0/base/math/rtai_math.ko] >>> undefined! >>> =C2=A0 CC =C2=A0/media/guoissac/13GDATA/rtai-5.0/base/math/rt= ai_math.mod.o >>> =C2=A0 LD [M] >>> =C2=A0/media/guoissac/13GDATA/rtai-5.0/base/math/rtai_math.ko >>> make[4]: Leaving directory >>> '/media/guoissac/13GDATA/linux-4.1.18' >>> mv rtai_math.ko rtai_math.ko.tmp >>> ld -r -static -o rtai_math.ko rtai_math.ko.tmp >>> /usr/lib/i386-linux-gnu/libm.a >>> rm -f rtai_math.ko.tmp >>> //-----------------------------------------------------------= -- >>> >>> If I not care of above warning message. go on insmod >>> rtai_math.ko. >>> the error message pop out like below: >>> //-------------------------------- >>> >>> insmod: ERROR: could not insert module rtai_math.ko: Unknown >>> symbol in module >>> >>> >>> //---------------------------- >>> >>> Then I dmesg, it showing like below: >>> >>> //------------------------------------------- >>> [ =C2=A0101.763572] rtai_math: Unknown symbol gammaf_r (err 0= ) >>> [ =C2=A0101.763584] rtai_math: Unknown symbol errno (err 0) >>> [ =C2=A0101.763598] rtai_math: Unknown symbol __fpclassifyd (= err 0) >>> [ =C2=A0101.763612] rtai_math: Unknown symbol rt_smp_current = (err 0) >>> [ =C2=A0101.763621] rtai_math: Unknown symbol rtai_cpu_lock (= err 0) >>> [ =C2=A0101.763632] rtai_math: Unknown symbol strtod (err 0) >>> [ =C2=A0101.763643] rtai_math: Unknown symbol infinity (err 0= ) >>> [ =C2=A0101.763653] rtai_math: Unknown symbol gamma_r (err 0) >>> [ =C2=A0101.763665] rtai_math: Unknown symbol strtof (err 0) >>> [ =C2=A0101.763675] rtai_math: Unknown symbol infinityf (err = 0) >>> [ =C2=A0101.763686] rtai_math: Unknown symbol >>> _GLOBAL_OFFSET_TABLE_ (err 0) >>> [ =C2=A0101.763696] rtai_math: Unknown symbol _dl_hwcap (err = 0) >>> [ =C2=A0101.763707] rtai_math: Unknown symbol __signbitd (err= 0) >>> >>> //--------------------------- >>> >>> I tried many other configuration like: >>> ubuntu 14.04 with kernel-4.1.18 with rtai-5.0 >>> ubuntu 14.04 with kernel-3.10.32 with rtai-4.1 >>> Debian 8.9 with kernel-3.10.32 with rtai-4.1 >>> Debian 7.0.0 with kernel-3.10.32 with rtai-4.1 >>> >>> But all of it show the same error message. >>> >>> Could anyone give me some guid on solve those problem? >>> Or, could you share your successful experience with >>> rtai_math.ko to me? >>> >>> >>> Best Regards >>> Guo Issac >>> From ShangHang. China. >>> >>> >>> >>> _______________________________________________ >>> Rtai mailing list >>> [email protected] <mailto:[email protected]> >>> https://mail.rtai.org/cgi-bin/mailman/listinfo/rtai >>> <https://mail.rtai.org/cgi-bin/mailman/listinfo/rtai> >> >> >> > > --------------9882C5C3ABB7F81B8F48BA8E Content-Type: text/html; charset=utf-8 Content-Transfer-Encoding: quoted-printable <html> <head> <meta http-equiv=3D"Content-Type" content=3D"text/html; charset=3Dutf= -8"> </head> <body text=3D"#000000" bgcolor=3D"#FFFFFF"> <div class=3D"moz-cite-prefix">First of you should use the just released RTAI-5.1.<br> It it does not work either, the recall that you can use also NEWLIB, MUSL and uCLIB.<br> On my side I cared most using 64 bits NEWLIB and MUSL.<br> Paolo<br> <br> On 02/09/2018 11:58 AM, Guo Yunfei wrote:<br> </div> <blockquote type=3D"cite" cite=3D"mid:[email protected]= ail.com"> <meta http-equiv=3D"Content-Type" content=3D"text/html; charset=3Du= tf-8"> <div dir=3D"ltr"> <div>Dear Paolo:</div> <div><br> </div> <div>I had tried the all the glibc and newlib =C2=A0and =C2=A0ucl= ibc =C2=A0and musl, want to build a available libm.a for the rtai_math.ko using.</div> <div>I struggling on this many days, but never success till now.<= /div> <div><br> </div> <div>I'm using Debian 8. =C2=A0kernel-3.16.7, rtai-5.1.</div> <div>It is almost same error message pop out with rtai-4.1 or above.</div> <div><br> </div> <div>I had try to using Debian 5. but failed to install it into my PC. it may because of my PC is a little too new.</div> <div>Or , might I didn't download a suitable Debian 5 cd image .<= /div> <div><br> </div> <div>Could =C2=A0you give me some suggestion for the rtai_math.ko =C2=A0bulid successful on Debian 7 or above version?</div> <div>Or, Could you share your Debian 5 download address with me?<= /div> <div><br> </div> <div>Many Thanks</div> <div><br> </div> <div>Best Regards<br> Guo Yunfei</div> <div><br> </div> <div><br> </div> </div> <div class=3D"gmail_extra"><br> <div class=3D"gmail_quote">On Wed, Feb 7, 2018 at 8:52 PM, Paolo Mantegazza <span dir=3D"ltr"><<a href=3D"mailto:[email protected]" target=3D"_blank= " moz-do-not-send=3D"true">[email protected]</a>>= </span> wrote:<br> <blockquote class=3D"gmail_quote" style=3D"margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"> <div text=3D"#000000" bgcolor=3D"#FFFFFF"> <div class=3D"m_8459613757452751471moz-cite-prefix">I retested the math kernel test with the only (old) 32 bits system I've and it worked for me.<br> The installation I used is a bit outdated: Debian 5.0, gcc=C2=A0 4.3.2, libxxx 2.7, with libm.a found in /usr/lib/libm.a. <br> In any case I used Linux 4.1.18. <br> At the moment I can only suggest to try with newlib or musl. Alternatively try a more recent RTAI-version.<span class=3D"HOEnZb"><font color=3D"#888888"><br> Paolo</font></span> <div> <div class=3D"h5"><br> <br> <br> On 02/07/2018 01:24 PM, Guo Yunfei wrote:<br> </div> </div> </div> <div> <div class=3D"h5"> <blockquote type=3D"cite"> <div dir=3D"ltr"><span style=3D"font-size:12.8px">I s= et =C2=A0the Mathfuns support in Kernel to enable</s= pan> <div style=3D"font-size:12.8px">using item 3, it is GLIBC.</div> <div style=3D"font-size:12.8px">then I give the libm.a path to /usr/lib/i386-linux-gnu.</div> <div style=3D"font-size:12.8px">for I find the libm.a in that path exactly.</div> <div style=3D"font-size:12.8px"><br> </div> <div style=3D"font-size:12.8px">Many thanks to Paolo.</div> </div> <div class=3D"gmail_extra"><br> <div class=3D"gmail_quote">On Wed, Feb 7, 2018 at 7:04 PM, Paolo Mantegazza <span dir=3D"ltr"><<= a href=3D"mailto:[email protected]" target=3D"_blank" moz-do-not-send=3D"true">pa= [email protected]</a>></span> wrote:<br> <blockquote class=3D"gmail_quote" style=3D"margin= :0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"> <div text=3D"#000000" bgcolor=3D"#FFFFFF"> <div class=3D"m_8459613757452751471m_55740687490= 04868000moz-cite-prefix">How did you configure the RTAI math lib to use?<br> Paolo <div> <div class=3D"m_8459613757452751471h5"><b= r> <br> On 02/07/2018 11:54 AM, Guo Yunfei wrote:<br> </div> </div> </div> <blockquote type=3D"cite"> <div> <div class=3D"m_8459613757452751471h5"> <div dir=3D"ltr"> <div><br> </div> <div>Hi. Everybody.</div> <div><br> </div> <div>I get trouble with rtai_math.ko for a long time.</div> <div>I'm using 32bit Debian 8.9.0 with kernel-4.1.18 with rtai-5.0.</= div> <div>I setup the math funtion in kernel item enable.</div> <div>The libm.a path was setting to /usr/lib/i386-linux-gnu. set as 3, using glibc-libm.a</div> <div><br> </div> <div><br> </div> <div><br> </div> <div>When I make the rtai-5.0, some warning message always pop out like below:</div> <div><br> </div> <div>//----------------------------<w= br>-----------------------------</div> <div>Making all in math</div> <div>make[3]: Entering directory '/media/guoissac/13GDATA/rtai-<wbr>= 5.0/base/math'</div> <div>make[4]: Entering directory '/media/guoissac/13GDATA/linux<wbr>= -4.1.18'</div> <div>=C2=A0 CC [M] =C2=A0/media/guoissac/13GDATA/rtai-= <wbr>5.0/base/math/libm.o</div> <div>=C2=A0 LD [M] =C2=A0/media/guoissac/13GDATA/rtai-= <wbr>5.0/base/math/rtai_math.o</div> <div>=C2=A0 Building modules, stage 2= .</div> <div>=C2=A0 MODPOST 1 modules</div> <div>WARNING: "remquo" [/media/guoissac/13GDATA/rtai-<wbr>= 5.0/base/math/rtai_math.ko] undefined!</div> <div>WARNING: "erfcf" [/media/guoissac/13GDATA/rtai-<wbr>= 5.0/base/math/rtai_math.ko] undefined!</div> <div>WARNING: "ynf" [/media/guoissac/13GDATA/rtai-<wbr>= 5.0/base/math/rtai_math.ko] undefined!</div> <div>WARNING: "erfc" [/media/guoissac/13GDATA/rtai-<wbr>= 5.0/base/math/rtai_math.ko] undefined!</div> <div>WARNING: "frexp" [/media/guoissac/13GDATA/rtai-<wbr>= 5.0/base/math/rtai_math.ko] undefined!</div> <div>WARNING: "logbf" [/media/guoissac/13GDATA/rtai-<wbr>= 5.0/base/math/rtai_math.ko] undefined!</div> <div>WARNING: "y1" [/media/guoissac/13GDATA/rtai-<wbr>= 5.0/base/math/rtai_math.ko] undefined!</div> <div>WARNING: "expm1f" [/media/guoissac/13GDATA/rtai-<wbr>= 5.0/base/math/rtai_math.ko] undefined!</div> <div>WARNING: "__signbitd" [/media/guoissac/13GDATA/rtai-<wbr>= 5.0/base/math/rtai_math.ko] undefined!</div> <div>WARNING: "trunc" [/media/guoissac/13GDATA/rtai-<wbr>= 5.0/base/math/rtai_math.ko] undefined!</div> <div><br> </div> <div>....</div> <div>....</div> <div>....</div> <div><br> </div> <div><br> </div> <div>WARNING: "exp2f" [/media/guoissac/13GDATA/rtai-<wbr>= 5.0/base/math/rtai_math.ko] undefined!</div> <div>WARNING: "lroundf" [/media/guoissac/13GDATA/rtai-<wbr>= 5.0/base/math/rtai_math.ko] undefined!</div> <div>WARNING: "asinh" [/media/guoissac/13GDATA/rtai-<wbr>= 5.0/base/math/rtai_math.ko] undefined!</div> <div>WARNING: "cosh" [/media/guoissac/13GDATA/rtai-<wbr>= 5.0/base/math/rtai_math.ko] undefined!</div> <div>WARNING: "sqrt" [/media/guoissac/13GDATA/rtai-<wbr>= 5.0/base/math/rtai_math.ko] undefined!</div> <div>WARNING: "log" [/media/guoissac/13GDATA/rtai-<wbr>= 5.0/base/math/rtai_math.ko] undefined!</div> <div>WARNING: "fabs" [/media/guoissac/13GDATA/rtai-<wbr>= 5.0/base/math/rtai_math.ko] undefined!</div> <div>WARNING: "fmodf" [/media/guoissac/13GDATA/rtai-<wbr>= 5.0/base/math/rtai_math.ko] undefined!</div> <div>WARNING: "expm1" [/media/guoissac/13GDATA/rtai-<wbr>= 5.0/base/math/rtai_math.ko] undefined!</div> <div>=C2=A0 CC =C2=A0 =C2=A0 =C2=A0/media/guoissac/13GDATA/rtai-= <wbr>5.0/base/math/rtai_math.mod.o</div> <div>=C2=A0 LD [M] =C2=A0/media/guoissac/13GDATA/rtai-= <wbr>5.0/base/math/rtai_math.ko</div> <div>make[4]: Leaving directory '/media/guoissac/13GDATA/linux<wbr>= -4.1.18'</div> <div>mv rtai_math.ko rtai_math.ko.tmp</div> <div>ld -r -static -o rtai_math.ko rtai_math.ko.tmp /usr/lib/i386-linux-gnu/libm.a</div= > <div>rm -f rtai_math.ko.tmp</div> <div>//----------------------------<w= br>------------------------------<wbr>---</div> <div><br> </div> <div>If I not care of above warning message. go on insmod rtai_math.ko.</div> <div>the error message pop out like below:</div> <div>//----------------------------<w= br>----</div> <div><br> </div> <div>insmod: ERROR: could not insert module rtai_math.ko: Unknown symbol in module</div> <div><br> </div> <div><br> </div> <div>//----------------------------</= div> <div><br> </div> <div>Then I dmesg, it showing like below:</div> <div><br> </div> <div>//----------------------------<w= br>---------------</div> <div>[ =C2=A0101.763572] rtai_math: Unknown symbol gammaf_r (err 0)</di= v> <div>[ =C2=A0101.763584] rtai_math: Unknown symbol errno (err 0)</div> <div>[ =C2=A0101.763598] rtai_math: Unknown symbol __fpclassifyd (err 0)</div> <div>[ =C2=A0101.763612] rtai_math: Unknown symbol rt_smp_current (err 0)</div> <div>[ =C2=A0101.763621] rtai_math: Unknown symbol rtai_cpu_lock (err 0)</div> <div>[ =C2=A0101.763632] rtai_math: Unknown symbol strtod (err 0)</div> <div>[ =C2=A0101.763643] rtai_math: Unknown symbol infinity (err 0)</di= v> <div>[ =C2=A0101.763653] rtai_math: Unknown symbol gamma_r (err 0)</div= > <div>[ =C2=A0101.763665] rtai_math: Unknown symbol strtof (err 0)</div> <div>[ =C2=A0101.763675] rtai_math: Unknown symbol infinityf (err 0)</d= iv> <div>[ =C2=A0101.763686] rtai_math: Unknown symbol _GLOBAL_OFFSET_TABLE_ (err 0)</div> <div>[ =C2=A0101.763696] rtai_math: Unknown symbol _dl_hwcap (err 0)</d= iv> <div>[ =C2=A0101.763707] rtai_math: Unknown symbol __signbitd (err 0)</= div> <div><br> </div> <div>//---------------------------</d= iv> <div><br> </div> <div>I tried many other configuration like:</div> <div>ubuntu 14.04 with kernel-4.1.18 with rtai-5.0</div> <div>ubuntu 14.04 with kernel-3.10.32 with rtai-4.1</div> <div>Debian 8.9 with kernel-3.10.32 with rtai-4.1</div> <div>Debian 7.0.0 with kernel-3.10.32 with rtai-4.1</div> <div><br> </div> <div>But all of it show the same error message.</div> <div><br> </div> <div>Could anyone give me some guid on solve those problem?</div> <div>Or, could you share your successful experience with rtai_math.ko to me?</div> <div><br> </div> <div><br> </div> <div>Best Regards</div> <div>Guo Issac=C2=A0</div> <div>From ShangHang. China.</div> <div><br> </div> </div> <br> <fieldset class=3D"m_8459613757452751471m_55740= 68749004868000mimeAttachmentHeader"></fieldset> <br> </div> </div> <pre>______________________________<wbr>___= ______________ Rtai mailing list <a class=3D"m_8459613757452751471m_5574068749004868000moz-txt-link-abbrev= iated" href=3D"mailto:[email protected]" target=3D"_blank" moz-do-not-send=3D= "true">[email protected]</a> <a class=3D"m_8459613757452751471m_5574068749004868000moz-txt-link-freete= xt" href=3D"https://mail.rtai.org/cgi-bin/mailman/listinfo/rtai" target=3D= "_blank" moz-do-not-send=3D"true">https://mail.rtai.org/cgi-bin/<wbr>mail= man/listinfo/rtai</a></pre> </blockquote> <p><br> </p> </div> </blockquote> </div> <br> </div> </blockquote> <p><br> </p> </div> </div> </div> </blockquote> </div> <br> </div> </blockquote> <p><br> </p> </body> </html> --------------9882C5C3ABB7F81B8F48BA8E-- --===============4797672919037652619== Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Disposition: inline _______________________________________________ Rtai mailing list [email protected] https://mail.rtai.org/cgi-bin/mailman/listinfo/rtai --===============4797672919037652619==--