Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
Unable to compile asahi-sources kernel
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Gentoo on ARM
View previous topic :: View next topic  
Author Message
m1v
n00b
n00b


Joined: 14 Mar 2024
Posts: 3

PostPosted: Thu Mar 14, 2024 8:07 am    Post subject: Unable to compile asahi-sources kernel Reply with quote

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
View user's profile Send private message
pietinger
Moderator
Moderator


Joined: 17 Oct 2006
Posts: 5095
Location: Bavaria

PostPosted: Thu Mar 14, 2024 10:26 am    Post subject: Reply with quote

m1v,

Welcome to Gentoo Forums !

All your links give a 404, just use a pastebin service.

Error code 2 usually says that a file was not found.

In addition to the kernel configuration, the output of "dmesg" would also be important (after you have started with a boot CD) because we get important system information there. An additional "lspci -nnk" would also be helpful ( https://wiki.gentoo.org/wiki/User:Pietinger/Overview_of_System_Information ).
_________________
https://wiki.gentoo.org/wiki/User:Pietinger
Back to top
View user's profile Send private message
Hu
Administrator
Administrator


Joined: 06 Mar 2007
Posts: 22634

PostPosted: Thu Mar 14, 2024 2:52 pm    Post subject: Reply with quote

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
View user's profile Send private message
m1v
n00b
n00b


Joined: 14 Mar 2024
Posts: 3

PostPosted: Fri Mar 15, 2024 1:29 am    Post subject: Reply with quote

I have fixed the pastebin links so the logs should be visible now. I will update with extra system information soon.
Back to top
View user's profile Send private message
grknight
Retired Dev
Retired Dev


Joined: 20 Feb 2015
Posts: 1912

PostPosted: Fri Mar 15, 2024 1:53 am    Post subject: Reply with quote

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
View user's profile Send private message
NeddySeagoon
Administrator
Administrator


Joined: 05 Jul 2003
Posts: 54577
Location: 56N 3W

PostPosted: Fri Mar 15, 2024 5:20 pm    Post subject: Reply with quote

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
View user's profile Send private message
m1v
n00b
n00b


Joined: 14 Mar 2024
Posts: 3

PostPosted: Fri Mar 15, 2024 8:55 pm    Post subject: Reply with quote

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
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Gentoo on ARM All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum