Re: compiling error of using MUSL libm.a in RTAI 5.1
Guo Yunfei <[email protected]> Sat, 10 Feb 2018 22:45:11 +0800
| Newsgroups | gmane.linux.real-time.rtai |
|---|---|
| Message-ID | <CAN_Un=WYi+4nXN4Uireb4AGT00XeCboSLJL1oEC0ZkQDTHxrzg@mail.gmail.com> |
--===============6203767602443210960== Content-Type: multipart/alternative; boundary="001a1148e1203363e60564dcb1e8" --001a1148e1203363e60564dcb1e8 Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable 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]> 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]] > Sent: Saturday, February 10, 2018 10:03 AM > To: Paolo Mantegazza > Cc: [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]>> wrote: > Download: musl-1.1.16.tar.gz (sig) - December 31, 2016 and try with it > Paolo > ________________________________________ > From: Rtai [[email protected]<mailto:[email protected]>] on > behalf of Guo Yunfei [[email protected]<mailto: > [email protected]>] > Sent: Saturday, February 10, 2018 8:29 AM > To: [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> > 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 > > > > > --001a1148e1203363e60564dcb1e8 Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable <div dir=3D"ltr">Yes.=C2=A0<div>I just found that stupid false of mine.</di= v><div>If I enable the complex function support. that error disappear.</div= ><div><br></div><div>But the warning message come again.</div></div><div cl= ass=3D"gmail_extra"><br><div class=3D"gmail_quote">On Sat, Feb 10, 2018 at = 7:29 PM, Paolo Mantegazza <span dir=3D"ltr"><<a href=3D"mailto:paolo.man= [email protected]" target=3D"_blank">[email protected]</a>></sp= an> wrote:<br><blockquote class=3D"gmail_quote" style=3D"margin:0 0 0 .8ex;= border-left:1px #ccc solid;padding-left:1ex">After all the fuss, an email f= lood and the time I lost to found a possible bug in RTAI libm suppert in ke= rnel space, I have a silly and trivial question 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> <span class=3D"">Paolo<br> <br> ______________________________<wbr>__________<br> From: Guo Yunfei [<a href=3D"mailto:[email protected]">guoyunfei2018@= gmail.com</a>]<br> Sent: Saturday, February 10, 2018 10:03 AM<br> To: Paolo Mantegazza<br> Cc: <a href=3D"mailto:[email protected]">[email protected]</a><br> </span>Subject: Re: [Rtai] compiling error of using MUSL libm.a in RTAI 5.1= <br> <span class=3D""><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>>> 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>>] on behalf of Guo Yunfei [<a href=3D"mailto:guoyunfei= [email protected]">[email protected]</a><<wbr>mailto:<a href=3D"mailt= o:[email protected]">[email protected]</a><wbr>>]<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>><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>><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> </div></div></blockquote></div><br></div> --001a1148e1203363e60564dcb1e8-- --===============6203767602443210960== 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 --===============6203767602443210960==--