rosvall / cc2531_usb_wpan_adapter

WPAN Adapter firmware for CC2531
http://rosvall.github.io/
1 stars 1 forks source link

Build error #1

Closed ekawahyu closed 9 months ago

ekawahyu commented 9 months ago

Please see error message below:

$make
sdcc -mmcs51 --Werror --fomit-frame-pointer --fverbose-asm --code-loc 0x800 -DGIT_VERSION_STR="\"0.2-next-08e13ad-20230703-dirty\"" -DGIT_VERSION_MAJOR=0 -DGIT_VERSION_MINOR=2 -DUSB_PID=0x154f -DUSB_VID=0x1608 -DCODE_OFFSET=0x800 -MM bootloader.c >bootloader.d
sdcc -mmcs51 --Werror --fomit-frame-pointer --fverbose-asm --code-loc 0x800 -DGIT_VERSION_STR="\"0.2-next-08e13ad-20230703-dirty\"" -DGIT_VERSION_MAJOR=0 -DGIT_VERSION_MINOR=2 -DUSB_PID=0x154f -DUSB_VID=0x1608 -DCODE_OFFSET=0x800 -MM const_usb_desc.c >const_usb_desc.d
sdcc -mmcs51 --Werror --fomit-frame-pointer --fverbose-asm --code-loc 0x800 -DGIT_VERSION_STR="\"0.2-next-08e13ad-20230703-dirty\"" -DGIT_VERSION_MAJOR=0 -DGIT_VERSION_MINOR=2 -DUSB_PID=0x154f -DUSB_VID=0x1608 -DCODE_OFFSET=0x800 -MM dyn_usb_desc.c >dyn_usb_desc.d
sdcc -mmcs51 --Werror --fomit-frame-pointer --fverbose-asm --code-loc 0x800 -DGIT_VERSION_STR="\"0.2-next-08e13ad-20230703-dirty\"" -DGIT_VERSION_MAJOR=0 -DGIT_VERSION_MINOR=2 -DUSB_PID=0x154f -DUSB_VID=0x1608 -DCODE_OFFSET=0x800 -MM main.c >main.d
sdcc -mmcs51 --Werror --fomit-frame-pointer --fverbose-asm --code-loc 0x800 -DGIT_VERSION_STR="\"0.2-next-08e13ad-20230703-dirty\"" -DGIT_VERSION_MAJOR=0 -DGIT_VERSION_MINOR=2 -DUSB_PID=0x154f -DUSB_VID=0x1608 -DCODE_OFFSET=0x800 -MM radio.c >radio.d
sdcc -mmcs51 --Werror --fomit-frame-pointer --fverbose-asm --code-loc 0x800 -DGIT_VERSION_STR="\"0.2-next-08e13ad-20230703-dirty\"" -DGIT_VERSION_MAJOR=0 -DGIT_VERSION_MINOR=2 -DUSB_PID=0x154f -DUSB_VID=0x1608 -DCODE_OFFSET=0x800 -MM rx.c >rx.d
sdcc -mmcs51 --Werror --fomit-frame-pointer --fverbose-asm --code-loc 0x800 -DGIT_VERSION_STR="\"0.2-next-08e13ad-20230703-dirty\"" -DGIT_VERSION_MAJOR=0 -DGIT_VERSION_MINOR=2 -DUSB_PID=0x154f -DUSB_VID=0x1608 -DCODE_OFFSET=0x800 -MM sleep.c >sleep.d
sdcc -mmcs51 --Werror --fomit-frame-pointer --fverbose-asm --code-loc 0x800 -DGIT_VERSION_STR="\"0.2-next-08e13ad-20230703-dirty\"" -DGIT_VERSION_MAJOR=0 -DGIT_VERSION_MINOR=2 -DUSB_PID=0x154f -DUSB_VID=0x1608 -DCODE_OFFSET=0x800 -MM tx.c >tx.d
sdcc -mmcs51 --Werror --fomit-frame-pointer --fverbose-asm --code-loc 0x800 -DGIT_VERSION_STR="\"0.2-next-08e13ad-20230703-dirty\"" -DGIT_VERSION_MAJOR=0 -DGIT_VERSION_MINOR=2 -DUSB_PID=0x154f -DUSB_VID=0x1608 -DCODE_OFFSET=0x800 -MM usb.c >usb.d
sdcc -mmcs51 --Werror --fomit-frame-pointer --fverbose-asm --code-loc 0x800 -DGIT_VERSION_STR="\"0.2-next-08e13ad-20230703-dirty\"" -DGIT_VERSION_MAJOR=0 -DGIT_VERSION_MINOR=2 -DUSB_PID=0x154f -DUSB_VID=0x1608 -DCODE_OFFSET=0x800 -MM usb_control_ep.c >usb_control_ep.d
sdcc -c -DGIT_VERSION_STR="\"0.2-next-08e13ad-20230703-dirty\"" -DGIT_VERSION_MAJOR=0 -DGIT_VERSION_MINOR=2 -DUSB_PID=0x154f -DUSB_VID=0x1608 -DCODE_OFFSET=0x800 -mmcs51 --Werror --fomit-frame-pointer --fverbose-asm --code-loc 0x800 bootloader.c -o bootloader.rel
bootloader.c:9: error 283: function declarator with no prototype
bootloader.c:16: error 283: function declarator with no prototype
make: *** [Makefile:131: bootloader.rel] Error 1

SDCC version:

$ sdcc --version
SDCC : mcs51/z80/z180/r2k/r2ka/r3ka/sm83/tlcs90/ez80_z80/z80n/r800/ds390/pic16/pic14/TININative/ds400/hc08/s08/stm8/pdk13/pdk14/pdk15/mos6502/mos65c02 TD- 4.4.0 #14620 (Mac OS X ppc)
published under GNU General Public License (GPL)
ekawahyu commented 9 months ago

Closing this, as it has been addressed in #2 , thanks!