* [Linux-ia64] ia64 2.5.44 make dep offsets.h not found
@ 2002-10-25 8:20 Keith Owens
2002-10-27 16:41 ` David Mosberger
0 siblings, 1 reply; 2+ messages in thread
From: Keith Owens @ 2002-10-25 8:20 UTC (permalink / raw)
To: linux-ia64
On Thu, 24 Oct 2002 22:35:37 -0700,
David Mosberger <davidm@napali.hpl.hp.com> wrote:
>A quick patch that gets 2.5.44 (mostly) working on ia64 is now at
>ftp.kernel.org/pub/linux/kernel/ports/ia64/v2.5/ in file:
>
> linux-2.5.44-ia64-021024.diff.gz
If you start from a clean Linus 2.5.44 and apply the above patch then
include/asm-ia64/offsets.h does not exist. All asm-*/offsets.h files
have been deleted from the base tarball, they are generated files.
make -f arch/ia64/tools/Makefile /build/kaos/2.5.44-ia64-021024/include/asm-ia64/offsets.h
/usr/bin/ia64-linux-gcc -g -O2 -Wall -D__KERNEL__ -Iinclude -DKBUILD_BASENAME=print_offsets_ -S arch/ia64/tools/print_offsets.c -o arch/ia64/tools/print_offsets.s
In file included from include/linux/thread_info.h:11,
from include/linux/spinlock.h:12,
from include/linux/capability.h:44,
from include/linux/sched.h:9,
from arch/ia64/tools/print_offsets.c:17:
include/asm/thread_info.h:8:25: asm/offsets.h: No such file or directory
include/asm/ptrace.h:56:25: asm/offsets.h: No such file or directory
include/asm/processor.h:87:25: asm/offsets.h: No such file or directory
Worse than that, not only does the code to calculate offsets.h need to
read offsets.h, it also needs the value of IA64_TASK_SIZE from
offsets.h so it can build offsets.h, an empty offsets.h will not do.
Quick and dirty workaround while I convert arch/ia64/makefile to
generate offsets.h using the standard method and remove this recursive
dependency (and get kdb for ia64 2.5.44 working).
Index: 44.3/arch/ia64/tools/Makefile
--- 44.3/arch/ia64/tools/Makefile Fri, 25 Oct 2002 17:08:41 +1000 kaos (linux-2.5/r/17_Makefile 1.2.1.5 444)
+++ 44.3(w)/arch/ia64/tools/Makefile Fri, 25 Oct 2002 18:14:38 +1000 kaos (linux-2.5/r/17_Makefile 1.2.1.5 444)
@@ -38,6 +38,7 @@ $(THIS)/offsets.h: $(THIS)/print_offsets
comma := ,
$(THIS)/print_offsets: $(THIS)/print_offsets.c FORCE
+ [ ! -r $(TARGET) ] || echo "#define IA64_TASK_SIZE 0" > $(TARGET)
$(CC) $(CFLAGS) -DKBUILD_BASENAME=$(subst $(comma),_,$(subst -,_,$(*F))) \
$(THIS)/print_offsets.c -o $@
@@ -49,6 +50,7 @@ $(THIS)/offsets.h: $(THIS)/print_offsets
$(AWK) -f $(THIS)/print_offsets.awk $^ > $@
$(THIS)/print_offsets.s: $(THIS)/print_offsets.c
+ [ ! -r $(TARGET) ] || echo "#define IA64_TASK_SIZE 0" > $(TARGET)
$(CC) $(CFLAGS) -DKBUILD_BASENAME=$(subst $(comma),_,$(subst -,_,$(*F))) -S $^ -o $@
endif
^ permalink raw reply [flat|nested] 2+ messages in thread
* Re: [Linux-ia64] ia64 2.5.44 make dep offsets.h not found
2002-10-25 8:20 [Linux-ia64] ia64 2.5.44 make dep offsets.h not found Keith Owens
@ 2002-10-27 16:41 ` David Mosberger
0 siblings, 0 replies; 2+ messages in thread
From: David Mosberger @ 2002-10-27 16:41 UTC (permalink / raw)
To: linux-ia64
>>>>> On Fri, 25 Oct 2002 18:20:02 +1000, Keith Owens <kaos@ocs.com.au> said:
Keith> On Thu, 24 Oct 2002 22:35:37 -0700, David Mosberger
Keith> <davidm@napali.hpl.hp.com> wrote:
>> A quick patch that gets 2.5.44 (mostly) working on ia64 is now at
>> ftp.kernel.org/pub/linux/kernel/ports/ia64/v2.5/ in file:
>>
>> linux-2.5.44-ia64-021024.diff.gz
Keith> If you start from a clean Linus 2.5.44 and apply the above
Keith> patch then include/asm-ia64/offsets.h does not exist. All
Keith> asm-*/offsets.h files have been deleted from the base
Keith> tarball, they are generated files.
Try "make dep" first. That should generate offsets.h.
--david
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2002-10-27 16:41 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2002-10-25 8:20 [Linux-ia64] ia64 2.5.44 make dep offsets.h not found Keith Owens
2002-10-27 16:41 ` David Mosberger
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox