Re: Unknown symbol in rtai_math.ko in rtai-5.0
Guo Yunfei <[email protected]> Fri, 9 Feb 2018 21:28:47 +0800
| Newsgroups | gmane.linux.real-time.rtai |
|---|---|
| Message-ID | <CAN_Un=WR=qDkEBGSPH8sCrcQuXXxQkrnBpy1+82p5tdqkmu5_w@mail.gmail.com> |
--===============6964285027491997593== Content-Type: multipart/alternative; boundary="001a11c048de1b9a380564c78210" --001a11c048de1b9a380564c78210 Content-Type: text/plain; charset="UTF-8" So, I'll try: 64-bit Debian 8. kernel 3.16.7 rtai-5.1 64-bit MUSL. Thanks On Fri, Feb 9, 2018 at 8:47 PM, Paolo Mantegazza <[email protected] > wrote: > 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, 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 and uclibc and musl, want 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. kernel-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 may > because of my PC is a little too new. > Or , might I didn't download a suitable Debian 5 cd image . > > Could you give me some suggestion for the rtai_math.ko bulid 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 < > [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 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 the 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]> 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' >>> CC [M] /media/guoissac/13GDATA/rtai-5.0/base/math/libm.o >>> LD [M] /media/guoissac/13GDATA/rtai-5.0/base/math/rtai_math.o >>> Building modules, stage 2. >>> 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! >>> CC /media/guoissac/13GDATA/rtai-5.0/base/math/rtai_math.mod.o >>> LD [M] /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: >>> >>> //------------------------------------------- >>> [ 101.763572] rtai_math: Unknown symbol gammaf_r (err 0) >>> [ 101.763584] rtai_math: Unknown symbol errno (err 0) >>> [ 101.763598] rtai_math: Unknown symbol __fpclassifyd (err 0) >>> [ 101.763612] rtai_math: Unknown symbol rt_smp_current (err 0) >>> [ 101.763621] rtai_math: Unknown symbol rtai_cpu_lock (err 0) >>> [ 101.763632] rtai_math: Unknown symbol strtod (err 0) >>> [ 101.763643] rtai_math: Unknown symbol infinity (err 0) >>> [ 101.763653] rtai_math: Unknown symbol gamma_r (err 0) >>> [ 101.763665] rtai_math: Unknown symbol strtof (err 0) >>> [ 101.763675] rtai_math: Unknown symbol infinityf (err 0) >>> [ 101.763686] rtai_math: Unknown symbol _GLOBAL_OFFSET_TABLE_ (err 0) >>> [ 101.763696] rtai_math: Unknown symbol _dl_hwcap (err 0) >>> [ 101.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 [email protected]://mail.rtai.org/cgi-bin/mailman/listinfo/rtai >>> >>> >>> >> >> > > --001a11c048de1b9a380564c78210 Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable <div dir=3D"ltr"><div>So, I'll try:</div><div>64-bit Debian 8.</div><di= v>kernel 3.16.7</div><div>rtai-5.1</div><div>64-bit MUSL.</div><div><br></d= iv><div>Thanks</div></div><div class=3D"gmail_extra"><br><div class=3D"gmai= l_quote">On Fri, Feb 9, 2018 at 8:47 PM, Paolo Mantegazza <span dir=3D"ltr"= ><<a href=3D"mailto:[email protected]" target=3D"_blank">paolo.= [email protected]</a>></span> wrote:<br><blockquote class=3D"gmail_qu= ote" style=3D"margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex= "> =20 =20 =20 <div text=3D"#000000" bgcolor=3D"#FFFFFF"> <div class=3D"m_-7907367982762922399moz-cite-prefix">First of you shoul= d 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.<span class=3D"= HOEnZb"><font color=3D"#888888"><br> Paolo</font></span><div><div class=3D"h5"><br> <br> On 02/09/2018 11:58 AM, Guo Yunfei wrote:<br> </div></div></div><div><div class=3D"h5"> <blockquote type=3D"cite"> =20 <div dir=3D"ltr"> <div>Dear Paolo:</div> <div><br> </div> <div>I had tried the all the glibc and newlib =C2=A0and =C2=A0uclib= c =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.</d= iv> <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?</d= iv> <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:paolo.mantegaz= [email protected]" target=3D"_blank">[email protected]</a>></span> wrote:<br> <blockquote class=3D"gmail_quote" style=3D"margin:0 0 0 .8ex;bord= er-left:1px #ccc solid;padding-left:1ex"> <div text=3D"#000000" bgcolor=3D"#FFFFFF"> <div class=3D"m_-7907367982762922399m_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 cl= ass=3D"m_-7907367982762922399HOEnZb"><font color=3D"#888888"><br> Paolo</font></span> <div> <div class=3D"m_-7907367982762922399h5"><br> <br> <br> On 02/07/2018 01:24 PM, Guo Yunfei wrote:<br> </div> </div> </div> <div> <div class=3D"m_-7907367982762922399h5"> <blockquote type=3D"cite"> <div dir=3D"ltr"><span style=3D"font-size:12.8px">I set =C2=A0the Mathfuns support in Kernel to enable</spa= n> <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">paolo.mantegaz= [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_-7907367982762922399m_845961375= 7452751471m_5574068749004868000moz-cite-prefix">How did you configure the RTAI math lib to use?<br> Paolo <div> <div class=3D"m_-7907367982762922399m_84596= 13757452751471h5"><br> <br> On 02/07/2018 11:54 AM, Guo Yunfei wrote:<br> </div> </div> </div> <blockquote type=3D"cite"> <div> <div class=3D"m_-7907367982762922399m_84596= 13757452751471h5"> <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.</di= v> <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>//----------------------------<wbr= >-----------------------------</div> <div>Making all in math</div> <div>make[3]: Entering directory '/media/guoissac/13GDATA/rtai-<wb= r>5.0/base/math'</div> <div>make[4]: Entering directory '/media/guoissac/13GDATA/linux<wb= r>-4.1.18'</div> <div>=C2=A0 CC [M] =C2=A0/media/guoissac/13GDATA/rtai-<w= br>5.0/base/math/libm.o</div> <div>=C2=A0 LD [M] =C2=A0/media/guoissac/13GDATA/rtai-<w= br>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-<w= br>5.0/base/math/rtai_math.mod.o</div> <div>=C2=A0 LD [M] =C2=A0/media/guoissac/13GDATA/rtai-<w= br>5.0/base/math/rtai_math.ko</div> <div>make[4]: Leaving directory '/media/guoissac/13GDATA/linux<wb= r>-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>//----------------------------<wbr= >------------------------------<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>//----------------------------<wbr= >----</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>//----------------------------</di= v> <div><br> </div> <div>Then I dmesg, it showing like below:</div> <div><br> </div> <div>//----------------------------<wbr= >---------------</div> <div>[ =C2=A0101.763572] rtai_math: Unknown symbol gammaf_r (err 0)</div> <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)</div> <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)</div= > <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)</div= > <div>[ =C2=A0101.763707] rtai_math: Unknown symbol __signbitd (err 0)</di= v> <div><br> </div> <div>//---------------------------</div= > <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_-7907367982762922399= m_8459613757452751471m_5574068749004868000mimeAttachmentHeader"></fieldset> <br> </div> </div> <pre>______________________________<wbr>_____= ____________ Rtai mailing list <a class=3D"m_-7907367982762922399m_8459613757452751471m_557406874900486800= 0moz-txt-link-abbreviated" href=3D"mailto:[email protected]" target=3D"_blank">= [email protected]</a> <a class=3D"m_-7907367982762922399m_8459613757452751471m_557406874900486800= 0moz-txt-link-freetext" href=3D"https://mail.rtai.org/cgi-bin/mailman/listi= nfo/rtai" target=3D"_blank">https://mail.rtai.org/cgi-bin/<wbr>mailman/list= info/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> </div></div></div> </blockquote></div><br></div> --001a11c048de1b9a380564c78210-- --===============6964285027491997593== 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 --===============6964285027491997593==--