Topic
  • 5 replies
  • Latest Post - ‏2010-07-15T17:18:21Z by SystemAdmin
divy
divy
2 Posts

Pinned topic 2.6.32+ compilation: which gcc to use?

‏2010-07-14T06:21:13Z |
Hi,

As mentioned in the wiki, P6 compilation 2.6.32+ kernels with gcc-4.1.2 fails on vdso.c.
I've tried gcc-4.5.0, the kernel won't compile either on a different error.
gcc-4.2.4 fails with the original vdso.c issue.

Which gcc version is known to compile recent kernels on a P6 platform?

Cheers,
Divy
Updated on 2010-07-15T17:18:21Z at 2010-07-15T17:18:21Z by SystemAdmin
  • divy
    divy
    2 Posts

    Re: 2.6.32+ compilation: which gcc to use?

    ‏2010-07-14T07:44:53Z  
    gcc-4.4.3 allows to compile and run 2.6.35-rc1.
    However, it raises issues compiling RHEL5.5 kernel ...
  • SystemAdmin
    SystemAdmin
    706 Posts

    Re: 2.6.32+ compilation: which gcc to use?

    ‏2010-07-14T11:13:10Z  
    • divy
    • ‏2010-07-14T07:44:53Z
    gcc-4.4.3 allows to compile and run 2.6.35-rc1.
    However, it raises issues compiling RHEL5.5 kernel ...
    Will try this morning. Be sure you are using gcc from the advance tool chain.
  • SystemAdmin
    SystemAdmin
    706 Posts

    Re: 2.6.32+ compilation: which gcc to use?

    ‏2010-07-15T14:17:54Z  
    Will try this morning. Be sure you are using gcc from the advance tool chain.
    hmm. So I could re-build the 2.6.32 kernels fine with the advance toolchain 2.1-1 and confirmed that 2.6.32.15 works. For power7 work, the 2.6.32 is the kernel we have been recommending for assessments - but you're on a P6 system.

    On the 2.6.35 side - newer obviously - that's panic'ing on the boot for some reason. I'll have to get some of the kernel programmers to look at that.

    Not sure what specific errors you're getting - or what your goal is.

    There's also a newer updated Advance Toolchain (ver 3.0) which is now available which has gcc 4.4.4 in it.

    Bottom line:

    1. Unless you're specifically interested in the gcc code base being developed, we recommend using the Advance Toolchain on Power systems. For Power6, Advance Toolchain 2.1-1 is fine. For Power7, Advance Toolchain 3.0 is recommended. Advance Toolchain 3.0 can be used on Power6 if desired as well.

    2. For Power7 assessments, we recommend a 2.6.32 kernel base since that's been tested a bit. The newer kernels are normal kernels in development and your mileage will vary.
  • SystemAdmin
    SystemAdmin
    706 Posts

    Re: 2.6.32+ compilation: which gcc to use?

    ‏2010-07-15T14:19:11Z  
    hmm. So I could re-build the 2.6.32 kernels fine with the advance toolchain 2.1-1 and confirmed that 2.6.32.15 works. For power7 work, the 2.6.32 is the kernel we have been recommending for assessments - but you're on a P6 system.

    On the 2.6.35 side - newer obviously - that's panic'ing on the boot for some reason. I'll have to get some of the kernel programmers to look at that.

    Not sure what specific errors you're getting - or what your goal is.

    There's also a newer updated Advance Toolchain (ver 3.0) which is now available which has gcc 4.4.4 in it.

    Bottom line:

    1. Unless you're specifically interested in the gcc code base being developed, we recommend using the Advance Toolchain on Power systems. For Power6, Advance Toolchain 2.1-1 is fine. For Power7, Advance Toolchain 3.0 is recommended. Advance Toolchain 3.0 can be used on Power6 if desired as well.

    2. For Power7 assessments, we recommend a 2.6.32 kernel base since that's been tested a bit. The newer kernels are normal kernels in development and your mileage will vary.
    and cleverly enough.. I just read your post more carefully.. and you were having problems re-building the rhel 5.5 distro kernel?
  • SystemAdmin
    SystemAdmin
    706 Posts

    Re: 2.6.32+ compilation: which gcc to use?

    ‏2010-07-15T17:18:21Z  
    hmm. So I could re-build the 2.6.32 kernels fine with the advance toolchain 2.1-1 and confirmed that 2.6.32.15 works. For power7 work, the 2.6.32 is the kernel we have been recommending for assessments - but you're on a P6 system.

    On the 2.6.35 side - newer obviously - that's panic'ing on the boot for some reason. I'll have to get some of the kernel programmers to look at that.

    Not sure what specific errors you're getting - or what your goal is.

    There's also a newer updated Advance Toolchain (ver 3.0) which is now available which has gcc 4.4.4 in it.

    Bottom line:

    1. Unless you're specifically interested in the gcc code base being developed, we recommend using the Advance Toolchain on Power systems. For Power6, Advance Toolchain 2.1-1 is fine. For Power7, Advance Toolchain 3.0 is recommended. Advance Toolchain 3.0 can be used on Power6 if desired as well.

    2. For Power7 assessments, we recommend a 2.6.32 kernel base since that's been tested a bit. The newer kernels are normal kernels in development and your mileage will vary.
    Since we hit this anyway.. Srivatsa Vaddagiri pointed out that in the 2.6.35 kernel we need to set another config setting:

    CONFIG_SYSFS_DEPRECATED_V2=y

    With this change, the 2.6.35-rc5 kernel built and booted fine on Power7 with the Advance Toolchain 2.1-1 gcc.