LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Kernel (https://www.linuxquestions.org/questions/linux-kernel-70/)
-   -   Compiling linux-kernel-6.2: error (https://www.linuxquestions.org/questions/linux-kernel-70/compiling-linux-kernel-6-2-error-4175722891/)

rima8eou 03-10-2023 03:59 AM

Compiling linux-kernel-6.2: error
 
With "make menuconfig" I configured the manually downloaded kernel 6.2. After a "make clean" I compiled with "make". At the end of the process I get this message:

Code:

In file included from <command-line>:0:0:
drivers/gpu/drm/i915_sw_fence_work.c: In function ‘dma_fence_work_init‘:
drivers/gpu/drm/i915_sw_fence.h:57:20: error: the comparison will always evaluate as ‘false‘ for the address of ‘fence_notify‘ will never be NULL [-Werror=address] BUILD_BUG_ON((fn) == NULL);

Beneath the "==" there is a circumflex under the first "="
==
^

I searched a lot, but no solution all over the world wide web.

See also: https://elixir.bootlin.com/linux/lat...915_sw_fence.h

pan64 03-10-2023 06:39 AM

I don't know what did you download and from where. I can't find that circumflex in https://cdn.kernel.org/pub/linux/ker...x-6.2.3.tar.xz . And also the file is located in i915, not in drm.

rima8eou 03-10-2023 09:09 AM

I downloaded the kernel from kernel.org (latest release 6.2). The circumflex is beneath the first "=" in
Code:

BUILD_BUG_ON((fn) == NULL);
(= error message).

pan64 03-10-2023 10:34 AM

exactly what and how did you download? That situation is quite strange for me.

rima8eou 03-10-2023 10:48 AM

Hope, this is what you want to know: linux-6.2.tar.xz via http from kernel.org.

pan64 03-10-2023 12:04 PM

Quote:

Originally Posted by rima8eou (Post 6416727)
Hope, this is what you want to know: linux-6.2.tar.xz via http from kernel.org.

No, I gave you a link where you can download it and check it (that's what I did). I could not find that circumflex in that linux-6.2.tar.xz. Probably it is my mistake, but we need to know the steps to find it. Furthermore I think you ought to download it again and test again, if it is really-really-really there.
(The main goal here is to make it reproducible for us)

rima8eou 03-13-2023 07:11 AM

1 Attachment(s)
Step by step:

I downloaded the archive from here:

https://cdn.kernel.org/pub/linux/ker...nux-6.2.tar.xz

Please also notice the attachment.

yvesjv 03-16-2023 02:24 PM

Quote:

Originally Posted by rima8eou (Post 6416640)
With "make menuconfig" I configured the manually downloaded kernel 6.2. After a "make clean" I compiled with "make". At the end of the process I get this message:

I do it differently if just upgrading the kernel on your everyday workstation/laptop.
In the extracted directory of your new kernel, I copy over the config of the running kernel
zcat /proc/config.gz > .config
Followed with:
yes "" | make oldconfig
Then I do a make menuconfig to modify it further
Up to today, no hurdles seen... yet:)

rima8eou 03-20-2023 03:25 AM

I downloaded a 64 bit kernel. On the Harddisk is a 32 bit operating system. But: I bootet the hard drive via Sata-USB-Adapter. Nevertheless I found a diffrent solution for loading reiserfs-Modules: loading the 4.9-Kernel, that is the oldest and self made on this disk. For my experimental purpose no more compiling necessary.


All times are GMT -5. The time now is 10:44 AM.