mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
* 2.6.12: arm compilation problems
@ 2005-07-05 21:50 Pavel Machek
  2005-07-05 22:42 ` Russell King
  0 siblings, 1 reply; 2+ messages in thread
From: Pavel Machek @ 2005-07-05 21:50 UTC (permalink / raw)
  To: kernel list

Hi!

I get this, trying to cross-compile 2.6.12 for arm. I tried different
configs... What am I doing wrong? [2.6.11 compiles ok, and even works
on my zaurus after some patches. I tried unpatched 2.6.12, too.]

  GEN     .version
  CHK     include/linux/compile.h
  UPD     include/linux/compile.h
  CC      init/version.o
  LD      init/built-in.o
  LD      .tmp_vmlinux1
/scratchbox/compilers/arm-gcc-3.3.4-glibc-2.3.2/bin/arm-linux-ld:arch/arm/kernel/vmlinux.lds:648:
syntax error
make: *** [.tmp_vmlinux1] Error 1
207.04user 14.19system 237.78 (3m57.784s) elapsed 93.04%CPU
pavel@amd:/data/l/linux-delme$

							Pavel
-- 
teflon -- maybe it is a trademark, but it should not be.

^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: 2.6.12: arm compilation problems
  2005-07-05 21:50 2.6.12: arm compilation problems Pavel Machek
@ 2005-07-05 22:42 ` Russell King
  0 siblings, 0 replies; 2+ messages in thread
From: Russell King @ 2005-07-05 22:42 UTC (permalink / raw)
  To: Pavel Machek; +Cc: kernel list

On Tue, Jul 05, 2005 at 11:50:01PM +0200, Pavel Machek wrote:
> I get this, trying to cross-compile 2.6.12 for arm. I tried different
> configs... What am I doing wrong? [2.6.11 compiles ok, and even works
> on my zaurus after some patches. I tried unpatched 2.6.12, too.]
> 
>   GEN     .version
>   CHK     include/linux/compile.h
>   UPD     include/linux/compile.h
>   CC      init/version.o
>   LD      init/built-in.o
>   LD      .tmp_vmlinux1
> /scratchbox/compilers/arm-gcc-3.3.4-glibc-2.3.2/bin/arm-linux-ld:arch/arm/kernel/vmlinux.lds:648:
> syntax error

Your binutils is probably too old and therefore buggy.  2.16 seems
reasonable, others prefer the known-buggy in other respects 2.15
version (iirc assembler doesn't complain about undefined constant
symbols, doesn't correctly hide $a, $d, $t symbols.)

The exact problem is the ASSERT() macro in the linker script - it
appears some versions of binutils are documented to accept this
but unfortunately it incorrectly errors out with a ficticious syntax
error.

-- 
Russell King
 Linux kernel    2.6 ARM Linux   - http://www.arm.linux.org.uk/
 maintainer of:  2.6 Serial core

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2005-07-05 22:42 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2005-07-05 21:50 2.6.12: arm compilation problems Pavel Machek
2005-07-05 22:42 ` Russell King

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox

all inboxes | Powered by JetHome®