Re: Unknown symbol in rtai_math.ko in rtai-5.0

Paolo Mantegazza <[email protected]> Wed, 7 Feb 2018 13:52:07 +0100
Newsgroups gmane.linux.real-time.rtai
Message-ID <[email protected]>
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] <mailto:[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 list
>>     [email protected] <mailto:[email protected]>
>>     https://mail.rtai.org/cgi-bin/mailman/listinfo/rtai
>>     <https://mail.rtai.org/cgi-bin/mailman/listinfo/rtai>
>
>
>

_______________________________________________
Rtai mailing list
[email protected]
https://mail.rtai.org/cgi-bin/mailman/listinfo/rtai