Re: compiling error of using MUSL libm.a in RTAI 5.1
Guo Yunfei <[email protected]> Sat, 10 Feb 2018 22:57:43 +0800
| Newsgroups | gmane.linux.real-time.rtai |
|---|---|
| Message-ID | <CAN_Un=W7v_9bBms08E81rubVJG0rtedxXJhWo9DA_8DiJ=rQ1Q@mail.gmail.com> |
--===============1499254753694024202== Content-Type: multipart/alternative; boundary="001a1148e12006ff6f0564dcde75" --001a1148e12006ff6f0564dcde75 Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable Thank you very very much. Mr. Paolo. Here is too late in China. I must go home. I tell you my test result tomorrow. Besides, Thank you for your notification to me about the kernel space math function using. I had running my algorithm programme in user space in LXRT method, but it seems not very efficiency. For my user space algorithm programme must communicate to a FPGA chip by a PCIe driver programme, which is a xxxx.ko module. in kernel space. The FPGA chip will send much data to the algorithm programme per 1ms. I using a semaphore system to synchronize the FPGA driver with the algorithm,but it seems not very efficiency. So I want integrate the the algorithm programme into the xxxx.ko module. I think in this way the FPGA data can be get by algorithm programme immediately. No need a communication from user space to kernel space. I hope this way can raise the system efficiency. BR Guo Yunfei On Sat, Feb 10, 2018 at 10:48 PM, Paolo Mantegazza < [email protected]> wrote: > Forget the long list of warnings, sooner or later will fix it, just go an= d > try the showroom kernel math test. > Paolo > ________________________________________ > From: Guo Yunfei [[email protected]] > Sent: Saturday, February 10, 2018 3:45 PM > To: Paolo Mantegazza > Cc: [email protected] > Subject: Re: [Rtai] compiling error of using MUSL libm.a in RTAI 5.1 > > Yes. > I just found that stupid false of mine. > If I enable the complex function support. that error disappear. > > But the warning message come again. > > On Sat, Feb 10, 2018 at 7:29 PM, Paolo Mantegazza < > [email protected]<mailto:[email protected]>> wrote: > After all the fuss, an email flood and the time I lost to found a possibl= e > bug in RTAI libm suppert in kernel space, I have a silly and trivial > question for you? > Did you enable the complex math support in configuring RTAI for MUSL? > I think I know your answer already, but I'll be happy to hear it from you= . > Paolo > > ________________________________________ > From: Guo Yunfei [[email protected]<mailto:[email protected]>= ] > Sent: Saturday, February 10, 2018 10:03 AM > To: Paolo Mantegazza > Cc: [email protected]<mailto:[email protected]> > Subject: Re: [Rtai] compiling error of using MUSL libm.a in RTAI 5.1 > > Did I need change my Debian or kernel version? > Or need I change some configuration of it? > > > Thanks > Guo Yunfei. > > On Sat, Feb 10, 2018 at 4:34 PM, Paolo Mantegazza < > [email protected]<mailto:[email protected]><mailto: > [email protected]<mailto:[email protected]>>> wrote: > Download: musl-1.1.16.tar.gz (sig) - December 31, 2016 and try with it > Paolo > ________________________________________ > From: Rtai [[email protected]<mailto:[email protected]><mailto: > [email protected]<mailto:[email protected]>>] on behalf of Guo > Yunfei [[email protected]<mailto:[email protected]><mailto: > [email protected]<mailto:[email protected]>>] > Sent: Saturday, February 10, 2018 8:29 AM > To: [email protected]<mailto:[email protected]><mailto:[email protected]<mailto: > [email protected]>> > Subject: [Rtai] compiling error of using MUSL libm.a in RTAI 5.1 > > Dear Paolo: > > I had config my system like below: > Debian 8.9.0 --- kernel-3.16.7---RTAI-5.1 > > I get the MUSL by command: git clone git://git.musl-libc.org/musl<h > ttp://git.musl-libc.org/musl><http://git.musl-libc.org/musl>< > http://git.musl-libc.org/musl> > I build the MUSL follow the steps in README.KLIBM file which in > rtai-5.1/base/math > the libm.a was build successful. > > after I set the libm.a path , and make the RTAI 5.1 > > the error message pop out as below: > //---------------------------------------------------------- > Making all in math > make[3]: Entering directory '/media/guoissac/13GDATA/rtai-5.1/base/math' > make[4]: Entering directory '/media/guoissac/13GDATA/linux-3.16.7' > CC [M] /media/guoissac/13GDATA/rtai-5.1/base/math/libm.o > /media/guoissac/13GDATA/rtai-5.1/base/math/libm.c: In function =E2=80=98c= pow=E2=80=99: > /media/guoissac/13GDATA/rtai-5.1/base/math/libm.c:169:2: error: implicit > declaration of function =E2=80=98cexp=E2=80=99 [-Werror=3Dimplicit-functi= on-declaration] > return cexp(y*clog(x)); > ^ > /media/guoissac/13GDATA/rtai-5.1/base/math/libm.c:169:2: error: implicit > declaration of function =E2=80=98clog=E2=80=99 [-Werror=3Dimplicit-functi= on-declaration] > cc1: some warnings being treated as errors > scripts/Makefile.build:257: recipe for target > '/media/guoissac/13GDATA/rtai-5.1/base/math/libm.o' failed > make[5]: *** [/media/guoissac/13GDATA/rtai-5.1/base/math/libm.o] Error 1 > Makefile:1333: recipe for target '_module_/media/guoissac/13GDATA/rtai-5.= 1/base/math' > failed > make[4]: *** [_module_/media/guoissac/13GDATA/rtai-5.1/base/math] Error 2 > make[4]: Leaving directory '/media/guoissac/13GDATA/linux-3.16.7' > GNUmakefile:652: recipe for target 'rtai_math.ko' failed > make[3]: *** [rtai_math.ko] Error 2 > make[3]: Leaving directory '/media/guoissac/13GDATA/rtai-5.1/base/math' > GNUmakefile:423: recipe for target 'all-recursive' failed > make[2]: *** [all-recursive] Error 1 > make[2]: Leaving directory '/media/guoissac/13GDATA/rtai-5.1/base' > GNUmakefile:486: recipe for target 'all-recursive' failed > make[1]: *** [all-recursive] Error 1 > make[1]: Leaving directory '/media/guoissac/13GDATA/rtai-5.1' > GNUmakefile:417: recipe for target 'all' failed > make: *** [all] Error 2 > > //---------------------------------------------------------------- > > above message pop out either I using a 32bit Debian or 64bit Debian. > did that MUSL version is something wrong with it? > > any suggestion for this? > > > Guo Yunfei > > > > > > --001a1148e12006ff6f0564dcde75 Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable <div dir=3D"ltr"><div><br></div><div><br></div>Thank you very very much.=C2= =A0 Mr. Paolo.<div>Here is too late in China.=C2=A0</div><div>I must go hom= e.</div><div>I tell you my test result tomorrow.</div><div><br></div><div><= div>Besides,</div><div><br></div><div>Thank you for your notification to me= about the kernel space math function using.</div><div><br></div><div>I had= running my algorithm programme in user space in LXRT method, but it seems = not very efficiency.</div><div>For my user space algorithm programme must c= ommunicate to a FPGA chip by a PCIe driver programme, which is a xxxx.ko mo= dule. in kernel space.</div><div>The FPGA chip will send much data to the a= lgorithm programme per 1ms.</div><div>I using a semaphore system to synchro= nize the FPGA driver with the algorithm,but it seems not very efficiency.</= div><div><br></div><div>=C2=A0=C2=A0</div><div>So I want integrate the the = algorithm programme into the xxxx.ko module.</div><div>I think in this way = the FPGA data can be get =C2=A0by algorithm programme immediately.</div><di= v>No need a communication from user space to kernel space.=C2=A0</div><div>= I hope this way can raise the system efficiency. =C2=A0</div></div><div><br= ></div><div>BR</div><div><br></div><div>Guo Yunfei</div><div><br></div><div= ><br></div></div><div class=3D"gmail_extra"><br><div class=3D"gmail_quote">= On Sat, Feb 10, 2018 at 10:48 PM, Paolo Mantegazza <span dir=3D"ltr"><<a= href=3D"mailto:[email protected]" target=3D"_blank">paolo.mantega= [email protected]</a>></span> wrote:<br><blockquote class=3D"gmail_quote" st= yle=3D"margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Forge= t the long list of warnings, sooner or later will fix it, just go and try t= he showroom kernel math test.<br> <span class=3D"">Paolo<br> ______________________________<wbr>__________<br> From: Guo Yunfei [<a href=3D"mailto:[email protected]">guoyunfei2018@= gmail.com</a>]<br> </span>Sent: Saturday, February 10, 2018 3:45 PM<br> <span class=3D"">To: Paolo Mantegazza<br> Cc: <a href=3D"mailto:[email protected]">[email protected]</a><br> Subject: Re: [Rtai] compiling error of using MUSL libm.a in RTAI 5.1<br> <br> </span><span class=3D"">Yes.<br> I just found that stupid false of mine.<br> If I enable the complex function support. that error disappear.<br> <br> But the warning message come again.<br> <br> </span><span class=3D"">On Sat, Feb 10, 2018 at 7:29 PM, Paolo Mantegazza &= lt;<a href=3D"mailto:[email protected]">[email protected]= </a><<wbr>mailto:<a href=3D"mailto:[email protected]">paolo.man= tegazza@<wbr>polimi.it</a>>> wrote:<br> After all the fuss, an email flood and the time I lost to found a possible = bug in RTAI libm suppert in kernel space, I have a silly and trivial questi= on for you?<br> Did you enable the complex math support in configuring RTAI for MUSL?<br> I think I know your answer already, but I'll be happy to hear it from y= ou.<br> Paolo<br> <br> ______________________________<wbr>__________<br> </span>From: Guo Yunfei [<a href=3D"mailto:[email protected]">guoyunf= [email protected]</a><<wbr>mailto:<a href=3D"mailto:[email protected]= om">[email protected]</a><wbr>>]<br> <span class=3D"">Sent: Saturday, February 10, 2018 10:03 AM<br> To: Paolo Mantegazza<br> </span>Cc: <a href=3D"mailto:[email protected]">[email protected]</a><mailto:<a = href=3D"mailto:[email protected]">Rtai@<wbr>rtai.org</a>><br> <span class=3D"">Subject: Re: [Rtai] compiling error of using MUSL libm.a i= n RTAI 5.1<br> <br> Did I need change my Debian or kernel version?<br> Or need I change some configuration of it?<br> <br> <br> Thanks<br> Guo Yunfei.<br> <br> </span><span class=3D"">On Sat, Feb 10, 2018 at 4:34 PM, Paolo Mantegazza &= lt;<a href=3D"mailto:[email protected]">[email protected]= </a><<wbr>mailto:<a href=3D"mailto:[email protected]">paolo.man= tegazza@<wbr>polimi.it</a>><mailto:<a href=3D"mailto:paolo.mantegazza= @polimi.it">paolo.<wbr>[email protected]</a><mailto:<a href=3D"mailto= :[email protected]">pa<wbr>[email protected]</a>>>>= ; wrote:<br> Download: musl-1.1.16.tar.gz (sig) - December 31, 2016=C2=A0 and try with i= t<br> Paolo<br> ______________________________<wbr>__________<br> </span>From: Rtai [<a href=3D"mailto:[email protected]">rtai-bounces@rt= ai.org</a><mailto:<a href=3D"mailto:[email protected]"><wbr>rtai-bou= [email protected]</a>><mailto:<a href=3D"mailto:[email protected]"><w= br>[email protected]</a><mailto:<a href=3D"mailto:rtai-bounces@rtai.= org">r<wbr>[email protected]</a>>>] on behalf of Guo Yunfei [<a hr= ef=3D"mailto:[email protected]">[email protected]</a><<wbr>m= ailto:<a href=3D"mailto:[email protected]">[email protected]</a= ><wbr>><mailto:<a href=3D"mailto:[email protected]">guoyunfei20= 18@gmail.<wbr>com</a><mailto:<a href=3D"mailto:[email protected]">= guoyunfei2018@<wbr>gmail.com</a>>>]<br> <span class=3D"">Sent: Saturday, February 10, 2018 8:29 AM<br> </span>To: <a href=3D"mailto:[email protected]">[email protected]</a><mailto:<a = href=3D"mailto:[email protected]">Rtai@<wbr>rtai.org</a>><mailto:<a href= =3D"mailto:[email protected]">[email protected]</a><wbr><mailto:<a href=3D"mailt= o:[email protected]">[email protected]</a>>><br> <span class=3D"">Subject: [Rtai] compiling error of using MUSL libm.a in RT= AI 5.1<br> <br> Dear Paolo:<br> <br> I had config my system like below:<br> Debian 8.9.0 --- kernel-3.16.7---RTAI-5.1<br> <br> </span>I get the MUSL by command: git clone git://<a href=3D"http://git.mus= l-libc.org/musl" rel=3D"noreferrer" target=3D"_blank">git.musl-libc.org/mus= l</a><<a href=3D"http://git.musl-libc.org/musl" rel=3D"noreferrer" targe= t=3D"_blank">h<wbr>ttp://git.musl-libc.org/musl</a>><<a href=3D"http:= //git.musl-libc.org/musl" rel=3D"noreferrer" target=3D"_blank"><wbr>http://= git.musl-libc.org/musl</a>><wbr><<a href=3D"http://git.musl-libc.org/= musl" rel=3D"noreferrer" target=3D"_blank">http://git.musl-libc.org/musl</a= ><wbr>><br> <div class=3D"HOEnZb"><div class=3D"h5">I build the MUSL follow the steps i= n=C2=A0 README.KLIBM file which in rtai-5.1/base/math<br> the libm.a was build successful.<br> <br> after I set the libm.a=C2=A0 path , and make the RTAI 5.1<br> <br> the error message pop out as below:<br> //----------------------------<wbr>------------------------------<br> Making all in math<br> make[3]: Entering directory '/media/guoissac/13GDATA/rtai-<wbr>5.1/base= /math'<br> make[4]: Entering directory '/media/guoissac/13GDATA/<wbr>linux-3.16.7&= #39;<br> =C2=A0 CC [M]=C2=A0 /media/guoissac/13GDATA/rtai-<wbr>5.1/base/math/libm.o<= br> /media/guoissac/13GDATA/rtai-<wbr>5.1/base/math/libm.c: In function =E2=80= =98cpow=E2=80=99:<br> /media/guoissac/13GDATA/rtai-<wbr>5.1/base/math/libm.c:169:2: error: implic= it declaration of function =E2=80=98cexp=E2=80=99 [-Werror=3Dimplicit-funct= ion-<wbr>declaration]<br> =C2=A0 return cexp(y*clog(x));<br> =C2=A0 ^<br> /media/guoissac/13GDATA/rtai-<wbr>5.1/base/math/libm.c:169:2: error: implic= it declaration of function =E2=80=98clog=E2=80=99 [-Werror=3Dimplicit-funct= ion-<wbr>declaration]<br> cc1: some warnings being treated as errors<br> scripts/Makefile.build:257: recipe for target '/media/guoissac/13GDATA/= rtai-<wbr>5.1/base/math/libm.o' failed<br> make[5]: *** [/media/guoissac/13GDATA/rtai-<wbr>5.1/base/math/libm.o] Error= 1<br> Makefile:1333: recipe for target '_module_/media/guoissac/<wbr>13GDATA/= rtai-5.1/base/math' failed<br> make[4]: *** [_module_/media/guoissac/<wbr>13GDATA/rtai-5.1/base/math] Erro= r 2<br> make[4]: Leaving directory '/media/guoissac/13GDATA/<wbr>linux-3.16.7&#= 39;<br> GNUmakefile:652: recipe for target 'rtai_math.ko' failed<br> make[3]: *** [rtai_math.ko] Error 2<br> make[3]: Leaving directory '/media/guoissac/13GDATA/rtai-<wbr>5.1/base/= math'<br> GNUmakefile:423: recipe for target 'all-recursive' failed<br> make[2]: *** [all-recursive] Error 1<br> make[2]: Leaving directory '/media/guoissac/13GDATA/rtai-<wbr>5.1/base&= #39;<br> GNUmakefile:486: recipe for target 'all-recursive' failed<br> make[1]: *** [all-recursive] Error 1<br> make[1]: Leaving directory '/media/guoissac/13GDATA/rtai-<wbr>5.1'<= br> GNUmakefile:417: recipe for target 'all' failed<br> make: *** [all] Error 2<br> <br> //----------------------------<wbr>------------------------------<wbr>-----= -<br> <br> above message pop out either I using a 32bit Debian or 64bit Debian.<br> did that MUSL version is something wrong with it?<br> <br> any suggestion for this?<br> <br> <br> Guo Yunfei<br> <br> <br> <br> <br> <br> </div></div></blockquote></div><br></div> --001a1148e12006ff6f0564dcde75-- --===============1499254753694024202== 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 --===============1499254753694024202==--