ahtn / keyplus

An easy to use, wired and wireless modular keyboard firmware
MIT License
246 stars 40 forks source link

Compilation errors with nrf24lu1 #67

Open Merlin04 opened 6 years ago

Merlin04 commented 6 years ago
 > make BOARD=unirecv
In file included from ../src/key_handlers/key_handlers.h:12,
                 from ../src/key_handlers/key_normal.h:6,
                 from ../src/key_handlers/key_normal.c:4:
/usr/include/stdint.h:286:17: error: missing binary operator before token "("
In file included from ../src/key_handlers/key_handlers.h:12,
                 from ../src/key_handlers/key_mouse.h:6,
                 from ../src/key_handlers/key_mouse.c:4:
/usr/include/stdint.h:286:17: error: missing binary operator before token "("
In file included from ../src/key_handlers/key_mouse.c:6:
/usr/include/string.h:36:42: error: missing binary operator before token "("
/usr/include/string.h:164:21: error: missing binary operator before token "("
/usr/include/string.h:173:43: error: missing binary operator before token "("
/usr/include/string.h:491:19: error: missing binary operator before token "("
In file included from ../src/key_handlers/key_handlers.h:12,
                 from ../src/key_handlers/key_media.h:6,
                 from ../src/key_handlers/key_media.c:4:
/usr/include/stdint.h:286:17: error: missing binary operator before token "("
In file included from ../src/key_handlers/key_handlers.h:12,
                 from ../src/key_handlers/key_macro.h:6,
                 from ../src/key_handlers/key_macro.c:4:
/usr/include/stdint.h:286:17: error: missing binary operator before token "("
In file included from ../src/key_handlers/key_handlers.h:12,
                 from ../src/key_handlers/key_hold.h:6,
                 from ../src/key_handlers/key_hold.c:4:
/usr/include/stdint.h:286:17: error: missing binary operator before token "("
In file included from ../src/key_handlers/key_hold.c:6:
/usr/include/string.h:36:42: error: missing binary operator before token "("
/usr/include/string.h:164:21: error: missing binary operator before token "("
/usr/include/string.h:173:43: error: missing binary operator before token "("
/usr/include/string.h:491:19: error: missing binary operator before token "("
In file included from ../src/key_handlers/key_handlers.h:12,
                 from ../src/key_handlers/key_handlers.c:4:
/usr/include/stdint.h:286:17: error: missing binary operator before token "("
In file included from ../src/key_handlers/key_handlers.h:12,
                 from ../src/key_handlers/key_custom.h:6,
                 from ../src/key_handlers/key_custom.c:4:
/usr/include/stdint.h:286:17: error: missing binary operator before token "("
In file included from ../src/usb/util/requests.h:6,
                 from ../src/usb/device_descriptors.c:6:
/usr/include/stdint.h:286:17: error: missing binary operator before token "("
In file included from ../src/core/util.h:11,
                 from ../src/usb_reports/mouse_report.h:6,
                 from ../src/usb_reports/mouse_report.c:4:
/usr/include/stdint.h:286:17: error: missing binary operator before token "("
In file included from ../src/usb_reports/mouse_report.c:9:
/usr/include/string.h:36:42: error: missing binary operator before token "("
/usr/include/string.h:164:21: error: missing binary operator before token "("
/usr/include/string.h:173:43: error: missing binary operator before token "("
/usr/include/string.h:491:19: error: missing binary operator before token "("
In file included from ../src/core/util.h:11,
                 from ../src/usb/descriptors.h:6,
                 from ../src/usb_reports/vendor_report.h:6,
                 from ../src/usb_reports/vendor_report.c:4:
/usr/include/stdint.h:286:17: error: missing binary operator before token "("
In file included from ../src/core/debug.h:14,
                 from ../src/core/ring_buf.h:8,
                 from ../src/usb_reports/vendor_report.h:9,
                 from ../src/usb_reports/vendor_report.c:4:
/usr/include/stdlib.h:131:36: error: missing binary operator before token "("
/usr/include/stdlib.h:174:17: error: missing binary operator before token "("
/usr/include/stdlib.h:188:36: error: missing binary operator before token "("
In file included from ../src/usb_reports/vendor_report.c:126:
/usr/include/string.h:36:42: error: missing binary operator before token "("
/usr/include/string.h:164:21: error: missing binary operator before token "("
/usr/include/string.h:173:43: error: missing binary operator before token "("
/usr/include/string.h:491:19: error: missing binary operator before token "("
In file included from ../src/usb_reports/media_report.h:6,
                 from ../src/usb_reports/media_report.c:4:
