FS#44784 - [linux] kernel 4.0.1-1-ARCH was compiled with gcc-5.1
Attached to Project:
Arch Linux
Opened by red solja (redsolja) - Wednesday, 29 April 2015, 20:22 GMT
Last edited by Evangelos Foutras (foutrelis) - Thursday, 21 May 2015, 23:21 GMT
Opened by red solja (redsolja) - Wednesday, 29 April 2015, 20:22 GMT
Last edited by Evangelos Foutras (foutrelis) - Thursday, 21 May 2015, 23:21 GMT
|
Details
Description:
The kernel was compiled with gcc-5.1. However the gcc version we have in our systems is 4.9.2 This creates a number of problems regarding module recompilation (e.g. vmware). Fortunately I was able to work around this by uncommenting the testing and the testing-multilib repos, upgrading the system to download the gcc-5.1 and its deps from testing, recompile the vmware modules and downgrade everything back. Additional info: * linux-4.0.1-1-ARCH * gcc-4.9.2 |
This task depends upon
Closed by Evangelos Foutras (foutrelis)
Thursday, 21 May 2015, 23:21 GMT
Reason for closing: Fixed
Additional comments about closing: gcc 5.1.0-4 is now in [core].
Thursday, 21 May 2015, 23:21 GMT
Reason for closing: Fixed
Additional comments about closing: gcc 5.1.0-4 is now in [core].
Edit (to clarify):
- Packages that get uploaded to [testing] are usually built against [testing].
- Packages that get uploaded straight to [extra] or [community] are NOT built with [testing] enabled.
That's an issue with VMware tools itself because of the newer version of the kernel.
But still, I really think the kernel should be upgraded/released with the same GCC version.
Also voting for the kernel to be compiled with gcc 4.x until gcc is out of testing.
Convincing vmware-config-tools.pl to skip the gcc version checks was hard, so have not been able to test if compiling the vmhgfs module with gcc 4.x on the kernel compiled with gcc 5.x at all works.
But, I did finally get vmhgfs compiled and working without locking up. For those of u who are coming here looking for VMware help, go here:
https://bbs.archlinux.org/viewtopic.php?pid=1526922#p1526922
In short, recompile the kernel using ABS using GCC 4.9 that is on the system. If attempting to upgrade GCC to 5.1 that is in testing, it hard locks the VM. It also requires patching the VMware tools to get around the current Linux kernel api changes (also mentioned in that link).
Keeping on doing this, affects the stability of our systems.
Is there any explanation why kernel is *still* being compiled with gcc from [testing] repository although it has been reported that causes issues?
The only workaround is to enable testing repo and install gcc from testing.
Compiling core packages (e. g. linux) should only be done by using core compiler versions.
I'm note quite sure if installing gcc-5.1 including dependencies from testing repo might break other programs or packages.
https://bbs.archlinux.org/viewtopic.php?pid=1526801#p1526801
Still though, we haven't got any serious response on the actual problem :/
I just wanted to inform you about another workaround in case you didn't know about it.