#[SOLVED] github repo build error

12 messages · Page 1 of 1 (latest)

keen swallow
#

Trying to get speaker output on my macbook 14,1 working, I stumbled onto this github repo:
https://github.com/davidjo/snd_hda_macbookpro

I was following the instructions but on the build stage I got the following error:

[alex@Mac-Arch snd_hda_macbookpro]$ sudo ./install.cirrus.driver.sh
[sudo] password for alex: 
--2023-05-25 14:35:55--  https://cdn.kernel.org/pub/linux/kernel/v6.x/linux-6.1.29.tar.xz
Loaded CA certificate '/etc/ssl/certs/ca-certificates.crt'
Resolving cdn.kernel.org (cdn.kernel.org)... 151.101.209.176, 2a04:4e42:b::432
Connecting to cdn.kernel.org (cdn.kernel.org)|151.101.209.176|:443... connected.
HTTP request sent, awaiting response... 416 Range Not Satisfiable

    The file is already fully retrieved; nothing to do.

linux-6.1.29/sound/pci/hda/
-lists a bunch more of these linux directories, I am cutting them out due to discord character limit-
linux-6.1.29/sound/pci/hda/thinkpad_helper.c
Kernel version later than implemented version - there may be build problems
patching file patch_cs8409.c
Hunk #1 succeeded at 1444 (offset 174 lines).
Hunk #2 succeeded at 1453 (offset 174 lines).
Hunk #3 succeeded at 1482 (offset 174 lines).
patching file patch_cs8409.h
Hunk #2 succeeded at 303 (offset 1 line).
Hunk #3 succeeded at 330 (offset 1 line).
Hunk #4 succeeded at 366 (offset 1 line).
patching file patch_cirrus_apple.h
make -C /lib/modules/6.1.29-1-lts/build CFLAGS_MODULE="-DAPPLE_PINSENSE_FIXUP -DAPPLE_CODECS -DCONFIG_SND_HDA_RECONFIG=1 -Wno-unused-variable -Wno-unused-function" M=/home/alex/AUR/snd_hda_macbookpro/build/hda-6.1.29 modules
make[1]: Entering directory '/home/alex/AUR/snd_hda_macbookpro/build/hda-6.1.29'
make[1]: *** /lib/modules/6.1.29-1-lts/build: No such file or directory.  Stop.
make[1]: Leaving directory '/home/alex/AUR/snd_hda_macbookpro/build/hda-6.1.29'
make: *** [Makefile:23: all] Error 2
[alex@Mac-Arch snd_hda_macbookpro]$ 

I am on the LTS kernel, could this be causing the issue?

GitHub

Kernel audio driver for Macs with 8409 HDA chip + MAX98706/SSM3515 amps - GitHub - davidjo/snd_hda_macbookpro: Kernel audio driver for Macs with 8409 HDA chip + MAX98706/SSM3515 amps

heady yacht
#

Did you do this pacman -S wget make gcc linux-headers
or did you do this:
pacman -S wget make gcc linux-lts-headers
?

#

@keen swallow just pinging to make sure you see this

keen swallow
#

my bad, thanks for the reply

#

I will try it that sounds like the issue

heady yacht
#

that just makes sure they're installed, but if that doesn't work, try with the linux kernel instead of the linux-lts

keen swallow
#

seems to not have worked so I will try with the default kernel

heady yacht
#

it was assuming you didn't have those things installed already to be clear

keen swallow
#

looks like it worked, thanks!

heady yacht
#

yeah, probably built specifically for the mainline kernel

rose scaffoldBOT
#

#9742 📣 If there is nothing else that we can do for you, please close this thread by adding "[SOLVED]" to the title.

  • You can do this on desktop by clicking the three dots on the top right of the page, and pressing "Edit Post".
  • You can also do this on Android / iOS by long tapping your post in the text channel list, and tapping "Edit Post".

Your title should be like so: https://cdn.discordapp.com/attachments/503224329191030787/1039841700417384498/image.png
Thank you