/usr/include/stdint.h:286:17: error: missing binary operator before token "("
In file included from ../src/usb_reports/media_report.c:6:
/usr/include/string.h:36:42: error: missing binary operator before token "("
/usr/include/string.h:164:21: error: missing binary operator before token "("
/usr/include/string.h:173:43: error: missing binary operator before token "("
/usr/include/string.h:491:19: error: missing binary operator before token "("
In file included from ../src/core/util.h:11,
                 from ../src/usb_reports/keyboard_report.h:6,
                 from ../src/usb_reports/keyboard_report.c:4:
/usr/include/stdint.h:286:17: error: missing binary operator before token "("
In file included from ../src/usb_reports/keyboard_report.c:6:
/usr/include/string.h:36:42: error: missing binary operator before token "("
/usr/include/string.h:164:21: error: missing binary operator before token "("
/usr/include/string.h:173:43: error: missing binary operator before token "("
/usr/include/string.h:491:19: error: missing binary operator before token "("
In file included from ../src/core/keycode.h:6,
                 from ../src/core/keycode.c:4:
/usr/include/stdint.h:286:17: error: missing binary operator before token "("
In file included from ../src/core/keycode.c:6:
/usr/include/string.h:36:42: error: missing binary operator before token "("
/usr/include/string.h:164:21: error: missing binary operator before token "("
/usr/include/string.h:173:43: error: missing binary operator before token "("
/usr/include/string.h:491:19: error: missing binary operator before token "("
In file included from ../src/core/util.h:11,
                 from ../src/core/flash.h:8,
                 from ../src/core/macro.h:6,
                 from ../src/core/macro.c:4:
/usr/include/stdint.h:286:17: error: missing binary operator before token "("
In file included from ../src/core/macro.c:6:
/usr/include/string.h:36:42: error: missing binary operator before token "("
/usr/include/string.h:164:21: error: missing binary operator before token "("
/usr/include/string.h:173:43: error: missing binary operator before token "("
/usr/include/string.h:491:19: error: missing binary operator before token "("
In file included from ../src/core/usb_commands.h:26,
                 from ../src/core/usb_commands.c:4:
/usr/include/stdint.h:286:17: error: missing binary operator before token "("
In file included from ../src/core/usb_commands.c:6:
/usr/include/string.h:36:42: error: missing binary operator before token "("
/usr/include/string.h:164:21: error: missing binary operator before token "("
/usr/include/string.h:173:43: error: missing binary operator before token "("
/usr/include/string.h:491:19: error: missing binary operator before token "("
In file included from ../src/core/debug.h:14,
                 from ../src/core/ring_buf.h:8,
                 from ../src/usb_reports/vendor_report.h:9,
                 from ../src/core/usb_commands.c:23:
/usr/include/stdlib.h:131:36: error: missing binary operator before token "("
/usr/include/stdlib.h:174:17: error: missing binary operator before token "("
/usr/include/stdlib.h:188:36: error: missing binary operator before token "("
In file included from ../src/core/mods.h:6,
                 from ../src/core/mods.c:4:
/usr/include/stdint.h:286:17: error: missing binary operator before token "("
In file included from ../src/core/mods.c:6:
/usr/include/string.h:36:42: error: missing binary operator before token "("
/usr/include/string.h:164:21: error: missing binary operator before token "("
/usr/include/string.h:173:43: error: missing binary operator before token "("
/usr/include/string.h:491:19: error: missing binary operator before token "("
In file included from ../src/core/matrix_interpret.h:6,
                 from ../src/core/matrix_interpret.c:23:
/usr/include/stdint.h:286:17: error: missing binary operator before token "("
In file included from ../src/core/matrix_interpret.c:25:
/usr/include/string.h:36:42: error: missing binary operator before token "("
/usr/include/string.h:164:21: error: missing binary operator before token "("
/usr/include/string.h:173:43: error: missing binary operator before token "("
/usr/include/string.h:491:19: error: missing binary operator before token "("
In file included from ../src/core/util.h:11,
                 from ../src/core/unifying.h:6,
                 from ../src/core/unifying.c:4:
/usr/include/stdint.h:286:17: error: missing binary operator before token "("
In file included from ../src/core/unifying.c:6:
/usr/include/string.h:36:42: error: missing binary operator before token "("
/usr/include/string.h:164:21: error: missing binary operator before token "("
/usr/include/string.h:173:43: error: missing binary operator before token "("
/usr/include/string.h:491:19: error: missing binary operator before token "("
In file included from ../src/core/nonce.h:6,
                 from ../src/core/nonce.c:4:
