O= compilation failure in 2.6.21-rc
Milton Miller
miltonm at bga.com
Thu Mar 22 13:18:04 EST 2007
On Thu Mar 22 03:17:28 EST 2007, Christoph Hellwig wrote:
> looks like 2.6.21-rc4 doesn't compile anymore when using objdir !=
> srcdir. The message is:
>
> WRAP arch/powerpc/boot/zImage.pseries
> powerpc64-linux-ld: cannot open linker script file
> arch/powerpc/boot/zImage.lds: No such file or directory
> arch/powerpc/boot/zImage.pseries: No such file or directory
>
> works fine for either building in the source dir or just doing a make
> vmlinux instead of make so that the zImage wrapper isn't built.
Works for me.
unpack 2.6.24-rc4
mkdir obj_4k
make pseries_defconfig O=obj_4k/
make zImage O=obj_4k/
..
BOOTCC arch/powerpc/boot/of.o
BOOTCC arch/powerpc/boot/empty.o
HOSTCC arch/powerpc/boot/addnote
HOSTCC arch/powerpc/boot/hack-coff
HOSTCC arch/powerpc/boot/mktree
WRAP arch/powerpc/boot/zImage.pseries
[no complaints]
In additon, here is the dependency chain in arch/powerpc/boot/Makefile
from the wrapper invocation to the generation of zImage.lds:
$(obj)/zImage: $(addprefix $(obj)/, $(image-y))
$(obj)/zImage.pseries: vmlinux $(wrapperbits)
$(call cmd,wrap,pseries)
wrapperbits := $(extra-y) $(addprefix $(obj)/,addnote hack-coff mktree)
extra-y := $(obj)/crt0.o $(obj)/wrapper.a $(obj-plat) $(obj)/empty.o \
$(obj)/zImage.lds $(obj)/zImage.coff.lds
$(obj)/zImage.lds $(obj)/zImage.coff.lds: $(obj)/%: $(srctree)/$(src)/%.S
@cp $< $@
So either your tree is broken, cp is broken, or you need to provide more
information.
milton
More information about the Linuxppc-dev
mailing list