View previous topic :: View next topic |
Author |
Message |
m1v n00b
Joined: 14 Mar 2024 Posts: 3
|
Posted: Thu Mar 14, 2024 8:07 am Post subject: Unable to compile asahi-sources kernel |
|
|
I have been following this guide with some changes made to account for the use of fedora instead of arch for the original asahi install following this pr. I have reached step 6, which involves simply cloning this repo and running the contained "install.sh" script. However, the kernel compilation exits with an "error 2" which I have no idea how to deal with.
output of install.sh:
https://pst.innomi.net/paste/ynkyjwsayq5ypxzt3p3gdye6
kernel config (copied from running kernel by install.sh):
https://pst.innomi.net/paste/ha4soboa3kfzbz96a3j4hoav
lscpu:
https://pst.innomi.net/paste/jygpsvthgr5cqa7bjoj2heff
Any pointers? I believe it's a problem with the kernel config as it is copied from a prebuilt fedora kernel, however I have also experimented with custom kernel configs to the same result. I understand there are known issues with gentoo asahi right now but I am completely stuck.
Last edited by m1v on Fri Mar 15, 2024 1:27 am; edited 1 time in total |
|
Back to top |
|
|
pietinger Moderator
Joined: 17 Oct 2006 Posts: 5109 Location: Bavaria
|
|
Back to top |
|
|
Hu Administrator
Joined: 06 Mar 2007 Posts: 22657
|
Posted: Thu Mar 14, 2024 2:52 pm Post subject: |
|
|
In the context of errno, yes, 2 is ENOENT ("No such file or directory"). However, from frequent reports of kernel compilation failures, I suspect that in this case the OP is referring to output like this: Code: | $ echo 'target:
echo "Failing now ..."; exit 2' | make -f -
echo "Failing now ..."; exit 2
Failing now ...
make: *** [/tmp/GmwwJpSs:2: target] Error 2 | That is, make is merely reporting that a recipe exited with a status code of 2. It may not have anything to do with a missing file. If we could see the build log, we could check this, but as pietinger notes, the links all return 404. |
|
Back to top |
|
|
m1v n00b
Joined: 14 Mar 2024 Posts: 3
|
Posted: Fri Mar 15, 2024 1:29 am Post subject: |
|
|
I have fixed the pastebin links so the logs should be visible now. I will update with extra system information soon. |
|
Back to top |
|
|
grknight Retired Dev
Joined: 20 Feb 2015 Posts: 1921
|
Posted: Fri Mar 15, 2024 1:53 am Post subject: |
|
|
So your real error is: Code: | AR built-in.a
AR vmlinux.a
LD vmlinux.o
OBJCOPY modules.builtin.modinfo
GEN modules.builtin
MODPOST Module.symvers
CC .vmlinux.export.o
UPD include/generated/utsversion.h
CC init/version-timestamp.o
BTF: .tmp_vmlinux.btf: pahole (pahole) is not available
Failed to generate BTF for vmlinux
Try to disable CONFIG_DEBUG_INFO_BTF
make[2]: *** [scripts/Makefile.vmlinux:36: vmlinux] Error 1
make[1]: *** [/usr/src/linux-6.6.0_p15-asahi/Makefile:1165: vmlinux] Error 2
make[1]: *** Waiting for unfinished jobs.... |
There's a helpful hint there as well. Too bad the automation makes it difficult to change.
Maybe insatlling dev-util/pahole first may fix it. |
|
Back to top |
|
|
NeddySeagoon Administrator
Joined: 05 Jul 2003 Posts: 54578 Location: 56N 3W
|
Posted: Fri Mar 15, 2024 5:20 pm Post subject: |
|
|
Moved from Other Things Gentoo to Gentoo on ARM.
Apple Silicon is aarch64, so belongs here. _________________ Regards,
NeddySeagoon
Computer users fall into two groups:-
those that do backups
those that have never had a hard drive fail. |
|
Back to top |
|
|
m1v n00b
Joined: 14 Mar 2024 Posts: 3
|
Posted: Fri Mar 15, 2024 8:55 pm Post subject: |
|
|
i merged dev-util/pahole, which fixed the previous issue and allowed me to get noticeably further through the compilation than before.
however, i have reached a new issue. during compilation, i receive a few dracut errors complaining about being unable to install systemd.
i would strongly prefer not to use systemd, but i was unable to find the options in menuconfig to change the init system.
i started using this fork of the scripts included in the asahi linux wiki as they have been updated to support fedora. also followed the advice of this thread and added "omit_dracutmodules+=" systemd " to my dracut config, but this had no effect.
dmesg:
https://pst.innomi.net/paste/3o4y89b7zcce87kncqqr78su
lspci -nnk:
https://pst.innomi.net/paste/q2b4yv4vadqo5c28dyg8b4kf
new install.sh log (kernel build log):
https://pst.innomi.net/paste/9spmh2sxoxqw3hsftgn3rhkd |
|
Back to top |
|
|
|