/usr/include/stdint.h:286:17: error: missing binary operator before token "("
In file included from ../src/core/rf.h:6,
                 from ../src/core/rf.c:7:
/usr/include/stdint.h:286:17: error: missing binary operator before token "("
In file included from ../src/core/rf.c:9:
/usr/include/string.h:36:42: error: missing binary operator before token "("
/usr/include/string.h:164:21: error: missing binary operator before token "("
/usr/include/string.h:173:43: error: missing binary operator before token "("
/usr/include/string.h:491:19: error: missing binary operator before token "("
In file included from ../src/core/debug.h:14,
                 from ../src/core/rf.c:12:
/usr/include/stdlib.h:131:36: error: missing binary operator before token "("
/usr/include/stdlib.h:174:17: error: missing binary operator before token "("
/usr/include/stdlib.h:188:36: error: missing binary operator before token "("
In file included from ../src/core/nrf24.h:6,
                 from ../src/core/nrf24.c:4:
/usr/include/stdint.h:286:17: error: missing binary operator before token "("
In file included from ../src/core/util.h:11,
                 from ../src/core/util.c:4:
/usr/include/stdint.h:286:17: error: missing binary operator before token "("
In file included from ../src/core/settings.h:7,
                 from ../src/core/settings.c:4:
/usr/include/stdint.h:286:17: error: missing binary operator before token "("
In file included from ../src/core/settings.c:8:
/usr/include/string.h:36:42: error: missing binary operator before token "("
/usr/include/string.h:164:21: error: missing binary operator before token "("
/usr/include/string.h:173:43: error: missing binary operator before token "("
/usr/include/string.h:491:19: error: missing binary operator before token "("
In file included from ../src/core/ring_buf.h:6,
                 from ../src/core/ring_buf.c:1:
/usr/include/stdint.h:286:17: error: missing binary operator before token "("
In file included from ../src/core/debug.h:14,
                 from ../src/core/ring_buf.h:8,
                 from ../src/core/ring_buf.c:1:
/usr/include/stdlib.h:131:36: error: missing binary operator before token "("
/usr/include/stdlib.h:174:17: error: missing binary operator before token "("
/usr/include/stdlib.h:188:36: error: missing binary operator before token "("
In file included from ../src/core/packet.h:6,
                 from ../src/core/packet.c:4:
/usr/include/stdint.h:286:17: error: missing binary operator before token "("
In file included from ../src/core/util.h:11,
                 from ../src/core/flash.h:8,
                 from ../src/core/layout.h:7,
                 from ../src/core/layout.c:4:
/usr/include/stdint.h:286:17: error: missing binary operator before token "("
In file included from ../src/core/util.h:11,
                 from ../src/core/hardware.h:6,
                 from ../src/core/hardware.c:4:
/usr/include/stdint.h:286:17: error: missing binary operator before token "("
In file included from ../src/core/util.h:11,
                 from ../src/core/flash.h:8,
                 from ../src/core/flash.c:4:
/usr/include/stdint.h:286:17: error: missing binary operator before token "("
In file included from ../src/core/util.h:11,
                 from ../src/core/error.h:9,
                 from ../src/core/error.c:4:
/usr/include/stdint.h:286:17: error: missing binary operator before token "("
In file included from ../src/core/error.c:6:
/usr/include/string.h:36:42: error: missing binary operator before token "("
/usr/include/string.h:164:21: error: missing binary operator before token "("
/usr/include/string.h:173:43: error: missing binary operator before token "("
/usr/include/string.h:491:19: error: missing binary operator before token "("
In file included from ../src/core/util.h:11,
                 from ../src/core/flash.h:8,
                 from ../src/core/crc.c:4:
/usr/include/stdint.h:286:17: error: missing binary operator before token "("
In file included from ../src/core/util.h:11,
                 from ../src/usb/descriptors.h:6,
                 from descriptors.c:4:
/usr/include/stdint.h:286:17: error: missing binary operator before token "("
In file included from usb_reports.c:4:
/usr/include/string.h:36:42: error: missing binary operator before token "("
/usr/include/string.h:164:21: error: missing binary operator before token "("
/usr/include/string.h:173:43: error: missing binary operator before token "("
/usr/include/string.h:491:19: error: missing binary operator before token "("
In file included from nrf24lu1_usb_regs.h:6,
                 from usb_reports.c:7:
