"make ARCH=ia64 headers_install" generates assembly errors

From: Robert P. J. Day <rpjday_at_mindspring.com>
Date: 2007-10-11 00:40:09
  the result of running:

$ make -d V=1 ARCH=ia64 headers_install

Reading makefiles...
Reading makefile `Makefile'...
Reading makefile `/home/rpjday/k/git/scripts/Kbuild.include' (search path) (no ~ expansion)...
Reading makefile `/home/rpjday/k/git/arch/ia64/Makefile' (search path) (no ~ expansion)...
/home/rpjday/k/git/arch/ia64/scripts/check-segrel.S: Assembler messages:
/home/rpjday/k/git/arch/ia64/scripts/check-segrel.S:1: Error: unknown pseudo-op: `.rodata'
/home/rpjday/k/git/arch/ia64/scripts/check-segrel.S:2: Error: no such instruction: `data4 @segrel(start)'
objdump: '/tmp/out26433': No such file
/home/rpjday/k/git/arch/ia64/scripts/toolchain-flags: line 19: [: !=: unary operator expected
/home/rpjday/k/git/arch/ia64/scripts/check-text-align.S: Assembler messages:
/home/rpjday/k/git/arch/ia64/scripts/check-text-align.S:1: Error: unknown pseudo-op: `.proc'
/home/rpjday/k/git/arch/ia64/scripts/check-text-align.S:2: Error: unknown pseudo-op: `.prologue'
/home/rpjday/k/git/arch/ia64/scripts/check-text-align.S:3: Error: unknown pseudo-op: `.save'
/home/rpjday/k/git/arch/ia64/scripts/check-text-align.S:6: Error: unknown pseudo-op: `.endp'
readelf: Error: '/tmp/out26433': No such file
/home/rpjday/k/git/arch/ia64/scripts/check-gas-asm.S: Assembler messages:
/home/rpjday/k/git/arch/ia64/scripts/check-gas-asm.S:1: Error: junk at end of line, first unrecognized character is `['
/home/rpjday/k/git/arch/ia64/scripts/check-gas-asm.S:2: Error: unknown pseudo-op: `.xdata4'
objdump: '/tmp/out26459.o': No such file
/home/rpjday/k/git/arch/ia64/scripts/check-gas: line 10: [: !=: unary operator expected
Updating makefiles....
... etc etc ...

  the issue appears to be this snippet from arch/ia64/Makefile:

...
GAS_STATUS      = $(shell $(srctree)/arch/ia64/scripts/check-gas "$(CC)" "$(OBJDUMP)")
CPPFLAGS += $(shell $(srctree)/arch/ia64/scripts/toolchain-flags "$(CC)" "$(OBJDUMP)" "$(READELF)")
...

  this will obviously cause problems if you have no cross-compiler,
which you really shouldn't need if all you're doing is installing
headers, anyway.

  the headers_install step still works, but it would be cleaner if the
Makefile didn't try to do things like check for proper assembler when
there's no call for it.

rday

-- 
========================================================================
Robert P. J. Day
Linux Consulting, Training and Annoying Kernel Pedantry
Waterloo, Ontario, CANADA

http://crashcourse.ca
========================================================================
-
To unsubscribe from this list: send the line "unsubscribe linux-ia64" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Received on Thu Oct 11 00:44:04 2007

This archive was generated by hypermail 2.1.8 : 2007-10-11 00:44:18 EST