Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 145850 - crossdev for sh4 does not compile linux headers
Summary: crossdev for sh4 does not compile linux headers
Status: RESOLVED DUPLICATE of bug 140205
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Development (show other bugs)
Hardware: All Linux
: High normal (vote)
Assignee: Gentoo Toolchain Maintainers
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2006-09-01 07:37 UTC by Harald Kubota
Modified: 2006-09-02 01:21 UTC (History)
0 users

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


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Harald Kubota 2006-09-01 07:37:22 UTC
crossdev for sh4-gentoo-linux-uclibc does not compile linux-headers-2.6.17 due to 2 bugs:
-m4-nofpu is not understood by gcc (4.1.1) as there's no multilib support for non-FPU systems compiled, and a header file defines something which is not used with something which is not defined.

The fix is simple if you always have an FPU (I do):
arch/sh/Makefile:
harald@play1$ diff Makefile.orig Makefile
42c42
<       $(call cc-option,-mno-implicit-fp,-m4-nofpu)
---
>       $(call cc-option,-mno-implicit-fp)

and include/asm-sh/page.h: change FPN_START to PFN_START as this:

#define ARCH_PFN_OFFSET             (FPN_START)

is likely a typo in the kernel headers. Then it's a problem of linux-2.6.17 and should be fixed there.

I'm using crossdev-0.9.16, gcc-4.1.1, uclibc-0.9.28.
Comment 1 SpanKY gentoo-dev 2006-09-02 01:21:04 UTC

*** This bug has been marked as a duplicate of 140205 ***