Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

building problems #55

Open
adam-ce opened this issue Oct 2, 2016 · 4 comments
Open

building problems #55

adam-ce opened this issue Oct 2, 2016 · 4 comments

Comments

@adam-ce
Copy link

adam-ce commented Oct 2, 2016

hi,
i have building problems after installing mba6x_bl to linux mint using the ubuntu deb package. it worked before, but apparently i changed something to the system and it stopped.

madams-mint-on-MacBookAir madam # dkms install mba6xbl/1.0.0

Kernel preparation unnecessary for this kernel.  Skipping...

Building module:
cleaning build area....
make KERNELRELEASE=4.4.0-21-generic all KVERSION=4.4.0-21-generic....(bad exit status: 2)
Error! Bad return status for module build on kernel: 4.4.0-21-generic (x86_64)
Consult /var/lib/dkms/mba6xbl/1.0.0/build/make.log for more information.
madams-mint-on-MacBookAir madam # cat /var/lib/dkms/mba6xbl/1.0.0/build/make.log
DKMS make.log for mba6xbl-1.0.0 for kernel 4.4.0-21-generic (x86_64)
Sun Oct  2 19:14:54 EEST 2016
make -C /lib/modules/4.4.0-21-generic/build M=/var/lib/dkms/mba6xbl/1.0.0/build modules
make[1]: Entering directory '/usr/src/linux-headers-4.4.0-21-generic'
CC [M]  /var/lib/dkms/mba6xbl/1.0.0/build/mba6x_bl.o
/var/lib/dkms/mba6xbl/1.0.0/build/mba6x_bl.c: In function ‘platform_probe’:
/var/lib/dkms/mba6xbl/1.0.0/build/mba6x_bl.c:336:2: error: implicit declaration of function ‘acpi_video_dmi_promote_vendor’ [-Werror=implicit-function-declaration]
acpi_video_dmi_promote_vendor();
^
cc1: some warnings being treated as errors
scripts/Makefile.build:264: recipe for target '/var/lib/dkms/mba6xbl/1.0.0/build/mba6x_bl.o' failed
make[2]: *** [/var/lib/dkms/mba6xbl/1.0.0/build/mba6x_bl.o] Error 1
Makefile:1396: recipe for target '_module_/var/lib/dkms/mba6xbl/1.0.0/build' failed
make[1]: *** [_module_/var/lib/dkms/mba6xbl/1.0.0/build] Error 2
make[1]: Leaving directory '/usr/src/linux-headers-4.4.0-21-generic'
Makefile:8: recipe for target 'all' failed
make: *** [all] Error 2

i'm not sure this is actually an issue with the code, but maybe you have an idea on what configuration is causing it. i am following documentation in https://help.ubuntu.com/community/MacBookAir6-2/Trusty to improve energy usage and make things work.

@adam-ce
Copy link
Author

adam-ce commented Oct 2, 2016

i just found #45

so it seems like the problem is just in the deb package, but why did it work yesterday or two days ago?

@adam-ce
Copy link
Author

adam-ce commented Oct 2, 2016

because the deb package is not up to date.
this commit 0b095b4 is necessary for my kernel. i'm just surprised it worked in the first place. i made a kernel update, but both are 4.4.0. i don't know much about it, maybe they patched it so the required function was there.

anyway, please read this bugreport as "could you update the packages?" or at least a warning that they don't work for newer kernels? thanks :)

@adam-ce
Copy link
Author

adam-ce commented Oct 2, 2016

i built from trunk and it works on my system.
thanks for your work :)

mba6xbl-dkms_1.1.0_all.deb.zip

@ivanperez-keera
Copy link

Would it be possible to create a deb source package with travis and upload it to a PPA, or connect the repo with launchpad so that it's built automatically? That would keep it always up to date.

LOZORD added a commit to LOZORD/mba6x_bl that referenced this issue Dec 29, 2017
I updated and added details about gotchas I ran into when attempting this fix on my Ubuntu machine.
This should address the problems encountered in patjak#55, patjak#59, and patjak#65.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants