Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 264421 - Kernel compilation for sparc64 requires setting the CROSS_COMPILE option
Summary: Kernel compilation for sparc64 requires setting the CROSS_COMPILE option
Status: RESOLVED FIXED
Alias: None
Product: [OLD] Docs on www.gentoo.org
Classification: Unclassified
Component: Installation Handbook (show other bugs)
Hardware: Sparc Linux
: High normal (vote)
Assignee: nm (RETIRED)
URL: http://www.gentoo.org/doc/en/handbook...
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2009-03-31 17:54 UTC by Sven Vermeulen
Modified: 2009-04-15 06:29 UTC (History)
2 users (show)

See Also:
Package list:
Runtime testing required: ---


Attachments
patch to add CROSS_COMPILE variable for kernel building (hb-install-sparc-kernel.xml.patch,617 bytes, patch)
2009-04-14 15:24 UTC, John Christian Stoddart (RETIRED)
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
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!