Math Functions Error
Mike Bertosh
mbertosh at motioncontrol.org
Tue Sep 13 19:19:16 UTC 2005
Till and all,
Sorry I didn't send it first, it's really long. Hope that his helps.Thanks again.
[mbertosh at django ax]$ make
test -d o-optimize || mkdir o-optimize
m68k-rtems4.7-gcc --pipe -B/opt/rtems/rtems-4.7/bin/m68k-rtems4.7/mcf5235/lib/ -
specs bsp_specs -qrtems -g -Wall -O4 -fomit-frame-pointer -g -m528x -c -o o-
optimize/ramprog.o ramprog.c
ramprog.c: In function `erase_sectors':
ramprog.c:403: warning: suggest explicit braces to avoid ambiguous `else'
m68k-rtems4.7-gcc --pipe -B/opt/rtems/rtems-4.7/bin/m68k-rtems4.7/mcf5235/lib/ -
specs bsp_specs -qrtems -g -Wall -O4 -fomit-frame-pointer -g -m528x -c -o o-
optimize/dioconfg.o dioconfg.c
dioconfg.c: In function `XilinxConfig':
dioconfg.c:494: warning: implicit declaration of function `printk'
m68k-rtems4.7-gcc --pipe -B/opt/rtems/rtems-4.7/bin/m68k-rtems4.7/mcf5235/lib/ -
specs bsp_specs -qrtems -g -Wall -O4 -fomit-frame-pointer -g -m528x -c -o o-
optimize/channel3.o channel3.c
channel3.c: In function `ppwatimer':
channel3.c:278: warning: implicit declaration of function `cjtmwrite'
m68k-rtems4.7-gcc --pipe -B/opt/rtems/rtems-4.7/bin/m68k-rtems4.7/mcf5235/lib/ -
specs bsp_specs -qrtems -g -Wall -O4 -fomit-frame-pointer -g -m528x -c -o o-
optimize/spddrive.o spddrive.c
In file included from spddrive.c:10:
commands.h:46: warning: useless keyword or type name in empty declaration
spddrive.c:114: warning: useless keyword or type name in empty declaration
spddrive.c: In function `spdqtimer':
spddrive.c:482: warning: array subscript has type `char'
spddrive.c:483: warning: array subscript has type `char'
spddrive.c:485: warning: array subscript has type `char'
spddrive.c:486: warning: array subscript has type `char'
spddrive.c:495: warning: array subscript has type `char'
spddrive.c:497: warning: array subscript has type `char'
spddrive.c:499: warning: array subscript has type `char'
spddrive.c:500: warning: array subscript has type `char'
spddrive.c:438: warning: unused variable `buffer'
spddrive.c: In function `spdtask':
spddrive.c:641: warning: long int format, int arg (arg 5)
spddrive.c:641: warning: long int format, int arg (arg 6)
spddrive.c:641: warning: long int format, int arg (arg 7)
spddrive.c:644: warning: array subscript has type `char'
spddrive.c:644: warning: array subscript has type `char'
spddrive.c:519: warning: unused variable `intdiv'
spddrive.c:520: warning: unused variable `trans1'
spddrive.c:521: warning: unused variable `trans2'
spddrive.c:523: warning: unused variable `tmpdat'
spddrive.c:524: warning: unused variable `ltemp_ptr'
spddrive.c:526: warning: unused variable `temp1'
spddrive.c: At top level:
spddrive.c:79: warning: 'maxcountunit' defined but not used
m68k-rtems4.7-gcc --pipe -B/opt/rtems/rtems-4.7/bin/m68k-rtems4.7/mcf5235/lib/ -
specs bsp_specs -qrtems -g -Wall -O4 -fomit-frame-pointer -g -m528x -c -o o-
optimize/strings.o strings.c
strings.c:37: warning: return type defaults to `int'
strings.c: In function `midStrCpy':
strings.c:49: warning: control reaches end of non-void function
strings.c: In function `Log2':
strings.c:145: warning: 'iptr' might be used uninitialized in this function
m68k-rtems4.7-gcc --pipe -B/opt/rtems/rtems-4.7/bin/m68k-rtems4.7/mcf5235/lib/ -
specs bsp_specs -qrtems -g -Wall -O4 -fomit-frame-pointer -g -m528x -c -o o-
optimize/io.o io.c
In file included from servo.h:40,
from io.c:6:
commands.h:46: warning: useless keyword or type name in empty declaration
m68k-rtems4.7-gcc --pipe -B/opt/rtems/rtems-4.7/bin/m68k-rtems4.7/mcf5235/lib/ -
specs bsp_specs -qrtems -g -Wall -O4 -fomit-frame-pointer -g -m528x -c -o o-
optimize/interupt.o interupt.c
interupt.c: In function `evtimer':
interupt.c:46: warning: unused variable `ltemp_ptr'
interupt.c: In function `heatsinkttimer':
interupt.c:577: warning: unused variable `first'
interupt.c:584: warning: unused variable `Repeat'
interupt.c:586: warning: unused variable `TmpData'
interupt.c: At top level:
interupt.c:17: warning: 'buffer' defined but not used
m68k-rtems4.7-gcc --pipe -B/opt/rtems/rtems-4.7/bin/m68k-rtems4.7/mcf5235/lib/ -
specs bsp_specs -qrtems -g -Wall -O4 -fomit-frame-pointer -g -m528x -c -o o-
optimize/delay.o delay.c
m68k-rtems4.7-gcc --pipe -B/opt/rtems/rtems-4.7/bin/m68k-rtems4.7/mcf5235/lib/ -
specs bsp_specs -qrtems -g -Wall -O4 -fomit-frame-pointer -g -m528x -c -o o-
optimize/eeprom.o eeprom.c
eeprom.c:17:17: warning: extra tokens at end of #include directive
eeprom.c:43: warning: type defaults to `int' in declaration of `midStrCpy'
eeprom.c:43: warning: data definition has no type or storage class
eeprom.c: In function `initEEPROM':
eeprom.c:479: warning: char format, different type arg (arg 3)
eeprom.c:395: warning: unused variable `sum'
eeprom.c: In function `initDSP':
eeprom.c:1094: warning: implicit declaration of function `cjtmwrite'
eeprom.c:993: warning: unused variable `TmpData'
eeprom.c:993: warning: unused variable `TmpData2'
eeprom.c:994: warning: unused variable `ltemp_ptr'
eeprom.c: In function `E2read':
eeprom.c:1232: warning: unused variable `sum'
eeprom.c: In function `E2write':
eeprom.c:1256: warning: unused variable `writestatus'
eeprom.c: In function `valid_EEPROM':
eeprom.c:1523: warning: assignment from incompatible pointer type
eeprom.c:1283: warning: unused variable `TmpData2'
eeprom.c:1284: warning: unused variable `ltemp2_ptr'
eeprom.c:1286: warning: unused variable `c'
eeprom.c: In function `check_data':
eeprom.c:1609: warning: assignment from incompatible pointer type
eeprom.c:1600: warning: unused variable `buffer'
m68k-rtems4.7-gcc --pipe -B/opt/rtems/rtems-4.7/bin/m68k-rtems4.7/mcf5235/lib/ -
specs bsp_specs -qrtems -g -Wall -O4 -fomit-frame-pointer -g -m528x -c -o o-
optimize/encoder.o encoder.c
encoder.c: In function `UpdateEncoderAngle':
encoder.c:90: warning: unused variable `angle_hi'
encoder.c: In function `InitEncoder':
encoder.c:201: warning: assignment from incompatible pointer type
encoder.c:151: warning: unused variable `CW_lo'
encoder.c:152: warning: unused variable `CW_hi'
encoder.c: In function `Program_Sine':
encoder.c:307: warning: implicit declaration of function `cjtmwrite'
encoder.c: In function `SetOffsets':
encoder.c:1289: warning: unused variable `offsetC'
encoder.c:1290: warning: unused variable `offsetPWM'
encoder.c: In function `SetZeroPos':
encoder.c:1732: warning: unused variable `TmpData'
encoder.c: In function `ClearZeroPos':
encoder.c:1801: warning: unused variable `TmpData'
encoder.c: In function `FVMaxSpeedCalc':
encoder.c:1867: warning: unused variable `ltemp'
encoder.c:1870: warning: unused variable `buffer'
encoder.c: In function `WriteCustomWave':
encoder.c:2112: warning: implicit declaration of function `read_wave'
encoder.c:2111: warning: suggest explicit braces to avoid ambiguous `else'
encoder.c: In function `wave_c_getkey':
encoder.c:2512: warning: unused variable `status'
encoder.c: In function `SetOffsets':
encoder.c:1295: warning: 'difference' might be used uninitialized in this function
encoder.c: In function `standard_cap':
encoder.c:2012: warning: 'base' might be used uninitialized in this function
encoder.c: In function `Validfmax':
encoder.c:1934: warning: 'fmax' might be used uninitialized in this function
encoder.c:1934: warning: 'tconv' might be used uninitialized in this function
encoder.c: In function `UpdateSineArray':
encoder.c:2248: warning: 'sign' might be used uninitialized in this function
encoder.c:2249: warning: 'pos' might be used uninitialized in this function
encoder.c:2249: warning: 'repeatpoint' might be used uninitialized in this function
encoder.c: In function `WriteCustomWave':
encoder.c:2108: warning: 'wwave_start' might be used uninitialized in this function
encoder.c:2109: warning: 'vwave_start' might be used uninitialized in this function
m68k-rtems4.7-gcc --pipe -B/opt/rtems/rtems-4.7/bin/m68k-rtems4.7/mcf5235/lib/ -
specs bsp_specs -qrtems -g -Wall -O4 -fomit-frame-pointer -g -m528x -c -o o-
optimize/commands.o commands.c
In file included from servo.h:40,
from commands.c:9:
commands.h:46: warning: useless keyword or type name in empty declaration
commands.c: In function `key':
commands.c:50: warning: unused variable `buff'
commands.c:51: warning: unused variable `k'
commands.c: In function `inittab':
commands.c:72: warning: unused variable `k'
commands.c:73: warning: unused variable `buf'
commands.c: In function `cmd':
commands.c:95: warning: unused variable `k'
commands.c:95: warning: unused variable `i'
commands.c:96: warning: unused variable `next'
commands.c:97: warning: unused variable `buff'
commands.c: In function `cmdprocesstsk':
commands.c:463: warning: unused variable `i'
commands.c:464: warning: unused variable `buf'
commands.c:466: warning: unused variable `ltemp'
commands.c: In function `cmd':
commands.c:95: warning: 'j' might be used uninitialized in this function
m68k-rtems4.7-gcc --pipe -B/opt/rtems/rtems-4.7/bin/m68k-rtems4.7/mcf5235/lib/ -
specs bsp_specs -qrtems -g -Wall -O4 -fomit-frame-pointer -g -m528x -c -o o-
optimize/queues.o queues.c
m68k-rtems4.7-gcc --pipe -B/opt/rtems/rtems-4.7/bin/m68k-rtems4.7/mcf5235/lib/ -
specs bsp_specs -qrtems -g -Wall -O4 -fomit-frame-pointer -g -m528x -c -o o-
optimize/normal.o normal.c
normal.c: In function `angleproc':
normal.c:203: warning: long int format, int arg (arg 4)
normal.c: In function `anglebetweenproc':
normal.c:241: warning: long int format, int arg (arg 4)
normal.c: In function `anglespeedproc':
normal.c:259: warning: int format, long int arg (arg 3)
normal.c:259: warning: int format, long int arg (arg 4)
normal.c:259: warning: int format, long int arg (arg 5)
normal.c: In function `aphaseampproc':
normal.c:357: warning: long int format, int arg (arg 4)
normal.c: In function `bphaseampproc':
normal.c:400: warning: long int format, int arg (arg 4)
normal.c: In function `commutproc':
normal.c:534: warning: long int format, int arg (arg 4)
normal.c:456: warning: unused variable `dtemp'
normal.c: In function `configproc':
normal.c:546: warning: passing arg 2 of `snprintf' makes integer from pointer without
a cast
normal.c:546: warning: passing arg 3 of `snprintf' makes pointer from integer without
a cast
normal.c: In function `configrevproc':
normal.c:570: warning: passing arg 2 of `snprintf' makes integer from pointer without
a cast
normal.c:570: warning: passing arg 3 of `snprintf' makes pointer from integer without
a cast
normal.c: In function `countsperwaveproc':
normal.c:668: warning: long int format, int arg (arg 4)
normal.c: In function `currentqproc':
normal.c:704: warning: long int format, int arg (arg 4)
normal.c: In function `currentlimitypeproc':
normal.c:722: warning: long int format, int arg (arg 4)
normal.c: In function `dcountproc':
normal.c:748: warning: long int format, int arg (arg 4)
normal.c: In function `deadtimeproc':
normal.c:911: warning: long int format, int arg (arg 4)
normal.c: In function `disfltproc':
normal.c:1023: warning: long int format, int arg (arg 4)
normal.c:984: warning: unused variable `distemp'
normal.c: In function `enabletypeproc':
normal.c:1148: warning: long int format, int arg (arg 4)
normal.c: In function `encoderproc':
normal.c:1170: warning: assignment from incompatible pointer type
normal.c:1221: warning: assignment from incompatible pointer type
normal.c: In function `encoderangleproc':
normal.c:1267: warning: long int format, int arg (arg 4)
normal.c: In function `eninterpolateproc':
normal.c:1293: warning: long int format, int arg (arg 4)
normal.c: In function `finalangleproc':
normal.c:1351: warning: long int format, int arg (arg 4)
normal.c:1358: warning: int format, long int arg (arg 3)
normal.c:1358: warning: int format, long int arg (arg 4)
normal.c:1358: warning: int format, long int arg (arg 5)
normal.c:1392: warning: long int format, int arg (arg 4)
normal.c:1392: warning: long int format, int arg (arg 5)
normal.c:1392: warning: long int format, int arg (arg 6)
normal.c: In function `fltqaproc':
normal.c:1652: warning: precision used with `%c' printf format
normal.c:1652: warning: precision used with `%c' printf format
normal.c:1662: warning: precision used with `%c' printf format
normal.c:1662: warning: precision used with `%c' printf format
normal.c:1665: warning: precision used with `%c' printf format
normal.c:1665: warning: precision used with `%c' printf format
normal.c: In function `fltqxproc':
normal.c:1676: warning: long unsigned int format, int arg (arg 4)
normal.c:1686: warning: long unsigned int format, int arg (arg 4)
normal.c:1689: warning: long unsigned int format, int arg (arg 4)
normal.c: In function `foldbackmodeproc':
normal.c:1716: warning: long int format, int arg (arg 4)
normal.c: In function `gatedisableproc':
normal.c:1750: warning: long int format, int arg (arg 4)
normal.c: In function `heatsinktproc':
normal.c:1809: warning: long int format, int arg (arg 4)
normal.c:1806: warning: unused variable `tchar'
normal.c: In function `hysterosisproc':
normal.c:1898: warning: long int format, int arg (arg 4)
normal.c: In function `anglehysteresisproc':
normal.c:1920: warning: long int format, int arg (arg 4)
normal.c: In function `interpolationproc':
normal.c:2023: warning: long int format, int arg (arg 4)
normal.c: In function `lacompatableproc':
normal.c:2047: warning: long int format, int arg (arg 4)
normal.c: In function `lockcountproc':
normal.c:2062: warning: long int format, int arg (arg 4)
normal.c: In function `motiontypeproc':
normal.c:2197: warning: long int format, int arg (arg 4)
normal.c:2153: warning: unused variable `oldmotion'
normal.c: In function `polesproc':
normal.c:3188: warning: long int format, int arg (arg 4)
normal.c: In function `positionqproc':
normal.c:3369: warning: long int format, int arg (arg 4)
normal.c: In function `pwmphasingproc':
normal.c:3392: warning: long int format, int arg (arg 4)
normal.c: In function `pwmoffsetproc':
normal.c:3452: warning: long int format, int arg (arg 4)
normal.c: In function `regenohmproc':
normal.c:3521: warning: long int format, int arg (arg 4)
normal.c: In function `regenpowerproc':
normal.c:3576: warning: long int format, int arg (arg 4)
normal.c: In function `regenoverloadproc':
normal.c:3601: warning: long int format, int arg (arg 4)
normal.c: In function `resolverresproc':
normal.c:3697: warning: long int format, int arg (arg 4)
normal.c:3657: warning: unused variable `dtemp'
normal.c: In function `testmodeproc':
normal.c:3822: warning: long int format, int arg (arg 4)
normal.c:3822: warning: long int format, int arg (arg 5)
normal.c:3822: warning: long int format, int arg (arg 6)
normal.c:3830: warning: long int format, int arg (arg 4)
normal.c:3830: warning: long int format, int arg (arg 5)
normal.c:3830: warning: long int format, int arg (arg 6)
normal.c: In function `serialproc':
normal.c:3921: warning: passing arg 2 of `snprintf' makes integer from pointer without
a cast
normal.c:3921: warning: passing arg 3 of `snprintf' makes pointer from integer without
a cast
normal.c:3923: warning: array subscript has type `char'
normal.c:3924: warning: array subscript has type `char'
normal.c:3930: warning: array subscript has type `char'
normal.c:3931: warning: array subscript has type `char'
normal.c: In function `spdproc':
normal.c:4033: warning: assignment from incompatible pointer type
normal.c:4112: warning: assignment from incompatible pointer type
normal.c: In function `acpcountproc':
normal.c:4125: warning: long int format, int arg (arg 4)
normal.c:4127: warning: long int format, int arg (arg 4)
normal.c: In function `spdqproc':
normal.c:4136: warning: unused variable `TmpData2'
normal.c: In function `statproc':
normal.c:4235: warning: unused variable `TmpData2'
normal.c: In function `stataproc':
normal.c:4357: warning: left shift count >= width of type
normal.c:4346: warning: unused variable `tempindex'
normal.c: In function `statxproc':
normal.c:4394: warning: left shift count >= width of type
normal.c: In function `swapabproc':
normal.c:4437: warning: long int format, int arg (arg 4)
normal.c: In function `torqproc':
normal.c:4618: warning: long int format, int arg (arg 4)
normal.c: In function `unitsystemproc':
normal.c:4711: warning: long int format, int arg (arg 4)
normal.c: In function `listcommandsproc':
normal.c:4730: warning: long int format, int arg (arg 4)
normal.c: In function `mcsplistproc':
normal.c:4857: warning: long int format, int arg (arg 4)
normal.c:4859: warning: long int format, int arg (arg 4)
normal.c:4861: warning: long int format, int arg (arg 4)
normal.c:4863: warning: long int format, int arg (arg 4)
normal.c:4863: warning: long int format, int arg (arg 5)
normal.c:4866: warning: long int format, int arg (arg 4)
normal.c:4866: warning: long int format, int arg (arg 6)
normal.c:4848: warning: unused variable `TmpData2'
normal.c:4849: warning: unused variable `ltemp_ptr2'
normal.c: In function `plistproc':
normal.c:4903: warning: long int format, int arg (arg 4)
normal.c:4903: warning: long int format, int arg (arg 5)
normal.c:4903: warning: long int format, int arg (arg 6)
normal.c:4910: warning: long int format, int arg (arg 4)
normal.c:4912: warning: long int format, int arg (arg 4)
normal.c:4912: warning: long int format, int arg (arg 5)
normal.c:4914: warning: long int format, int arg (arg 4)
normal.c:4914: warning: long int format, int arg (arg 5)
normal.c:4918: warning: assignment from incompatible pointer type
normal.c:4919: warning: long int format, int arg (arg 5)
normal.c:4921: warning: long int format, int arg (arg 4)
normal.c:4921: warning: long int format, int arg (arg 5)
normal.c:4923: warning: long int format, int arg (arg 4)
normal.c:4929: warning: assignment from incompatible pointer type
normal.c:4930: warning: long int format, int arg (arg 4)
normal.c:4930: warning: long int format, int arg (arg 5)
normal.c:4930: warning: long int format, int arg (arg 6)
normal.c:4932: warning: long int format, int arg (arg 4)
normal.c:4932: warning: long int format, int arg (arg 5)
normal.c:4932: warning: long int format, int arg (arg 6)
normal.c:4934: warning: long int format, int arg (arg 5)
normal.c:4934: warning: long int format, int arg (arg 6)
normal.c:4936: warning: long int format, int arg (arg 5)
normal.c:4936: warning: long int format, int arg (arg 6)
normal.c:4941: warning: long int format, int arg (arg 4)
normal.c:4943: warning: long int format, int arg (arg 4)
normal.c:4943: warning: long int format, int arg (arg 5)
normal.c:4943: warning: long int format, int arg (arg 6)
normal.c:4945: warning: long int format, int arg (arg 4)
normal.c:4945: warning: long int format, int arg (arg 6)
normal.c:4947: warning: long int format, int arg (arg 4)
normal.c:4947: warning: long int format, int arg (arg 5)
normal.c:4947: warning: long int format, int arg (arg 6)
normal.c:4949: warning: long int format, int arg (arg 4)
normal.c:4949: warning: long int format, int arg (arg 5)
normal.c:4951: warning: long int format, int arg (arg 4)
normal.c:4951: warning: long int format, int arg (arg 5)
normal.c:4953: warning: long int format, int arg (arg 4)
normal.c:4953: warning: long int format, int arg (arg 5)
normal.c:4955: warning: long int format, int arg (arg 5)
normal.c:4957: warning: long int format, int arg (arg 4)
normal.c:4957: warning: long int format, int arg (arg 5)
normal.c:4959: warning: long int format, int arg (arg 4)
normal.c:4961: warning: long int format, int arg (arg 4)
normal.c:4961: warning: long int format, int arg (arg 5)
normal.c:4961: warning: long int format, int arg (arg 6)
normal.c:4894: warning: unused variable `TmpData2'
normal.c:4895: warning: unused variable `ltemp_ptr2'
m68k-rtems4.7-gcc --pipe -B/opt/rtems/rtems-4.7/bin/m68k-rtems4.7/mcf5235/lib/ -
specs bsp_specs -qrtems -g -Wall -O4 -fomit-frame-pointer -g -m528x -c -o o-
optimize/startamx.o startamx.c
In file included from startamx.c:40:
commands.h:46: warning: useless keyword or type name in empty declaration
startamx.c: In function `Init':
startamx.c:140: warning: implicit declaration of function `chDIOinit'
startamx.c:141: warning: implicit declaration of function `XilinxConfig'
startamx.c:147: warning: implicit declaration of function `chDIOexit'
startamx.c:154: warning: implicit declaration of function `Channel3_Initialize'
startamx.c:155: warning: implicit declaration of function `Spddrive_Initialize'
startamx.c:80: warning: unused variable `ltemp'
startamx.c:81: warning: unused variable `stdin_fd'
startamx.c:81: warning: unused variable `stdout_fd'
startamx.c:81: warning: unused variable `stderr_fd'
startamx.c:82: warning: unused variable `cbaud'
startamx.c:83: warning: unused variable `attrstat'
startamx.c:83: warning: unused variable `baudstat'
startamx.c:84: warning: unused variable `termios_p'
startamx.c:85: warning: unused variable `old_vector'
In file included from startamx.c:227:
/opt/rtems/rtems-4.7/bin/m68k-rtems4.7/mcf5235/lib/include/confdefs.h:9:2: warning:
#warning <confdefs.h> is deprecated, use <rtems/confdefs.h> instead
startamx.c: In function `initGlobals':
startamx.c:587: warning: unused variable `TmpData'
startamx.c:587: warning: unused variable `TmpData2'
startamx.c:588: warning: unused variable `ltemp_ptr'
startamx.c: In function `initHardware':
startamx.c:766: warning: unused variable `temp'
m68k-rtems4.7-gcc --pipe -B/opt/rtems/rtems-4.7/bin/m68k-rtems4.7/mcf5235/lib/ -
specs bsp_specs -qrtems -m528x -m528x -c -DASM -o o-optimize/eecode2.o
eecode2.S
m68k-rtems4.7-gcc --pipe -B/opt/rtems/rtems-4.7/bin/m68k-rtems4.7/mcf5235/lib/ -
specs bsp_specs -qrtems -m528x -m528x -c -DASM -o o-optimize/eepromio.o
eepromio.S
In file included from eepromio.S:27:
/opt/rtems/rtems-4.7/bin/m68k-rtems4.7/mcf5235/lib/include/asm.h:9:2: warning:
#warning <asm.h> is deprecated, use <rtems/asm.h> instead
eepromio.S:453:3: warning: no newline at end of file
m68k-rtems4.7-gcc --pipe -B/opt/rtems/rtems-4.7/bin/m68k-rtems4.7/mcf5235/lib/ -
specs bsp_specs -qrtems -m528x -m528x -c -DASM -o o-optimize/tempsens.o
tempsens.S
In file included from tempsens.S:28:
/opt/rtems/rtems-4.7/bin/m68k-rtems4.7/mcf5235/lib/include/asm.h:9:2: warning:
#warning <asm.h> is deprecated, use <rtems/asm.h> instead
m68k-rtems4.7-gcc --pipe -B/opt/rtems/rtems-4.7/bin/m68k-rtems4.7/mcf5235/lib/ -
specs bsp_specs -qrtems -g -Wall -O4 -fomit-frame-pointer -g -m528x -
m5200 -qnolinkcmds -o o-optimize/ax5235.nxe o-optimize/ramprog.o o-
optimize/dioconfg.o o-optimize/channel3.o o-optimize/spddrive.o o-optimize/strings.o
o-optimize/io.o o-optimize/interupt.o o-optimize/delay.o o-optimize/eeprom.o o-
optimize/encoder.o o-optimize/commands.o o-optimize/queues.o o-optimize/normal.o
o-optimize/startamx.o o-optimize/eecode2.o o-optimize/eepromio.o o-
optimize/tempsens.o /opt/rtems/rtems-4.7/bin/m68k-rtems4.7/mcf5235/lib/no-
dpmem.rel /opt/rtems/rtems-4.7/bin/m68k-rtems4.7/mcf5235/lib/no-msg.rel
/opt/rtems/rtems-4.7/bin/m68k-rtems4.7/mcf5235/lib/no-mp.rel /opt/rtems/rtems-
4.7/bin/m68k-rtems4.7/mcf5235/lib/no-part.rel /opt/rtems/rtems-4.7/bin/m68k-
rtems4.7/mcf5235/lib/no-signal.rel -Wl,-Tlinkcmds
o-optimize/spddrive.o(.text+0x496): In function `spdtask':
/home/mbertosh/Desktop/ax/spddrive.c:584: undefined reference to `pow'
o-optimize/spddrive.o(.text+0x754):/home/mbertosh/Desktop/ax/spddrive.c:584:
undefined reference to `pow'
o-optimize/eeprom.o(.text+0x16d2): In function `initEEPROM':
/home/mbertosh/Desktop/ax/eeprom.c:874: undefined reference to `pow'
o-optimize/encoder.o(.text+0x28d4): In function `UpdateSineArray':
/home/mbertosh/Desktop/ax/encoder.c:2258: undefined reference to `sin'
o-optimize/encoder.o(.text+0xb62): In function `standard_cap':
/home/mbertosh/Desktop/ax/encoder.c:2016: undefined reference to `pow'
o-optimize/encoder.o(.text+0xb8a):/home/mbertosh/Desktop/ax/encoder.c:2017:
undefined reference to `pow'
o-optimize/encoder.o(.text+0xd2e):/home/mbertosh/Desktop/ax/encoder.c:2018:
undefined reference to `pow'
o-optimize/encoder.o(.text+0xd70):/home/mbertosh/Desktop/ax/encoder.c:2018:
undefined reference to `pow'
o-optimize/encoder.o(.text+0x1174):/home/mbertosh/Desktop/ax/encoder.c:2063:
undefined reference to `pow'
o-optimize/encoder.o(.text+0x132e):/home/mbertosh/Desktop/ax/encoder.c:1887:
more undefined references to `pow' follow
o-optimize/encoder.o(.text+0x2972): In function `UpdateSineArray':
/home/mbertosh/Desktop/ax/encoder.c:2265: undefined reference to `cos'
o-optimize/encoder.o(.text+0x2a00):/home/mbertosh/Desktop/ax/encoder.c:2265:
undefined reference to `cos'
o-optimize/encoder.o(.text+0x51b2): In function `Program_Sine':
/home/mbertosh/Desktop/ax/encoder.c:355: undefined reference to `sin'
o-optimize/encoder.o(.text+0x5a9a):/home/mbertosh/Desktop/ax/encoder.c:430:
undefined reference to `sin'
o-optimize/encoder.o(.text+0x5e56):/home/mbertosh/Desktop/ax/encoder.c:781:
undefined reference to `sin'
o-optimize/encoder.o(.text+0x62ea):/home/mbertosh/Desktop/ax/encoder.c:826:
undefined reference to `sin'
o-optimize/encoder.o(.text+0x694a):/home/mbertosh/Desktop/ax/encoder.c:893:
undefined reference to `sin'
o-optimize/encoder.o(.text+0x6cbe):/home/mbertosh/Desktop/ax/encoder.c:1095:
more undefined references to `sin' follow
o-optimize/commands.o(.text+0x136): In function `cmd':
/home/mbertosh/Desktop/ax/commands.c:105: undefined reference to `strcopy'
o-optimize/normal.o(.text+0x44d2): In function `pwmoffsetproc':
/home/mbertosh/Desktop/ax/normal.c:3412: undefined reference to `pow'
o-optimize/normal.o(.text+0x49bc): In function `resolverqproc':
/home/mbertosh/Desktop/ax/normal.c:3642: undefined reference to `pow'
o-optimize/normal.o(.text+0x4d9a): In function `testmodeproc':
/home/mbertosh/Desktop/ax/normal.c:3828: undefined reference to `pow'
o-optimize/normal.o(.text+0x525e):/home/mbertosh/Desktop/ax/normal.c:3759:
undefined reference to `pow'
collect2: ld returned 1 exit status
make: *** [o-optimize/ax5235.exe] Error 1
Mike Bertosh
Motion Control Systems, Inc.
New River, Va
540.731.0540
More information about the users
mailing list