patjak / facetimehd

Reverse engineered Linux driver for the FacetimeHD (Broadcom 1570) PCIe webcam
GNU General Public License v2.0
1.36k stars 161 forks source link

Make failure on Fedora 27 4.14.13-300.fc27.x86_64 #148

Closed oglok closed 6 years ago

oglok commented 6 years ago

Kernel-devel package is installed.

make make -C /lib/modules/4.14.13-300.fc27.x86_64/build M=/root/bcwc_pcie modules make[1]: Entering directory '/usr/src/kernels/4.14.13-300.fc27.x86_64' arch/x86/Makefile:244: CONFIG_RETPOLINE=y, but not supported by the compiler. Toolchain update recommended. CC [M] /root/bcwc_pcie/fthd_ddr.o CC [M] /root/bcwc_pcie/fthd_hw.o CC [M] /root/bcwc_pcie/fthd_drv.o CC [M] /root/bcwc_pcie/fthd_ringbuf.o CC [M] /root/bcwc_pcie/fthd_isp.o CC [M] /root/bcwc_pcie/fthd_v4l2.o /root/bcwc_pcie/fthd_v4l2.c:298:28: error: initialization from incompatible pointer type [-Werror=incompatible-pointer-types] .queue_setup = fthd_buffer_queue_setup, ^~~~~~~ /root/bcwc_pcie/fthd_v4l2.c:298:28: note: (near initialization for ‘vb2_queue_ops.queue_setup’) /root/bcwc_pcie/fthd_v4l2.c: In function ‘fthd_v4l2_register’: /root/bcwc_pcie/fthd_v4l2.c:714:24: error: implicit declaration of function ‘vb2_dma_sg_init_ctx’; did you mean ‘vb2_dma_sg_plane_desc’? [-Werror=implicit-function-declaration] dev_priv->alloc_ctx = vb2_dma_sg_init_ctx(&dev_priv->pdev->dev); ^~~~~~~ vb2_dma_sg_plane_desc /root/bcwc_pcie/fthd_v4l2.c:714:22: warning: assignment makes pointer from integer without a cast [-Wint-conversion] dev_priv->alloc_ctx = vb2_dma_sg_init_ctx(&dev_priv->pdev->dev); ^ /root/bcwc_pcie/fthd_v4l2.c: In function ‘fthd_v4l2_unregister’: /root/bcwc_pcie/fthd_v4l2.c:749:2: error: implicit declaration of function ‘vb2_dma_sg_cleanup_ctx’; did you mean ‘vb2_dma_sg_plane_desc’? [-Werror=implicit-function-declaration] vb2_dma_sg_cleanup_ctx(dev_priv->alloc_ctx); ^~~~~~ vb2_dma_sg_plane_desc cc1: some warnings being treated as errors make[2]: [scripts/Makefile.build:315: /root/bcwc_pcie/fthd_v4l2.o] Error 1 make[1]: [Makefile:1511: module/root/bcwc_pcie] Error 2 make[1]: Leaving directory '/usr/src/kernels/4.14.13-300.fc27.x86_64' make: *** [Makefile:12: all] Error 2

oglok commented 6 years ago

BTW, I checkout mainline version and I got the same failure. Maybe I'm missing any package?

oglok commented 6 years ago

Sorry, my checkout failed... I confirm than mainline branch is properly working.