Re: Fwd: RV: Math module not compiling

Rathin Dholakia <[email protected]>
Newsgroups gmane.linux.real-time.rtai
Message-ID <CAJW6HtQ_yOQztn1fSkATgYk7NG7jaE-5gxmO2_Ex3-FKDMDRRg@mail.gmail.com>
Hi Asier,

Thank you very much for input..! I will try out your method before testing
out the 64-bit option suggested by Doug.

I will test both and get back to you in a day or so.

Regards,
Rathin

On Wed, Jan 13, 2016 at 2:10 PM, Asier <[email protected]> wrote:

>
> Hi Rathin,
>
> I have been facing similar issues with a 32 bit Linux lately...
>
> I am using RTAI 4.1 and Ubuntu 14.04 32 bit and the glibc-libm that comes
> with Ubuntu doesn't work. It seems that the i386 glibc-libm from Ubuntu is
> not suitable for this new math library support and need and alternative way
> like in the x86_64.
>
> I decided to use newlib and after struggling a little bit with the
> building process I ended up building newlib with the following configure
> options:
>
> ./configure  --disable-shared --disable-multilib --with-newlib
> --host=i386-pc-sysv
>
> In order to build RTAI you might need to get the "export_newlib.h" file
> from RTAI CVS and copy to your rtai/base/math directory:
>
> Regards,
>
> Asier.
>
>
>
> De: Rtai [mailto:[email protected]] En nombre de Doug Renton
> Enviado el: lunes, 11 de enero de 2016 20:48
> Para: Rathin Dholakia
> CC: [email protected]
> Asunto: Re: [Rtai] Math module not compiling
>
> Are you using 32 bit Linux?? If so that is a difference, I use 64bit. I
> suspect there are serious differences between the two. I would re-install
> with 64 bit linux. I use openSUSE, no troubles..
>
> On 64 bit you need newlib first.
> I just followed Jan's directions. I looked at my "notes" and it is cut and
> paste from Jan's email
>
>
> **********************************************************
> Jan @ cut out address...
> Wed Oct 8 15:17:08 CEST 2014
>
>
> We just had this discussion...
>
> Download the latest RTAI version from CVS or from github:
> git clone https://github.com/ShabbyX/RTAI.git
>
> Read the file
> base/math/README.KLIBM
>
> On a 64bit system you might want to install newlib:
>
> cd /usr/local/src
> mkdir newlib
> cd newlib
> cvs -z 9 -d :pserver:anoncvs at sourceware.org:/cvs/src login
> cvs -z 9 -d :pserver:[email protected]:/cvs/src login
> # password: anoncvs
> cvs -z 9 -d :pserver:anoncvs at sourceware.org:/cvs/src co newlib
> mkdir install
> cd src/newlib
> ./configure --prefix=/usr/local/src/newlib/install --disable-shared
> CFLAGS="-O2 -mcmodel=kernel"
> make
> make install
>
> In the rtai menu go to
> Base system -> Other features:
> Enable "Mathfuns support in kernel"
> Nextline should have a "(1)" for NEWLIB
> "The installation directory of your chosen libm.a" should be set to
> /usr/local/src/newlib/install/lib
>
> Then make RTAI again.
>
> This should work.
>
>
>
> On 01/11/2016 01:55 PM, Rathin Dholakia wrote:
> > Dear Doug,
> >
> > I tried doing your method of building Newlib locally but that itself is
> > not building. its giving following error
> >
> > /usr/local/src/newlib/src/newlib/libc/include/_ansi.h:130:19: error:
> > missing binary operator before token "("
> >
> > and
> >
> > " Makefile:383: recipe for target 'argz_add.lo' failed
> > make[3]: *** [argz_add.lo] Error 1" "
> >
> > and whole bunch of other stuff. in short something big is wrong..
> >
> > Will have try different things to compile. but as an alternative I tried
> > installing default NewLib of ubuntu, which also didnt work.
> >
> > By the way my installation configuration is as follows:
> >
> > Ubuntu 14.10 32-bit
> > Kernel: 3.16.0
> > RTAI: 4.1
> >
> > Hardware:
> > Processor: i3 quad-core
> > RAM: 4 GB
> > Motherboard: Gigabyte
> >
> > Just in case if you require..
> > Rathin
> >
> >
> > On Mon, Jan 11, 2016 at 11:38 PM, Rathin Dholakia
> > <[email protected] <mailto:[email protected]>> wrote:
> >
> >     Dear Doug,
> >
> >     Thank you VERY MUCH for your help.. I did came across your name but
> >     not the same thread.!
> >
> >     I tried both 4.1 and 5.0test1 as well as vulcano.. got the same
> >     error... but I will try your method and let you know..!
> >
> >     Thanks a lot for tip..
> >
> >     Regards,
> >     Rathin
> >
> >     On Mon, Jan 11, 2016 at 11:13 PM, Doug Renton <[email protected]
> >     <mailto:[email protected]>> wrote:
> >
> >         Hi Rathin,
> >
> >         I had a math issue earlier in the summer and there were some
> >         tricks. Have you read through these two threads?
> >
> >         https://mail.rtai.org/pipermail/rtai/2015-September/026912.html
> >
> >         https://mail.rtai.org/pipermail/rtai/2014-October/026540.html
> >
> >         I've yet to try 5.1 though. So I'm not sure things are still
> >         100% the same.
> >           Doug
> >
> >
> >
> >
> >
> >
> >         On 01/11/2016 10:06 AM, Rathin Dholakia wrote:
> >
> >             Dear All,
> >
> >             That problem of math module not getting compiled got solved.
> >             I spent few
> >             hours and finally figured that since Ubuntu 12.04 they have
> >             changed the
> >             library directory structure. so the "libm.a" location  has
> >             been changed
> >             to "arch specific directory" and hence the make was not able
> >             to find it...!!
> >
> >             But now I am faced with another challenge that when I try to
> >             insert
> >             rtai_math.ko it shows "unknown symbol error."
> >
> >             My dmesg shows:
> >
> >             [  276.359092] rtai_math: Unknown symbol __get_cpu_features
> >             (err 0)
> >             [  276.359104] rtai_math: Unknown symbol gammaf_r (err 0)
> >             [  276.359112] rtai_math: Unknown symbol errno (err 0)
> >             [  276.359120] rtai_math: Unknown symbol __fpclassifyd (err
> 0)
> >             [  276.359137] rtai_math: Unknown symbol strtod (err 0)
> >             [  276.359146] rtai_math: Unknown symbol infinity (err 0)
> >             [  276.359152] rtai_math: Unknown symbol gamma_r (err 0)
> >             [  276.359162] rtai_math: Unknown symbol strtof (err 0)
> >             [  276.359170] rtai_math: Unknown symbol infinityf (err 0)
> >             [  276.359177] rtai_math: Unknown symbol
> >             _GLOBAL_OFFSET_TABLE_ (err 0)
> >             [  276.359185] rtai_math: Unknown symbol _dl_hwcap (err 0)
> >             [  276.359186] rtai_math: no symbol version for strlen
> >             [  276.359187] rtai_math: Unknown symbol strlen (err -22)
> >             [  276.359195] rtai_math: Unknown symbol __signbitd (err 0)
> >
> >
> >             Can anyone suggest what might be going wrong?
> >
> >             I am updating this thread so that any newbie like me if
> >             facing the same
> >             issue , can find it.
> >
> >
> >             Thank you,
> >
> >             Sincerely,
> >             Rathin
> >
> >
> >             On Mon, Jan 11, 2016 at 12:16 PM, Rathin Dholakia
> >             <[email protected] <mailto:[email protected]>
> >             <mailto:[email protected]
> >             <mailto:[email protected]>>> wrote:
> >
> >                  Dear Members,
> >
> >                  First of all I am new to RTAI domain and have to admit
> >             I am blown by
> >                  the efforts of community. My sincerest gratitude for
> >             such an amazing
> >                  development..!
> >
> >                  Now to my query, I am trying to implement a RTAI system
> >             with
> >                  RTAI-4.1 on Kernel 3.16.0 using x86 patch. Basically I
> >             am trying to
> >                  port a old RTAI 3.6 to new rtai-4.1.
> >
> >                  Everything went fine, I ran test and latencies are also
> >             good. But I
> >                  am not able to build the Math module, as soon as I turn
> >             "math
> >                  option" ON in "other features" RTAI fails to compile.
> >
> >                  Can someone guide, How to work around it? I saw the
> >             archived post of
> >                  "Kernel math error" & missing exportlib.h but I
> >             couldn't figure out
> >                  what to do.
> >
> >
> >                  Sincerely,
> >                  Rathin
> >
> >
> >
> >
> >             --
> >             Rathin A. Dholakia
> >             "Dont GO through life, GROW through life"
> >
> >
> >             _______________________________________________
> >             Rtai mailing list
> >             [email protected] <mailto:[email protected]>
> >             https://mail.rtai.org/cgi-bin/mailman/listinfo/rtai
> >
> >         _______________________________________________
> >         Rtai mailing list
> >         [email protected] <mailto:[email protected]>
> >         https://mail.rtai.org/cgi-bin/mailman/listinfo/rtai
> >
> >
> >
> >
> >     --
> >     Rathin A. Dholakia
> >     "Dont GO through life, GROW through life"
> >
> >
> >
> >
> > --
> > Rathin A. Dholakia
> > "Dont GO through life, GROW through life"
> _______________________________________________
> Rtai mailing list
> [email protected]
> https://mail.rtai.org/cgi-bin/mailman/listinfo/rtai
>
>
> _______________________________________________
> Rtai mailing list
> [email protected]
> https://mail.rtai.org/cgi-bin/mailman/listinfo/rtai
>



-- 
Rathin A. Dholakia
"Dont GO through life, GROW through life"

_______________________________________________
Rtai mailing list
[email protected]
https://mail.rtai.org/cgi-bin/mailman/listinfo/rtai
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.