Re: compiling error of using MUSL libm.a in RTAI 5.1

Guo Yunfei <[email protected]> Sat, 10 Feb 2018 17:03:38 +0800
Newsgroups gmane.linux.real-time.rtai
Message-ID <CAN_Un=X0BLE6nAJ+em1XE1qKqKVkmgn1f4NbQBy9Pu1Y-Sd2_w@mail.gmail.com>
--===============0698756002147143884==
Content-Type: multipart/alternative; boundary="001a11c03c9cbcc4030564d7eb85"

--001a11c03c9cbcc4030564d7eb85
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable

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]> wrote:

> Download: musl-1.1.16.tar.gz (sig) - December 31, 2016  and try with it
> Paolo
> ________________________________________
> From: Rtai [[email protected]] on behalf of Guo Yunfei [
> [email protected]]
> Sent: Saturday, February 10, 2018 8:29 AM
> To: [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>
> 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
>
>
>
>

--001a11c03c9cbcc4030564d7eb85
Content-Type: text/html; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable

<div dir=3D"ltr">Did I need change my Debian or kernel version?<div>Or need=
 I change some configuration of it?</div><div><br></div><div><br></div><div=
>Thanks</div><div>Guo Yunfei.</div></div><div class=3D"gmail_extra"><br><di=
v class=3D"gmail_quote">On Sat, Feb 10, 2018 at 4:34 PM, Paolo Mantegazza <=
span dir=3D"ltr">&lt;<a href=3D"mailto:[email protected]" target=
=3D"_blank">[email protected]</a>&gt;</span> wrote:<br><blockquote=
 class=3D"gmail_quote" style=3D"margin:0 0 0 .8ex;border-left:1px #ccc soli=
d;padding-left:1ex">Download: musl-1.1.16.tar.gz (sig) - December 31, 2016=
=C2=A0 and try with it<br>
Paolo<br>
______________________________<wbr>__________<br>
From: Rtai [<a href=3D"mailto:[email protected]">[email protected]<=
/a>] on behalf of Guo Yunfei [<a href=3D"mailto:[email protected]">gu=
[email protected]</a>]<br>
Sent: Saturday, February 10, 2018 8:29 AM<br>
To: <a href=3D"mailto:[email protected]">[email protected]</a><br>
Subject: [Rtai] compiling error of using MUSL libm.a in RTAI 5.1<br>
<span class=3D""><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>&lt;<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>&gt;<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 &#39;/media/guoissac/13GDATA/rtai-<wbr>5.1/base=
/math&#39;<br>
make[4]: Entering directory &#39;/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 &#39;/media/guoissac/13GDATA/=
rtai-<wbr>5.1/base/math/libm.o&#39; failed<br>
make[5]: *** [/media/guoissac/13GDATA/rtai-<wbr>5.1/base/math/libm.o] Error=
 1<br>
Makefile:1333: recipe for target &#39;_module_/media/guoissac/<wbr>13GDATA/=
rtai-5.1/base/math&#39; failed<br>
make[4]: *** [_module_/media/guoissac/<wbr>13GDATA/rtai-5.1/base/math] Erro=
r 2<br>
make[4]: Leaving directory &#39;/media/guoissac/13GDATA/<wbr>linux-3.16.7&#=
39;<br>
GNUmakefile:652: recipe for target &#39;rtai_math.ko&#39; failed<br>
make[3]: *** [rtai_math.ko] Error 2<br>
make[3]: Leaving directory &#39;/media/guoissac/13GDATA/rtai-<wbr>5.1/base/=
math&#39;<br>
GNUmakefile:423: recipe for target &#39;all-recursive&#39; failed<br>
make[2]: *** [all-recursive] Error 1<br>
make[2]: Leaving directory &#39;/media/guoissac/13GDATA/rtai-<wbr>5.1/base&=
#39;<br>
GNUmakefile:486: recipe for target &#39;all-recursive&#39; failed<br>
make[1]: *** [all-recursive] Error 1<br>
make[1]: Leaving directory &#39;/media/guoissac/13GDATA/rtai-<wbr>5.1&#39;<=
br>
GNUmakefile:417: recipe for target &#39;all&#39; 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>
</div></div></blockquote></div><br></div>

--001a11c03c9cbcc4030564d7eb85--

--===============0698756002147143884==
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
--===============0698756002147143884==--