Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!

Bug 264421

Summary: Kernel compilation for sparc64 requires setting the CROSS_COMPILE option
Product: [OLD] Docs on www.gentoo.org Reporter: Sven Vermeulen <sven.vermeulen>
Component: Installation HandbookAssignee: nm (RETIRED) <nightmorph>
Status: RESOLVED FIXED    
Severity: normal CC: docs-team, sparc
Priority: High    
Version: unspecified   
Hardware: Sparc   
OS: Linux   
URL: http://www.gentoo.org/doc/en/handbook/handbook-sparc.xml?part=1&chap=7
Whiteboard:
Package list:
Runtime testing required: ---
Attachments: patch to add CROSS_COMPILE variable for kernel building

Description Sven Vermeulen 2009-03-31 17:54:57 UTC
E-mail I received:

"""
Why no one has mentioned here:
http://www.gentoo.org/doc/en/handbook/handbook-sparc.xml?part=1&chap=7
that the sparc kernel needs to be compiled using:
# CROSS_COMPILE=sparc64-unknown-linux-gnu- make
Can you update the handbook?
Regards,
-- 
Przemek Kulczycki

Sun Microsystems, Inc.
Email: Przemyslaw d Kulczycki a sun d com
"""

Reproducible: Always

Steps to Reproduce:
Comment 1 nm (RETIRED) gentoo-dev 2009-03-31 19:09:16 UTC
Sparc team: is this correct?
Comment 2 Friedrich Oslage (RETIRED) gentoo-dev 2009-03-31 19:27:05 UTC
Yes, for kernel >= 2.6.25

For reference see bug #214765, kernel-2.eclass also has an elog-message about this.
Comment 3 Ferris McCormick (RETIRED) gentoo-dev 2009-03-31 20:23:20 UTC
Yes.
Comment 4 John Christian Stoddart (RETIRED) gentoo-dev 2009-04-14 15:24:41 UTC
Created attachment 188315 [details, diff]
patch to add CROSS_COMPILE variable for kernel building

FWIW, here is a patch to add the necessary environment variable for 64-bit kernel compilation.
Comment 5 nm (RETIRED) gentoo-dev 2009-04-15 06:29:38 UTC
Fixed in CVS. Thanks for the patch!