On 26 June 2010 23:34, Jeff Epler <jep...@unpythonic.net> wrote: > an operation and then store the result will have the wrong input > operands--it will instead get left-over input operands from the bad > call.
That fits, X + 1 was giving X + 1/sqrt(2) > I am a bit surprised that you didn't get warnings like > bug.c:1: warning: implicit declaration of function ‘tan’ > but even if you did, you may have confused them with the (innocuous, or > else outright fatal at 'loadrt' time) > WARNING: "rtf_get" [/usr/src/rtemc2.4/src/rtapi.ko] undefined! After a full make, if I change the atan2 to an atan then recompile I get the following (this is so long I am going to start a new message with the patched version) andyp...@cnc:~/emc2.5-dev/src$ make make: Entering directory `/home/andypugh/emc2.5-dev/src' ./modsilent make -C /usr/src/linux SUBDIRS=`pwd` CC=gcc V=0 -o /usr/src/linux/Module.symvers modules make[1]: Entering directory `/usr/src/linux' CC [M] /home/andypugh/emc2.5-dev/src/emc/kinematics/taperkins.o make[1]: Leaving directory `/usr/src/linux' /home/andypugh/emc2.5-dev/src/emc/kinematics/taperkins.c: In function ‘kinematicsInverse’: /home/andypugh/emc2.5-dev/src/emc/kinematics/taperkins.c:74: error: implicit declaration of function ‘atan’ make[2]: *** [/home/andypugh/emc2.5-dev/src/emc/kinematics/taperkins.o] Error 1 make[1]: *** [_module_/home/andypugh/emc2.5-dev/src] Error 2 make: *** [modules] Error 2 make: Leaving directory `/home/andypugh/emc2.5-dev/src' andyp...@cnc:~/emc2.5-dev/src$ If I now put the atan2 back and put the tan in, I get everything recompiled (a new reference to math.h?) But I see no errors at all. andyp...@cnc:~/emc2.5-dev/src$ make make: Entering directory `/home/andypugh/emc2.5-dev/src' ./modsilent make -C /usr/src/linux SUBDIRS=`pwd` CC=gcc V=0 -o /usr/src/linux/Module.symvers modules make[1]: Entering directory `/usr/src/linux' CC [M] /home/andypugh/emc2.5-dev/src/emc/kinematics/taperkins.o LD [M] /home/andypugh/emc2.5-dev/src/abs.o LD [M] /home/andypugh/emc2.5-dev/src/and2.o LD [M] /home/andypugh/emc2.5-dev/src/biquad.o LD [M] /home/andypugh/emc2.5-dev/src/bldc_hall3.o LD [M] /home/andypugh/emc2.5-dev/src/bldc_hall6.o LD [M] /home/andypugh/emc2.5-dev/src/blend.o LD [M] /home/andypugh/emc2.5-dev/src/charge_pump.o LD [M] /home/andypugh/emc2.5-dev/src/clarke2.o LD [M] /home/andypugh/emc2.5-dev/src/clarke3.o LD [M] /home/andypugh/emc2.5-dev/src/clarkeinv.o LD [M] /home/andypugh/emc2.5-dev/src/comp.o LD [M] /home/andypugh/emc2.5-dev/src/constant.o LD [M] /home/andypugh/emc2.5-dev/src/conv_bit_s32.o LD [M] /home/andypugh/emc2.5-dev/src/conv_bit_u32.o LD [M] /home/andypugh/emc2.5-dev/src/conv_float_s32.o LD [M] /home/andypugh/emc2.5-dev/src/conv_float_u32.o LD [M] /home/andypugh/emc2.5-dev/src/conv_s32_bit.o LD [M] /home/andypugh/emc2.5-dev/src/conv_s32_float.o LD [M] /home/andypugh/emc2.5-dev/src/conv_s32_u32.o LD [M] /home/andypugh/emc2.5-dev/src/conv_u32_bit.o LD [M] /home/andypugh/emc2.5-dev/src/conv_u32_float.o LD [M] /home/andypugh/emc2.5-dev/src/conv_u32_s32.o LD [M] /home/andypugh/emc2.5-dev/src/ddt.o LD [M] /home/andypugh/emc2.5-dev/src/deadzone.o LD [M] /home/andypugh/emc2.5-dev/src/edge.o LD [M] /home/andypugh/emc2.5-dev/src/estop_latch.o LD [M] /home/andypugh/emc2.5-dev/src/feedcomp.o LD [M] /home/andypugh/emc2.5-dev/src/flipflop.o LD [M] /home/andypugh/emc2.5-dev/src/gearchange.o LD [M] /home/andypugh/emc2.5-dev/src/hypot.o LD [M] /home/andypugh/emc2.5-dev/src/idb.o LD [M] /home/andypugh/emc2.5-dev/src/ilowpass.o LD [M] /home/andypugh/emc2.5-dev/src/integ.o LD [M] /home/andypugh/emc2.5-dev/src/invert.o LD [M] /home/andypugh/emc2.5-dev/src/joyhandle.o LD [M] /home/andypugh/emc2.5-dev/src/knob2float.o LD [M] /home/andypugh/emc2.5-dev/src/limit1.o LD [M] /home/andypugh/emc2.5-dev/src/limit2.o LD [M] /home/andypugh/emc2.5-dev/src/limit3.o LD [M] /home/andypugh/emc2.5-dev/src/logic.o LD [M] /home/andypugh/emc2.5-dev/src/lowpass.o LD [M] /home/andypugh/emc2.5-dev/src/lut5.o LD [M] /home/andypugh/emc2.5-dev/src/maj3.o LD [M] /home/andypugh/emc2.5-dev/src/match8.o LD [M] /home/andypugh/emc2.5-dev/src/minmax.o LD [M] /home/andypugh/emc2.5-dev/src/mult2.o LD [M] /home/andypugh/emc2.5-dev/src/mux16.o LD [M] /home/andypugh/emc2.5-dev/src/mux2.o LD [M] /home/andypugh/emc2.5-dev/src/mux4.o LD [M] /home/andypugh/emc2.5-dev/src/mux8.o LD [M] /home/andypugh/emc2.5-dev/src/near.o LD [M] /home/andypugh/emc2.5-dev/src/not.o LD [M] /home/andypugh/emc2.5-dev/src/offset.o LD [M] /home/andypugh/emc2.5-dev/src/oneshot.o LD [M] /home/andypugh/emc2.5-dev/src/or2.o LD [M] /home/andypugh/emc2.5-dev/src/sample_hold.o LD [M] /home/andypugh/emc2.5-dev/src/scale.o LD [M] /home/andypugh/emc2.5-dev/src/select8.o LD [M] /home/andypugh/emc2.5-dev/src/sphereprobe.o LD [M] /home/andypugh/emc2.5-dev/src/steptest.o LD [M] /home/andypugh/emc2.5-dev/src/sum2.o LD [M] /home/andypugh/emc2.5-dev/src/thc.o LD [M] /home/andypugh/emc2.5-dev/src/threadtest.o LD [M] /home/andypugh/emc2.5-dev/src/timedelay.o LD [M] /home/andypugh/emc2.5-dev/src/timedelta.o LD [M] /home/andypugh/emc2.5-dev/src/toggle2nist.o LD [M] /home/andypugh/emc2.5-dev/src/toggle.o LD [M] /home/andypugh/emc2.5-dev/src/tristate_bit.o LD [M] /home/andypugh/emc2.5-dev/src/tristate_float.o LD [M] /home/andypugh/emc2.5-dev/src/updown.o LD [M] /home/andypugh/emc2.5-dev/src/wcomp.o LD [M] /home/andypugh/emc2.5-dev/src/xor2.o LD [M] /home/andypugh/emc2.5-dev/src/pluto_servo.o LD [M] /home/andypugh/emc2.5-dev/src/pluto_step.o LD [M] /home/andypugh/emc2.5-dev/src/serport.o LD [M] /home/andypugh/emc2.5-dev/src/rtapi.o LD [M] /home/andypugh/emc2.5-dev/src/boss_plc.o LD [M] /home/andypugh/emc2.5-dev/src/debounce.o LD [M] /home/andypugh/emc2.5-dev/src/encoder.o LD [M] /home/andypugh/emc2.5-dev/src/counter.o LD [M] /home/andypugh/emc2.5-dev/src/encoder_ratio.o LD [M] /home/andypugh/emc2.5-dev/src/stepgen.o LD [M] /home/andypugh/emc2.5-dev/src/freqgen.o LD [M] /home/andypugh/emc2.5-dev/src/pwmgen.o LD [M] /home/andypugh/emc2.5-dev/src/siggen.o LD [M] /home/andypugh/emc2.5-dev/src/pid.o LD [M] /home/andypugh/emc2.5-dev/src/at_pid.o LD [M] /home/andypugh/emc2.5-dev/src/threads.o LD [M] /home/andypugh/emc2.5-dev/src/supply.o LD [M] /home/andypugh/emc2.5-dev/src/sim_encoder.o LD [M] /home/andypugh/emc2.5-dev/src/weighted_sum.o LD [M] /home/andypugh/emc2.5-dev/src/modmath.o LD [M] /home/andypugh/emc2.5-dev/src/streamer.o LD [M] /home/andypugh/emc2.5-dev/src/sampler.o LD [M] /home/andypugh/emc2.5-dev/src/hal_parport.o LD [M] /home/andypugh/emc2.5-dev/src/pci_8255.o LD [M] /home/andypugh/emc2.5-dev/src/hal_tiro.o LD [M] /home/andypugh/emc2.5-dev/src/hal_stg.o LD [M] /home/andypugh/emc2.5-dev/src/hal_vti.o LD [M] /home/andypugh/emc2.5-dev/src/hal_evoreg.o LD [M] /home/andypugh/emc2.5-dev/src/hal_motenc.o LD [M] /home/andypugh/emc2.5-dev/src/hal_ax5214h.o LD [M] /home/andypugh/emc2.5-dev/src/hal_ppmc.o LD [M] /home/andypugh/emc2.5-dev/src/hal_speaker.o LD [M] /home/andypugh/emc2.5-dev/src/hal_skeleton.o LD [M] /home/andypugh/emc2.5-dev/src/opto_ac5.o LD [M] /home/andypugh/emc2.5-dev/src/hostmot2.o LD [M] /home/andypugh/emc2.5-dev/src/hm2_7i43.o LD [M] /home/andypugh/emc2.5-dev/src/hm2_pci.o LD [M] /home/andypugh/emc2.5-dev/src/hm2_test.o LD [M] /home/andypugh/emc2.5-dev/src/probe_parport.o LD [M] /home/andypugh/emc2.5-dev/src/classicladder_rt.o LD [M] /home/andypugh/emc2.5-dev/src/scope_rt.o LD [M] /home/andypugh/emc2.5-dev/src/hal_lib.o LD [M] /home/andypugh/emc2.5-dev/src/trivkins.o LD [M] /home/andypugh/emc2.5-dev/src/taperkins.o LD [M] /home/andypugh/emc2.5-dev/src/5axiskins.o LD [M] /home/andypugh/emc2.5-dev/src/maxkins.o LD [M] /home/andypugh/emc2.5-dev/src/gantrykins.o LD [M] /home/andypugh/emc2.5-dev/src/rotatekins.o LD [M] /home/andypugh/emc2.5-dev/src/tripodkins.o LD [M] /home/andypugh/emc2.5-dev/src/genhexkins.o LD [M] /home/andypugh/emc2.5-dev/src/genserkins.o LD [M] /home/andypugh/emc2.5-dev/src/pumakins.o LD [M] /home/andypugh/emc2.5-dev/src/scarakins.o LD [M] /home/andypugh/emc2.5-dev/src/motmod.o Building modules, stage 2. MODPOST 126 modules LD [M] /home/andypugh/emc2.5-dev/src/5axiskins.ko LD [M] /home/andypugh/emc2.5-dev/src/abs.ko LD [M] /home/andypugh/emc2.5-dev/src/and2.ko LD [M] /home/andypugh/emc2.5-dev/src/at_pid.ko LD [M] /home/andypugh/emc2.5-dev/src/biquad.ko LD [M] /home/andypugh/emc2.5-dev/src/bldc_hall3.ko LD [M] /home/andypugh/emc2.5-dev/src/bldc_hall6.ko LD [M] /home/andypugh/emc2.5-dev/src/blend.ko LD [M] /home/andypugh/emc2.5-dev/src/boss_plc.ko LD [M] /home/andypugh/emc2.5-dev/src/charge_pump.ko LD [M] /home/andypugh/emc2.5-dev/src/clarke2.ko LD [M] /home/andypugh/emc2.5-dev/src/clarke3.ko LD [M] /home/andypugh/emc2.5-dev/src/clarkeinv.ko LD [M] /home/andypugh/emc2.5-dev/src/classicladder_rt.ko LD [M] /home/andypugh/emc2.5-dev/src/comp.ko LD [M] /home/andypugh/emc2.5-dev/src/constant.ko LD [M] /home/andypugh/emc2.5-dev/src/conv_bit_s32.ko LD [M] /home/andypugh/emc2.5-dev/src/conv_bit_u32.ko LD [M] /home/andypugh/emc2.5-dev/src/conv_float_s32.ko LD [M] /home/andypugh/emc2.5-dev/src/conv_float_u32.ko LD [M] /home/andypugh/emc2.5-dev/src/conv_s32_bit.ko LD [M] /home/andypugh/emc2.5-dev/src/conv_s32_float.ko LD [M] /home/andypugh/emc2.5-dev/src/conv_s32_u32.ko LD [M] /home/andypugh/emc2.5-dev/src/conv_u32_bit.ko LD [M] /home/andypugh/emc2.5-dev/src/conv_u32_float.ko LD [M] /home/andypugh/emc2.5-dev/src/conv_u32_s32.ko LD [M] /home/andypugh/emc2.5-dev/src/counter.ko LD [M] /home/andypugh/emc2.5-dev/src/ddt.ko LD [M] /home/andypugh/emc2.5-dev/src/deadzone.ko LD [M] /home/andypugh/emc2.5-dev/src/debounce.ko LD [M] /home/andypugh/emc2.5-dev/src/edge.ko LD [M] /home/andypugh/emc2.5-dev/src/encoder.ko LD [M] /home/andypugh/emc2.5-dev/src/encoder_ratio.ko LD [M] /home/andypugh/emc2.5-dev/src/estop_latch.ko LD [M] /home/andypugh/emc2.5-dev/src/feedcomp.ko LD [M] /home/andypugh/emc2.5-dev/src/flipflop.ko LD [M] /home/andypugh/emc2.5-dev/src/freqgen.ko LD [M] /home/andypugh/emc2.5-dev/src/gantrykins.ko LD [M] /home/andypugh/emc2.5-dev/src/gearchange.ko LD [M] /home/andypugh/emc2.5-dev/src/genhexkins.ko LD [M] /home/andypugh/emc2.5-dev/src/genserkins.ko LD [M] /home/andypugh/emc2.5-dev/src/hal_ax5214h.ko LD [M] /home/andypugh/emc2.5-dev/src/hal_evoreg.ko LD [M] /home/andypugh/emc2.5-dev/src/hal_lib.ko LD [M] /home/andypugh/emc2.5-dev/src/hal_motenc.ko LD [M] /home/andypugh/emc2.5-dev/src/hal_parport.ko LD [M] /home/andypugh/emc2.5-dev/src/hal_ppmc.ko LD [M] /home/andypugh/emc2.5-dev/src/hal_skeleton.ko LD [M] /home/andypugh/emc2.5-dev/src/hal_speaker.ko LD [M] /home/andypugh/emc2.5-dev/src/hal_stg.ko LD [M] /home/andypugh/emc2.5-dev/src/hal_tiro.ko LD [M] /home/andypugh/emc2.5-dev/src/hal_vti.ko LD [M] /home/andypugh/emc2.5-dev/src/hm2_7i43.ko LD [M] /home/andypugh/emc2.5-dev/src/hm2_pci.ko LD [M] /home/andypugh/emc2.5-dev/src/hm2_test.ko LD [M] /home/andypugh/emc2.5-dev/src/hostmot2.ko LD [M] /home/andypugh/emc2.5-dev/src/hypot.ko LD [M] /home/andypugh/emc2.5-dev/src/idb.ko LD [M] /home/andypugh/emc2.5-dev/src/ilowpass.ko LD [M] /home/andypugh/emc2.5-dev/src/integ.ko LD [M] /home/andypugh/emc2.5-dev/src/invert.ko LD [M] /home/andypugh/emc2.5-dev/src/joyhandle.ko LD [M] /home/andypugh/emc2.5-dev/src/knob2float.ko LD [M] /home/andypugh/emc2.5-dev/src/limit1.ko LD [M] /home/andypugh/emc2.5-dev/src/limit2.ko LD [M] /home/andypugh/emc2.5-dev/src/limit3.ko LD [M] /home/andypugh/emc2.5-dev/src/logic.ko LD [M] /home/andypugh/emc2.5-dev/src/lowpass.ko LD [M] /home/andypugh/emc2.5-dev/src/lut5.ko LD [M] /home/andypugh/emc2.5-dev/src/maj3.ko LD [M] /home/andypugh/emc2.5-dev/src/match8.ko LD [M] /home/andypugh/emc2.5-dev/src/maxkins.ko LD [M] /home/andypugh/emc2.5-dev/src/minmax.ko LD [M] /home/andypugh/emc2.5-dev/src/modmath.ko LD [M] /home/andypugh/emc2.5-dev/src/motmod.ko LD [M] /home/andypugh/emc2.5-dev/src/mult2.ko LD [M] /home/andypugh/emc2.5-dev/src/mux16.ko LD [M] /home/andypugh/emc2.5-dev/src/mux2.ko LD [M] /home/andypugh/emc2.5-dev/src/mux4.ko LD [M] /home/andypugh/emc2.5-dev/src/mux8.ko LD [M] /home/andypugh/emc2.5-dev/src/near.ko LD [M] /home/andypugh/emc2.5-dev/src/not.ko LD [M] /home/andypugh/emc2.5-dev/src/offset.ko LD [M] /home/andypugh/emc2.5-dev/src/oneshot.ko LD [M] /home/andypugh/emc2.5-dev/src/opto_ac5.ko LD [M] /home/andypugh/emc2.5-dev/src/or2.ko LD [M] /home/andypugh/emc2.5-dev/src/pci_8255.ko LD [M] /home/andypugh/emc2.5-dev/src/pid.ko LD [M] /home/andypugh/emc2.5-dev/src/pluto_servo.ko LD [M] /home/andypugh/emc2.5-dev/src/pluto_step.ko LD [M] /home/andypugh/emc2.5-dev/src/probe_parport.ko LD [M] /home/andypugh/emc2.5-dev/src/pumakins.ko LD [M] /home/andypugh/emc2.5-dev/src/pwmgen.ko LD [M] /home/andypugh/emc2.5-dev/src/rotatekins.ko LD [M] /home/andypugh/emc2.5-dev/src/rtapi.ko LD [M] /home/andypugh/emc2.5-dev/src/sample_hold.ko LD [M] /home/andypugh/emc2.5-dev/src/sampler.ko LD [M] /home/andypugh/emc2.5-dev/src/scale.ko LD [M] /home/andypugh/emc2.5-dev/src/scarakins.ko LD [M] /home/andypugh/emc2.5-dev/src/scope_rt.ko LD [M] /home/andypugh/emc2.5-dev/src/select8.ko LD [M] /home/andypugh/emc2.5-dev/src/serport.ko LD [M] /home/andypugh/emc2.5-dev/src/siggen.ko LD [M] /home/andypugh/emc2.5-dev/src/sim_encoder.ko LD [M] /home/andypugh/emc2.5-dev/src/sphereprobe.ko LD [M] /home/andypugh/emc2.5-dev/src/stepgen.ko LD [M] /home/andypugh/emc2.5-dev/src/steptest.ko LD [M] /home/andypugh/emc2.5-dev/src/streamer.ko LD [M] /home/andypugh/emc2.5-dev/src/sum2.ko LD [M] /home/andypugh/emc2.5-dev/src/supply.ko LD [M] /home/andypugh/emc2.5-dev/src/taperkins.ko LD [M] /home/andypugh/emc2.5-dev/src/thc.ko LD [M] /home/andypugh/emc2.5-dev/src/threads.ko LD [M] /home/andypugh/emc2.5-dev/src/threadtest.ko LD [M] /home/andypugh/emc2.5-dev/src/timedelay.ko LD [M] /home/andypugh/emc2.5-dev/src/timedelta.ko LD [M] /home/andypugh/emc2.5-dev/src/toggle.ko LD [M] /home/andypugh/emc2.5-dev/src/toggle2nist.ko LD [M] /home/andypugh/emc2.5-dev/src/tripodkins.ko LD [M] /home/andypugh/emc2.5-dev/src/tristate_bit.ko LD [M] /home/andypugh/emc2.5-dev/src/tristate_float.ko LD [M] /home/andypugh/emc2.5-dev/src/trivkins.ko LD [M] /home/andypugh/emc2.5-dev/src/updown.ko LD [M] /home/andypugh/emc2.5-dev/src/wcomp.ko LD [M] /home/andypugh/emc2.5-dev/src/weighted_sum.ko LD [M] /home/andypugh/emc2.5-dev/src/xor2.ko make[1]: Leaving directory `/usr/src/linux' cp *.ko ../rtlib/ make: Leaving directory `/home/andypugh/emc2.5-dev/src' andyp...@cnc:~/emc2.5-dev/src$ -- atp ------------------------------------------------------------------------------ This SF.net email is sponsored by Sprint What will you do first with EVO, the first 4G phone? Visit sprint.com/first -- http://p.sf.net/sfu/sprint-com-first _______________________________________________ Emc-developers mailing list Emc-developers@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/emc-developers