* O= compilation failure in 2.6.21-rc
@ 2007-03-21 16:17 Christoph Hellwig
0 siblings, 0 replies; 2+ messages in thread
From: Christoph Hellwig @ 2007-03-21 16:17 UTC (permalink / raw)
To: linuxppc-dev
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.
^ permalink raw reply [flat|nested] 2+ messages in thread
* Re: O= compilation failure in 2.6.21-rc
@ 2007-03-22 2:18 Milton Miller
0 siblings, 0 replies; 2+ messages in thread
From: Milton Miller @ 2007-03-22 2:18 UTC (permalink / raw)
To: Christoph Hellwig; +Cc: linuxppc-dev
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
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2007-03-22 2:18 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2007-03-21 16:17 O= compilation failure in 2.6.21-rc Christoph Hellwig
-- strict thread matches above, loose matches on Subject: below --
2007-03-22 2:18 Milton Miller
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).