📄 ia64-offsets.h.patch
字号:
Fixes error:In file included from result/ia64-unknown-linux-gnu/gcc-3.2.3-glibc-2.2.5/ia64-unknown-linux-gnu/include/linux/ptrace.h:24, from result/ia64-unknown-linux-gnu/gcc-3.2.3-glibc-2.2.5/ia64-unknown-linux-gnu/include/asm/user.h:31, from result/ia64-unknown-linux-gnu/gcc-3.2.3-glibc-2.2.5/ia64-unknown-linux-gnu/include/linux/user.h:1, from ../sysdeps/unix/sysv/linux/sys/user.h:1, from ../sysdeps/unix/sysv/linux/ia64/sys/procfs.h:31, from ../linuxthreads_db/proc_service.h:20, from ../linuxthreads_db/thread_dbP.h:6, from internals.h:36, from attr.c:23:result/ia64-unknown-linux-gnu/gcc-3.2.3-glibc-2.2.5/ia64-unknown-linux-gnu/include/asm/ptrace.h:54:25: asm/offsets.h: No such file or directorymake[2]: *** [build/ia64-unknown-linux-gnu/gcc-3.2.3-glibc-2.2.5/build-glibc/linuxthreads/attr.o] Error 1Subject: [patch] 2.4.22-ia64-030909 build of offsets.hFrom: Keith Owens (kaos@sgi.com)Date: 2003-09-12 12:25:522.4.22 deleted include/asm-ia64/offsets.h from the kernel tree. Ifthere is no other copy of that file on the include paths (say for crosscompiling) then make dep breaks, offsets.h is required before you canbuild offsets.h.Index: 22.6/arch/ia64/tools/Makefile--- 22.6/arch/ia64/tools/Makefile Sat, 14 Sep 2002 01:17:57 +1000 kaos (linux-2.4/q/c/1_Makefile 1.1.2.1.1.1 644)+++ 22.6(w)/arch/ia64/tools/Makefile Fri, 12 Sep 2003 12:20:15 +1000 kaos (linux-2.4/q/c/1_Makefile 1.1.2.1.1.1 644)@@ -33,7 +33,7 @@ offsets.h: print_offsets comma := , -print_offsets: print_offsets.c FORCE_RECOMPILE+print_offsets: emptyoffsets print_offsets.c FORCE_RECOMPILE $(CC) $(CFLAGS) -DKBUILD_BASENAME=$(subst $(comma),_,$(subst -,_,$(*F))) print_offsets.c -o $@ FORCE_RECOMPILE:@@ -43,9 +43,20 @@ else offsets.h: print_offsets.s $(AWK) -f print_offsets.awk $^ > $@ -print_offsets.s: print_offsets.c+print_offsets.s: emptyoffsets print_offsets.c $(CC) $(CFLAGS) -DKBUILD_BASENAME=$(subst $(comma),_,$(subst -,_,$(*F))) -S print_offsets.c -o $@ endif +#+# The TARGET offsets.h is included by ptrace.h, which is included by+# print_offsets.c, so can't compile print_offsets.c to create offsets.h+# until we already have offsets.h. Break the chicken-and-egg cycle by+# creating a dummy offsets.h with sufficient define's to bootstrap+# the first compilation of print_offsets.c.+#++emptyoffsets:+ test -f ${TARGET} || echo '#define IA64_TASK_THREAD_OFFSET 0' > ${TARGET}+ .PHONY: all modules modules_install
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -