On 08/17/2013 09:23 PM, Alec Ari wrote:
> It doesn't compile for me without -ffast-math. I get the following error 
> without that LinuxCNC patch:
> 
> make[1]: Entering directory `/usr/src/linux-3.4.55'
> ln -sf libcanterp.so.0 ../lib/libcanterp.so
>   CC [M]  /home/ntu/linuxcnc/src/emc/kinematics/5axiskins.o
>   CC [M]  /home/ntu/linuxcnc/src/objects/hal/components/abs.o
>   CC [M]  /home/ntu/linuxcnc/src/objects/hal/components/abs_s32.o
>   CC [M]  /home/ntu/linuxcnc/src/objects/hal/components/and2.o
> make[1]: Leaving directory `/usr/src/linux-3.4.55'
> /home/ntu/linuxcnc/src/emc/kinematics/5axiskins.c: In function 's2r':
> /home/ntu/linuxcnc/src/emc/kinematics/5axiskins.c:32:18: error: SSE register 
> return with SSE disabled
> make[2]: *** [/home/ntu/linuxcnc/src/emc/kinematics/5axiskins.o] Error 1
> make[2]: *** Waiting for unfinished jobs....
> make[1]: *** [_module_/home/ntu/linuxcnc/src] Error 2
> make: *** [modules] Error 2
> make: Leaving directory `/home/ntu/linuxcnc/src'

You can run 'make V=1' to show the entire gcc command line.  Many of
these problems can be diagnosed by comparing compiler args between
working and broken versions.

Your error says SSE is disabled, probably because kbuild by default
disallows floating point operations in kernel space, normally unsafe.
You'll probably see a compiler arg like '-mno-sse2'.  This behavior may
be negated by adding '-msse' or maybe '-msse2' afterwards.

        John

> If you can write up a fix that works for my system, and for yours, then 
> great! I personally don't know how.


------------------------------------------------------------------------------
Get 100% visibility into Java/.NET code with AppDynamics Lite!
It's a free troubleshooting tool designed for production.
Get down to code-level detail for bottlenecks, with <2% overhead. 
Download for free and get started troubleshooting in minutes. 
http://pubads.g.doubleclick.net/gampad/clk?id=48897031&iu=/4140/ostg.clktrk
_______________________________________________
Emc-developers mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/emc-developers

Reply via email to