MCMrARM / mbp2018-bridge-drv

A driver for MacBook models 2018 and newer, which makes the keyboard, mouse and audio output work.
131 stars 54 forks source link

Building module with GCC 10.1 fails #15

Closed stefanpartheym closed 4 years ago

stefanpartheym commented 4 years ago

First of all, thanks for the great work!

Not sure, if this is really an issue, but I had to downgrade to GCC 9.3 in order to be able to build the module. Since I'm using Arch I yesterday updated both packages apple-bce-dkms-git and gcc (as well as gcc-libs). This led to a failing build of the apple-bce module. See the log:

DKMS make.log for apple-bce-r183.c884d9c for kernel 5.6.12-2-mbp (x86_64)
So 17. Mai 12:33:28 CEST 2020
make -C /lib/modules/5.6.12-2-mbp/build M=/var/lib/dkms/apple-bce/r183.c884d9c/build modules
make[1]: Verzeichnis „/usr/lib/modules/5.6.12-2-mbp/build“ wird betreten
  CC [M]  /var/lib/dkms/apple-bce/r183.c884d9c/build/apple_bce.o
  CC [M]  /var/lib/dkms/apple-bce/r183.c884d9c/build/mailbox.o
  CC [M]  /var/lib/dkms/apple-bce/r183.c884d9c/build/queue.o
  CC [M]  /var/lib/dkms/apple-bce/r183.c884d9c/build/queue_dma.o
  CC [M]  /var/lib/dkms/apple-bce/r183.c884d9c/build/vhci/vhci.o
  CC [M]  /var/lib/dkms/apple-bce/r183.c884d9c/build/vhci/queue.o
  CC [M]  /var/lib/dkms/apple-bce/r183.c884d9c/build/vhci/transfer.o
  CC [M]  /var/lib/dkms/apple-bce/r183.c884d9c/build/audio/audio.o
cc1: Fehler: incompatible gcc/plugin versions
cc1: Fehler: Plugin ./scripts/gcc-plugins/structleak_plugin.so kann nicht initialisiert werden
cc1: Fehler: incompatible gcc/plugin versions
cc1: Fehler: Plugin ./scripts/gcc-plugins/structleak_plugin.so kann nicht initialisiert werden
cc1: Fehler: incompatible gcc/plugin versions
cc1: Fehler: Plugin ./scripts/gcc-plugins/structleak_plugin.so kann nicht initialisiert werden
make[2]: *** [scripts/Makefile.build:268: /var/lib/dkms/apple-bce/r183.c884d9c/build/apple_bce.o] Fehler 1
make[2]: *** Es wird auf noch nicht beendete Prozesse gewartet....
make[2]: *** [scripts/Makefile.build:268: /var/lib/dkms/apple-bce/r183.c884d9c/build/mailbox.o] Fehler 1
make[2]: *** [scripts/Makefile.build:268: /var/lib/dkms/apple-bce/r183.c884d9c/build/queue.o] Fehler 1
cc1: Fehler: incompatible gcc/plugin versions
cc1: Fehler: Plugin ./scripts/gcc-plugins/structleak_plugin.so kann nicht initialisiert werden
cc1: Fehler: incompatible gcc/plugin versions
cc1: Fehler: Plugin ./scripts/gcc-plugins/structleak_plugin.so kann nicht initialisiert werden
make[2]: *** [scripts/Makefile.build:268: /var/lib/dkms/apple-bce/r183.c884d9c/build/vhci/vhci.o] Fehler 1
make[2]: *** [scripts/Makefile.build:268: /var/lib/dkms/apple-bce/r183.c884d9c/build/queue_dma.o] Fehler 1
cc1: Fehler: incompatible gcc/plugin versions
cc1: Fehler: Plugin ./scripts/gcc-plugins/structleak_plugin.so kann nicht initialisiert werden
make[2]: *** [scripts/Makefile.build:268: /var/lib/dkms/apple-bce/r183.c884d9c/build/vhci/queue.o] Fehler 1
cc1: Fehler: incompatible gcc/plugin versions
cc1: Fehler: Plugin ./scripts/gcc-plugins/structleak_plugin.so kann nicht initialisiert werden
make[2]: *** [scripts/Makefile.build:268: /var/lib/dkms/apple-bce/r183.c884d9c/build/vhci/transfer.o] Fehler 1
cc1: Fehler: incompatible gcc/plugin versions
cc1: Fehler: Plugin ./scripts/gcc-plugins/structleak_plugin.so kann nicht initialisiert werden
make[2]: *** [scripts/Makefile.build:268: /var/lib/dkms/apple-bce/r183.c884d9c/build/audio/audio.o] Fehler 1
make[1]: *** [Makefile:1684: /var/lib/dkms/apple-bce/r183.c884d9c/build] Fehler 2
make[1]: Verzeichnis „/usr/lib/modules/5.6.12-2-mbp/build“ wird verlassen
make: *** [Makefile:22: all] Fehler 2
aunali1 commented 4 years ago

Hi @stefanpartheym, sorry about that. I haven't recompiled the kernel packages since GCC 10 was promoted from arch testing. I'll go ahead and push a CI rebuild. In the meantime, I would recommend just installing the binary apple-bce-git to avoid any future compiler related issues.

stefanpartheym commented 4 years ago

Thanks fast response! I will use apple-bce-git in the future ;) I think issue can be closed now.

zhiyuanzhai commented 4 years ago

Hi @stefanpartheym, sorry about that. I haven't recompiled the kernel packages since GCC 10 was promoted from arch testing. I'll go ahead and push a CI rebuild. In the meantime, I would recommend just installing the binary apple-bce-git to avoid any future compiler related issues.

Is there any progress on this?