You are not logged in.

#1 2012-10-11 16:12:40

dlin
Member
From: Taipei,Taiwan
Registered: 2005-09-21
Posts: 264

[SOLVED] How to build cross compiler for sh4?

I've read the wiki https://wiki.archlinux.org/index.php/Cr … Guidelines.

And try to build some PKGBUILD on aur in sequence.
1. sh4-elf-binutils 2.22-1
2. sh4-elf-gcc-base 4.7.2-2
3. sh-linux-api-headers 3.5.5-1  https://aur.archlinux.org/packages.php?ID=63511

But, It occurs an error when build sh-linux-api-headers.
Can any one give me some hint about how to patch/correct it?

...
patching file sound/usb/pcm.c
CHK     include/linux/version.h
UPD     include/linux/version.h
...
CHECK   include/linux/usb (10 files)
CHECK   include/linux/wimax (1 files)
CHECK   include/linux (375 files)
/var/abs/local/sh-linux-api-headers/src/linux-3.5/usr/include/linux/kexec.h:49: userspace cannot reference function or variable defined in the kernel
/var/abs/local/sh-linux-api-headers/src/linux-3.5/usr/include/linux/kvm_para.h:26: included file 'asm-sh/kvm_para.h' is not exported
/var/abs/local/sh-linux-api-headers/src/linux-3.5/usr/include/linux/soundcard.h:1054: userspace cannot reference function or variable defined in the kernel
make[2]: *** [/var/abs/local/sh-linux-api-headers/src/linux-3.5/usr/include/linux/.check] Error 123
make[1]: *** [linux] Error 2
make: *** [headers_check] Error 2

Solution:
I use crosstool-ng, downgrade make, downgrade autotool, and it works.

Last edited by dlin (2012-11-14 01:31:57)


Running 4 ArchLinux including sh4twbox,server,notebook,desktop. my AUR packages, old project Arch on colinux,

Offline

#2 2012-10-11 16:30:12

ewaller
Administrator
From: Pasadena, CA
Registered: 2009-07-13
Posts: 12,421

Re: [SOLVED] How to build cross compiler for sh4?

Code tags use [ ], not < >  smile


Nothing is too wonderful to be true, if it be consistent with the laws of nature -- Michael Faraday
Like you, I have no idea what you are doing, but I am pretty sure it is wrong...Jasonwryan
----
How to Ask Questions the Smart Way

Offline

Board footer

Powered by FluxBB