/usr/include/stdint.h:286:17: error: missing binary operator before token "("
In file included from usb.c:4:
/usr/include/stdint.h:286:17: error: missing binary operator before token "("
In file included from ../src/core/debug.h:14,
                 from ../src/core/ring_buf.h:8,
                 from ../src/usb_reports/vendor_report.h:9,
                 from usb.c:22:
/usr/include/stdlib.h:131:36: error: missing binary operator before token "("
/usr/include/stdlib.h:174:17: error: missing binary operator before token "("
/usr/include/stdlib.h:188:36: error: missing binary operator before token "("
In file included from ../src/core/util.h:11,
                 from ../src/core/timer.h:6,
                 from timer.c:4:
/usr/include/stdint.h:286:17: error: missing binary operator before token "("
In file included from nrf24.c:4:
/usr/include/stdint.h:286:17: error: missing binary operator before token "("
In file included from ../src/core/nonce.h:6,
                 from nonce.c:4:
/usr/include/stdint.h:286:17: error: missing binary operator before token "("
In file included from main.c:7:
/usr/include/string.h:36:42: error: missing binary operator before token "("
/usr/include/string.h:164:21: error: missing binary operator before token "("
/usr/include/string.h:173:43: error: missing binary operator before token "("
/usr/include/string.h:491:19: error: missing binary operator before token "("
In file included from ../src/core/usb_commands.h:26,
                 from main.c:13:
/usr/include/stdint.h:286:17: error: missing binary operator before token "("
In file included from ../src/core/debug.h:14,
                 from ../src/core/ring_buf.h:8,
                 from ../src/usb_reports/vendor_report.h:9,
                 from main.c:33:
/usr/include/stdlib.h:131:36: error: missing binary operator before token "("
/usr/include/stdlib.h:174:17: error: missing binary operator before token "("
/usr/include/stdlib.h:188:36: error: missing binary operator before token "("
In file included from ../src/core/util.h:11,
                 from ../src/core/led.h:6,
                 from led.c:4:
/usr/include/stdint.h:286:17: error: missing binary operator before token "("
In file included from ../src/core/util.h:11,
                 from ../src/core/hardware.h:6,
                 from hardware.c:4:
/usr/include/stdint.h:286:17: error: missing binary operator before token "("
In file included from ../src/core/util.h:11,
                 from ../src/core/flash.h:8,
                 from flash.c:6:
/usr/include/stdint.h:286:17: error: missing binary operator before token "("
In file included from ../src/core/debug.h:14,
                 from ../src/core/ring_buf.h:8,
                 from ../src/usb_reports/vendor_report.h:9,
                 from flash.c:9:
/usr/include/stdlib.h:131:36: error: missing binary operator before token "("
/usr/include/stdlib.h:174:17: error: missing binary operator before token "("
/usr/include/stdlib.h:188:36: error: missing binary operator before token "("
In file included from ../src/core/aes.h:11,
                 from aes.c:4:
/usr/include/stdint.h:286:17: error: missing binary operator before token "("
In file included from aes.c:6:
/usr/include/string.h:36:42: error: missing binary operator before token "("
/usr/include/string.h:164:21: error: missing binary operator before token "("
/usr/include/string.h:173:43: error: missing binary operator before token "("
/usr/include/string.h:491:19: error: missing binary operator before token "("
make: *** No rule to make target 'build/unirecv/obj/aes.dep', needed by 'build/unirecv/keyplus_nrf24lu1-unirecv.hex'.  Stop.

When I run it again:

compiling: aes.c
compiling: flash.c
compiling: hardware.c
compiling: led.c
compiling: main.c
compiling: nonce.c
nonce.c:50: error 78: incompatible types
from type 'unsigned-int near* fixed'
  to type 'unsigned-char generic* fixed'
nonce.c:51: error 78: incompatible types
from type 'const-unsigned-long-int near* fixed'
  to type 'unsigned-char generic* fixed'
Makefile:206: recipe for target 'build/unirecv/obj/nonce.rel' failed
make: *** [build/unirecv/obj/nonce.rel] Error 1
ahtn commented 6 years ago

The efm8 branch has scripts for building on nrf24lu1+ (it uses the SDCC compiler too). When it's ready I'll merge it to master and documentation on how to build it.

With the unifying receivers, need to be a little bit careful since if you load a bad build it is quite hard to recover it again.

denwi commented 3 years ago

I'm guessing this never got resolved? Can't find the efm8 branch now, and still getting the same errors on master :(