View previous topic :: View next topic |
Author |
Message |
VoVaN l33t
Joined: 02 Jul 2003 Posts: 701 Location: The Netherlands
|
Posted: Fri Sep 06, 2024 5:01 am Post subject: [SOLVED] gentoo-kernel-6.10.8 fails to build amdgpu |
|
|
gentoo-kernel-6.10.8 fails to build amdgpu while with the same .config gentoo-kernel-6.10.7 has no issues
Code: |
make -f ./scripts/Makefile.build obj=drivers/gpu/drm/amd/amdgpu \
need-builtin=1 \
need-modorder=1 \
make[6]: /bin/sh: Argument list too long
make[6]: *** [scripts/Makefile.build:244: drivers/gpu/drm/amd/amdgpu/amdgpu_drv.o] Error 127
make[5]: *** [scripts/Makefile.build:485: drivers/gpu/drm/amd/amdgpu] Error 2
make[4]: *** [scripts/Makefile.build:485: drivers/gpu/drm] Error 2
make[3]: *** [scripts/Makefile.build:485: drivers/gpu] Error 2
make[2]: *** [scripts/Makefile.build:485: drivers] Error 2
make[1]: *** [/mnt/portage/tmp/portage/sys-kernel/gentoo-kernel-6.10.8-r1/work/linux-6.10/Makefile:1942: .] Error 2
make: *** [Makefile:240: __sub-make] Error 2
|
The reason is most likely this
Code: |
CONFIG_EXTRA_FIRMWARE="intel-ucode/06-9e-09 intel-ucode/06-9e-0a intel-ucode/06-9e-0b intel-ucode/06-9e-0c intel-ucode/06-9e-0d amdgpu/polaris12_ce_2.bin amdgpu/polaris12_ce.bin amdgpu/polaris12_k_mc.bin amdgpu/polaris12_k_smc.bin amdgpu/polaris12_mc.bin amdgpu/polaris12_me_2.bin amdgpu/polaris12_me.bin amdgpu/polaris12_mec2_2.bin amdgpu/polaris12_mec_2.bin amdgpu/polaris12_mec2.bin amdgpu/polaris12_mec.bin amdgpu/polaris12_pfp_2.bin amdgpu/polaris12_pfp.bin amdgpu/polaris12_rlc.bin amdgpu/polaris12_sdma1.bin amdgpu/polaris12_sdma.bin amdgpu/polaris12_smc.bin amdgpu/polaris12_uvd.bin amdgpu/polaris12_vce.bin i915/kbl_dmc_ver1_04.bin"
|
However I haven't had this problem before with the same CONFIG_EXTRA_FIRMWARE in the kernel config for years. Maybe the problem isn't CONFIG_EXTRA_FIRMWARE, but something else. I'd appreciate any thoughts!
Last edited by VoVaN on Mon Sep 09, 2024 4:58 am; edited 1 time in total |
|
Back to top |
|
|
logrusx Advocate
Joined: 22 Feb 2018 Posts: 2405
|
Posted: Fri Sep 06, 2024 6:26 am Post subject: |
|
|
Are you sure this is all the relevant output?
Best Regards,
Georgi |
|
Back to top |
|
|
VoVaN l33t
Joined: 02 Jul 2003 Posts: 701 Location: The Netherlands
|
Posted: Fri Sep 06, 2024 7:25 am Post subject: |
|
|
logrusx wrote: | Are you sure this is all the relevant output?
Best Regards,
Georgi |
I can't be sure, the full output of is here https://www.vovan.nl/make.log. |
|
Back to top |
|
|
sinatosk n00b
Joined: 04 Sep 2024 Posts: 13
|
Posted: Fri Sep 06, 2024 10:09 am Post subject: |
|
|
I'm using a Framework Laptop 16 with AMD Ryzen 7840HS and Radeon 780M
I've recently upgraded from "gentoo-kernel-6.10.7" to "gentoo-kernel-6.10.8" using "sys-devel/gcc-14.2.1_p20240817" with amdgpu and it's compiled for me
I don't think CONFIG_EXTRA_FIRMWARE would have an effect on the amdgpu kernel module being compiled correctly/incorrectly as the firmwares are loaded at boot/resume time CONFIG_EXTRA_FIRMWARE only embeds the firmwares into the kernel image
Last edited by sinatosk on Fri Sep 06, 2024 10:10 am; edited 1 time in total |
|
Back to top |
|
|
logrusx Advocate
Joined: 22 Feb 2018 Posts: 2405
|
Posted: Fri Sep 06, 2024 10:10 am Post subject: Re: gentoo-kernel-6.10.8 fails to build amdgpu |
|
|
VoVaN wrote: | gentoo-kernel-6.10.8 fails to build amdgpu while with the same .config gentoo-kernel-6.10.7 has no issues
Code: |
make[1]: *** [/mnt/portage/tmp/portage/sys-kernel/gentoo-kernel-6.10.8-r1/work/linux-6.10/Makefile:1942: .] Error 2
|
|
Why don't I see 6.10.8-r1 in the tree?
Maybe try to see what it is at that line in Makefile.
Best Regards,
Georgi |
|
Back to top |
|
|
VoVaN l33t
Joined: 02 Jul 2003 Posts: 701 Location: The Netherlands
|
Posted: Fri Sep 06, 2024 10:28 am Post subject: Re: gentoo-kernel-6.10.8 fails to build amdgpu |
|
|
logrusx wrote: |
Why don't I see 6.10.8-r1 in the tree?
|
This is the version I got after today's portage update, but with the 6.10.8 the error is exactly the same... |
|
Back to top |
|
|
sam_ Developer
Joined: 14 Aug 2020 Posts: 1949
|
Posted: Fri Sep 06, 2024 11:20 am Post subject: |
|
|
Could you give me your .config so I can verify it's not caused by some (hopefully unrelated, self-contained) patches we added? Thanks. |
|
Back to top |
|
|
VoVaN l33t
Joined: 02 Jul 2003 Posts: 701 Location: The Netherlands
|
Posted: Fri Sep 06, 2024 11:24 am Post subject: |
|
|
sam_ wrote: | Could you give me your .config so I can verify it's not caused by some (hopefully unrelated, self-contained) patches we added? Thanks. |
see https://www.vovan.nl/.config. With this .config vanilla kernel 6.10.8 compiles just fine. |
|
Back to top |
|
|
sam_ Developer
Joined: 14 Aug 2020 Posts: 1949
|
Posted: Fri Sep 06, 2024 11:28 am Post subject: |
|
|
Ah. thanks, that's useful data wrt vanilla. I get 403 forbidden - could you take a look? |
|
Back to top |
|
|
VoVaN l33t
Joined: 02 Jul 2003 Posts: 701 Location: The Netherlands
|
Posted: Fri Sep 06, 2024 11:30 am Post subject: |
|
|
sam_ wrote: | Ah. thanks, that's useful data wrt vanilla. I get 403 forbidden - could you take a look? |
See https://www.vovan.nl/kernel_config, sorry. |
|
Back to top |
|
|
VoVaN l33t
Joined: 02 Jul 2003 Posts: 701 Location: The Netherlands
|
Posted: Fri Sep 06, 2024 11:54 am Post subject: |
|
|
If it's useful: vanilla kernel 6.10.8 with all patches (base, extras, experimental) applied compiles just fine as well. |
|
Back to top |
|
|
sam_ Developer
Joined: 14 Aug 2020 Posts: 1949
|
|
Back to top |
|
|
VoVaN l33t
Joined: 02 Jul 2003 Posts: 701 Location: The Netherlands
|
Posted: Fri Sep 06, 2024 12:12 pm Post subject: |
|
|
The failed build log I posted already https://www.vovan.nl/make.log. The vanilla kernel I compiled manually, simply download, unpack, copy .config and "make bzImage". I can save the output by recompiling everything with make V=1. Let me know if the last will be useful. |
|
Back to top |
|
|
VoVaN l33t
Joined: 02 Jul 2003 Posts: 701 Location: The Netherlands
|
Posted: Fri Sep 06, 2024 1:33 pm Post subject: |
|
|
sam_ wrote: | Wait, really? Could you give me the build.log of that? |
If I do clean compile of the vanilla 6.10.8 with all the patches applied the compilation fails with the same error. For the explanation below is how I got the vanilla kernel compiled with all the patches applied:
- clean compile of the vanilla sources
- applied patches and compile again without make clean first
So in my case compiling patched sources without making clean was successful. |
|
Back to top |
|
|
sam_ Developer
Joined: 14 Aug 2020 Posts: 1949
|
Posted: Fri Sep 06, 2024 1:51 pm Post subject: |
|
|
Thanks, that makes more sense now.
Could you try either not applying, or reverting, the dtrace patch? |
|
Back to top |
|
|
VoVaN l33t
Joined: 02 Jul 2003 Posts: 701 Location: The Netherlands
|
Posted: Fri Sep 06, 2024 1:53 pm Post subject: |
|
|
sam_ wrote: | Thanks, that makes more sense now.
Could you try either not applying, or reverting, the dtrace patch? |
That's exactly what I'm doing now |
|
Back to top |
|
|
VoVaN l33t
Joined: 02 Jul 2003 Posts: 701 Location: The Netherlands
|
Posted: Fri Sep 06, 2024 1:58 pm Post subject: |
|
|
sam_ wrote: | Thanks, that makes more sense now.
Could you try either not applying, or reverting, the dtrace patch? |
Without this dtrace patch and all the rest applied kernel compiles successfully. |
|
Back to top |
|
|
sam_ Developer
Joined: 14 Aug 2020 Posts: 1949
|
Posted: Fri Sep 06, 2024 1:59 pm Post subject: |
|
|
You're a star, thanks. I'm sitting down to poke now |
|
Back to top |
|
|
sam_ Developer
Joined: 14 Aug 2020 Posts: 1949
|
Posted: Fri Sep 06, 2024 2:31 pm Post subject: |
|
|
Could you show me the output of env? I'm wondering if yours is significantly larger than mine.
(I can't yet reproduce with your .config + vanilla-sources-6.10.8 + dtrace patch applied). |
|
Back to top |
|
|
pietinger Moderator
Joined: 17 Oct 2006 Posts: 5094 Location: Bavaria
|
Posted: Fri Sep 06, 2024 2:50 pm Post subject: |
|
|
VoVaN,
I have looked at your kernel configuration and realize that you have some experience. But I'm also missing something. What I'm talking about now is independent of your original problem.
You have an Intel CPU (CONFIG_MCORE2=y) but:
Code: | # CONFIG_X86_INTEL_LPSS is not set |
You also have i2c enabled (CONFIG_I2C_I801=y), but not PINCTRL:
Code: | # CONFIG_PINCTRL is not set |
This setting is also important ... maybe you don't need “acpi_enforce_resources=lax” anymore:
Code: | # CONFIG_IRQ_REMAP is not set |
Maybe you are interested in my wiki article:
https://wiki.gentoo.org/wiki/User:Pietinger/Tutorials/Manual_Configuring_Kernel_Version_6.6 _________________ https://wiki.gentoo.org/wiki/User:Pietinger |
|
Back to top |
|
|
VoVaN l33t
Joined: 02 Jul 2003 Posts: 701 Location: The Netherlands
|
Posted: Fri Sep 06, 2024 3:32 pm Post subject: |
|
|
pietinger wrote: | VoVaN,
I have looked at your kernel configuration and realize that you have some experience. But I'm also missing something. What I'm talking about now is independent of your original problem.
You have an Intel CPU (CONFIG_MCORE2=y) but:
Code: | # CONFIG_X86_INTEL_LPSS is not set |
You also have i2c enabled (CONFIG_I2C_I801=y), but not PINCTRL:
Code: | # CONFIG_PINCTRL is not set |
This setting is also important ... maybe you don't need “acpi_enforce_resources=lax” anymore:
Code: | # CONFIG_IRQ_REMAP is not set |
Maybe you are interested in my wiki article:
https://wiki.gentoo.org/wiki/User:Pietinger/Tutorials/Manual_Configuring_Kernel_Version_6.6 |
I'll definitely take a look, thanks a lot! |
|
Back to top |
|
|
VoVaN l33t
Joined: 02 Jul 2003 Posts: 701 Location: The Netherlands
|
Posted: Fri Sep 06, 2024 3:35 pm Post subject: |
|
|
sam_ wrote: | Could you show me the output of env? I'm wondering if yours is significantly larger than mine.
(I can't yet reproduce with your .config + vanilla-sources-6.10.8 + dtrace patch applied). |
Here it is:
Code: |
SHELL=/bin/bash
COLORTERM=truecolor
GTK_THEME=Arc-Dark
XDG_CONFIG_DIRS=/etc/xdg
LESS=-R -M --shift 5
SUDO_GID=1000
HISTCONTROL=ignoreboth:erasedups
CONFIG_PROTECT_MASK=/etc/sandbox.d /etc/fonts/fonts.conf /etc/gentoo-release /etc/dconf /etc/ca-certificates.conf /etc/revdep-rebuild
HISTSIZE=10000000
LC_ADDRESS=POSIX
HISTTIMEFORMAT=%H:%M:%S %d-%m-%Y
SUDO_COMMAND=/bin/bash
SUDO_USER=xxxx
NO_AT_BRIDGE=1
EDITOR=/usr/bin/vim
KRB5CCNAME=KEYRING:persistent:1000
PWD=/tmp
CONFIG_PROTECT=/usr/share/gnupg/qualified.txt /usr/lib64/libreoffice/program/sofficerc
LOGNAME=root
MANPATH=/usr/share/gcc-data/x86_64-pc-linux-gnu/14/man:/usr/share/binutils-data/x86_64-pc-linux-gnu/2.43/man:/usr/local/share/man:/usr/share/man:/usr/lib/rust/man:/usr/lib/llvm/18/share/man
MC_TMPDIR=/tmp/mc-12UQT2
XAUTHORITY=/home/xxxx/.Xauthority
OPENCL_PROFILE=nvidia
MC_SID=947639
HOME=/root
LC_PAPER=POSIX
LANG=en_US.UTF-8
LS_COLORS=rs=0:di=01;34:ln=01;36:mh=00:pi=40;33:so=01;35:do=01;35:bd=40;33;01:cd=40;33;01:or=01;05;37;41:mi=01;05;37;41:su=37;41:sg=30;43:ca=00:tw=30;42:ow=34;42:st=37;44:ex=01;32:*.7z=01;31:*.ace=01;31:*.alz=01;31:*.apk=01;31:*.arc=01;31:*.arj=01;31:*.bz=01;31:*.bz2=01;31:*.cab=01;31:*.cpio=01;31:*.crate=01;31:*.deb=01;31:*.drpm=01;31:*.dwm=01;31:*.dz=01;31:*.ear=01;31:*.egg=01;31:*.esd=01;31:*.gz=01;31:*.jar=01;31:*.lha=01;31:*.lrz=01;31:*.lz=01;31:*.lz4=01;31:*.lzh=01;31:*.lzma=01;31:*.lzo=01;31:*.pyz=01;31:*.rar=01;31:*.rpm=01;31:*.rz=01;31:*.sar=01;31:*.swm=01;31:*.t7z=01;31:*.tar=01;31:*.taz=01;31:*.tbz=01;31:*.tbz2=01;31:*.tgz=01;31:*.tlz=01;31:*.txz=01;31:*.tz=01;31:*.tzo=01;31:*.tzst=01;31:*.udeb=01;31:*.war=01;31:*.whl=01;31:*.wim=01;31:*.xz=01;31:*.z=01;31:*.zip=01;31:*.zoo=01;31:*.zst=01;31:*.avif=01;35:*.jpg=01;35:*.jpeg=01;35:*.mjpg=01;35:*.mjpeg=01;35:*.gif=01;35:*.bmp=01;35:*.pbm=01;35:*.pgm=01;35:*.ppm=01;35:*.tga=01;35:*.xbm=01;35:*.xpm=01;35:*.tif=01;35:*.tiff=01;35:*.png=01;35:*.svg=01;35:*.svgz=01;35:*.mng=01;35:*.pcx=01;35:*.mov=01;35:*.mpg=01;35:*.mpeg=01;35:*.m2v=01;35:*.mkv=01;35:*.webm=01;35:*.webp=01;35:*.ogm=01;35:*.mp4=01;35:*.m4v=01;35:*.mp4v=01;35:*.vob=01;35:*.qt=01;35:*.nuv=01;35:*.wmv=01;35:*.asf=01;35:*.rm=01;35:*.rmvb=01;35:*.flc=01;35:*.avi=01;35:*.fli=01;35:*.flv=01;35:*.gl=01;35:*.dl=01;35:*.xcf=01;35:*.xwd=01;35:*.yuv=01;35:*.cgm=01;35:*.emf=01;35:*.ogv=01;35:*.ogx=01;35:*.cfg=00;32:*.conf=00;32:*.diff=00;32:*.doc=00;32:*.ini=00;32:*.log=00;32:*.patch=00;32:*.pdf=00;32:*.ps=00;32:*.tex=00;32:*.txt=00;32:*.aac=00;36:*.au=00;36:*.flac=00;36:*.m4a=00;36:*.mid=00;36:*.midi=00;36:*.mka=00;36:*.mp3=00;36:*.mpc=00;36:*.ogg=00;36:*.ra=00;36:*.wav=00;36:*.oga=00;36:*.opus=00;36:*.spx=00;36:*.xspf=00;36:*~=00;90:*#=00;90:*.bak=00;90:*.crdownload=00;90:*.dpkg-dist=00;90:*.dpkg-new=00;90:*.dpkg-old=00;90:*.dpkg-tmp=00;90:*.old=00;90:*.orig=00;90:*.part=00;90:*.rej=00;90:*.rpmnew=00;90:*.rpmorig=00;90:*.rpmsave=00;90:*.swp=00;90:*.tmp=00;90:*.ucf-dist=00;90:*.ucf-new=00;90:*.ucf-old=00;90:
XDG_CURRENT_DESKTOP=X-Cinnamon
OPENGL_PROFILE=xorg-x11
QT_GRAPHICSSYSTEM=raster
SYSTEMD_PAGERSECURE=0
INFOPATH=/usr/share/gcc-data/x86_64-pc-linux-gnu/14/info:/usr/share/binutils-data/x86_64-pc-linux-gnu/2.43/info:/usr/share/autoconf-2.72/info:/usr/share/autoconf-2.13/info:/usr/share/automake-1.17/info:/usr/share/info
MOZ_GMP_PATH=/usr/lib64/nsbrowser/plugins/gmp-gmpopenh264/system-installed
TERM=screen-256color
LESSOPEN=|lesspipe %s
USER=root
MANPAGER=manpager
TEMP=/tmp
NPM_CONFIG_GLOBALCONFIG=/etc/npm/npmrc
DISPLAY=:0
SHLVL=2
PAGER=/usr/bin/less -isR
LC_TELEPHONE=POSIX
LEX=flex
SYSTEMD_PAGER=/usr/local/bin/ccze_pager.sh
LC_MEASUREMENT=POSIX
GCC_SPECS=
GSETTINGS_BACKEND=dconf
TERMCMD=mlterm
LC_TIME=en_GB.UTF-8
XCURSOR_THEME=Vanilla-DMZ
XDG_DATA_DIRS=/usr/local/share:/usr/share
TMP=/tmp
PATH=/root/scripts:/root/.local/bin:/usr/local/sbin:/usr/local/bin:/usr/bin:/opt/bin:/usr/lib/llvm/18/bin
HISTIGNORE=&:ls:ll:/tmp/mc-root/*:[bf]g:exit
SUDO_UID=1000
SYSTEMD_KERNEL_INSTALL=0
MAIL=/var/mail/root
QT_FONT_DPI=108
SHELL_SETS_TITLE=0
LC_NUMERIC=POSIX
OLDPWD=/mnt/portage
_=/usr/bin/env
|
|
|
Back to top |
|
|
sam_ Developer
Joined: 14 Aug 2020 Posts: 1949
|
Posted: Fri Sep 06, 2024 4:45 pm Post subject: |
|
|
VoVaN wrote: |
The failed build log I posted already https://www.vovan.nl/make.log. The vanilla kernel I compiled manually, simply download, unpack, copy .config and "make bzImage". I can save the output by recompiling everything with make V=1. Let me know if the last will be useful. |
Would you mind giving me verbose instructions, including the current directory, for what you did for this (the vanilla build)? I've tried using the same long build directory as in the log and that didn't help hit it, nor did exporting all of your env output. |
|
Back to top |
|
|
sam_ Developer
Joined: 14 Aug 2020 Posts: 1949
|
Posted: Fri Sep 06, 2024 6:29 pm Post subject: |
|
|
I managed to reproduce it with:
Code: |
#!/bin/bash
set -x
#rm -rf /mnt/portage/tmp/portage/sys-kernel/gentoo-kernel-6.10.8-r2/
mkdir -p /mnt/portage/tmp/portage/sys-kernel/gentoo-kernel-6.10.8-r2/work/{build,linux-6.10}
tar \
--strip-components=1 \
-C /mnt/portage/tmp/portage/sys-kernel/gentoo-kernel-6.10.8-r2/work/linux-6.10 \
-xvf /var/cache/distfiles/linux-6.10.8.tar.xz
wget https://paste.gentoo.zip/YuzThdr0 -O /mnt/portage/tmp/portage/sys-kernel/gentoo-kernel-6.10.8-r2/work/build/.config
#wget https://raw.githubusercontent.com/thesamesam/linux/21f7fd63a61ab8a32c84ec861751ff190776e8ff/dtrace-6.10_p2.patch -O- -q \
# | patch -t -p1 -d /mnt/portage/tmp/portage/sys-kernel/gentoo-kernel-6.10.8-r2/work/linux-6.10
make --no-print-directory \
-C /mnt/portage/tmp/portage/sys-kernel/gentoo-kernel-6.10.8-r2/work/linux-6.10 \
-f /mnt/portage/tmp/portage/sys-kernel/gentoo-kernel-6.10.8-r2/work/linux-6.10/Makefile \
O=/mnt/portage/tmp/portage/sys-kernel/gentoo-kernel-6.10.8-r2/work/build \
V=1 -j$(nproc) -l$(nproc)
|
The long path for out of source build was the critical bit, I think. |
|
Back to top |
|
|
sam_ Developer
Joined: 14 Aug 2020 Posts: 1949
|
|
Back to top |
|
|
|