Hey,
Do you have an issue compiling 6.1.2 linux kernel?
I cannot compile it.
Best,
Łukasz
On 1.01.2023 07:53, Willy Tarreau wrote:
On Sat, Dec 31, 2022 at 04:58:51PM +0000, Lukasz Kalamlacki wrote:
Hey,
Do you have an issue compiling 6.1.2 linux kernel?
I cannot compile it.
For me it compiles and boots. You'll need to share your config and error report if you want to get some help.
Willy
I was trying to compile on Debian Bullseye where default gcc is version 10, when I upgraded gcc to version 12 from sid repo i Was able to compile too. On stable Debian without addition during compile "segmentation fault" occurs at the compilation of cx8-i2c.c file. You can try on kvm or virtualbox this compilation.
Best,
Łukasz
On Sun, Jan 01, 2023 at 08:14:12AM +0000, Łukasz Kalamłacki wrote:
On 1.01.2023 07:53, Willy Tarreau wrote:
On Sat, Dec 31, 2022 at 04:58:51PM +0000, Lukasz Kalamlacki wrote:
Hey,
Do you have an issue compiling 6.1.2 linux kernel?
I cannot compile it.
For me it compiles and boots. You'll need to share your config and error report if you want to get some help.
Willy
I was trying to compile on Debian Bullseye where default gcc is version 10, when I upgraded gcc to version 12 from sid repo i Was able to compile too. On stable Debian without addition during compile "segmentation fault" occurs at the compilation of cx8-i2c.c file. You can try on kvm or virtualbox this compilation.
Sounds like a gcc bug you should be notifying the gcc developers about.
good luck!
greg k-h
On 1.01.2023 09:47, Greg KH wrote:
On Sun, Jan 01, 2023 at 08:14:12AM +0000, Łukasz Kalamłacki wrote:
On 1.01.2023 07:53, Willy Tarreau wrote:
On Sat, Dec 31, 2022 at 04:58:51PM +0000, Lukasz Kalamlacki wrote:
Hey,
Do you have an issue compiling 6.1.2 linux kernel?
I cannot compile it.
For me it compiles and boots. You'll need to share your config and error report if you want to get some help.
Willy
I was trying to compile on Debian Bullseye where default gcc is version 10, when I upgraded gcc to version 12 from sid repo i Was able to compile too. On stable Debian without addition during compile "segmentation fault" occurs at the compilation of cx8-i2c.c file. You can try on kvm or virtualbox this compilation.
Sounds like a gcc bug you should be notifying the gcc developers about.
good luck!
greg k-h
To be precise I have this on gcc 10 in Debian:
during GIMPLE pass: fre drivers/media/pci/cx18/cx18-i2c.c: In function ‘init_cx18_i2c’: drivers/media/pci/cx18/cx18-i2c.c:300:1: internal compiler error: Segmentation fault 300 | }
On Sun, Jan 01, 2023 at 09:01:22AM +0000, Lukasz Kalamlacki wrote:
On 1.01.2023 09:47, Greg KH wrote:
On Sun, Jan 01, 2023 at 08:14:12AM +0000, Lukasz Kalamlacki wrote:
On 1.01.2023 07:53, Willy Tarreau wrote:
On Sat, Dec 31, 2022 at 04:58:51PM +0000, Lukasz Kalamlacki wrote:
Hey,
Do you have an issue compiling 6.1.2 linux kernel?
I cannot compile it.
For me it compiles and boots. You'll need to share your config and error report if you want to get some help.
Willy
I was trying to compile on Debian Bullseye where default gcc is version 10, when I upgraded gcc to version 12 from sid repo i Was able to compile too. On stable Debian without addition during compile "segmentation fault" occurs at the compilation of cx8-i2c.c file. You can try on kvm or virtualbox this compilation.
Sounds like a gcc bug you should be notifying the gcc developers about.
good luck!
greg k-h
To be precise I have this on gcc 10 in Debian:
during GIMPLE pass: fre drivers/media/pci/cx18/cx18-i2c.c: In function 'init_cx18_i2c': drivers/media/pci/cx18/cx18-i2c.c:300:1: internal compiler error: Segmentation fault 300 | }
As Greg said it's definitely a compiler bug, so it will interest Gcc developers, or your distro's gcc package maintainers in case it's not up to date. There are toolchains available on kernel.org here:
https://mirrors.edge.kernel.org/pub/tools/crosstool/
The laest 10.x available is 10.4. If it works with this one it may indicate that your package is lacking some recent fixes, so it might be a question for your distro's gcc package maintainers. If it fails it indicates a bug not yet fixed in gcc and your distro maintainers won't be of any help here, you'll have to report it to the gcc devs instead.
Note that they'll very likely ask about a reproducer (and most likely your config). But a quick test for me with this driver built as a module on x86_64 with gcc-10.4 from kernel.org doesn't show any problem:
$ make CROSS_COMPILE=/f/tc/nolibc/gcc-10.4.0-nolibc/x86_64-linux/bin/x86_64-linux- drivers/media/pci/cx18/cx18-i2c.o (...) CC [M] drivers/media/pci/cx18/cx18-i2c.o $ ll drivers/media/pci/cx18/cx18-i2c.o -rw-rw-r-- 1 willy users 33920 Jan 1 11:00 drivers/media/pci/cx18/cx18-i2c.o
Hoping this helps, Willy
On 1.01.2023 11:05, Willy Tarreau wrote:
On Sun, Jan 01, 2023 at 09:01:22AM +0000, Lukasz Kalamlacki wrote:
On 1.01.2023 09:47, Greg KH wrote:
On Sun, Jan 01, 2023 at 08:14:12AM +0000, Lukasz Kalamlacki wrote:
On 1.01.2023 07:53, Willy Tarreau wrote:
On Sat, Dec 31, 2022 at 04:58:51PM +0000, Lukasz Kalamlacki wrote:
Hey,
Do you have an issue compiling 6.1.2 linux kernel?
I cannot compile it.
For me it compiles and boots. You'll need to share your config and error report if you want to get some help.
Willy
I was trying to compile on Debian Bullseye where default gcc is version 10, when I upgraded gcc to version 12 from sid repo i Was able to compile too. On stable Debian without addition during compile "segmentation fault" occurs at the compilation of cx8-i2c.c file. You can try on kvm or virtualbox this compilation.
Sounds like a gcc bug you should be notifying the gcc developers about.
good luck!
greg k-h
To be precise I have this on gcc 10 in Debian:
during GIMPLE pass: fre drivers/media/pci/cx18/cx18-i2c.c: In function 'init_cx18_i2c': drivers/media/pci/cx18/cx18-i2c.c:300:1: internal compiler error: Segmentation fault 300 | }
As Greg said it's definitely a compiler bug, so it will interest Gcc developers, or your distro's gcc package maintainers in case it's not up to date. There are toolchains available on kernel.org here:
https://mirrors.edge.kernel.org/pub/tools/crosstool/
The laest 10.x available is 10.4. If it works with this one it may indicate that your package is lacking some recent fixes, so it might be a question for your distro's gcc package maintainers. If it fails it indicates a bug not yet fixed in gcc and your distro maintainers won't be of any help here, you'll have to report it to the gcc devs instead.
Note that they'll very likely ask about a reproducer (and most likely your config). But a quick test for me with this driver built as a module on x86_64 with gcc-10.4 from kernel.org doesn't show any problem:
$ make CROSS_COMPILE=/f/tc/nolibc/gcc-10.4.0-nolibc/x86_64-linux/bin/x86_64-linux- drivers/media/pci/cx18/cx18-i2c.o (...) CC [M] drivers/media/pci/cx18/cx18-i2c.o $ ll drivers/media/pci/cx18/cx18-i2c.o -rw-rw-r-- 1 willy users 33920 Jan 1 11:00 drivers/media/pci/cx18/cx18-i2c.o
Hoping this helps, Willy
Allright, my kernel config is available here: https://kalamlacki.eu/KERNELS/kconfig-6.1
Compilation on 11th gen i5 core cpu using command:
make -j 9 bindeb-pkg
Best,
Łukasz
On Sun, Jan 01, 2023 at 10:12:12AM +0000, Łukasz Kalamłacki wrote:
Allright, my kernel config is available here: https://kalamlacki.eu/KERNELS/kconfig-6.1
Compilation on 11th gen i5 core cpu using command:
make -j 9 bindeb-pkg
As we have both stated, we are not the people to be discussing this with as the kernel source is not the problem at all, so there's nothing we can do here, sorry.
Have a good new year!
greg k-h
On 1.01.2023 11:20, Greg KH wrote:
On Sun, Jan 01, 2023 at 10:12:12AM +0000, Łukasz Kalamłacki wrote:
Allright, my kernel config is available here: https://kalamlacki.eu/KERNELS/kconfig-6.1
Compilation on 11th gen i5 core cpu using command:
make -j 9 bindeb-pkg
As we have both stated, we are not the people to be discussing this with as the kernel source is not the problem at all, so there's nothing we can do here, sorry.
Have a good new year!
greg k-h
I am aware Greg that this is not kernel release issue and rather gcc but it occurs during kernel compilation and many people can have this issue too and that is why I am discussing about it here.
Willy: Debian stable has gcc in version 10.2.1 as states my buildinfo from compilation of kernel 6.1.1 as it can be checked here: https://kalamlacki.eu/KERNELS/BUSTER/linux-upstream_6.1.1-1_amd64.buildinfo.
Best,
Łukasz
On Sunday, January 1, 2023 11:38:36 AM CET Łukasz Kalamłacki wrote:
On 1.01.2023 11:20, Greg KH wrote:
On Sun, Jan 01, 2023 at 10:12:12AM +0000, Łukasz Kalamłacki wrote:
Allright, my kernel config is available here: https://kalamlacki.eu/KERNELS/kconfig-6.1
Compilation on 11th gen i5 core cpu using command:
make -j 9 bindeb-pkg
As we have both stated, we are not the people to be discussing this with as the kernel source is not the problem at all, so there's nothing we can do here, sorry.
Have a good new year!
greg k-h
I am aware Greg that this is not kernel release issue and rather gcc but it occurs during kernel compilation and many people can have this issue too and that is why I am discussing about it here.
Willy: Debian stable has gcc in version 10.2.1 as states my buildinfo from compilation of kernel 6.1.1 as it can be checked here: https://kalamlacki.eu/KERNELS/BUSTER/linux-upstream_6.1.1-1_amd64.buildinfo.
I had the same issue with you as I am using Debian 11 (bullseye) and followed Willy's suggestion to use the toolchains available on https://mirrors.edge.kernel.org/pub/tools/crosstool/, that solved my problem for compiling 6.0.16 version as well.
6.0.X kernel versions are already available via backports, so I think the fix to GCC version, that bullseye utilizes, will come to bullseye quite soon as the kernel package maintainers will see the issue when they will try to release 6.0.16 version to backports.
This issue was a strong reminder for me to switch back to the toolchains for compiling the kernel. I do acknowledge that it is quite convenient for users to just use the GCC that is available from the distribution but using the aforementioned toolchains ensures a smooth experience with compiling the kernel.
My 2 cents, Pavlos
On Sun, Jan 01, 2023 at 11:05:18AM +0100, Willy Tarreau wrote:
To be precise I have this on gcc 10 in Debian:
during GIMPLE pass: fre drivers/media/pci/cx18/cx18-i2c.c: In function 'init_cx18_i2c': drivers/media/pci/cx18/cx18-i2c.c:300:1: internal compiler error: Segmentation fault 300 | }
As Greg said it's definitely a compiler bug, so it will interest Gcc developers, or your distro's gcc package maintainers in case it's not up to date. There are toolchains available on kernel.org here:
https://mirrors.edge.kernel.org/pub/tools/crosstool/
The laest 10.x available is 10.4. If it works with this one it may indicate that your package is lacking some recent fixes, so it might be a question for your distro's gcc package maintainers. If it fails it indicates a bug not yet fixed in gcc and your distro maintainers won't be of any help here, you'll have to report it to the gcc devs instead.
Note that they'll very likely ask about a reproducer (and most likely your config). But a quick test for me with this driver built as a module on x86_64 with gcc-10.4 from kernel.org doesn't show any problem:
$ make CROSS_COMPILE=/f/tc/nolibc/gcc-10.4.0-nolibc/x86_64-linux/bin/x86_64-linux- drivers/media/pci/cx18/cx18-i2c.o (...) CC [M] drivers/media/pci/cx18/cx18-i2c.o $ ll drivers/media/pci/cx18/cx18-i2c.o -rw-rw-r-- 1 willy users 33920 Jan 1 11:00 drivers/media/pci/cx18/cx18-i2c.o
Hi Willy,
I can confirmed that no segfault reported when compiling x86_64-defconfig + CONFIG_VIDEO_CX18 using default gcc from Debian 11, so this can be hardware issues.
Thanks.
Hi Bagas,
On Mon, Jan 02, 2023 at 10:35:47AM +0700, Bagas Sanjaya wrote:
On Sun, Jan 01, 2023 at 11:05:18AM +0100, Willy Tarreau wrote:
To be precise I have this on gcc 10 in Debian:
during GIMPLE pass: fre drivers/media/pci/cx18/cx18-i2c.c: In function 'init_cx18_i2c': drivers/media/pci/cx18/cx18-i2c.c:300:1: internal compiler error: Segmentation fault 300 | }
As Greg said it's definitely a compiler bug, so it will interest Gcc developers, or your distro's gcc package maintainers in case it's not up to date. There are toolchains available on kernel.org here:
https://mirrors.edge.kernel.org/pub/tools/crosstool/
The laest 10.x available is 10.4. If it works with this one it may indicate that your package is lacking some recent fixes, so it might be a question for your distro's gcc package maintainers. If it fails it indicates a bug not yet fixed in gcc and your distro maintainers won't be of any help here, you'll have to report it to the gcc devs instead.
Note that they'll very likely ask about a reproducer (and most likely your config). But a quick test for me with this driver built as a module on x86_64 with gcc-10.4 from kernel.org doesn't show any problem:
$ make CROSS_COMPILE=/f/tc/nolibc/gcc-10.4.0-nolibc/x86_64-linux/bin/x86_64-linux- drivers/media/pci/cx18/cx18-i2c.o (...) CC [M] drivers/media/pci/cx18/cx18-i2c.o $ ll drivers/media/pci/cx18/cx18-i2c.o -rw-rw-r-- 1 willy users 33920 Jan 1 11:00 drivers/media/pci/cx18/cx18-i2c.o
Hi Willy,
I can confirmed that no segfault reported when compiling x86_64-defconfig + CONFIG_VIDEO_CX18 using default gcc from Debian 11, so this can be hardware issues.
Unlikely, hardware issues rarely cause a crash on the same file in a project as large as the kernel. However, a bug in the compiler may be triggered by specific combinations of options, or even the environment sometimes.
Also, Pavlos also got the problem on 6.0.16 and got it fixed by updating the compiler.
I think that someone should report the bug to the debian gcc maintainers and tell them that 10.4.0 as shipped on kernel.org fixes the problem. It could help them reproduce the issue, update, confirm the problem is gone, and issue a fixed package.
Thanks, Willy
On 1.01.2023 09:47, Greg KH wrote:
On Sun, Jan 01, 2023 at 08:14:12AM +0000, Łukasz Kalamłacki wrote:
On 1.01.2023 07:53, Willy Tarreau wrote:
On Sat, Dec 31, 2022 at 04:58:51PM +0000, Lukasz Kalamlacki wrote:
Hey,
Do you have an issue compiling 6.1.2 linux kernel?
I cannot compile it.
For me it compiles and boots. You'll need to share your config and error report if you want to get some help.
Willy
I was trying to compile on Debian Bullseye where default gcc is version 10, when I upgraded gcc to version 12 from sid repo i Was able to compile too. On stable Debian without addition during compile "segmentation fault" occurs at the compilation of cx8-i2c.c file. You can try on kvm or virtualbox this compilation.
Sounds like a gcc bug you should be notifying the gcc developers about.
good luck!
greg k-h
linux-stable-mirror@lists.linaro.org