I am having the same issue. Hope it's ok to re-open this conversation.
I installed libjpeg8-dev ok but get this error on running make.
make -C plugins/input_uvc all
make[1]: Entering directory '/home/pinerob/mjpg-streamer/plugins/input_uvc'
gcc -O1 -DLINUX -D_GNU_SOURCE -Wall -shared -fPIC -o input_uvc.so input_uvc.c v4l2uvc.lo jpeg_utils.lo dynctrl.lo -ljpeg
input_uvc.c: In function ‘input_run’:
input_uvc.c:315:1: error: unrecognizable insn:
315 | }
| ^
(insn 46 45 47 2 (set (reg/f:DI 135)
(unspec:DI [
(mem/u/c:DI (lo_sum (reg:DI 136)
(symbol_ref:DI ("cams") [flags 0x80] <var_decl 0xffff96c9f6c0 cams>)) [0 S8 A8])
] UNSPEC_GOTSMALLPIC)) "input_uvc.c":305:16 -1
(expr_list:REG_EQUAL (symbol_ref:DI ("cams") [flags 0x80] <var_decl 0xffff96c9f6c0 cams>)
(nil)))
during RTL pass: vregs
input_uvc.c:315:1: internal compiler error: in extract_insn, at recog.c:2770
Any clues as to how to fix this? Armbian 23.8.3 jammy on Pine A64 1GB RAM.