[Bug 1127188] New: cannot update kernel configuration with cross-compiler
http://bugzilla.suse.com/show_bug.cgi?id=1127188 Bug ID: 1127188 Summary: cannot update kernel configuration with cross-compiler Classification: openSUSE Product: openSUSE Tumbleweed Version: Current Hardware: Other OS: Other Status: NEW Severity: Normal Priority: P5 - None Component: Development Assignee: bnc-team-screening@forge.provo.novell.com Reporter: msuchanek@suse.com QA Contact: qa-bugs@suse.de Found By: --- Blocker: --- SUSE cross-compilers do not include libc. Some kernel configuration options depend on compiler features including the ability to link userspace binaries. This differs between native compilers and cross-compilers causing different configuration to be generated. The kernel build fails when the configuration changes. -- You are receiving this mail because: You are on the CC list for the bug.
http://bugzilla.suse.com/show_bug.cgi?id=1127188 Jiachen Zhang <jiachen.zhang@suse.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Assignee|bnc-team-screening@forge.pr |jslaby@suse.com |ovo.novell.com | -- You are receiving this mail because: You are on the CC list for the bug.
http://bugzilla.suse.com/show_bug.cgi?id=1127188 http://bugzilla.suse.com/show_bug.cgi?id=1127188#c1 Jiri Slaby <jslaby@suse.com> changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |msuchanek@suse.com Assignee|jslaby@suse.com |bnc-team-screening@forge.pr | |ovo.novell.com Flags| |needinfo?(msuchanek@suse.co | |m) --- Comment #1 from Jiri Slaby <jslaby@suse.com> --- Please attach some example. I am not the right person to be assigned here, so resetting. -- You are receiving this mail because: You are on the CC list for the bug.
http://bugzilla.suse.com/show_bug.cgi?id=1127188 http://bugzilla.suse.com/show_bug.cgi?id=1127188#c2 Michal Suchanek <msuchanek@suse.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Flags|needinfo?(msuchanek@suse.co | |m) | --- Comment #2 from Michal Suchanek <msuchanek@suse.com> --- BPF UMH needs an userspace header to build. This is provided by glibc but our crosscompilers do not have glibc headers. I patched the kconfig so this option can be configured and disabled it on master. If we want to build with this option we either need to fix the crosscompilers or change kbuild to run build tests natively. -- You are receiving this mail because: You are on the CC list for the bug.
http://bugzilla.suse.com/show_bug.cgi?id=1127188 Jiachen Zhang <jiachen.zhang@suse.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Assignee|bnc-team-screening@forge.pr |schwab@suse.com |ovo.novell.com | -- You are receiving this mail because: You are on the CC list for the bug.
http://bugzilla.suse.com/show_bug.cgi?id=1127188 Andreas Schwab <schwab@suse.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Assignee|schwab@suse.com |rguenther@suse.com -- You are receiving this mail because: You are on the CC list for the bug.
http://bugzilla.suse.com/show_bug.cgi?id=1127188 http://bugzilla.suse.com/show_bug.cgi?id=1127188#c3 Richard Biener <rguenther@suse.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|NEW |RESOLVED Resolution|--- |WONTFIX --- Comment #3 from Richard Biener <rguenther@suse.com> --- We don't have cross-compilers. -- You are receiving this mail because: You are on the CC list for the bug.
http://bugzilla.suse.com/show_bug.cgi?id=1127188 http://bugzilla.suse.com/show_bug.cgi?id=1127188#c4 Petr Tesařík <ptesarik@suse.com> changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |ptesarik@suse.com --- Comment #4 from Petr Tesařík <ptesarik@suse.com> --- That's right. The kernel teams maintain cross-compilers (in Kernel:tools), but AFAICS there is no suitable Bugzilla product for kbuild, so Bugzilla cannot be used to track this issue. -- You are receiving this mail because: You are on the CC list for the bug.
http://bugzilla.suse.com/show_bug.cgi?id=1127188 http://bugzilla.suse.com/show_bug.cgi?id=1127188#c5 Michal Suchanek <msuchanek@suse.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|RESOLVED |REOPENED Resolution|WONTFIX |--- --- Comment #5 from Michal Suchanek <msuchanek@suse.com> --- (In reply to Richard Biener from comment #3)
We don't have cross-compilers.
That's exactly the problem here. -- You are receiving this mail because: You are on the CC list for the bug.
http://bugzilla.suse.com/show_bug.cgi?id=1127188 http://bugzilla.suse.com/show_bug.cgi?id=1127188#c6 --- Comment #6 from Richard Biener <rguenther@suse.com> --- (In reply to Michal Suchanek from comment #5)
(In reply to Richard Biener from comment #3)
We don't have cross-compilers.
That's exactly the problem here.
But that's not a bug but a missing feature... -- You are receiving this mail because: You are on the CC list for the bug.
http://bugzilla.suse.com/show_bug.cgi?id=1127188 http://bugzilla.suse.com/show_bug.cgi?id=1127188#c7 --- Comment #7 from Michal Suchanek <msuchanek@suse.com> --- I don't know what you call those aarch64-suse-linux-gcc and similar. They are crosscompilers without a libc. We need libc headers to build mainline kernel. -- You are receiving this mail because: You are on the CC list for the bug.
http://bugzilla.suse.com/show_bug.cgi?id=1127188 http://bugzilla.suse.com/show_bug.cgi?id=1127188#c8 --- Comment #8 from Petr Tesařík <ptesarik@suse.com> --- (In reply to Michal Suchanek from comment #7)
I don't know what you call those
aarch64-suse-linux-gcc
and similar.
Oh, indeed, these packages are now part of Tumbleweed: https://build.opensuse.org/package/show/openSUSE:Factory/cross-aarch64-gcc8 ... Then the bug report is valid; sorry for the noise. -- You are receiving this mail because: You are on the CC list for the bug.
http://bugzilla.suse.com/show_bug.cgi?id=1127188 http://bugzilla.suse.com/show_bug.cgi?id=1127188#c9 --- Comment #9 from Richard Biener <rguenther@suse.com> --- (In reply to Michal Suchanek from comment #7)
I don't know what you call those
aarch64-suse-linux-gcc
and similar.
Those are a convenience provided to you kernel folks who requested they'd be available without the hassle to untar an icecream environment.
They are crosscompilers without a libc.
We need libc headers to build mainline kernel.
Seems to be a new thing. In theory extending the "hack" to libc (headers) is possible by re-packaging the native glibc into a noarch cross-%arch-glibc package and build depending on that. But this seemed to gross for me. I also don't really have time to explore this route again (did once during a hackweek). -- You are receiving this mail because: You are on the CC list for the bug.
http://bugzilla.suse.com/show_bug.cgi?id=1127188 http://bugzilla.suse.com/show_bug.cgi?id=1127188#c10 --- Comment #10 from Richard Biener <rguenther@suse.com> --- (In reply to Petr Tesařík from comment #8)
(In reply to Michal Suchanek from comment #7)
I don't know what you call those
aarch64-suse-linux-gcc
and similar.
Oh, indeed, these packages are now part of Tumbleweed:
https://build.opensuse.org/package/show/openSUSE:Factory/cross-aarch64-gcc8 ...
Then the bug report is valid; sorry for the noise.
Those are likely not the same as those in Kernel:tools if that provides libc headers in some way. -- You are receiving this mail because: You are on the CC list for the bug.
http://bugzilla.suse.com/show_bug.cgi?id=1127188 http://bugzilla.suse.com/show_bug.cgi?id=1127188#c11 --- Comment #11 from Petr Tesařík <ptesarik@suse.com> --- However, there is no bug in the compiler itself or in the toolchain - if you provide all necessary files (like header files etc.), they work flawlessly. It's a missing cross-arch libc, and I'm afraid that qualifies as a feature. -- You are receiving this mail because: You are on the CC list for the bug.
http://bugzilla.suse.com/show_bug.cgi?id=1127188 http://bugzilla.suse.com/show_bug.cgi?id=1127188#c12 --- Comment #12 from Richard Biener <rguenther@suse.com> --- Created attachment 800834 --> http://bugzilla.suse.com/attachment.cgi?id=800834&action=edit cross-glibc package So if you are interested here's the directory containing this kind of cross glibc "packaging" that I have lying around. -- You are receiving this mail because: You are on the CC list for the bug.
http://bugzilla.suse.com/show_bug.cgi?id=1127188 http://bugzilla.suse.com/show_bug.cgi?id=1127188#c13 --- Comment #13 from Richard Biener <rguenther@suse.com> --- (In reply to Richard Biener from comment #12)
Created attachment 800834 [details] cross-glibc package
So if you are interested here's the directory containing this kind of cross glibc "packaging" that I have lying around.
Oh, it's actually in devel:gcc, just disabled. And it didn't use noarch but specific archs and aggregates to copy over. Making it noarch might "solve" the need for aggregates. -- You are receiving this mail because: You are on the CC list for the bug.
https://bugzilla.suse.com/show_bug.cgi?id=1127188 https://bugzilla.suse.com/show_bug.cgi?id=1127188#c17 --- Comment #17 from Michal Suchanek <msuchanek@suse.com> --- Linux upstream sort of solved this with dummy-tools. -- You are receiving this mail because: You are on the CC list for the bug.
https://bugzilla.suse.com/show_bug.cgi?id=1127188 https://bugzilla.suse.com/show_bug.cgi?id=1127188#c18 Richard Biener <rguenther@suse.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|REOPENED |RESOLVED Resolution|--- |FIXED --- Comment #18 from Richard Biener <rguenther@suse.com> --- We now have cross-glibc for a select set of architectures (aarch64 and riscv). -- You are receiving this mail because: You are on the CC list for the bug.
participants (2)
-
bugzilla_noreply@novell.com
-
bugzilla_noreply@suse.com