[linux-audio-dev] Cross compiling the kernel

Lee Revell rlrevell at joe-job.com
Fri Dec 9 00:05:46 UTC 2005


(I apologise if anyone finds this thread OT, it is relevant to Linux
audio development and the kernel people don't want to hear about
toolchain problems)

On Thu, 2005-12-08 at 18:16 -0500, Lee Revell wrote:
> On Thu, 2005-12-08 at 16:20 -0600, Richard Smith wrote:
> > > > Christ, I cannot believe what a pain in the ass this is.  At this rate
> > > > it will have taken me 2 days to get this working.
> > > Yep. thats about par for the course.  Perhaps if you ask on the
> > > debian-amd64 some kind soul has unofficial packages you can use.
> >
> > Try here:
> > http://debian.speedblue.org/
> > 
> 
> Thanks, it looks like this will work.  Unfortunately gcc-4.0-x86-64 +
> deps are an 80MB download but I guess that's better than nothing.  I'm
> still disgusted at having to use third party .debs to accomplish
> something so utterly trivial.
> 
> FWIW I tried -m64 as described in one of the other links you sent and
> got these errors.

Hmm, now I am getting somwhere.  I had failed to run "make mrproper" so
include/asm was still symlinked to include/asm-i386.  After fixing that,
I got a bit farther.

  LD      usr/built-in.o
ld: warning: i386 architecture of input file `usr/initramfs_data.o' is incompatible with i386:x86-64 output

This one is worrisome, maybe I also need to pass LDFLAGS?

  CC      arch/x86_64/kernel/process.o
  CC      arch/x86_64/kernel/signal.o
  AS      arch/x86_64/kernel/entry.o
arch/x86_64/kernel/entry.S: Assembler messages:
arch/x86_64/kernel/entry.S:204: Error: cannot represent relocation type BFD_RELOC_X86_64_32S
arch/x86_64/kernel/entry.S:275: Error: cannot represent relocation type BFD_RELOC_X86_64_32S
arch/x86_64/kernel/entry.S:762: Error: cannot represent relocation type BFD_RELOC_X86_64_32S
arch/x86_64/kernel/entry.S:815: Error: cannot represent relocation type BFD_RELOC_X86_64_32S
arch/x86_64/kernel/entry.S:536: Error: cannot represent relocation type BFD_RELOC_64
arch/x86_64/kernel/entry.S:536: Error: cannot represent relocation type BFD_RELOC_64
arch/x86_64/kernel/entry.S:785: Error: cannot represent relocation type BFD_RELOC_64
arch/x86_64/kernel/entry.S:785: Error: cannot represent relocation type BFD_RELOC_64
make[1]: *** [arch/x86_64/kernel/entry.o] Error 1
make: *** [arch/x86_64/kernel] Error 2

Assembler problem?

So it looks like my GCC is OK but the assembler and linker still are not
happy.  Any ideas?

Lee




More information about the Linux-audio-dev mailing list